cgma
CoVolume.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      : CoVolume.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 "CoVolume.hpp"
00034 #include "RefVolume.hpp"
00035 #include "Body.hpp"
00036 
00037 #include "CastTo.hpp"
00038 
00039 // ********** END CUBIT INCLUDES           **********
00040 
00041 // ********** BEGIN STATIC DECLARATIONS    **********
00042 // ********** END STATIC DECLARATIONS      **********
00043 
00044 // ********** BEGIN PUBLIC FUNCTIONS       **********
00045 //-------------------------------------------------------------------------
00046 // Purpose       : The default constructor
00047 //
00048 // Special Notes :
00049 //
00050 // Creator       : Xuechen Liu
00051 //
00052 // Creation Date : 08/02/96
00053 //-------------------------------------------------------------------------
00054 
00055 CoVolume::CoVolume() 
00056 {
00057 }
00058 
00059 //-------------------------------------------------------------------------
00060 // Purpose       : The destructor
00061 //
00062 // Special Notes :
00063 //
00064 // Creator       : Raikanta Sahu
00065 //
00066 // Creation Date : 10/22/96
00067 //-------------------------------------------------------------------------
00068 
00069 CoVolume::~CoVolume() 
00070 {
00071 }
00072 
00073 //-------------------------------------------------------------------------
00074 // Purpose       : Constructor
00075 //
00076 // Special Notes :
00077 //
00078 // Creator       : Xuechen Liu
00079 //
00080 // Creation Date : 08/02/96
00081 //-------------------------------------------------------------------------
00082 CoVolume::CoVolume(RefVolume* volumePtr) 
00083 {
00084    attach_basic_topology_entity(volumePtr) ;
00085    set_sense(CUBIT_FORWARD) ;
00086 }
00087 
00088 //-------------------------------------------------------------------------
00089 // Purpose       : Get the RefVolume associated with this CoVolume
00090 //
00091 // Special Notes :
00092 //
00093 // Creator       : Malcolm J. Panthaki
00094 //
00095 // Creation Date : 08/02/96
00096 //-------------------------------------------------------------------------
00097 RefVolume* CoVolume::get_ref_volume_ptr()  
00098 {
00099    // Call the generic function defined in the SenseEntity class to
00100    // do the real work
00101    BasicTopologyEntity* BTEPtr = get_basic_topology_entity_ptr();
00102 
00103    // Cast the returned pointer to RefVolume and return it
00104    return CAST_TO( BTEPtr, RefVolume );   
00105 }
00106 
00107 
00108 
00109 // ********** END PUBLIC FUNCTIONS         **********
00110 
00111 // ********** BEGIN PROTECTED FUNCTIONS    **********
00112 // ********** END PROTECTED FUNCTIONS      **********
00113 
00114 // ********** BEGIN PRIVATE FUNCTIONS      **********
00115 // ********** END PRIVATE FUNCTIONS        **********
00116 
00117 // ********** BEGIN HELPER CLASSES         **********
00118 // ********** END HELPER CLASSES           **********
00119 
00120 // ********** BEGIN EXTERN FUNCTIONS       **********
00121 // ********** END EXTERN FUNCTIONS         **********
00122 
00123 // ********** BEGIN STATIC FUNCTIONS       **********
00124 // ********** END STATIC FUNCTIONS         **********
00125 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines