Maya 1.0
|
This class implements a geometric instance linked to several frames. More...
#include <maya.h>
Public Member Functions | |
MayaInstanceSet () | |
Empty. | |
MayaInstanceSet (const QString &) | |
Create an instance set. More... | |
MayaInstanceSet (const MayaInstance &) | |
Create an instance set. More... | |
MayaInstanceSet (const QString &, const QString &) | |
Create an instance set. More... | |
MayaInstanceSet (const QString &, const FrameScaled &) | |
Create an instance set. More... | |
MayaInstanceSet (const QString &, const QString &, const FrameScaled &) | |
Create an instance set. More... | |
~MayaInstanceSet () | |
Empty. | |
void | Append (const FrameScaled &) |
Adds a frame to the list of instances. More... | |
void | Rotate (const Vector &) |
Rotates a set of geometrical objects. More... | |
void | Translate (const Vector &) |
Translates a set of objects. More... | |
void | Scale (const Vector &) |
Scales a set of objects. More... | |
void | Clear () |
Clear the instance set. | |
void | Remove (int) |
Remove the i-th element. More... | |
FrameScaled | GetFrameScaled (int) const |
Get the i-th frame. More... | |
QVector< FrameScaled > | GetFrameScaleds () const |
Get the set of frames. | |
int | count () const |
Get the number of frames. | |
QString | GetText (int=0, bool=false) const |
Get the text information. More... | |
QString | ExportVueScript (int, int) |
Export instances in Vue Software format. | |
void | exportSceneJson (QTextStream &out, const QString &url) const |
Export scene instance to JSON. | |
Public Member Functions inherited from MayaInstance | |
MayaInstance () | |
Creates an empty instance. | |
MayaInstance (const QString &) | |
Creates a instance. More... | |
MayaInstance (const QString &, const QString &) | |
Creates an instance. More... | |
~MayaInstance () | |
Empty. | |
void | SetName (const QString &) |
Set the address. More... | |
void | SetAddress (const QString &) |
Set the address. More... | |
QString | GetName () const |
Get name. | |
QString | GetAddress () const |
Get the address. | |
Protected Attributes | |
QVector< FrameScaled > | frames |
Array of frames. | |
Protected Attributes inherited from MayaInstance | |
QString | name |
Signature of the object, implemented as the name of the corresponding mesh file. | |
QString | address |
Location of the object. | |
This class implements a geometric instance linked to several frames.
|
inline |
Create an instance set.
name | The name of the set. |
|
inline |
Create an instance set.
i | Input instance. |
|
inline |
Create an instance set.
name | The name of the set. |
address | Directory. |
|
inline |
|
inline |
Create an instance set.
name | The name of the set. |
address | Directory. |
frame | The frame. |
References frames.
void MayaInstanceSet::Append | ( | const FrameScaled & | frame | ) |
|
inline |
QString MayaInstanceSet::GetText | ( | int | spaces = 0 , |
bool | html = false |
||
) | const |
Get the text information.
spaces | Spacing for indenting the text. |
html | Flag to specify syntax highlighting. |
References frames, and MayaInstance::GetName().
|
inline |
void MayaInstanceSet::Rotate | ( | const Vector & | r | ) |
Rotates a set of geometrical objects.
This function simply updates the frame of the object.
r | Rotation vector in Euler coordinates. |
References frames.
void MayaInstanceSet::Scale | ( | const Vector & | s | ) |
Scales a set of objects.
This function simply updates the frame of the object.
s | Scaling vector. |
References frames.