MarSTDv2004: CBrush.h Source File

MarSTDv2004

CBrush.h

Go to the documentation of this file.
00001 #ifndef __Cbrush_h__
00002 #define __Cbrush_h__
00003 
00005 // MarSTD version 2004 - (c)2004 - Marcel Smit                      //
00006 //                                                                  //
00007 // [email protected]                                      //
00008 // [email protected]                                          //
00009 //                                                                  //
00010 // This code may not be used in a commercial product without my     //
00011 // permission. If you redistribute it, this message must remain     //
00012 // intact. If you use this code, some acknowledgement would be      //
00013 // appreciated. ;-)                                                 //
00015 
00017 
00018 
00019 
00020 #include "CList.h"
00021 #include "CPlane.h"
00022 #include "CPoly.h"
00023 
00025 
00072 class CBrush
00073 {
00074 
00075     public:
00076 
00077         CBrush();
00078         ~CBrush();
00079 
00080     public:
00081 
00082         CPlane* planeHead;     
00083         CPlane* planeTail;     
00084         int planeCount;        
00085     void* data;            
00086 
00087     public:
00088 
00089         CPlane* add(CPlane* plane);
00090         CPlane* addHead(CPlane* plane);
00091         CPlane* addTail(CPlane* plane);
00092         void remove(CPlane* plane);
00093         CPlane* unlink(CPlane* plane);
00094         void clear();
00095 
00096     public:
00097 
00098         bool convex(); 
00099 
00103         CPoly* initial(CPlane* plane);
00108         CPoly* poly(CPlane* plane);
00112         CMesh* mesh();
00116         CEdge* points();
00117 
00118     public:
00119 
00120         CBrush* copy();              
00121         CBrush* clip(CPlane* plane); 
00122         
00123     public:
00124  
00125         CBrush* prev;
00126         CBrush* next;
00127   
00128     public:
00129  
00130         CBrush* unlink();
00131 
00132 };
00133 
00134 #endif

Generated on Tue Feb 8 21:59:02 2005 for MarSTDv2004 by  doxygen 1.4.1