23 #include <MGXViewer/qglviewer.h> 41 template class mgx_EXPORT graph::Vertex<VertexData>;
42 template class mgx_EXPORT graph::Edge<EdgeData>;
43 template class mgx_EXPORT graph::VVGraph<VertexData, EdgeData>;
47 typedef graph::VVGraph<VertexData, EdgeData>
vvgraph;
50 typedef vvgraph::vertex_t
vertex;
56 typedef util::Vector<2, int> Point2i;
57 typedef util::Vector<3, GLuint> Point3GLui;
58 typedef util::Vector<4, GLuint> Point4GLui;
59 typedef util::Vector<3, GLubyte> Point3GLub;
60 typedef util::Vector<4, GLubyte> Point4GLub;
61 typedef util::Color<float> Colorf;
62 typedef util::Vector<3, float> Point3f;
82 return (Point3GLub(u / (256 * 256), u / 256 % 256, u % 256));
87 return ((
int(p.
x()) * 256 * 256 +
int(p.
y()) * 256 +
int(p.
z())) - 1);
fromWCharArray(const wchar_t *string, int size=-1)
This file contains the definition of a vertex.
CU_HOST_DEVICE void x(const T &v)
Short access to the first element.
Definition: Vector.hpp:661
QString shield_python(QString s)
Shield a string to send it to the python interpreter.
Definition: Misc.hpp:115
replace(int position, int n, const QString &after)
Point3GLub vMapColor(uint u)
Map unique colors to indices.
Definition: Misc.hpp:79
mgx_EXPORT QDir resourcesDir()
Returns resource directory.
graph::VVGraph< VertexData, EdgeData > vvgraph
Type of the VV graph holding the actual mesh.
Definition: Mesh.hpp:46
This file contains the definition of an edge data.
vvgraph::vertex_t vertex
Type of a vertex.
Definition: Mesh.hpp:49
CU_HOST_DEVICE void y(const T &v)
Short access to the second element.
Definition: Vector.hpp:670
mgx_EXPORT QDir docsDir()
Returns the documentation directory.
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
QString shield(QString s)
Create representation of a string that can be written in a single line, without spaces.
Definition: Misc.hpp:91
Edge< EdgeData > edge_t
Weak pointer on an edge.
Definition: VVGraph.hpp:91
mgx_EXPORT QDir libsDir()
Returns the libraries directory.
CU_HOST_DEVICE void z(const T &v)
Short access to the third element.
Definition: Vector.hpp:679
mgx_EXPORT QList< QDir > processesDirs()
Returns processes directory.
mgx_EXPORT QDir includesDir()
Returns the includes directory.
mgx_EXPORT QDir userProcessesDir()
Returns user processes directory.
QString unshield_python(QString s)
Retrieve a string that is retrieved from the python representation.
Definition: Misc.hpp:126
Contain the definition of the VVGraph template class.
QString unshield(QString s)
Retrieve a string that has been shielded with shield.
Definition: Misc.hpp:103
Defines the Color class template.
vvgraph::edge_t edge
Type of an edge.
Definition: Mesh.hpp:52
Defines the Vector class template This file is shared by cuda, do not include headers that nvcc can't...