cgma
CAEntitySense.hpp
Go to the documentation of this file.
00001 //- Class:          CAEntitySense
00002 //- Owner:          Corey Ernst
00003 //- Description:    Saves out bridge sense of RefEntity
00004 //- Checked by:
00005 //- Version:
00006 
00007 #ifndef CA_ENTITY_SENSE_HPP
00008 #define CA_ENTITY_SENSE_HPP
00009 
00010 #include <typeinfo>
00011 #if !defined(_WIN32)
00012 using std::type_info;
00013 #endif
00014 
00015 #include "CubitAttrib.hpp"
00016 #include "DLIList.hpp"
00017 #include "CADefines.hpp"
00018 
00019 class RefEntity;
00020 
00021 class CUBIT_GEOM_EXPORT CAEntitySense: public CubitAttrib
00022 {
00023 
00024 private:
00025 
00026   CubitSense entitySense;
00027   
00028 public:
00029   CAEntitySense(RefEntity* = NULL);
00030 
00031   CAEntitySense(RefEntity*, const CubitSimpleAttrib&);
00032     //- make a CAG from a simple attribute
00033 
00034   void initialize();
00035     //- initialize random number generator for this attribute
00036 
00037   virtual ~CAEntitySense();
00038 
00039   //HEADER- RTTI and safe casting functions.
00040   virtual const type_info& entity_type_info() const
00041      { return typeid(CAEntitySense);}
00042   //R- The geometric modeler type
00043   //- This function returns the type of the geometric modeler.
00044 
00045   CubitStatus actuate();
00046     //- actuate this attribute
00047   
00048   CubitStatus update();
00049     //- update this attribute
00050 
00051   CubitStatus reset() {return CUBIT_SUCCESS;}
00052     //- reset this attribute
00053 
00054   CubitSimpleAttrib cubit_simple_attrib();
00055     //- return a simple attribute with this CA's data  
00056   
00057   int int_attrib_type() {return CA_ENTITY_SENSE;}
00058     //- returns the enumerated attribute type
00059 
00060   void print();
00061 
00062 };
00063 
00064 CubitAttrib* CAEntitySense_creator(RefEntity* entity, const CubitSimpleAttrib &p_csa);
00065 
00066 #endif
00067 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines