gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
#include <string.h>
#include <sstream>
#include "GmshConfig.h"
#include "GmshMessage.h"
#include "GModel.h"
#include "GModelIO_GEO.h"
#include "GModelIO_OCC.h"
#include "Numeric.h"
#include "StringUtils.h"
#include "Geo.h"
#include "scriptStringInterface.h"
#include "OpenFile.h"
#include "Context.h"
#include "OS.h"
#include "Parser.h"
Go to the source code of this file.
Functions | |
static void | scriptAddCommand (const std::string &text, const std::string &fileNameOrEmpty, const std::string &lang) |
void | scriptRemoveLastCommand (const std::string &fileName) |
static std::string | list2String (List_T *list, const std::string &lang) |
static std::string | vector2String (const std::vector< int > &v, const std::string &lang) |
static std::string | dimTags2String (const std::vector< std::pair< int, int > > &l, const std::string &lang) |
static void | checkOCC (std::ostringstream &sstream, const std::string &lang) |
void | scriptSetFactory (const std::string &factory, const std::string &fileName) |
static std::string | api (const std::string &name, const std::string &args, const std::string &lang) |
void | scriptSetMeshSize (const std::string &fileName, const std::vector< int > &l, const std::string &lc) |
void | scriptRecombineSurface (const std::string &fileName, const std::vector< int > &l) |
void | scriptSetTransfiniteLine (std::vector< int > &l, const std::string &fileName, const std::string &type, const std::string &typearg, const std::string &pts) |
void | scriptSetTransfiniteSurface (std::vector< int > &l, const std::string &fileName, const std::string &dir) |
void | scriptSetTransfiniteVolume (std::vector< int > &l, const std::string &fileName) |
void | scriptEmbed (const std::string &fileName, const std::string &what, std::vector< int > &l, int dim, int tag) |
void | scriptAddParameter (const std::string &par, const std::string &value, const std::string &label, const std::string &path, const std::string &fileName) |
void | scriptAddPoint (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &lc) |
void | scriptAddFieldOption (int field_id, const std::string &option_name, const std::string &option_value, int option_type, const std::string &fileName) |
void | scriptAddField (int field_id, const std::string &type_name, const std::string &fileName) |
void | scriptDeleteField (int field_id, const std::string &fileName) |
void | scriptSetBackgroundField (int field_id, const std::string &fileName) |
void | scriptAddCurve (const std::string &type, std::vector< int > &p, const std::string &fileName) |
void | scriptAddCircleArc (int p1, int p2, int p3, const std::string &fileName) |
void | scriptAddEllipseArc (int p1, int p2, int p3, int p4, const std::string &fileName) |
void | scriptAddCurveLoop (List_T *list, const std::string &fileName, int *numloop) |
void | scriptAddSurface (const std::string &type, List_T *list, const std::string &fileName) |
void | scriptAddSurfaceLoop (List_T *list, const std::string &fileName, int *numloop) |
void | scriptAddVolume (List_T *list, const std::string &fileName) |
void | scriptAddRemovePhysicalGroup (const std::string &fileName, const std::string &what, const std::vector< int > &l, const std::string &name, int forceTag, bool append, const std::string &mode) |
void | scriptSetCompound (const std::string &fileName, const std::string &type, const std::vector< int > &l) |
void | scriptAddCircle (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &r, const std::string &alpha1, const std::string &alpha2) |
void | scriptAddEllipse (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &rx, const std::string &ry, const std::string &alpha1, const std::string &alpha2) |
void | scriptAddDisk (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &rx, const std::string &ry) |
void | scriptAddRectangle (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &dx, const std::string &dy, const std::string &roundedRadius) |
void | scriptAddSphere (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &r, const std::string &alpha1, const std::string &alpha2, const std::string &alpha3) |
void | scriptAddCylinder (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &dx, const std::string &dy, const std::string &dz, const std::string &r, const std::string &alpha) |
void | scriptAddBox (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &dx, const std::string &dy, const std::string &dz) |
void | scriptAddTorus (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &r1, const std::string &r2, const std::string &alpha) |
void | scriptAddCone (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &dx, const std::string &dy, const std::string &dz, const std::string &r1, const std::string &r2, const std::string &alpha) |
void | scriptAddWedge (const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &dx, const std::string &dy, const std::string &dz, const std::string <x) |
void | scriptTranslate (const std::string &fileName, const std::vector< std::pair< int, int > > &l, const std::string &tx, const std::string &ty, const std::string &tz, bool duplicata) |
void | scriptRotate (const std::string &fileName, const std::vector< std::pair< int, int > > &l, const std::string &ax, const std::string &ay, const std::string &az, const std::string &px, const std::string &py, const std::string &pz, const std::string &angle, bool duplicata) |
void | scriptDilate (const std::string &fileName, const std::vector< std::pair< int, int > > &l, const std::string &cx, const std::string &cy, const std::string &cz, const std::string &sx, const std::string &sy, const std::string &sz, bool duplicata) |
void | scriptMirror (const std::string &fileName, const std::vector< std::pair< int, int > > &l, const std::string &sa, const std::string &sb, const std::string &sc, const std::string &sd, bool duplicata) |
void | scriptExtrude (const std::string &fileName, const std::vector< std::pair< int, int > > &l, const std::string &tx, const std::string &ty, const std::string &tz, bool extrudeMesh, const std::string &layers, bool recombineMesh) |
void | scriptProtude (const std::string &fileName, const std::vector< std::pair< int, int > > &l, const std::string &ax, const std::string &ay, const std::string &az, const std::string &px, const std::string &py, const std::string &pz, const std::string &angle, bool extrudeMesh, const std::string &layers, bool recombineMesh) |
void | scriptAddPipe (const std::string &fileName, const std::vector< std::pair< int, int > > &l, const std::vector< int > &l2) |
void | scriptSplitCurve (int edge_id, List_T *vertices, const std::string &fileName) |
void | scriptBoolean (const std::string &fileName, const std::string &op, const std::vector< std::pair< int, int > > &object, const std::vector< std::pair< int, int > > &tool, int deleteObject, int deleteTool) |
void | scriptFillet (const std::string &fileName, const std::vector< int > ®ions, const std::vector< int > &edges, const std::string &radius) |
void | scriptCoherence (const std::string &fileName) |
void | scriptDeleteEntities (const std::string &fileName, const std::vector< std::pair< int, int > > &l, bool recursive) |
void | scriptSetVisibilityAll (int mode, const std::string &fileName) |
void | scriptSetVisibility (int mode, const std::vector< std::pair< int, int > > &l, const std::string &fileName) |
Variables | |
static std::string | currentFactory = "geo" |
|
static |
Definition at line 274 of file scriptStringInterface.cpp.
Referenced by scriptAddField(), scriptAddFieldOption(), scriptAddPoint(), scriptDeleteField(), scriptRecombineSurface(), scriptSetBackgroundField(), and scriptSetMeshSize().
|
static |
Definition at line 248 of file scriptStringInterface.cpp.
Referenced by scriptAddBox(), scriptAddCircle(), scriptAddCone(), scriptAddCylinder(), scriptAddDisk(), scriptAddEllipse(), scriptAddPipe(), scriptAddRectangle(), scriptAddSphere(), scriptAddTorus(), scriptAddWedge(), scriptBoolean(), and scriptFillet().
|
static |
Definition at line 208 of file scriptStringInterface.cpp.
Referenced by scriptAddPipe(), scriptBoolean(), scriptDeleteEntities(), scriptDilate(), scriptExtrude(), scriptMirror(), scriptProtude(), scriptRotate(), scriptSetMeshSize(), scriptSetVisibility(), and scriptTranslate().
|
static |
Definition at line 169 of file scriptStringInterface.cpp.
Referenced by scriptAddCurveLoop(), scriptAddSurface(), scriptAddSurfaceLoop(), scriptAddVolume(), and scriptSplitCurve().
void scriptAddBox | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | dx, | ||
const std::string & | dy, | ||
const std::string & | dz | ||
) |
void scriptAddCircle | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | r, | ||
const std::string & | alpha1, | ||
const std::string & | alpha2 | ||
) |
void scriptAddCircleArc | ( | int | p1, |
int | p2, | ||
int | p3, | ||
const std::string & | fileName | ||
) |
|
static |
Definition at line 30 of file scriptStringInterface.cpp.
Referenced by scriptAddBox(), scriptAddCircle(), scriptAddCircleArc(), scriptAddCone(), scriptAddCurve(), scriptAddCurveLoop(), scriptAddCylinder(), scriptAddDisk(), scriptAddEllipse(), scriptAddEllipseArc(), scriptAddField(), scriptAddFieldOption(), scriptAddParameter(), scriptAddPipe(), scriptAddPoint(), scriptAddRectangle(), scriptAddRemovePhysicalGroup(), scriptAddSphere(), scriptAddSurface(), scriptAddSurfaceLoop(), scriptAddTorus(), scriptAddVolume(), scriptAddWedge(), scriptBoolean(), scriptCoherence(), scriptDeleteEntities(), scriptDeleteField(), scriptDilate(), scriptEmbed(), scriptExtrude(), scriptFillet(), scriptMirror(), scriptProtude(), scriptRecombineSurface(), scriptRotate(), scriptSetBackgroundField(), scriptSetCompound(), scriptSetFactory(), scriptSetMeshSize(), scriptSetTransfiniteLine(), scriptSetTransfiniteSurface(), scriptSetTransfiniteVolume(), scriptSetVisibility(), scriptSetVisibilityAll(), scriptSplitCurve(), and scriptTranslate().
void scriptAddCone | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | dx, | ||
const std::string & | dy, | ||
const std::string & | dz, | ||
const std::string & | r1, | ||
const std::string & | r2, | ||
const std::string & | alpha | ||
) |
void scriptAddCurve | ( | const std::string & | type, |
std::vector< int > & | p, | ||
const std::string & | fileName | ||
) |
void scriptAddCurveLoop | ( | List_T * | list, |
const std::string & | fileName, | ||
int * | numloop | ||
) |
void scriptAddCylinder | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | dx, | ||
const std::string & | dy, | ||
const std::string & | dz, | ||
const std::string & | r, | ||
const std::string & | alpha | ||
) |
void scriptAddDisk | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | rx, | ||
const std::string & | ry | ||
) |
void scriptAddEllipse | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | rx, | ||
const std::string & | ry, | ||
const std::string & | alpha1, | ||
const std::string & | alpha2 | ||
) |
void scriptAddEllipseArc | ( | int | p1, |
int | p2, | ||
int | p3, | ||
int | p4, | ||
const std::string & | fileName | ||
) |
void scriptAddField | ( | int | field_id, |
const std::string & | type_name, | ||
const std::string & | fileName | ||
) |
void scriptAddFieldOption | ( | int | field_id, |
const std::string & | option_name, | ||
const std::string & | option_value, | ||
int | option_type, | ||
const std::string & | fileName | ||
) |
void scriptAddParameter | ( | const std::string & | par, |
const std::string & | value, | ||
const std::string & | label, | ||
const std::string & | path, | ||
const std::string & | fileName | ||
) |
void scriptAddPipe | ( | const std::string & | fileName, |
const std::vector< std::pair< int, int > > & | l, | ||
const std::vector< int > & | l2 | ||
) |
Definition at line 1085 of file scriptStringInterface.cpp.
void scriptAddPoint | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | lc | ||
) |
void scriptAddRectangle | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | dx, | ||
const std::string & | dy, | ||
const std::string & | roundedRadius | ||
) |
void scriptAddRemovePhysicalGroup | ( | const std::string & | fileName, |
const std::string & | what, | ||
const std::vector< int > & | l, | ||
const std::string & | name, | ||
int | forceTag, | ||
bool | append, | ||
const std::string & | mode | ||
) |
void scriptAddSphere | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | r, | ||
const std::string & | alpha1, | ||
const std::string & | alpha2, | ||
const std::string & | alpha3 | ||
) |
void scriptAddSurface | ( | const std::string & | type, |
List_T * | list, | ||
const std::string & | fileName | ||
) |
void scriptAddSurfaceLoop | ( | List_T * | list, |
const std::string & | fileName, | ||
int * | numloop | ||
) |
void scriptAddTorus | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | r1, | ||
const std::string & | r2, | ||
const std::string & | alpha | ||
) |
void scriptAddVolume | ( | List_T * | list, |
const std::string & | fileName | ||
) |
void scriptAddWedge | ( | const std::string & | fileName, |
const std::string & | x, | ||
const std::string & | y, | ||
const std::string & | z, | ||
const std::string & | dx, | ||
const std::string & | dy, | ||
const std::string & | dz, | ||
const std::string & | ltx | ||
) |
void scriptBoolean | ( | const std::string & | fileName, |
const std::string & | op, | ||
const std::vector< std::pair< int, int > > & | object, | ||
const std::vector< std::pair< int, int > > & | tool, | ||
int | deleteObject, | ||
int | deleteTool | ||
) |
Definition at line 1124 of file scriptStringInterface.cpp.
void scriptCoherence | ( | const std::string & | fileName | ) |
Definition at line 1163 of file scriptStringInterface.cpp.
void scriptDeleteEntities | ( | const std::string & | fileName, |
const std::vector< std::pair< int, int > > & | l, | ||
bool | recursive | ||
) |
Definition at line 1173 of file scriptStringInterface.cpp.
void scriptDeleteField | ( | int | field_id, |
const std::string & | fileName | ||
) |
void scriptDilate | ( | const std::string & | fileName, |
const std::vector< std::pair< int, int > > & | l, | ||
const std::string & | cx, | ||
const std::string & | cy, | ||
const std::string & | cz, | ||
const std::string & | sx, | ||
const std::string & | sy, | ||
const std::string & | sz, | ||
bool | duplicata | ||
) |
void scriptEmbed | ( | const std::string & | fileName, |
const std::string & | what, | ||
std::vector< int > & | l, | ||
int | dim, | ||
int | tag | ||
) |
void scriptExtrude | ( | const std::string & | fileName, |
const std::vector< std::pair< int, int > > & | l, | ||
const std::string & | tx, | ||
const std::string & | ty, | ||
const std::string & | tz, | ||
bool | extrudeMesh, | ||
const std::string & | layers, | ||
bool | recombineMesh | ||
) |
Definition at line 1034 of file scriptStringInterface.cpp.
void scriptFillet | ( | const std::string & | fileName, |
const std::vector< int > & | regions, | ||
const std::vector< int > & | edges, | ||
const std::string & | radius | ||
) |
Definition at line 1146 of file scriptStringInterface.cpp.
void scriptMirror | ( | const std::string & | fileName, |
const std::vector< std::pair< int, int > > & | l, | ||
const std::string & | sa, | ||
const std::string & | sb, | ||
const std::string & | sc, | ||
const std::string & | sd, | ||
bool | duplicata | ||
) |
Definition at line 1012 of file scriptStringInterface.cpp.
void scriptProtude | ( | const std::string & | fileName, |
const std::vector< std::pair< int, int > > & | l, | ||
const std::string & | ax, | ||
const std::string & | ay, | ||
const std::string & | az, | ||
const std::string & | px, | ||
const std::string & | py, | ||
const std::string & | pz, | ||
const std::string & | angle, | ||
bool | extrudeMesh, | ||
const std::string & | layers, | ||
bool | recombineMesh | ||
) |
Definition at line 1058 of file scriptStringInterface.cpp.
void scriptRecombineSurface | ( | const std::string & | fileName, |
const std::vector< int > & | l | ||
) |
void scriptRemoveLastCommand | ( | const std::string & | fileName | ) |
void scriptRotate | ( | const std::string & | fileName, |
const std::vector< std::pair< int, int > > & | l, | ||
const std::string & | ax, | ||
const std::string & | ay, | ||
const std::string & | az, | ||
const std::string & | px, | ||
const std::string & | py, | ||
const std::string & | pz, | ||
const std::string & | angle, | ||
bool | duplicata | ||
) |
void scriptSetBackgroundField | ( | int | field_id, |
const std::string & | fileName | ||
) |
void scriptSetCompound | ( | const std::string & | fileName, |
const std::string & | type, | ||
const std::vector< int > & | l | ||
) |
void scriptSetFactory | ( | const std::string & | factory, |
const std::string & | fileName | ||
) |
void scriptSetMeshSize | ( | const std::string & | fileName, |
const std::vector< int > & | l, | ||
const std::string & | lc | ||
) |
void scriptSetTransfiniteLine | ( | std::vector< int > & | l, |
const std::string & | fileName, | ||
const std::string & | type, | ||
const std::string & | typearg, | ||
const std::string & | pts | ||
) |
void scriptSetTransfiniteSurface | ( | std::vector< int > & | l, |
const std::string & | fileName, | ||
const std::string & | dir | ||
) |
void scriptSetTransfiniteVolume | ( | std::vector< int > & | l, |
const std::string & | fileName | ||
) |
void scriptSetVisibility | ( | int | mode, |
const std::vector< std::pair< int, int > > & | l, | ||
const std::string & | fileName | ||
) |
Definition at line 1205 of file scriptStringInterface.cpp.
void scriptSetVisibilityAll | ( | int | mode, |
const std::string & | fileName | ||
) |
Definition at line 1190 of file scriptStringInterface.cpp.
void scriptSplitCurve | ( | int | edge_id, |
List_T * | vertices, | ||
const std::string & | fileName | ||
) |
Definition at line 1108 of file scriptStringInterface.cpp.
void scriptTranslate | ( | const std::string & | fileName, |
const std::vector< std::pair< int, int > > & | l, | ||
const std::string & | tx, | ||
const std::string & | ty, | ||
const std::string & | tz, | ||
bool | duplicata | ||
) |
|
static |
Definition at line 189 of file scriptStringInterface.cpp.
Referenced by scriptAddPipe(), scriptAddRemovePhysicalGroup(), scriptEmbed(), scriptFillet(), scriptRecombineSurface(), scriptSetCompound(), and scriptSetMeshSize().
|
static |
Definition at line 246 of file scriptStringInterface.cpp.
Referenced by checkOCC(), scriptAddPoint(), scriptRecombineSurface(), and scriptSetFactory().