mudbox::SelectionSet Class Reference

#include <selectionset.h>

Inheritance diagram for mudbox::SelectionSet:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class represents a collection of faces among one or more mesh objects.

Public Member Functions

virtual const mudbox::ClassDesc RuntimeClass (void) const
MeshInfo AddMesh (Mesh *pMesh)
  Add a mesh to the set.
void  SetVisible (bool bVisible)
  Hides or shows the members of the set.
void  Serialize (Stream &)
  Saves or loads from the given stream.
QList< MeshInfo * > &  MeshInfos ()
  Accessor for the array of members of this collection.
bool  Active ()
void  SetActive (bool bActive)

Static Public Member Functions

const mudbox::ClassDesc StaticClass (void)
mudbox::Node CreateInstances (unsigned int iCount=1)

Protected Member Functions

  SelectionSet (const QString &sName="")
  Constructor. Do not use it directly; Use CreateInstance() instead.

Protected Attributes

bool  m_bActive
QList< MeshInfo * >  m_lMeshInfos

Constructor & Destructor Documentation

mudbox::SelectionSet::SelectionSet const QString &  sName = ""  )  [protected]
 

Constructor. Do not use it directly; Use CreateInstance() instead.

            SelectionSet *mySelectionSet = CreateInstance<SelectionSet>();

Member Function Documentation

virtual const mudbox::ClassDesc* mudbox::SelectionSet::RuntimeClass void   )  const [inline, virtual]
 

Reimplemented from mudbox::TreeNode.

00027 :
const mudbox::ClassDesc* mudbox::SelectionSet::StaticClass void   )  [static]
 

Reimplemented from mudbox::TreeNode.

mudbox::Node* mudbox::SelectionSet::CreateInstances unsigned int  iCount = 1  )  [static]
 

Reimplemented from mudbox::TreeNode.

MeshInfo* mudbox::SelectionSet::AddMesh Mesh pMesh  ) 
 

Add a mesh to the set.

Parameters:
pMesh  the mesh to add
Returns:
pMesh's corresponding MeshInfo. Note the SelectionSet owns this memory.
void mudbox::SelectionSet::SetVisible bool  bVisible  )  [virtual]
 

Hides or shows the members of the set.

Reimplemented from mudbox::TreeNode.

void mudbox::SelectionSet::Serialize Stream  )  [virtual]
 

Saves or loads from the given stream.

Reimplemented from mudbox::TreeNode.

QList<MeshInfo*>& mudbox::SelectionSet::MeshInfos  )  [inline]
 

Accessor for the array of members of this collection.

00058 { return m_lMeshInfos; }
bool mudbox::SelectionSet::Active  )  [inline]
 
00061 { return m_bActive; }
void mudbox::SelectionSet::SetActive bool  bActive  )  [inline]
 
00064 { m_bActive = bActive; }

Member Data Documentation

bool mudbox::SelectionSet::m_bActive [protected]
 
QList<MeshInfo *> mudbox::SelectionSet::m_lMeshInfos [protected]
 

mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet
mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet mudbox::SelectionSet