#include <rrcaps.h>
Public Member Functions | |
RRCaps () | |
Constructor. Sets all the params to FALSE. | |
RRCaps (const RRCaps &Other) | |
copies the data from one RRCaps object to another | |
~RRCaps () | |
default desctuctor | |
RRCaps & | operator= (const RRCaps &Other) |
copies the data from one RRCaps object to another | |
void | CanDoAll () |
Sets all the flags in the RRCaps object to TRUE. | |
void | CanDoNothing () |
Sets all the flags in the RRCaps object to FALSE. | |
BOOL | DoesRegionDoAll () |
This function helps to identify render regions that need no special treatment early on. If this function returns TRUE it means that there is nothing the region that this caps object belongs to can't do. | |
BOOL | DoesRegionDoNothing () |
This function helps to identify render regions that need special treatment early on. If this function returns TRUE it means that there is nothing the region can do. | |
Public Attributes | |
BOOL | Transparency |
BOOL | GradFills |
BOOL | PerspectiveGradFills |
BOOL | BitmapFills |
BOOL | PerspectiveBitmapFills |
BOOL | SimpleBitmaps |
BOOL | ArbitraryBitmaps |
BOOL | ClippedSimpleBitmaps |
BOOL | ClippedArbitraryBitmaps |
BOOL | LineAttrs |
BOOL | ArrowHeads |
BOOL | DashPatterns |
BOOL | Grad3and4Fills |
BOOL | ClippedOutput |
Private Member Functions | |
CC_DECLARE_MEMDUMP (RRCaps) |
Definition at line 132 of file rrcaps.h.
|
Constructor. Sets all the params to FALSE.
Definition at line 124 of file rrcaps.cpp. 00125 { 00126 // by default we can render nothing 00127 CanDoNothing(); 00128 }
|
|
copies the data from one RRCaps object to another
Definition at line 144 of file rrcaps.cpp. 00145 { 00146 // Copy all the params from the other one 00147 Transparency = Other.Transparency; 00148 GradFills = Other.GradFills; 00149 PerspectiveGradFills = Other.PerspectiveGradFills; 00150 BitmapFills = Other.BitmapFills; 00151 PerspectiveBitmapFills = Other.PerspectiveBitmapFills; 00152 LineAttrs = Other.LineAttrs; 00153 ArrowHeads = Other.ArrowHeads; 00154 DashPatterns = Other.DashPatterns; 00155 SimpleBitmaps = Other.SimpleBitmaps; 00156 ArbitraryBitmaps = Other.ArbitraryBitmaps; 00157 ClippedSimpleBitmaps = Other.ClippedSimpleBitmaps; 00158 ClippedArbitraryBitmaps = Other.ClippedArbitraryBitmaps; 00159 Grad3and4Fills = Other.Grad3and4Fills; 00160 ClippedOutput = Other.ClippedOutput; 00161 }
|
|
default desctuctor
Definition at line 209 of file rrcaps.cpp.
|
|
Sets all the flags in the RRCaps object to TRUE.
Definition at line 226 of file rrcaps.cpp. 00227 { 00228 // we can do everything 00229 Transparency = TRUE; 00230 GradFills = TRUE; 00231 PerspectiveGradFills = TRUE; 00232 BitmapFills = TRUE; 00233 PerspectiveBitmapFills = TRUE; 00234 LineAttrs = TRUE; 00235 ArrowHeads = TRUE; 00236 DashPatterns = TRUE; 00237 SimpleBitmaps = TRUE; 00238 ArbitraryBitmaps = TRUE; 00239 ClippedSimpleBitmaps = TRUE; 00240 ClippedArbitraryBitmaps = TRUE; 00241 Grad3and4Fills = TRUE; 00242 ClippedOutput = TRUE; 00243 }
|
|
Sets all the flags in the RRCaps object to FALSE.
Definition at line 256 of file rrcaps.cpp. 00257 { 00258 // we can do nothing :-( 00259 Transparency = FALSE; 00260 GradFills = FALSE; 00261 PerspectiveGradFills = FALSE; 00262 BitmapFills = FALSE; 00263 PerspectiveBitmapFills = FALSE; 00264 LineAttrs = FALSE; 00265 ArrowHeads = FALSE; 00266 DashPatterns = FALSE; 00267 SimpleBitmaps = FALSE; 00268 ArbitraryBitmaps = FALSE; 00269 ClippedSimpleBitmaps = FALSE; 00270 ClippedArbitraryBitmaps = FALSE; 00271 Grad3and4Fills = FALSE; 00272 ClippedOutput = FALSE; 00273 }
|
|
|
|
This function helps to identify render regions that need no special treatment early on. If this function returns TRUE it means that there is nothing the region that this caps object belongs to can't do.
Definition at line 290 of file rrcaps.cpp. 00291 { 00292 // See if everything is set to TRUE 00293 if ((Transparency==TRUE) && 00294 (GradFills==TRUE) && 00295 (PerspectiveGradFills==TRUE) && 00296 (BitmapFills==TRUE) && 00297 (PerspectiveBitmapFills==TRUE) && 00298 (SimpleBitmaps==TRUE) && 00299 (ArbitraryBitmaps==TRUE) && 00300 (ClippedSimpleBitmaps==TRUE) && 00301 (ClippedArbitraryBitmaps==TRUE) && 00302 (LineAttrs==TRUE) && 00303 (ArrowHeads==TRUE) && 00304 (DashPatterns==TRUE) && 00305 (Grad3and4Fills==TRUE) && 00306 (ClippedOutput==TRUE)) 00307 return TRUE; 00308 00309 // something was not set to TRUE 00310 return FALSE; 00311 }
|
|
This function helps to identify render regions that need special treatment early on. If this function returns TRUE it means that there is nothing the region can do.
Definition at line 327 of file rrcaps.cpp. 00328 { 00329 // See if everything is set to TRUE 00330 if ((Transparency==FALSE) && 00331 (GradFills==FALSE) && 00332 (PerspectiveGradFills==FALSE) && 00333 (BitmapFills==FALSE) && 00334 (PerspectiveBitmapFills==FALSE) && 00335 (SimpleBitmaps==FALSE) && 00336 (ArbitraryBitmaps==FALSE) && 00337 (ClippedSimpleBitmaps==FALSE) && 00338 (ClippedArbitraryBitmaps==FALSE) && 00339 (LineAttrs==FALSE) && 00340 (ArrowHeads==FALSE) && 00341 (DashPatterns==FALSE) && 00342 (Grad3and4Fills==FALSE) && 00343 (ClippedOutput==FALSE)) 00344 return TRUE; 00345 00346 // something was not set to TRUE 00347 return FALSE; 00348 }
|
|
copies the data from one RRCaps object to another
Definition at line 177 of file rrcaps.cpp. 00178 { 00179 // Copy all the params from the other one 00180 Transparency = Other.Transparency; 00181 GradFills = Other.GradFills; 00182 PerspectiveGradFills = Other.PerspectiveGradFills; 00183 BitmapFills = Other.BitmapFills; 00184 PerspectiveBitmapFills = Other.PerspectiveBitmapFills; 00185 LineAttrs = Other.LineAttrs; 00186 ArrowHeads = Other.ArrowHeads; 00187 DashPatterns = Other.DashPatterns; 00188 SimpleBitmaps = Other.SimpleBitmaps; 00189 ArbitraryBitmaps = Other.ArbitraryBitmaps; 00190 ClippedSimpleBitmaps = Other.ClippedSimpleBitmaps; 00191 ClippedArbitraryBitmaps = Other.ClippedArbitraryBitmaps; 00192 Grad3and4Fills = Other.Grad3and4Fills; 00193 ClippedOutput = Other.ClippedOutput; 00194 00195 // return it 00196 return *this; 00197 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|