Go to the documentation of this file.
23 #include <MGXViewer/qglviewer.h>
34 static const QString UM(QString::fromWCharArray(L
"\xb5m"));
35 static const QString UM2(QString::fromWCharArray(L
"\xb5m\xb2"));
36 static const QString UM3(QString::fromWCharArray(L
"\xb5m\xb3"));
37 static const QString UM_1(QString::fromWCharArray(L
"\xb5m\x207B\xb9"));
38 static const QString UM_2(QString::fromWCharArray(L
"\xb5m\x207B\xb2"));
41 template class mgx_EXPORT Vertex<VertexData>;
42 template class mgx_EXPORT Edge<EdgeData>;
43 template class mgx_EXPORT VVGraph<VertexData, EdgeData>;
80 return (
Point3GLub(u / (256 * 256), u / 256 % 256, u % 256));
85 return ((
int(p.
x()) * 256 * 256 +
int(p.
y()) * 256 +
int(p.
z())) - 1);
91 s.replace(
"\\",
"\\\\");
92 s.replace(
" ",
"\\s");
93 s.replace(
"\n",
"\\n");
94 s.replace(
"\t",
"\\t");
95 s.replace(
"\"",
"\\\"");
96 s.replace(
"\'",
"\\\'");
103 s.replace(
"\\\'",
"\'");
104 s.replace(
"\\\"",
"\"");
105 s.replace(
"\\s",
" ");
106 s.replace(
"\\n",
"\n");
107 s.replace(
"\\t",
"\t");
108 s.replace(
"\\\\",
"\\");
115 s.replace(
"\\",
"\\\\");
116 s.replace(
"\n",
"\\n");
117 s.replace(
"\t",
"\\t");
118 s.replace(
"\"",
"\\\"");
119 s.replace(
"\'",
"\\\'");
126 s.replace(
"\\\'",
"\'");
127 s.replace(
"\\\"",
"\"");
128 s.replace(
"\\n",
"\n");
129 s.replace(
"\\t",
"\t");
130 s.replace(
"\\\\",
"\\");
138 QStringList sl = s.split(
" ");
139 size_t sz = sl.
size();
143 for(
size_t i = 0; i < sz; ++i)
144 result[i] = sl[i].toDouble();
149 QStringList sl = s.split(
" ");
150 size_t sz = sl.
size();
154 for(
size_t i = 0; i < sz; ++i)
155 result[i] = sl[i].toFloat();
160 QStringList sl = s.split(
" ");
161 size_t sz = sl.
size();
165 for(
size_t i = 0; i < sz; ++i)
166 result[i] = sl[i].toInt();
171 QStringList sl = s.split(
" ");
172 size_t sz = sl.
size();
176 for(
size_t i = 0; i < sz; ++i)
177 result[i] = sl[i].toUInt();
182 QStringList sl = s.split(
" ");
183 size_t sz = sl.
size();
187 for(
size_t i = 0; i < sz; ++i)
188 result[i] = sl[i].toDouble();
193 QStringList sl = s.split(
" ");
194 size_t sz = sl.
size();
198 for(
size_t i = 0; i < sz; ++i)
199 result[i] = sl[i].toUInt();
205 if(QThread::currentThread() == QCoreApplication::instance()->thread())
Point3GLub vMapColor(uint u)
Map unique colors to indices.
mgx_EXPORT QList< QDir > userProcessDirs()
Returns user processes directory.
vvGraph::vertex_t vertex
Type of a vertex.
mgx_EXPORT QDir resourceDir()
Returns resource directory.
mgx_EXPORT QDir libDir()
Returns the libraries directory.
CU_HOST_DEVICE void z(const T &v)
Short access to the third element.
QString unshield_python(QString s)
Retrieve a string that is retrieved from the python representation.
Point2u stringToPoint2u(const QString &s)
Distributed matrix library.
Vector< 4, GLuint > Point4GLui
QString shield(QString s)
Create representation of a string that can be written in a single line, without spaces.
Vector< 3, GLubyte > Point3GLub
QString unshield(QString s)
Retrieve a string that has been shielded with shield.
mgx_EXPORT QList< QDir > processDirs()
Returns processes directory.
QString shield_python(QString s)
Shield a string to send it to the python interpreter.
Vector< 3, float > Point3f
VVGraph< VertexData, EdgeData > vvGraph
Simpler names for the various containers and iterators related to vertices and VV.
CU_HOST_DEVICE void y(const T &v)
Short access to the second element.
Point2i stringToPoint2i(const QString &s)
Vector< 4, GLubyte > Point4GLub
static CU_HOST_DEVICE size_t size()
Returns the size of the vector (i.e.
mgx_EXPORT QDir docDir()
Returns the documentation directory.
Point3u stringToPoint3u(const QString &s)
Point3d stringToPoint3d(const QString &s)
Convert a string to Point3d.
vvGraph::edge_t edge
Type of an edge.
Point2f stringToPoint2f(const QString &s)
CU_HOST_DEVICE void x(const T &v)
Short access to the first element.
Point2d stringToPoint2d(const QString &s)
mgx_EXPORT QDir includeDir()
Returns the includes directory.
Vector< 3, GLuint > Point3GLui