RRCaps Class Reference

This class has been designed to hold all the different things that a render region may or may not be able to render. eg. Some render regions can render transparency, while others can not. This class is used to record what your render region can do. It does this by having a flag for all the area of rendering that some regions can do and other can not. By default this class assumes that you can do nothing, so it is up to you to set the flags for the things you can do to TRUE. TRUE means you can render that type of thing, FALSE means that you can not. The flags to date are :-. More...

#include <rrcaps.h>

List of all members.

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
RRCapsoperator= (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)


Detailed Description

This class has been designed to hold all the different things that a render region may or may not be able to render. eg. Some render regions can render transparency, while others can not. This class is used to record what your render region can do. It does this by having a flag for all the area of rendering that some regions can do and other can not. By default this class assumes that you can do nothing, so it is up to you to set the flags for the things you can do to TRUE. TRUE means you can render that type of thing, FALSE means that you can not. The flags to date are :-.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/95
BOOL Transparency; BOOL GradFills; BOOL PerspectiveGradFills; BOOL BitmapFills; BOOL PerspectiveBitmapFills; BOOL LineAttrs; BOOL ArrowHeads; BOOL DashPatterns;

Definition at line 132 of file rrcaps.h.


Constructor & Destructor Documentation

RRCaps::RRCaps  ) 
 

Constructor. Sets all the params to FALSE.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/95

Definition at line 124 of file rrcaps.cpp.

00125 {
00126     // by default we can render nothing
00127     CanDoNothing();
00128 }

RRCaps::RRCaps const RRCaps Other  ) 
 

copies the data from one RRCaps object to another

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/95
Parameters:
Other - the one to copy [INPUTS]
Returns:
this one

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 }

RRCaps::~RRCaps  ) 
 

default desctuctor

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/95

Definition at line 209 of file rrcaps.cpp.

00210 {
00211     // does nothing
00212 }


Member Function Documentation

void RRCaps::CanDoAll  ) 
 

Sets all the flags in the RRCaps object to TRUE.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/95

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 }

void RRCaps::CanDoNothing  ) 
 

Sets all the flags in the RRCaps object to FALSE.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/95

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 }

RRCaps::CC_DECLARE_MEMDUMP RRCaps   )  [private]
 

BOOL RRCaps::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.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/4/95
Returns:
TRUE if the region that owns this RRCaps can do everything

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 }

BOOL RRCaps::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.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/4/95
Returns:
TRUE if the region that owns this RRCaps can do nothing.

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 }

RRCaps & RRCaps::operator= const RRCaps Other  ) 
 

copies the data from one RRCaps object to another

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/95
Parameters:
Other - the one to copy [INPUTS]
Returns:
this one

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 }


Member Data Documentation

BOOL RRCaps::ArbitraryBitmaps
 

Definition at line 163 of file rrcaps.h.

BOOL RRCaps::ArrowHeads
 

Definition at line 167 of file rrcaps.h.

BOOL RRCaps::BitmapFills
 

Definition at line 160 of file rrcaps.h.

BOOL RRCaps::ClippedArbitraryBitmaps
 

Definition at line 165 of file rrcaps.h.

BOOL RRCaps::ClippedOutput
 

Definition at line 170 of file rrcaps.h.

BOOL RRCaps::ClippedSimpleBitmaps
 

Definition at line 164 of file rrcaps.h.

BOOL RRCaps::DashPatterns
 

Definition at line 168 of file rrcaps.h.

BOOL RRCaps::Grad3and4Fills
 

Definition at line 169 of file rrcaps.h.

BOOL RRCaps::GradFills
 

Definition at line 158 of file rrcaps.h.

BOOL RRCaps::LineAttrs
 

Definition at line 166 of file rrcaps.h.

BOOL RRCaps::PerspectiveBitmapFills
 

Definition at line 161 of file rrcaps.h.

BOOL RRCaps::PerspectiveGradFills
 

Definition at line 159 of file rrcaps.h.

BOOL RRCaps::SimpleBitmaps
 

Definition at line 162 of file rrcaps.h.

BOOL RRCaps::Transparency
 

Definition at line 157 of file rrcaps.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:00:36 2007 for Camelot by  doxygen 1.4.4