root/cgm/trunk/geom/virtual/CACompositeVG.hpp

Revision 1040, 1.6 KB (checked in by tautges, 2 years ago)

Version 10.2 of cgm.

  • Property svn:executable set to *
Line 
1//- Class:          CACompositeVG
2//- Owner:          Tim Tautges
3//- Description:    Cubit attribute for composite virtual geometry
4//- Checked by:
5//- Version:
6
7#ifndef CA_COMPOSITE_VG_HPP
8#define CA_COMPOSITE_VG_HPP
9
10#include "CubitAttrib.hpp"
11#include "DLIList.hpp"
12#include "CADefines.hpp"
13
14class Point;
15class RefEntity;
16class CubitSimpleAttrib;
17class RefEntity;
18class CubitVector;
19
20class CACompositeVG: public CubitAttrib
21{
22
23private:
24
25  int compositeId;
26    //- the unique id of this composite entity
27
28  DLIList<int> subEntityIds;
29    //- the ids of the sub entities making up this composite
30
31public:
32  CACompositeVG(RefEntity* );
33
34  CACompositeVG(RefEntity*, CubitSimpleAttrib*);
35    //- construct a CACVG from a simple attribute
36
37  virtual ~CACompositeVG() {};
38
39  //HEADER- RTTI and safe casting functions.
40  virtual const type_info& entity_type_info() const { return typeid(*this);}
41  //R- The geometric modeler type
42  //- This function returns the type of the geometric modeler.
43
44  CubitStatus actuate();
45 
46  CubitStatus update();
47
48  CubitStatus reset();
49
50  CubitSimpleAttrib* cubit_simple_attrib();
51 
52  CubitSimpleAttrib* cubit_simple_attrib(CubitString);
53 
54  int int_attrib_type() {return CA_COMPOSITE_VG;}
55    //- returns the enumerated attribute type
56
57  int composite_id() {return compositeId;};
58  void composite_id(int id) {compositeId = id;};
59    //- get/set the composite id
60 
61  void check_child_cacvgs(RefEntity *new_entity);
62    //- for the new entity passed in, check for and actuate CACVG's on
63    //- any child entities
64};
65
66CubitAttrib* CACompositeVG_creator(RefEntity* entity, CubitSimpleAttrib *p_csa);
67
68#endif
Note: See TracBrowser for help on using the browser.