cgma
CAEntityColor.hpp
Go to the documentation of this file.
00001 //- Class:          CAEntityColor
00002 //- Owner:          Joel Kopp
00003 //- Description:    Cubit attribute for entity colors.
00004 //- Checked by:
00005 //- Version:
00006 
00007 #ifndef CA_ENTITY_COLOR_HPP
00008 #define CA_ENTITY_COLOR_HPP
00009 
00010 #include "CubitAttrib.hpp"
00011 #include "CubitDefines.h"
00012 #include "CADefines.hpp"
00013 
00014 class RefEntity;
00015 
00016 class CUBIT_GEOM_EXPORT CAEntityColor : public CubitAttrib
00017 {
00018 private:
00019  
00020   int entityColor;
00021     //- entity color
00022 
00023 public:
00024 
00025   virtual ~CAEntityColor();
00026 
00027   CAEntityColor (RefEntity*, const CubitSimpleAttrib& );
00028     //- create a CAEID from a simple attribute
00029 
00030   CubitStatus actuate();
00031 
00032   CubitStatus update();
00033 
00034   CubitStatus reset() {return CUBIT_SUCCESS;};
00035     //- don't need an active reset function since there aren't any
00036     //- lists on this CA
00037   
00038   void merge_owner(CubitAttrib *deletable_attrib);
00039 
00040   CubitSimpleAttrib cubit_simple_attrib();
00041 
00042   int int_attrib_type() {return CA_ENTITY_COLOR;}
00043 
00044   int color() {return entityColor;}
00045 
00046   void print();
00047   
00048 };
00049 
00050 CubitAttrib* CAEntityColor_creator(RefEntity* entity, const CubitSimpleAttrib &p_csa);
00051 
00052 #endif
00053 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines