Go to the documentation of this file.
12 #ifndef __BEZIERPROCESS_HPP__
13 #define __BEZIERPROCESS_HPP__
30 setName(
"Misc/Bezier/Load Bezier");
31 setDesc(
"Load Bezier from a parameter file.");
32 setIcon(QIcon(
":/images/open.png"));
34 addParm(
"Input File",
"Path to input file. If empty, a browser will open.",
"");
37 bool initialize(QWidget* parent);
41 return run(parm(
"Input File"));
44 bool run(
const QString& filename);
54 setName(
"Misc/Bezier/Save Bezier");
55 setDesc(
"Save Bezier to a parameter file.");
56 setIcon(QIcon(
":/images/save.png"));
58 addParm(
"Output File",
"Path to output file. If empty, a browser will open.",
"");
61 bool initialize(QWidget* parent);
65 return run(parm(
"Output File"));
68 bool run(
const QString& filename);
80 setName(
"Misc/Bezier/New Bezier");
81 setDesc(
"New Bezier from parameters.");
82 setIcon(QIcon(
":/images/Bezier.png"));
84 addParm(
"Controls X",
"Nb of control points in X",
"5");
85 addParm(
"Controls Y",
"Nb of control points in Y",
"5");
86 addParm(
"Size X",
"Physical size along X (um)",
"200");
87 addParm(
"Size Y",
"Physical size along Y (um)",
"200");
88 addParm(
"Lines in X",
"Nb of lines to draw in X",
"15");
89 addParm(
"Lines in Y",
"Nb of lines to draw in Y",
"15");
95 return run(parm(
"Controls X").toInt(), parm(
"Controls Y").toInt(), parm(
"Size X").toFloat(),
96 parm(
"Size Y").toFloat(), parm(
"Lines in X").toInt(), parm(
"Lines in Y").toInt());
99 bool run(
uint bezPointsX,
uint bezPointsY,
float sizeX,
float sizeY,
uint linesX,
uint linesY);
108 setName(
"Misc/Bezier/Measure/Simple Measure");
109 setDesc(
"Measures the area of the Bezier grid and the length of the Bezier line at point v=0");
110 setIcon(QIcon(
":/images/MakeHeatMap.png"));
112 addParm(
"Discretization Points",
"Number of discretization points",
"200");
117 Mesh* m = currentMesh();
118 return run(m, parm(
"Discretization Points").toInt());
120 bool run(
Mesh* m,
int discretization);
129 setName(
"Misc/Bezier/Measure/Export Measure");
130 setDesc(
"Measures the area of the Bezier grid and the length of the Bezier line at point v=0");
131 setIcon(QIcon(
":/images/MakeHeatMap.png"));
133 addParm(
"Discretization Points",
"Number of discretization points",
"200");
134 addParm(
"Filename",
"Filename",
"");
136 bool initialize(QWidget* parent);
140 Mesh* m = currentMesh();
141 return run(m, parm(
"Discretization Points").toInt(), parm(
"Filename"));
143 bool run(
Mesh* m,
int discretization, QString filename);
152 setName(
"Misc/Bezier/Collapse Bezier Points");
153 setDesc(
"Collapse the 2D Bezier gridpoints into a line");
154 setIcon(QIcon(
":/images/Bezier.png"));
167 setName(
"Misc/Bezier/New Bezier Ring");
168 setDesc(
"New Bezier ring from parameters.");
169 setIcon(QIcon(
":/images/Bezier.png"));
171 addParm(
"Controls X",
"Nb of control points in X",
"12");
172 addParm(
"Radius X",
"Physical size along X (um)",
"100");
173 addParm(
"Radius Y",
"Physical size along Y (um)",
"100");
179 return run(parm(
"Controls X").toInt(), parm(
"Radius X").toFloat(),
180 parm(
"Radius Y").toFloat());
183 bool run(
uint bezPointsX,
float sizeX,
float sizeY);
193 setName(
"Misc/Bezier/New Bezier Ring From Selected Cells");
194 setDesc(
"New Bezier ring from parameters.");
195 setIcon(QIcon(
":/images/Bezier.png"));
197 addParm(
"Controls X",
"Nb of control points in X",
"12");
198 addParm(
"Radius X",
"Physical size along X (um)",
"100");
199 addParm(
"Radius Y",
"Physical size along Y (um)",
"100");
200 addParm(
"Mode",
"Mode",
"3D", QStringList() <<
"2D" <<
"3D");
206 Mesh* m = currentMesh();
207 return run(m, parm(
"Controls X").toInt(), parm(
"Radius X").toFloat(),
208 parm(
"Radius Y").toFloat(), parm(
"Mode"));
211 bool run(
Mesh* m,
uint bezPointsX,
float sizeX,
float sizeY, QString mode);
222 setName(
"Misc/Bezier/Flip Bezier Line");
223 setDesc(
"New Bezier ring from parameters.");
224 setIcon(QIcon(
":/images/Bezier.png"));
231 Mesh* m = currentMesh();
bool run()
Runs the process.
NewBezierRing(const Process &process)
bool run()
Runs the process.
bool initialize(QWidget *parent)
Initialize the process.
bool run()
Runs the process.
MeasureBezierExport(const Process &process)
SaveBezier(const Process &process)
NewBezierRingFromSelected(const Process &process)
bool run()
Runs the process.
Distributed matrix library.
bool initialize(QWidget *parent)
Initialize the process.
bool run()
Runs the process.
bool run()
Runs the process.
LoadBezier(const Process &process)
NewBezier(const Process &process)
bool run()
Runs the process.
MeasureBezier(const Process &process)
bool initialize(QWidget *parent)
Initialize the process.
CollapseBezier(const Process &process)
FlipBezierLine(const Process &process)
bool initialize(QWidget *parent)
Initialize the process.
bool run()
Runs the process.