Go to the documentation of this file.
12 #ifndef MESH_PROCESS_IMPORT_HPP
13 #define MESH_PROCESS_IMPORT_HPP
24 setName(
"Mesh/Import/Load 3D From 2View");
25 setDesc(
"Load a mesh from the 3D from 2View software\n\n"
26 "The input height map is generated by the 3D stereo reconstruction software\n"
27 "of Routier-Kierzkowska A-L and Kwiatkowska D, Functional Plant Biology, 2008\n"
28 "https://doi.org/10.1071/FP08047.\n\n"
29 "The greyscale image used for the color is typically the left input image for the reconstruction");
30 setIcon(QIcon(
":/images/open.png"));
32 addParm(
"Height File",
"File name that holds height map",
"Height.csv");
33 addParm(
"Color File",
"File name that holds color",
"Color.tif");
34 addParm(
"Scale",
"Scaling for the image in xyz",
"1.0 1.0 1.0");
42 bool run(
Mesh *
mesh,
const QString &heightFile,
const QString &colorFile,
Point3d scale);
bool addParm(const QString &parmName, const QString &desc, const QString &def, const QStringList &choices=QStringList())
Add a parameter to the list.
Distributed matrix library.
bool setIcon(const QIcon &icon)
Set the icon.
bool setDesc(const QString &description)
Set the description.
bool run()
Runs the process.
Point3d stringToPoint3d(const QString &s)
Convert a string to Point3d.
Load3DFrom2View(const Process &process)
Mesh * mesh(int i)
Returns the ith mesh.
bool setName(const QString &name)
Set the name.
QString parm(const QString &name) const
Get a single parameter value by name.
Mesh * currentMesh()
Returns the current mesh (i.e.