The MayaGeometrySet class provides a geometric instance linked to several frames.
More...
|
|
| MayaGeometrySet () |
| | Empty.
|
| |
| | MayaGeometrySet (const QString &, const MayaMaterial &=MayaMaterial::None) |
| | Create a geometry set.
|
| |
| | MayaGeometrySet (const QString &, const FrameScaled &, const MayaMaterial &=MayaMaterial::None) |
| | Create a geometry set and one instance.
|
| |
| | MayaGeometrySet (const MayaGeometry &) |
| | Create a set of geometric instances.
|
| |
| | MayaGeometrySet (const MayaGeometry &, const FrameScaled &) |
| | Create a set of geometric instances.
|
| |
| | MayaGeometrySet (const MayaGeometry &, const QVector< FrameScaled > &) |
| | Create a set of geometric instances.
|
| |
| | MayaGeometrySet (const MayaGeometry &, const QVector< Vector > &) |
| | Create a set of geometric instances.
|
| |
|
| ~MayaGeometrySet () |
| | Empty.
|
| |
| void | Append (const FrameScaled &) |
| | Adds a frame to the list of instances.
|
| |
| void | SetName (const QString &) |
| | Set the name.
|
| |
| void | SetFrames (QVector< FrameScaled >) |
| | Set the set of frames that define the locations of the instances.
|
| |
| void | ApplyFrames (QVector< FrameScaled >) |
| | Add a frame to the list of instances.
|
| |
| void | Rotate (const Vector &) |
| | Rotates a set of geometrical objects.
|
| |
| void | Translate (const Vector &) |
| | Translates a set of geometrical objects.
|
| |
| void | Scale (const Vector &) |
| | Scales a set of geometrical objects.
|
| |
|
void | Clear () |
| | Clear the instance set.
|
| |
| void | Remove (int) |
| | Remove a given instance from the set.
|
| |
|
QString | GetName () const |
| | Get the name of the geometry set.
|
| |
|
Box | GetBox () const |
| | Compute the bounding box.
|
| |
| FrameScaled | GetFrameScaled (int) const |
| | Get the i-th frame.
|
| |
|
QVector< FrameScaled > | GetFrames () const |
| | Get the set of frames.
|
| |
|
int | count () const |
| | Get the number of frames in the instance set.
|
| |
|
MayaGeometry | Collapse () const |
| | Merge all the instances into a signel Maya geometry structure.
|
| |
|
bool | Save_VueScript (QTextStream &out) const |
| | Export instances in Vue Software format.
|
| |
| bool | Save_VUE (QTextStream &out) const |
| | Save the instances as a Vue python script.
|
| |
| MayaStatistics | GetStatistics () const |
| | Compute the statistics of the geometry set.
|
| |
| QString | GetText (int=0, bool=false) const |
| | Get the text information.
|
| |
| | MayaGeometry (const QString &=QString("None"), const MayaMaterial &=MayaMaterial::None) |
| | Creates an empty mesh structure.
|
| |
| | MayaGeometry (const QString &, const QVector< Vector > &, const QVector< Vector > &, const QVector< MayaIndexVertexData > &, const MayaMaterial &=MayaMaterial::None) |
| | Creates a mesh given an array of vertices and normals, and an array of integers defining the (possibly smooth) triangles of the mesh.
|
| |
| | MayaGeometry (const QString &, const QVector< Vector > &, const QVector< Vector > &, const QVector< Vector > &, const QVector< MayaIndexVertexData > &, const MayaMaterial &=MayaMaterial::None) |
| | Creates a mesh.
|
| |
| | MayaGeometry (const QString &, const QVector< Vector > &, const QVector< Vector > &, const QVector< Vector2 > &, const QVector< MayaIndexVertexData > &, const MayaMaterial &=MayaMaterial::None) |
| | Creates a mesh given an array of vertices, normals and colors, and an array of integers defining the (possibly smooth) triangles of the mesh.
|
| |
| | MayaGeometry (const QString &, const Mesh &, const MayaMaterial &=MayaMaterial::None) |
| | Creates an geometry from a mesh.
|
| |
| | MayaGeometry (const QString &, const MeshColor &, const MayaMaterial &=MayaMaterial::None) |
| | Creates an geometry from a mesh.
|
| |
| | MayaGeometry (const QString &, const Mesh2 &, const MayaMaterial &=MayaMaterial::None) |
| | Creates an geometry from a mesh.
|
| |
| | MayaGeometry (const QString &, const QVector< Triangle > &, const MayaMaterial &=MayaMaterial::None) |
| | Creates a geometry from a set of triangles.
|
| |
|
| ~MayaGeometry () |
| | Empty.
|
| |
| | MayaGeometry (const QString &, const Vector *, int, const Vector *, int, const int *, int, const MayaMaterial &=MayaMaterial::None) |
| | Create a mesh.
|
| |
| void | AddTriangle (const Vector &, const Vector &, const Vector &) |
| | Adds a triangle to the mesh.
|
| |
| void | AddSmoothTriangle (const Vector &, const Vector &, const Vector &, const Vector &, const Vector &, const Vector &) |
| | Adds a smooth triangle to the mesh.
|
| |
| void | SetName (const QString &) |
| | Set the name.
|
| |
| void | SetMaterial (const MayaMaterial &) |
| | Set the MayaMaterial.
|
| |
| void | Merge (const MayaGeometry &) |
| | Merges an argument mesh with the existing mesh.
|
| |
| Triangle | GetTriangle (int) const |
| | Get the i-th triangle from the mesh as a flat triangle.
|
| |
|
QVector< Triangle > | GetTriangles () const |
| | Returns the geometry as a set of triangles.
|
| |
|
QString | GetName () const |
| | Get the name of the geometry.
|
| |
|
MayaMaterial | GetMaterial () const |
| | Get the material of the geometry.
|
| |
|
Box | GetBox () const |
| | Compute the bounding box of the object.
|
| |
| MayaGeometry & | Transform (const FrameScaled &) |
| | Transforms the geometry given a transformation operator.
|
| |
| MayaGeometry & | InverseTransform (const FrameScaled &) |
| | Inverse transforms the geometry given a transformation operator.
|
| |
| bool | Load_OBJ (const QString &) |
| | Loads the geometry from a OBJ file into a single MayaGeometry.
|
| |
| bool | find_MTL_Address (const QString &url, const QString &name, QString &nameR, QString &nameA) |
| | Loads the geometrys from an .obj file into a MayaGeometryAll.
|
| |
| bool | Save_OBJ (const QString &) const |
| | Save the geometry as a Maya .obj file.
|
| |
| bool | Save_OBJ_forVUE (const QString &url) const |
| | Save the geometry as a Maya .obj file. !!!! Y up for VUE.
|
| |
| bool | Save_OBJ (QTextStream &, int=1, int=1, int=1) const |
| | Save the geometry as a Maya .obj file (QTextStream).
|
| |
| bool | Save_PLY (const QString &) const |
| | Save the geometry as a Maya .obj file.
|
| |
| bool | Save_PBRT (QTextStream &) const |
| | Save the geometry as a pbrt file (QTextStream).
|
| |
| MayaStatistics | GetStatistics () const |
| | Compute the statistics of the object.
|
| |
| QString | GetText (int=0, bool=false) const |
| | Get the text information.
|
| |
| const Vector & | GetVertex (int, int) const |
| | Get the k-th vertex of the i-th triangle.
|
| |
| const Vector & | GetVertex (int) const |
| | Get the i-th vertec in the array.
|
| |
| const Vector & | GetNormal (int, int) const |
| | Get the normal of the k-th vertexof the i-th triangle.
|
| |
| const Vector & | GetNormal (int) const |
| | Get the i-th normal in the array.
|
| |
| const Vector & | GetColor (int, int) const |
| | Get the color of the k-th vertex of the i-th triangle.
|
| |
| const Vector & | GetColor (int) const |
| | Get the i-th color in the array.
|
| |
| const Vector2 & | GetUV (int, int) const |
| | Get the i-th UV in the array.
|
| |
| const Vector2 & | GetUV (int) const |
| | Get the i-th UV in the array.
|
| |
|
void | Clear () |
| | Clear every data and set a neutral grey material.
|
| |
| void | generatePlannarZ_Mapping (Box2) |
| | Apply a planar mapping onto the object.
|
| |
| void | generatePlannarMapping (const Vector &dir, const double &step) |
| | Apply a planar mapping onto the object using a given normal direction.
|
| |
The MayaGeometrySet class provides a geometric instance linked to several frames.