#include <brush.h>
Public Methods | |
BRUSH () | |
~BRUSH () | |
int | Compare (const BRUSH &Brush) |
int | GetMyPosition () const |
void | SetMyPosition (int newPosition) |
bool | IsLast () |
BRUSH * | GetNext () |
void | AddBrush (BRUSH *Brush) |
void | SetNext (BRUSH *Brush) |
BRUSH * | CopyList () |
const bool | BRUSH::operator== (const BRUSH &Brush) const |
Public Attributes | |
int | linkPosition |
BRUSH * | NextBrush |
int | id |
int | numPolygons |
POLYGON | Polygon [30] |
|
Definition at line 19 of file brush.cpp. References id, NextBrush, and numPolygons.
00020 { 00021 NextBrush = NULL; 00022 numPolygons = 0; 00023 id = 0; 00024 } |
|
Definition at line 26 of file brush.cpp.
00027 { 00028 } |
|
Definition at line 80 of file brush.cpp. References GetNext(), IsLast(), and NextBrush. Referenced by CopyList(), and CreateBrushSet().
|
|
Definition at line 33 of file brush.h. References id, numPolygons, and Polygon.
00034 { 00035 if (id == Brush.id) 00036 { 00037 if (numPolygons == Brush.numPolygons) 00038 { 00039 for (int loop = 0; loop < numPolygons; loop++) 00040 { 00041 if (!(Polygon[loop] == Brush.Polygon[loop])) 00042 return false; 00043 } 00044 return true; 00045 } 00046 } 00047 return false; 00048 } |
|
Definition at line 99 of file brush.cpp. References bigger, linkPosition, same, and smaller.
00100 { 00101 if (linkPosition < Brush.linkPosition) 00102 return smaller; 00103 if (linkPosition > Brush.linkPosition) 00104 return bigger; 00105 else 00106 return same; 00107 } |
|
Definition at line 63 of file brush.cpp. References AddBrush(), id, IsLast(), NextBrush, numPolygons, and Polygon.
00064 { 00065 BRUSH* TempBrush = new BRUSH; 00066 00067 TempBrush->id = id; 00068 00069 TempBrush->numPolygons = numPolygons; 00070 00071 for (int loop = 0; loop < numPolygons; loop++) 00072 TempBrush->Polygon[loop] = Polygon[loop]; 00073 00074 if (!IsLast()) 00075 TempBrush->AddBrush(NextBrush->CopyList()); 00076 00077 return TempBrush; 00078 } |
|
Definition at line 16 of file brush.h. References linkPosition.
00016 {return linkPosition;} |
|
Definition at line 38 of file brush.cpp. References IsLast(), and NextBrush. Referenced by AddBrush(), CSGAddition(), DeleteList(), and SetNext().
|
|
Definition at line 30 of file brush.cpp. References NextBrush. Referenced by AddBrush(), CopyList(), DeleteList(), GetNext(), and SetNext().
00031 { 00032 if (NextBrush == NULL) 00033 return true; 00034 else 00035 return false; 00036 } |
|
Definition at line 17 of file brush.h. References linkPosition.
00017 {linkPosition = newPosition;} |
|
Definition at line 46 of file brush.cpp. References GetNext(), IsLast(), and NextBrush.
|
|
Definition at line 28 of file brush.h. Referenced by BRUSH(), BRUSH::operator==(), CopyList(), and ResetBrushes(). |
|
Definition at line 18 of file brush.h. Referenced by Compare(), GetMyPosition(), and SetMyPosition(). |
|
Definition at line 21 of file brush.h. Referenced by AddBrush(), BRUSH(), CopyList(), GetNext(), IsLast(), and SetNext(). |
|
Definition at line 29 of file brush.h. Referenced by BRUSH(), BRUSH::operator==(), CopyList(), CSGAddition(), InvertBrushPolygons(), RenderTexturedBrush(), RenderWireframeBrush(), ResetBrushes(), and SetBrushPolygons(). |
|
Definition at line 30 of file brush.h. Referenced by BRUSH::operator==(), CopyList(), CSGAddition(), InvertBrushPolygons(), RenderTexturedBrush(), RenderWireframeBrush(), ResetBrushes(), and SetBrushPolygons(). |