cgma
CompositeCoSurf.hpp
Go to the documentation of this file.
00001 //-------------------------------------------------------------------------
00002 // Filename      : CompositeCoSurf.hpp
00003 //
00004 // Purpose       : CoSurface for composite topology
00005 //
00006 // Special Notes : 
00007 //
00008 // Creator       : Jason Kraftcheck
00009 //
00010 // Creation Date : 08/07/02
00011 //-------------------------------------------------------------------------
00012 
00013 #ifndef COMPOSITE_CO_SURFACE
00014 #define COMPOSITE_CO_SURFACE
00015 
00016 #include "CubitDefines.h"
00017 
00018 class CompositeSurface;
00019 class CompositeShell;
00020 
00021 class CompositeCoSurf
00022 {
00023 
00024   friend class CompositeSurface;
00025   friend class CompositeShell;
00026 
00027   public:
00028 
00029     CompositeCoSurf( CubitSense sense = CUBIT_FORWARD );
00030     ~CompositeCoSurf();
00031 
00032     CompositeSurface* get_surface() const;
00033     CompositeShell* get_shell() const;
00034     
00035     CubitSense sense() const;
00036     void sense( CubitSense set );
00037     
00038     CompositeCoSurf* next_in_surface() const;
00039     CompositeCoSurf* next_in_shell() const;
00040   
00041     void print_debug_info( const char* line_prefix = 0, bool brief = false );
00042     
00043   private:
00044   
00045     CubitSense mySense;
00046     
00047     CompositeSurface* mySurface;
00048     CompositeCoSurf* surfaceNext;
00049     
00050     CompositeShell* myShell;
00051     CompositeCoSurf* shellNext;
00052 };
00053 
00054 inline CompositeCoSurf::CompositeCoSurf( CubitSense sense ) 
00055   : mySense(sense),
00056     mySurface(0),
00057     surfaceNext(0),
00058     myShell(0),
00059     shellNext(0)
00060   {}
00061 
00062 inline CompositeSurface* CompositeCoSurf::get_surface() const
00063   { return mySurface; }
00064 
00065 inline CompositeShell* CompositeCoSurf::get_shell() const
00066   { return myShell; }
00067 
00068 inline CompositeCoSurf* CompositeCoSurf::next_in_surface() const
00069   { return surfaceNext; }
00070 
00071 inline CompositeCoSurf* CompositeCoSurf::next_in_shell() const
00072   { return shellNext; }
00073 
00074 inline CubitSense CompositeCoSurf::sense() const
00075   { return mySense; }
00076 
00077 inline void CompositeCoSurf::sense( CubitSense set ) 
00078   { mySense = set; }
00079 
00080 
00081 
00082 #endif
00083 
00084 
00085     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines