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

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

Version 10.2 of cgm.

Line 
1//-------------------------------------------------------------------------
2// Filename      : CompositeCoSurf.hpp
3//
4// Purpose       : CoSurface for composite topology
5//
6// Special Notes :
7//
8// Creator       : Jason Kraftcheck
9//
10// Creation Date : 08/07/02
11//-------------------------------------------------------------------------
12
13#ifndef COMPOSITE_CO_SURFACE
14#define COMPOSITE_CO_SURFACE
15
16#include "CubitDefines.h"
17
18class CompositeSurface;
19class CompositeShell;
20
21class CompositeCoSurf
22{
23
24  friend class CompositeSurface;
25  friend class CompositeShell;
26
27  public:
28
29    CompositeCoSurf( CubitSense sense = CUBIT_FORWARD );
30    ~CompositeCoSurf();
31
32    CompositeSurface* get_surface() const;
33    CompositeShell* get_shell() const;
34   
35    CubitSense sense() const;
36    void sense( CubitSense set );
37   
38    CompositeCoSurf* next_in_surface() const;
39    CompositeCoSurf* next_in_shell() const;
40 
41    void print_debug_info( const char* line_prefix = 0, bool brief = false );
42   
43  private:
44 
45    CubitSense mySense;
46   
47    CompositeSurface* mySurface;
48    CompositeCoSurf* surfaceNext;
49   
50    CompositeShell* myShell;
51    CompositeCoSurf* shellNext;
52};
53
54inline CompositeCoSurf::CompositeCoSurf( CubitSense sense ) 
55  : mySense(sense),
56    mySurface(0),
57    surfaceNext(0),
58    myShell(0),
59    shellNext(0)
60  {}
61
62inline CompositeSurface* CompositeCoSurf::get_surface() const
63  { return mySurface; }
64
65inline CompositeShell* CompositeCoSurf::get_shell() const
66  { return myShell; }
67
68inline CompositeCoSurf* CompositeCoSurf::next_in_surface() const
69  { return surfaceNext; }
70
71inline CompositeCoSurf* CompositeCoSurf::next_in_shell() const
72  { return shellNext; }
73
74inline CubitSense CompositeCoSurf::sense() const
75  { return mySense; }
76
77inline void CompositeCoSurf::sense( CubitSense set ) 
78  { mySense = set; }
79
80
81
82#endif
83
84
85   
Note: See TracBrowser for help on using the browser.