Maya 1.0
Public Member Functions | Protected Attributes | List of all members
MayaInstanceSet Class Reference

This class implements a geometric instance linked to several frames. More...

#include <maya.h>

Inheritance diagram for MayaInstanceSet:
MayaInstance

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< FrameScaledGetFrameScaleds () 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< FrameScaledframes
 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.
 

Detailed Description

This class implements a geometric instance linked to several frames.

Constructor & Destructor Documentation

◆ MayaInstanceSet() [1/5]

MayaInstanceSet::MayaInstanceSet ( const QString &  name)
inline

Create an instance set.

Parameters
nameThe name of the set.

◆ MayaInstanceSet() [2/5]

MayaInstanceSet::MayaInstanceSet ( const MayaInstance i)
inline

Create an instance set.

Parameters
iInput instance.

◆ MayaInstanceSet() [3/5]

MayaInstanceSet::MayaInstanceSet ( const QString &  name,
const QString &  address 
)
inline

Create an instance set.

Parameters
nameThe name of the set.
addressDirectory.

◆ MayaInstanceSet() [4/5]

MayaInstanceSet::MayaInstanceSet ( const QString &  name,
const FrameScaled frame 
)
inline

Create an instance set.

Parameters
nameThe name of the set.
frameThe frame.

References frames.

◆ MayaInstanceSet() [5/5]

MayaInstanceSet::MayaInstanceSet ( const QString &  name,
const QString &  address,
const FrameScaled frame 
)
inline

Create an instance set.

Parameters
nameThe name of the set.
addressDirectory.
frameThe frame.

References frames.

Member Function Documentation

◆ Append()

void MayaInstanceSet::Append ( const FrameScaled frame)

Adds a frame to the list of instances.

Parameters
frameThe frame.

References frames.

◆ GetFrameScaled()

FrameScaled MayaInstanceSet::GetFrameScaled ( int  i) const
inline

Get the i-th frame.

Parameters
iIndex.

References frames.

◆ GetText()

QString MayaInstanceSet::GetText ( int  spaces = 0,
bool  html = false 
) const

Get the text information.

Parameters
spacesSpacing for indenting the text.
htmlFlag to specify syntax highlighting.

References frames, and MayaInstance::GetName().

◆ Remove()

void MayaInstanceSet::Remove ( int  i)
inline

Remove the i-th element.

Parameters
iElement.

References frames.

◆ Rotate()

void MayaInstanceSet::Rotate ( const Vector r)

Rotates a set of geometrical objects.

This function simply updates the frame of the object.

Parameters
rRotation vector in Euler coordinates.

References frames.

◆ Scale()

void MayaInstanceSet::Scale ( const Vector s)

Scales a set of objects.

This function simply updates the frame of the object.

Parameters
sScaling vector.

References frames.

◆ Translate()

void MayaInstanceSet::Translate ( const Vector t)

Translates a set of objects.

This function simply updates the frame of the object.

Parameters
tTranslation vector.

References frames.