cgma
CoVertex.cpp
Go to the documentation of this file.
00001 //-------------------------------------------------------------------------
00002 // Copyright Notice
00003 //
00004 // Copyright (c) 1996 
00005 // by Malcolm J. Panthaki, DBA, and the University of New Mexico.
00006 //-------------------------------------------------------------------------
00007 //
00008 //-------------------------------------------------------------------------
00009 // Filename      : CoVertex.cc
00010 //
00011 // Purpose       : 
00012 //
00013 // Special Notes :
00014 //
00015 // Creator       : Xuechen Liu
00016 //
00017 // Creation Date : 08/02/96
00018 //
00019 // Owner         : Jihong Ma
00020 //-------------------------------------------------------------------------
00021 
00022 // ********** BEGIN STANDARD INCLUDES      **********
00023 // ********** END STANDARD INCLUDES        **********
00024 
00025 // ********** BEGIN MOTIF INCLUDES         **********
00026 // ********** END MOTIF INCLUDES           **********
00027 
00028 // ********** BEGIN OPEN INVENTOR INCLUDES **********
00029 // ********** END OPEN INVENTOR INCLUDES   **********
00030 
00031 // ********** BEGIN CUBIT INCLUDES         **********
00032 
00033 #include "CoVertex.hpp"
00034 #include "RefVertex.hpp"
00035 #include "DLIList.hpp"
00036 #include "Chain.hpp"
00037 #include "RefEdge.hpp"
00038 
00039 #include "CastTo.hpp"
00040 
00041 // ********** END CUBIT INCLUDES           **********
00042 
00043 // ********** BEGIN STATIC DECLARATIONS    **********
00044 // ********** END STATIC DECLARATIONS      **********
00045 
00046 
00047 // ********** BEGIN PUBLIC FUNCTIONS       **********
00048 //-------------------------------------------------------------------------
00049 // Purpose       : The default constructor
00050 //
00051 // Special Notes :
00052 //
00053 // Creator       : Xuechen Liu
00054 //
00055 // Creation Date : 08/02/96
00056 //-------------------------------------------------------------------------
00057 
00058 CoVertex::CoVertex() 
00059 {
00060 }
00061 
00062 //-------------------------------------------------------------------------
00063 // Purpose       : The destructor
00064 //
00065 // Special Notes :
00066 //
00067 // Creator       : Raikanta Sahu
00068 //
00069 // Creation Date : 10/22/96
00070 //-------------------------------------------------------------------------
00071 
00072 CoVertex::~CoVertex() 
00073 {
00074 }
00075 
00076 //-------------------------------------------------------------------------
00077 // Purpose       : Constructor
00078 //
00079 // Special Notes :
00080 //
00081 // Creator       : Xuechen Liu
00082 //
00083 // Creation Date : 08/02/96
00084 //-------------------------------------------------------------------------
00085 CoVertex::CoVertex(RefVertex* vertexPtr) 
00086 {
00087    attach_basic_topology_entity(vertexPtr) ;
00088    set_sense(CUBIT_FORWARD) ;
00089 }
00090 
00091 //-------------------------------------------------------------------------
00092 // Purpose       : Get the RefVertex associated with this CoVertex
00093 //
00094 // Special Notes :
00095 //
00096 // Creator       : Malcolm J. Panthaki
00097 //
00098 // Creation Date : 08/02/96
00099 //-------------------------------------------------------------------------
00100 RefVertex* CoVertex::get_ref_vertex_ptr()  
00101 {
00102    // Call the generic function defined in the SenseEntity class to
00103    // do the real work
00104    BasicTopologyEntity* BTEPtr = get_basic_topology_entity_ptr();
00105 
00106    // Cast the returned pointer to RefVertex and return it
00107    return CAST_TO( BTEPtr, RefVertex );   
00108 }
00109 
00110 
00111 // ********** END PUBLIC FUNCTIONS         **********
00112 
00113 // ********** BEGIN PROTECTED FUNCTIONS    **********
00114 // ********** END PROTECTED FUNCTIONS      **********
00115 
00116 // ********** BEGIN PRIVATE FUNCTIONS      **********
00117 // ********** END PRIVATE FUNCTIONS        **********
00118 
00119 // ********** BEGIN HELPER CLASSES         **********
00120 // ********** END HELPER CLASSES           **********
00121 
00122 // ********** BEGIN EXTERN FUNCTIONS       **********
00123 // ********** END EXTERN FUNCTIONS         **********
00124 
00125 // ********** BEGIN STATIC FUNCTIONS       **********
00126 // ********** END STATIC FUNCTIONS         **********
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines