![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 1999 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: surfaceIM.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 *********************************************************************/ 00008 00009 #ifndef surfaceIM_H_ 00010 #define surfaceIM_H_ 00011 00012 #include "gdb/gdbDefines.h" 00013 #include "geometry/surface.h" 00014 #include "gdb/indexedMarked.h" 00015 00016 // class DtSurfaceIM: 00017 // 00018 // DtSurfaceIM inherits directly all methods 00019 // of DtSurface, but also gets an integer index and a method 00020 // to mark from parent DtIndexedMarked. 00021 00022 class DT_DLL_gdb DtSurfaceIndexedMarked : public DtSurface 00023 { 00024 public: 00025 00026 // default constructor 00027 DtSurfaceIndexedMarked(); 00028 00029 // destructor 00030 ~DtSurfaceIndexedMarked(); 00031 00032 // constructor from a parent 00033 DtSurfaceIndexedMarked(const DtSurface& orig); 00034 00035 // copy constructor 00036 DtSurfaceIndexedMarked(const DtSurfaceIndexedMarked& orig); 00037 00038 // assignment operator 00039 DtSurfaceIndexedMarked& operator=(const DtSurfaceIndexedMarked& orig); 00040 00041 // equivalency 00042 int operator==(const DtSurfaceIndexedMarked& orig); 00043 00044 // Static function to sort surfaces by characteristics. 00045 // The void*'s are cast into DtSurfaces for comparison. 00046 // If the integer value of e1 < e2, returns -1; 00047 // If the integer value of e1 > e2, returns 1; 00048 // If the two integer values are equal, returns 0; 00049 static int sortSurfacesByCharacteristics(const void* e1,const void* e2); 00050 00051 // access to the indexer 00052 DtIndexedMarked * indexer(); 00053 00054 protected: 00055 00056 DtIndexedMarked myindexer; 00057 }; 00058 00059 00060 #endif