gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
scriptStringInterface.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef SCRIPT_STRING_INTERFACE_H
7 #define SCRIPT_STRING_INTERFACE_H
8 
9 #include <string>
10 #include <vector>
11 #include "ListUtils.h"
12 
13 void scriptRemoveLastCommand(const std::string &fileName);
14 
15 void scriptSetFactory(const std::string &factory, const std::string &fileName);
16 void scriptSetMeshSize(const std::string &fileName, const std::vector<int> &l,
17  const std::string &lc);
18 void scriptRecombineSurface(const std::string &fileName,
19  const std::vector<int> &l);
20 void scriptSetTransfiniteLine(std::vector<int> &l, const std::string &fileName,
21  const std::string &type,
22  const std::string &typearg,
23  const std::string &pts);
24 void scriptSetTransfiniteSurface(std::vector<int> &l,
25  const std::string &fileName,
26  const std::string &dir);
27 void scriptSetTransfiniteVolume(std::vector<int> &l,
28  const std::string &fileName);
29 void scriptEmbed(const std::string &fileName, const std::string &what,
30  std::vector<int> &l, int dim, int tag);
31 void scriptAddParameter(const std::string &par, const std::string &value,
32  const std::string &label, const std::string &path,
33  const std::string &fileName);
34 void scriptAddPoint(const std::string &fileName, const std::string &x,
35  const std::string &y, const std::string &z,
36  const std::string &lc);
37 void scriptAddCurve(const std::string &type, std::vector<int> &p,
38  const std::string &fileName);
39 void scriptAddCircleArc(int p1, int p2, int p3, const std::string &fileName);
40 void scriptAddEllipseArc(int p1, int p2, int p3, int p4,
41  const std::string &fileName);
42 void scriptAddFieldOption(int field_id, const std::string &option_name,
43  const std::string &option_value, int option_type,
44  const std::string &fileName);
45 void scriptAddField(int field_id, const std::string &type_name,
46  const std::string &fileName);
47 void scriptDeleteField(int field_id, const std::string &fileName);
48 void scriptSetBackgroundField(int field_id, const std::string &fileName);
49 void scriptAddCurveLoop(List_T *list, const std::string &fileName,
50  int *numloop);
51 void scriptAddSurface(const std::string &type, List_T *list,
52  const std::string &fileName);
53 void scriptAddSurfaceLoop(List_T *list, const std::string &fileName,
54  int *numvol);
55 void scriptAddVolume(List_T *list, const std::string &fileName);
56 void scriptAddRemovePhysicalGroup(const std::string &fileName,
57  const std::string &what,
58  const std::vector<int> &l,
59  const std::string &name, int forceTag,
60  bool append, const std::string &mode);
61 void scriptSetCompound(const std::string &fileName, const std::string &type,
62  const std::vector<int> &l);
63 void scriptAddCircle(const std::string &fileName, const std::string &x,
64  const std::string &y, const std::string &z,
65  const std::string &r, const std::string &alpha1,
66  const std::string &alpha2);
67 void scriptAddEllipse(const std::string &fileName, const std::string &x,
68  const std::string &y, const std::string &z,
69  const std::string &rx, const std::string &ry,
70  const std::string &alpha1, const std::string &alpha2);
71 void scriptAddDisk(const std::string &fileName, const std::string &x,
72  const std::string &y, const std::string &z,
73  const std::string &rx, const std::string &ry);
74 void scriptAddRectangle(const std::string &fileName, const std::string &x,
75  const std::string &y, const std::string &z,
76  const std::string &dx, const std::string &dy,
77  const std::string &roundedRadius);
78 void scriptAddSphere(const std::string &fileName, const std::string &x,
79  const std::string &y, const std::string &z,
80  const std::string &r, const std::string &alpha1,
81  const std::string &alpha2, const std::string &alpha3);
82 void scriptAddCylinder(const std::string &fileName, const std::string &x,
83  const std::string &y, const std::string &z,
84  const std::string &dx, const std::string &dy,
85  const std::string &dz, const std::string &r,
86  const std::string &alpha);
87 void scriptAddBox(const std::string &fileName, const std::string &x,
88  const std::string &y, const std::string &z,
89  const std::string &dx, const std::string &dy,
90  const std::string &dz);
91 void scriptAddTorus(const std::string &fileName, const std::string &x,
92  const std::string &y, const std::string &z,
93  const std::string &r1, const std::string &r2,
94  const std::string &alpha);
95 void scriptAddCone(const std::string &fileName, const std::string &x,
96  const std::string &y, const std::string &z,
97  const std::string &dx, const std::string &dy,
98  const std::string &dz, const std::string &r1,
99  const std::string &r2, const std::string &alpha);
100 void scriptAddWedge(const std::string &fileName, const std::string &x,
101  const std::string &y, const std::string &z,
102  const std::string &dx, const std::string &dy,
103  const std::string &dz, const std::string &ltx);
104 void scriptTranslate(const std::string &fileName,
105  const std::vector<std::pair<int, int> > &l,
106  const std::string &tx, const std::string &ty,
107  const std::string &tz, bool duplicata);
108 void scriptRotate(const std::string &fileName,
109  const std::vector<std::pair<int, int> > &l,
110  const std::string &ax, const std::string &ay,
111  const std::string &az, const std::string &px,
112  const std::string &py, const std::string &pz,
113  const std::string &angle, bool duplicata);
114 void scriptDilate(const std::string &fileName,
115  const std::vector<std::pair<int, int> > &l,
116  const std::string &cx, const std::string &cy,
117  const std::string &cz, const std::string &sx,
118  const std::string &sy, const std::string &sz, bool duplicata);
119 void scriptMirror(const std::string &fileName,
120  const std::vector<std::pair<int, int> > &l,
121  const std::string &sa, const std::string &sb,
122  const std::string &sc, const std::string &sd, bool duplicata);
123 void scriptExtrude(const std::string &fileName,
124  const std::vector<std::pair<int, int> > &l,
125  const std::string &tx, const std::string &ty,
126  const std::string &tz, bool extrudeMesh,
127  const std::string &layers, bool recombineMesh);
128 void scriptProtude(const std::string &fileName,
129  const std::vector<std::pair<int, int> > &l,
130  const std::string &ax, const std::string &ay,
131  const std::string &az, const std::string &px,
132  const std::string &py, const std::string &pz,
133  const std::string &angle, bool extrudeMesh,
134  const std::string &layers, bool recombineMesh);
135 void scriptAddPipe(const std::string &fileName,
136  const std::vector<std::pair<int, int> > &l,
137  const std::vector<int> &l2);
138 void scriptSplitCurve(int edge_id, List_T *vertices,
139  const std::string &fileName);
140 void scriptBoolean(const std::string &fileName, const std::string &op,
141  const std::vector<std::pair<int, int> > &object,
142  const std::vector<std::pair<int, int> > &tool,
143  int deleteObject, int deleteTool);
144 void scriptFillet(const std::string &fileName, const std::vector<int> &regions,
145  const std::vector<int> &edges, const std::string &radius);
146 void scriptCoherence(const std::string &fileName);
147 void scriptDeleteEntities(const std::string &fileName,
148  const std::vector<std::pair<int, int> > &l,
149  bool recursive);
150 void scriptSetVisibilityAll(int mode, const std::string &fileName);
151 void scriptSetVisibility(int mode, const std::vector<std::pair<int, int> > &l,
152  const std::string &fileName);
153 
154 #endif
scriptRotate
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)
Definition: scriptStringInterface.cpp:965
scriptAddEllipseArc
void scriptAddEllipseArc(int p1, int p2, int p3, int p4, const std::string &fileName)
Definition: scriptStringInterface.cpp:586
scriptSetMeshSize
void scriptSetMeshSize(const std::string &fileName, const std::vector< int > &l, const std::string &lc)
Definition: scriptStringInterface.cpp:286
scriptAddCylinder
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)
Definition: scriptStringInterface.cpp:836
scriptAddCircleArc
void scriptAddCircleArc(int p1, int p2, int p3, const std::string &fileName)
Definition: scriptStringInterface.cpp:571
scriptAddRectangle
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)
Definition: scriptStringInterface.cpp:790
angle
double angle(const SVector3 &a, const SVector3 &b)
Definition: SVector3.h:157
scriptEmbed
void scriptEmbed(const std::string &fileName, const std::string &what, std::vector< int > &l, int dim, int tag)
Definition: scriptStringInterface.cpp:396
scriptMirror
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: scriptStringInterface.cpp:1012
List_T
Definition: ListUtils.h:9
ListUtils.h
scriptSetTransfiniteVolume
void scriptSetTransfiniteVolume(std::vector< int > &l, const std::string &fileName)
Definition: scriptStringInterface.cpp:372
scriptTranslate
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)
Definition: scriptStringInterface.cpp:944
scriptDilate
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)
Definition: scriptStringInterface.cpp:989
scriptAddSurface
void scriptAddSurface(const std::string &type, List_T *list, const std::string &fileName)
Definition: scriptStringInterface.cpp:624
scriptAddFieldOption
void scriptAddFieldOption(int field_id, const std::string &option_name, const std::string &option_value, int option_type, const std::string &fileName)
Definition: scriptStringInterface.cpp:465
edges
static int edges[6][2]
Definition: meshGRegionLocalMeshMod.cpp:23
scriptBoolean
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: scriptStringInterface.cpp:1124
scriptSetVisibility
void scriptSetVisibility(int mode, const std::vector< std::pair< int, int > > &l, const std::string &fileName)
Definition: scriptStringInterface.cpp:1205
scriptCoherence
void scriptCoherence(const std::string &fileName)
Definition: scriptStringInterface.cpp:1163
scriptSetTransfiniteLine
void scriptSetTransfiniteLine(std::vector< int > &l, const std::string &fileName, const std::string &type, const std::string &typearg, const std::string &pts)
Definition: scriptStringInterface.cpp:322
scriptAddPoint
void scriptAddPoint(const std::string &fileName, const std::string &x, const std::string &y, const std::string &z, const std::string &lc)
Definition: scriptStringInterface.cpp:442
scriptFillet
void scriptFillet(const std::string &fileName, const std::vector< int > &regions, const std::vector< int > &edges, const std::string &radius)
Definition: scriptStringInterface.cpp:1146
extrudeMesh
static void extrudeMesh(GVertex *from, GEdge *to)
Definition: meshGEdgeExtruded.cpp:26
scriptAddWedge
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)
Definition: scriptStringInterface.cpp:924
scriptSetFactory
void scriptSetFactory(const std::string &factory, const std::string &fileName)
Definition: scriptStringInterface.cpp:259
scriptAddPipe
void scriptAddPipe(const std::string &fileName, const std::vector< std::pair< int, int > > &l, const std::vector< int > &l2)
Definition: scriptStringInterface.cpp:1085
scriptExtrude
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: scriptStringInterface.cpp:1034
scriptAddBox
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)
Definition: scriptStringInterface.cpp:859
scriptAddSurfaceLoop
void scriptAddSurfaceLoop(List_T *list, const std::string &fileName, int *numvol)
Definition: scriptStringInterface.cpp:640
scriptAddCurve
void scriptAddCurve(const std::string &type, std::vector< int > &p, const std::string &fileName)
Definition: scriptStringInterface.cpp:550
scriptSetTransfiniteSurface
void scriptSetTransfiniteSurface(std::vector< int > &l, const std::string &fileName, const std::string &dir)
Definition: scriptStringInterface.cpp:346
scriptAddCircle
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)
Definition: scriptStringInterface.cpp:726
scriptSplitCurve
void scriptSplitCurve(int edge_id, List_T *vertices, const std::string &fileName)
Definition: scriptStringInterface.cpp:1108
scriptAddSphere
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)
Definition: scriptStringInterface.cpp:812
scriptAddCurveLoop
void scriptAddCurveLoop(List_T *list, const std::string &fileName, int *numloop)
Definition: scriptStringInterface.cpp:603
z
const double z
Definition: GaussQuadratureQuad.cpp:56
scriptAddTorus
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)
Definition: scriptStringInterface.cpp:879
scriptAddCone
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)
Definition: scriptStringInterface.cpp:901
scriptAddVolume
void scriptAddVolume(List_T *list, const std::string &fileName)
Definition: scriptStringInterface.cpp:662
scriptProtude
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: scriptStringInterface.cpp:1058
scriptDeleteEntities
void scriptDeleteEntities(const std::string &fileName, const std::vector< std::pair< int, int > > &l, bool recursive)
Definition: scriptStringInterface.cpp:1173
scriptAddEllipse
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)
Definition: scriptStringInterface.cpp:748
scriptAddRemovePhysicalGroup
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)
Definition: scriptStringInterface.cpp:677
scriptDeleteField
void scriptDeleteField(int field_id, const std::string &fileName)
Definition: scriptStringInterface.cpp:524
scriptAddDisk
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)
Definition: scriptStringInterface.cpp:771
scriptRecombineSurface
void scriptRecombineSurface(const std::string &fileName, const std::vector< int > &l)
Definition: scriptStringInterface.cpp:304
scriptAddField
void scriptAddField(int field_id, const std::string &type_name, const std::string &fileName)
Definition: scriptStringInterface.cpp:507
scriptRemoveLastCommand
void scriptRemoveLastCommand(const std::string &fileName)
Definition: scriptStringInterface.cpp:142
scriptSetVisibilityAll
void scriptSetVisibilityAll(int mode, const std::string &fileName)
Definition: scriptStringInterface.cpp:1190
scriptSetBackgroundField
void scriptSetBackgroundField(int field_id, const std::string &fileName)
Definition: scriptStringInterface.cpp:537
scriptAddParameter
void scriptAddParameter(const std::string &par, const std::string &value, const std::string &label, const std::string &path, const std::string &fileName)
Definition: scriptStringInterface.cpp:416
scriptSetCompound
void scriptSetCompound(const std::string &fileName, const std::string &type, const std::vector< int > &l)
Definition: scriptStringInterface.cpp:711