![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 1999 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: indexedMarked.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *********************************************************************/ 00008 00009 #ifndef indexedMarked_H_ 00010 #define indexedMarked_H_ 00011 00012 #include "gdb/gdbDefines.h" 00013 #include <vlutil/vlMachineTypes.h> 00014 00015 // class DtIndexedMarked: 00016 // 00017 // Provides and indexed/markable interface. 00018 // @note This class has no virtual functions on purpose to reduce the size 00019 // of the items as DtPointIndexedMarked instances contain a DtIndexedMarked. 00020 // This means that a DtIndexedMarked is created for every vertex when the 00021 // vertex manager is reducing vertices, which very much adds up for large scenes. 00022 // Additionally, this class is @bnot intended to be derived from. 00023 // 00024 class DT_DLL_gdb DtIndexedMarked 00025 { 00026 public: 00027 00028 // default constructor 00029 DtIndexedMarked(); 00030 00031 // destructor 00032 ~DtIndexedMarked(); 00033 00034 // copy constructor 00035 DtIndexedMarked(const DtIndexedMarked& orig); 00036 00037 // assignment operator 00038 DtIndexedMarked& operator=(const DtIndexedMarked& orig); 00039 00040 //get and set for index0 00041 unsigned int getIndex0() const; 00042 void setIndex0(unsigned int indexIn); 00043 00044 //get and set marked 00045 bool isMarked() const; 00046 void mark(void); 00047 void unmark(void); 00048 00049 protected: 00050 00051 unsigned int myIndex0; 00052 bool myMarked; 00053 }; 00054 00055 00056 #endif