00001 // rdEdge.h 00002 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00003 // Copyright 2002 Realistic Dynamics, Inc. 00004 // All rights reserved. 00005 // 00006 // Please do not read, copy, distribute, or use without permission. 00007 // Contact: Frank C. Anderson, fca@RealisticDynamics.com 00008 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00009 #ifndef __rdEdge_h__ 00010 #define __rdEdge_h__ 00011 00012 // INCLUDES 00013 #include "rdTools.h" 00014 #include "rdObject.h" 00015 #include "rdVertices.h" 00016 00017 //============================================================================= 00018 //============================================================================= 00024 class RDTOOLS_API rdEdge : public rdObject 00025 { 00026 //============================================================================= 00027 // DATA 00028 //============================================================================= 00029 private: 00030 char* _v3dNames[2]; 00031 int _v3dIndex[2]; 00032 00033 //============================================================================= 00034 // METHODS 00035 //============================================================================= 00036 public: 00037 //-------------------------------------------------------------------------- 00038 // CONSTRUCTION 00039 //-------------------------------------------------------------------------- 00040 rdEdge(); 00041 rdEdge(IDOM_Element *aElement); 00042 virtual ~rdEdge(); 00043 private: 00044 void setNull(); 00045 00046 //-------------------------------------------------------------------------- 00047 // GET AND SET 00048 //-------------------------------------------------------------------------- 00049 public: 00050 const char* getVertexName(int aWhich) const; 00051 int getVertexIndex(int aWhich) const; 00052 00053 //-------------------------------------------------------------------------- 00054 // UTILITIES 00055 //-------------------------------------------------------------------------- 00056 void updateIndicies(rdVertices *aVerts); 00057 00058 //-------------------------------------------------------------------------- 00059 // XML 00060 //-------------------------------------------------------------------------- 00061 virtual void updateObject(bool aDeep=true); 00062 virtual void updateNode(bool aDeep=true); 00063 void updateData(); 00064 00065 //============================================================================= 00066 }; // END class rdEdge 00067 //============================================================================= 00068 //============================================================================= 00069 00070 #endif // __rdEdge_h__
1.3