cgma
CAEntityTol.hpp
Go to the documentation of this file.
00001 //- Class:          CAEntityTol 
00002 //- Owner:          W. Roshan Quadros
00003 //- Description:    Cubit attribute for tolerance at entity 
00004 //- Checked by:
00005 //- Version:
00006 
00007 #ifndef CA_ENTITY_TOL_HPP
00008 #define CA_ENTITY_TOL_HPP
00009 
00010 #include <typeinfo>
00011 #if !defined(_WIN32)
00012 using std::type_info;
00013 #endif
00014 
00015 #include "CubitAttrib.hpp"
00016 #include "CubitDefines.h"
00017 #include "CADefines.hpp"
00018 
00019 class RefEntity;
00020 
00021 class CUBIT_GEOM_EXPORT CAEntityTol : public CubitAttrib
00022 {
00023 private:
00024  
00025   double entityTol;
00026   //- entity tolerance
00027 
00028  public:
00029 
00030   virtual ~CAEntityTol();
00031 
00032   CAEntityTol (RefEntity*);
00033 
00034   CAEntityTol (RefEntity*, const CubitSimpleAttrib &);
00035     //- create a CAEID from a simple attribute
00036 
00037   //HEADER- RTTI and safe casting functions.
00038   virtual const type_info& entity_type_info() const
00039      { return typeid(CAEntityTol);}
00040   //R- The geometric modeler type
00041   //- This function returns the type of the geometric modeler.
00042 
00043   CubitStatus actuate();
00044 
00045   CubitStatus update();
00046 
00047   CubitStatus reset(); 
00048     //- don't need an active reset function since there aren't any
00049     //- lists on this CA
00050   
00051   void merge_owner(CubitAttrib *deletable_attrib);
00052   CubitSimpleAttrib split_owner();
00053 
00054   CubitSimpleAttrib cubit_simple_attrib();
00055 
00056   int int_attrib_type() {return CA_ENTITY_TOL;}
00057 
00058   double tolerance() {return entityTol;}
00059 
00060   void print();
00061   
00062 };
00063 
00064 CubitAttrib* CAEntityTol_creator(RefEntity* entity, const CubitSimpleAttrib &p_csa);
00065 
00066 #endif
00067 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines