selectionset.h

Go to the documentation of this file.
00001 
00002 
00003 //**************************************************************************/
00004 
00005 // Copyright (c) 2008 Autodesk, Inc.
00006 
00007 // All rights reserved.
00008 
00009 //
00010 
00011 // Use of this software is subject to the terms of the Autodesk license
00012 
00013 // agreement provided at the time of installation or download, or which
00014 
00015 // otherwise accompanies this software in either electronic or hard copy form.
00016 
00017 //
00018 
00019 //**************************************************************************/
00020 
00021 // DESCRIPTION:
00022 
00023 // CREATED: June 2009
00024 
00025 //**************************************************************************/
00026 
00027 
00028 
00029 namespace mudbox {
00030 
00031 
00032 
00034 
00036 
00037 class MBDLL_DECL SelectionSet : public TreeNode
00038 
00039 {
00040 
00041 public:
00042 
00043     DECLARE_CLASS;
00044 
00045 
00046 
00047 protected:
00048 
00050 
00052 
00054 
00056 
00058 
00059     SelectionSet( const QString &sName = "" );  
00060 
00061 
00062 
00063 public:
00064 
00065 
00066 
00068 
00070 
00071     struct MeshInfo 
00072 
00073     {
00074 
00075         MeshInfo( Mesh *pM );
00076 
00077         Mesh *m_pMesh;
00078 
00079         Store<unsigned int> m_aFaces;
00080 
00081     };
00082 
00083 
00084 
00086 
00088 
00090 
00091     MeshInfo *AddMesh( Mesh *pMesh );
00092 
00093 
00094 
00096 
00097     void SetVisible( bool bVisible );
00098 
00099 
00100 
00102 
00103     void Serialize( Stream & );
00104 
00105 
00106 
00108 
00109     inline QList<MeshInfo*>& MeshInfos() { return m_lMeshInfos; }
00110 
00111 
00112 
00113     // internal use only. do not use.
00114 
00115     inline bool Active() { return m_bActive; }
00116 
00117 
00118 
00119     // internal use only. do not use.
00120 
00121     inline void SetActive( bool bActive ) { m_bActive = bActive; }
00122 
00123 
00124 
00125 protected:
00126 
00127     bool m_bActive;
00128 
00129     QList<MeshInfo *> m_lMeshInfos;
00130 
00131 };
00132 
00133 
00134 
00135 }; // end of namespace mudbox
00136