cgma
OCCAttribSet.hpp
Go to the documentation of this file.
00001 //-------------------------------------------------------------------------
00002 // Filename      : OCCAttribSet.hpp
00003 //
00004 // Purpose       : Common attrib functions for MBG
00005 //
00006 // Special Notes : 
00007 //
00008 // Creator       : Jason Kraftcheck
00009 //
00010 // Creation Date : 03/01/03
00011 //-------------------------------------------------------------------------
00012 
00013 #ifndef FACET_BRIDGE_HPP
00014 #define FACET_BRIDGE_HPP
00015 
00016 #include <DLIList.hpp>
00017 
00018 class CubitSimpleAttrib;
00019 class CubitString;
00020 class TopoDS_Shape;
00021 class TDF_Label;
00022 class OCCAttribSet 
00023 {
00024 
00025   public:
00026   
00027     OCCAttribSet() {}; 
00028     
00029     ~OCCAttribSet() { ; }
00030     static void FindShape(TopoDS_Shape& shape,
00031                           TDF_Label& aLabel,
00032                           CubitBoolean& found);
00033     
00034     static int find_attribute(TDF_Label child,
00035                               const CubitSimpleAttrib& csa);
00036 
00037     static void append_attribute( const CubitSimpleAttrib&, TopoDS_Shape& shape );
00038     
00039     //remove this simple attrib from all shapes. useful when it's a shared
00040     //feature like materials
00041     static void remove_attribute( const CubitSimpleAttrib& );
00042     
00043     //remove this simple attrib from the shape attribs.
00044     static void remove_attribute(const CubitSimpleAttrib&, TopoDS_Shape& shape );
00045  
00046     //remove this shape's label from the lable tree. 
00047     static void remove_attribute( TopoDS_Shape& shape);
00048 
00049     static void get_attributes(TDF_Label &lab,
00050                                DLIList<CubitSimpleAttrib>& list);
00051 
00052     static CubitStatus get_attributes( TopoDS_Shape& shape,
00053                                        DLIList<CubitSimpleAttrib>& ) ;
00054     
00055     static CubitStatus get_attributes( const CubitString& name,
00056                                        TopoDS_Shape& shape,
00057                                 DLIList<CubitSimpleAttrib>& ) ;
00058     
00059     static int attribute_count() ;
00060     
00061   private:
00062 };
00063 
00064 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines