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

This class implements geometric instances. More...

#include <maya.h>

Inheritance diagram for MayaInstance:
MayaInstanceSet

Public Member Functions

 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

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 geometric instances.

An instance is defined by its name, which refers to the corresponding .obj or .ma file.

Constructor & Destructor Documentation

◆ MayaInstance() [1/2]

MayaInstance::MayaInstance ( const QString &  name)
explicit

Creates a instance.

Parameters
nameName of the object, which should match an existing file; the .obj extension is added.

References address, and name.

◆ MayaInstance() [2/2]

MayaInstance::MayaInstance ( const QString &  name,
const QString &  address 
)
explicit

Creates an instance.

Parameters
nameName of the object, which should match an existing file; the .obj extension is added.
addressDirectory containing the file.

References address, and name.

Member Function Documentation

◆ SetAddress()

void MayaInstance::SetAddress ( const QString &  a)
inline

Set the address.

Parameters
aThe address.

References address.

◆ SetName()

void MayaInstance::SetName ( const QString &  n)
inline

Set the address.

Parameters
nThe name.

References name.