MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions | Variables
mgx Namespace Reference

This namespace contains all the API of MorphoGraphX. More...

Classes

class  AttribBase
 Base class for attributes system. More...
 
class  Clip
 
class  ClipRegion
 Class to handle rotatable pair of clipping planes. More...
 
class  Colorbar
 
class  Colors
 
class  CutSurf
 
class  CuttingSurface
 
class  EdgeData
 This class defines the fields available from an edge. More...
 
struct  Image3D
 
struct  UpdateImgDataEvent
 
class  ImgData
 
class  Mesh
 This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualization ones. More...
 
struct  ProcessUpdateViewEvent
 
struct  ProcessSystemCommand
 
class  ProcessThread
 
class  GlobalProgress
 
class  Progress
 
class  ScaleBar
 
class  GLSLValue
 
class  Shader
 
class  Stack
 The Stack class represent the dimensions of the 3D data, and the frames transformations. More...
 
class  Store
 The Store class holds the actual 3D data and properties specific to it. More...
 
class  TransferFunction
 Class defining a transfer function as linear interpolation between set values. More...
 
class  VertexData
 This class defines the content of a vertex. More...
 

Typedefs

typedef util::Color< float > Color3f
 
typedef util::Color< float > Colorf
 
typedef util::Vector< 2, int > Point2i
 
typedef util::Vector< 3, float > Point3f
 
typedef unsigned char ubyte
 
typedef unsigned int uint
 
typedef unsigned short ushort
 
typedef unsigned long ulong
 
typedef util::Vector< 2, float > Point2f
 
typedef util::Vector< 4, float > Point4f
 
typedef util::Vector< 5, float > Point5f
 
typedef util::Vector< 6, float > Point6f
 
typedef util::Vector< 12, float > Point12f
 
typedef util::Vector< 2, double > Point2d
 
typedef util::Vector< 3, double > Point3d
 
typedef util::Vector< 4, double > Point4d
 
typedef util::Vector< 5, double > Point5d
 
typedef util::Vector< 6, double > Point6d
 
typedef util::Vector< 16, double > Point16d
 
typedef util::Vector< 3, int > Point3i
 
typedef util::Vector< 4, int > Point4i
 
typedef util::Vector< 5, int > Point5i
 
typedef util::Vector< 6, int > Point6i
 
typedef util::Vector< 2, uint > Point2u
 
typedef util::Vector< 3, uint > Point3u
 
typedef util::Vector< 4, uint > Point4u
 
typedef util::Vector< 5, uint > Point5u
 
typedef util::Vector< 6, uint > Point6u
 
typedef util::Vector< 2, size_t > Point2s
 
typedef util::Vector< 3, size_t > Point3s
 
typedef util::Vector< 4, size_t > Point4s
 
typedef util::Vector< 5, size_t > Point5s
 
typedef util::Vector< 6, size_t > Point6s
 
typedef util::Vector< 3, ushort > Point3us
 
typedef util::Matrix< 2, 2, float > Matrix2f
 
typedef util::Matrix< 3, 3, float > Matrix3f
 
typedef util::Matrix< 4, 4, float > Matrix4f
 
typedef util::Matrix
< 2, 2, double > 
Matrix2d
 
typedef util::Matrix
< 3, 3, double > 
Matrix3d
 
typedef util::Matrix
< 4, 4, double > 
Matrix4d
 
typedef util::BoundingBox
< 3, uint > 
BoundingBox3u
 
typedef util::BoundingBox< 3, int > BoundingBox3i
 
typedef util::BoundingBox
< 3, float > 
BoundingBox3f
 
typedef util::Vector< 4, vertexPoint4v
 
typedef util::Vector< 3, GLubyte > Point3GLub
 
typedef graph::VVGraph
< VertexData, EdgeData
vvgraph
 Type of the VV graph holding the actual mesh.
 
typedef vvgraph::vertex_t vertex
 Type of a vertex.
 
typedef vvgraph::edge_t edge
 Type of an edge.
 
typedef util::Vector< 3, bool > Point3b
 
typedef std::map< int, Point3fIntPoint3fMap
 Map of an integer to a 3D point.
 
typedef std::unordered_map
< int, Point3f
IntPoint3fUMap
 
typedef std::pair< int, Point3fIntPoint3fPair
 Element in IntPoint3fMap.
 
typedef std::map< int, float > IntFloatMap
 Map of an integer to a float.
 
typedef std::unordered_map
< int, float > 
IntFloatUMap
 
typedef std::pair< int, float > IntFloatPair
 Element in IntFloatMap.
 
typedef std::map< int, int > IntIntMap
 Map of an integer to another one.
 
typedef std::unordered_map
< int, int > 
IntIntUMap
 
typedef std::pair< int, int > IntIntPair
 Element in IntIntMap.
 
typedef std::map< int, HVec3U > IntHVec3uMap
 Map of an integer to a host vector of 3 unsigned integers.
 
typedef std::unordered_map
< int, HVec3U > 
IntHVec3uUMap
 
typedef std::pair< int, HVec3U > IntHVec3uPair
 Element in IntHVec3uMap.
 
typedef std::set< ulong > VIdSet
 Set of vertex ids.
 
typedef std::unordered_set< ulong > VIdUSet
 
typedef std::set< vertexVtxSet
 Set of vertices.
 
typedef std::unordered_set
< vertex
VtxUSet
 
typedef std::vector< vertexVtxVec
 Vector of vertices.
 
typedef std::vector< vvgraphVVGraphVec
 Vector of vvgraphs.
 
typedef std::pair< int, vvgraphIntVVGraphPair
 Integer, VVGraph pair.
 
typedef std::map< int, vvgraphIntVVGraphMap
 Map of an integer to a vvgraph.
 
typedef std::unordered_map
< int, vvgraph
IntVVGraphUMap
 
typedef std::map< int, VIdSetIntVIdSetMap
 Map of an integer to a set of vertex ids.
 
typedef std::unordered_map
< int, VIdSet
IntVIdSetUMap
 
typedef std::pair< int, VIdSetIntVIdSetPair
 Element in IntVIdSetMap.
 
typedef std::set< int > IntSet
 Set of integers.
 
typedef std::unordered_set< int > IntUSet
 
typedef std::vector< int > IntVec
 Vector of integers.
 
typedef std::vector< float > FloatVec
 Vector of floats.
 
typedef std::pair< int, IntSetIntIntSetPair
 Element in IntIntSetMap.
 
typedef std::map< int, IntSetIntIntSetMap
 Map of an integer to a set of integers.
 
typedef std::unordered_map
< int, IntSet
IntIntSetUMap
 
typedef std::map< vertex, int > VIntMap
 Map of a vertex to an integer.
 
typedef std::unordered_map
< vertex, int > 
VIntUMap
 
typedef std::pair< IntIntPair,
VIdSet
IntIntVIdSetPair
 Element in IntIntVIdSetMap.
 
typedef std::pair< IntIntPair,
float > 
IntIntFloatPair
 Element in IntIntFloatMap.
 
typedef std::map< IntIntPair,
float > 
IntIntFloatMap
 Map of a pair of integers to a float.
 
typedef std::unordered_map
< IntIntPair, float > 
IntIntFloatUMap
 
typedef std::map< IntIntPair,
VIdSet
IntIntVIdSetMap
 Map of a pair of integers to a set of vertex ids.
 
typedef std::unordered_map
< IntIntPair, VIdSet
IntIntVIdSetUMap
 
typedef std::map< int, Matrix3fIntMatrix3x3fMap
 Map of an integer to a 3x3 matrix.
 
typedef std::unordered_map
< int, Matrix3f
IntMatrix3x3fUMap
 
typedef std::pair< int, Matrix3fIntMatrix3x3fPair
 Element in IntMatrix3x3fMap.
 
typedef std::map< int,
util::SymmetricTensor
IntSymTensorMap
 Map an integer to a symmetric tensor.
 
typedef std::unordered_map
< int, util::SymmetricTensor
IntSymTensorUMap
 
typedef std::pair< int,
util::SymmetricTensor
IntSymTensorPair
 Element in IntSymTensorMap.
 
typedef std::map< vertex, vertexVtxVtxMap
 Map of vertex to vertex.
 
typedef std::unordered_map
< vertex, vertex
VtxVtxUMap
 
typedef util::Vector< 3, GLuint > Point3GLui
 
typedef util::Vector< 4, GLuint > Point4GLui
 
typedef util::Vector< 4, GLubyte > Point4GLub
 
typedef util::Vector< 1, GLint > ivec1
 
typedef util::Vector< 2, GLint > ivec2
 
typedef util::Vector< 3, GLint > ivec3
 
typedef util::Vector< 4, GLint > ivec4
 
typedef util::Vector< 1, GLfloat > vec1
 
typedef util::Vector< 2, GLfloat > vec2
 
typedef util::Vector< 3, GLfloat > vec3
 
typedef util::Vector< 4, GLfloat > vec4
 
typedef util::Matrix
< 2, 2, GLfloat > 
mat2
 
typedef util::Matrix
< 3, 3, GLfloat > 
mat3
 
typedef util::Matrix
< 4, 4, GLfloat > 
mat4
 
typedef thrust::host_vector
< ushort > 
HVecUS
 

Enumerations

enum  UNIFORM_TYPE {
  UNIFORM_INT, UNIFORM_INT2, UNIFORM_INT3, UNIFORM_INT4,
  UNIFORM_FLOAT, UNIFORM_FLOAT2, UNIFORM_FLOAT3, UNIFORM_FLOAT4,
  UNIFORM_MATRIX2, UNIFORM_MATRIX3, UNIFORM_MATRIX4
}
 

Functions

 Attrib (const QString &name, ValueT &defVal)
 Constructor. More...
 
const std::unordered_map
< IndexT, ValueT > & 
data ()
 
std::ostream & operator<< (std::ostream &s, const Colorbar::Position &pos)
 
std::istream & operator>> (std::istream &s, Colorbar::Position &pos)
 
QTextStreamoperator<< (QTextStream &s, const Colorbar::Position &pos)
 
QTextStreamoperator>> (QTextStream &s, Colorbar::Position &pos)
 
QDataStreamoperator<< (QDataStream &s, const Colorbar::Position &pos)
 
QDataStreamoperator>> (QDataStream &s, Colorbar::Position &pos)
 
CU_HOST_DEVICE Point3u toVoxelsCeil (const Point3f &p, const Point3f &step)
 
template<typename T >
CU_HOST_DEVICE util::Vector< 3, T > multMatrix4Point3 (const util::Matrix< 4, 4, T > &m, const util::Vector< 3, T > &p)
 
template<typename T >
T CU_HOST_DEVICE interpolate (const T a, const T b, const T s)
 
CU_HOST_DEVICE bool planeLineIntersect (Point3f p, Point3f n, Point3f u1, Point3f u2, float &s, Point3f &u)
 
CU_HOST_DEVICE float triangleArea (Point3f a, Point3f b, Point3f c)
 
CU_HOST_DEVICE float signedTetraVolume (Point3f a, Point3f b, Point3f c)
 
CU_HOST_DEVICE void getBasisFromPlane (const Point3f &nrml, Point3f &x, Point3f &y, Point3f &z)
 
CU_HOST_DEVICE int rayTriangleIntersect (const Point3f &r0, const Point3f &r1, const Point3f &t0, const Point3f &t1, const Point3f &t2, Point3f &intp)
 
CU_HOST_DEVICE float distLinePoint (Point3f v1, Point3f v2, Point3f p, bool segment)
 
mgx_EXPORT QStringList supportedImageReadFormats ()
 
mgx_EXPORT QStringList supportedImageWriteFormats ()
 
mgx_EXPORT bool saveImage (QString filename, const Image3D &data, QString type="CImg Auto", unsigned int nb_digits=0)
 
mgx_EXPORT bool saveTIFFImage (QString filename, const Image3D &data)
 
mgx_EXPORT bool loadTIFFImage (QString filename, Image3D &data, bool allocate_data=false, Progress *progress=0)
 
mgx_EXPORT bool loadImage (QString filename, Image3D &data, bool allocate_data=false)
 
mgx_EXPORT HVecUS resize (const HVecUS &data, const Point3u &before, const Point3u &after, bool center)
 
QTreeWidgetItemgetFolder (QString name, QHash< QString, QTreeWidgetItem * > &folders, QTreeWidget *tree)
 Find or create a folder from a process tree. More...
 
void filterProcesses (QTreeWidget *tree, const QString &filter_text)
 Show only processes whose name match the regular expression. More...
 
QTextStreamoperator<< (QTextStream &s, const GLSLValue &ut)
 
QTextStreamoperator>> (QTextStream &s, GLSLValue &ut)
 
std::ostream & operator<< (std::ostream &s, const GLSLValue &ut)
 
std::istream & operator>> (std::istream &s, GLSLValue &ut)
 
void mgx_EXPORT swapMetaData (Store *s1, Store *s2)
 

Variables

 IndexT
 Type of the pair used in the attribute map.
 
 AttribPair
 
std::unordered_map< IndexT,
ValueT > 
_data
 
ValueT _defVal
 
mgx_EXPORT bool DEBUG
 

Detailed Description

This namespace contains all the API of MorphoGraphX.

Function Documentation

mgx::Attrib ( const QString name,
ValueT &  defVal 
)

Constructor.

Parameters
defValDefault value for the type
void mgx::filterProcesses ( QTreeWidget tree,
const QString filter_text 
)

Show only processes whose name match the regular expression.

Parameters
treeTree of processes to filter
filterRegular expression to filter with
QTreeWidgetItem* mgx::getFolder ( QString  name,
QHash< QString, QTreeWidgetItem * > &  folders,
QTreeWidget tree 
)

Find or create a folder from a process tree.

Parameters
nameName of the folder to create, sub-folders are separated by '/'
foldersMap of previously created folders
treeTree in which the folders are created