SVGContext Class Reference

A class that is used for decomposing the SVG tree to polygons. More...

#include <SVG.h>

List of all members.

Public Member Functions

 SVGContext (ShapeMaker *aShapeMaker)
 Constructor.
bool init (int aStackSize, int aStackIncrement)
 Initializer.
void reset ()
 Resets the state of the context.
bool pushState ()
 Pushes the state of the context to the stack.
bool popState ()
 Pops the state of the context from the stack.
void setCurrentTransformation (const MATRIX2D &aTransformation)
 Sets the current transformation in the context.
void setCurrentColor (unsigned int aColor)
 Sets the current color.
void setCurrentOpacity (RATIONAL aOpacity)
 Sets the current opacity.
void setCurrentFillRule (RENDERER_FILLMODE aFillRule)
 Sets the current fill rule.
void setFillOff ()
 Sets the fill off.
const MATRIX2D & getCurrentTransformation ()
 Returns the current transformation.
unsigned int getCurrentColor ()
 Returns the current color.
RATIONAL getCurrentOpacity ()
 Returns the current opacity.
RENDERER_FILLMODE getCurrentFillRule ()
 Returns the current fill rule.
bool isFillOff ()
 Returns true if fill is off.
ShapeMakergetShapeMaker ()
 Returns a pointer to the shape maker.

Protected Attributes

MATRIX2D mCurrentTransformation
SVGPaint mCurrentPaint
RENDERER_FILLMODE mCurrentFillRule
ShapeMakermShapeMaker
SVGStack mStack


Detailed Description

A class that is used for decomposing the SVG tree to polygons.


Constructor & Destructor Documentation

SVGContext::SVGContext ShapeMaker aShapeMaker  ) 
 

Constructor.


Member Function Documentation

unsigned int SVGContext::getCurrentColor  ) 
 

Returns the current color.

RENDERER_FILLMODE SVGContext::getCurrentFillRule  ) 
 

Returns the current fill rule.

RATIONAL SVGContext::getCurrentOpacity  ) 
 

Returns the current opacity.

const MATRIX2D & SVGContext::getCurrentTransformation  ) 
 

Returns the current transformation.

ShapeMaker * SVGContext::getShapeMaker  ) 
 

Returns a pointer to the shape maker.

bool SVGContext::init int  aStackSize,
int  aStackIncrement
 

Initializer.

bool SVGContext::isFillOff  ) 
 

Returns true if fill is off.

bool SVGContext::popState  ) 
 

Pops the state of the context from the stack.

bool SVGContext::pushState  ) 
 

Pushes the state of the context to the stack.

void SVGContext::reset  ) 
 

Resets the state of the context.

void SVGContext::setCurrentColor unsigned int  aColor  ) 
 

Sets the current color.

void SVGContext::setCurrentFillRule RENDERER_FILLMODE  aFillRule  ) 
 

Sets the current fill rule.

void SVGContext::setCurrentOpacity RATIONAL  aOpacity  ) 
 

Sets the current opacity.

void SVGContext::setCurrentTransformation const MATRIX2D &  aTransformation  ) 
 

Sets the current transformation in the context.

void SVGContext::setFillOff  ) 
 

Sets the fill off.


Member Data Documentation

RENDERER_FILLMODE SVGContext::mCurrentFillRule [protected]
 

SVGPaint SVGContext::mCurrentPaint [protected]
 

MATRIX2D SVGContext::mCurrentTransformation [protected]
 

ShapeMaker* SVGContext::mShapeMaker [protected]
 

SVGStack SVGContext::mStack [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 3 00:44:42 2007 for Scanline edge-flag algorithm for antialiasing by  doxygen 1.4.6-NO