Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::BasicFill Class Reference

This class is a basic implementation of the Fill interface. More...

#include <vcf/GraphicsKit/BasicFill.h>

Inheritance diagram for VCF::BasicFill:

VCF::Object VCF::Fill VCF::Interface List of all members.

Public Member Functions

 BasicFill ()
virtual ~BasicFill ()
virtual void setContext (GraphicsContext *context)
 sets the context for the fill.
virtual void render (Path *path)
 renders the fill using the current path.
Color getColor ()
 Gets the color for the fill.
void setColor (Color *color)
 Sets the color for the fill.
bool allowAntiAlias ()
 returns whether or not to allow antialiasing when rendering the fill
void setAllowAntiAlias (bool val)
 toggles whether or not to perform anti-aliasing when rendering the fill.

Protected Attributes

double opacity_
Color color_
GraphicsContextcontext_
bool antiAlias_

Detailed Description

This class is a basic implementation of the Fill interface.

It is suitable for rendering a solid color fill with optional alpha and anti-aliasing support. If anti-aliasing is turned on then an attempt will be made to render the fill using AGG, assuming a render buffer for the GraphicsContext is available. Alpha support is only used if the rendering is performed by AGG, otherwise it is ignored.

See also:
Fill


Constructor & Destructor Documentation

VCF::BasicFill::BasicFill  ) 
 

virtual VCF::BasicFill::~BasicFill  )  [virtual]
 


Member Function Documentation

bool VCF::BasicFill::allowAntiAlias  )  [inline]
 

returns whether or not to allow antialiasing when rendering the fill

Color VCF::BasicFill::getColor  )  [inline]
 

Gets the color for the fill.

virtual void VCF::BasicFill::render Path path  )  [virtual]
 

renders the fill using the current path.

The fill can retrieve the points for the path by calling either Path::getPoints() or Path::flattenPoints().

Implements VCF::Fill.

void VCF::BasicFill::setAllowAntiAlias bool  val  )  [inline]
 

toggles whether or not to perform anti-aliasing when rendering the fill.

void VCF::BasicFill::setColor Color color  )  [inline]
 

Sets the color for the fill.

virtual void VCF::BasicFill::setContext GraphicsContext context  )  [inline, virtual]
 

sets the context for the fill.

The GraphicsContext will call this when the GraphicsContext::setCurrrentFill() method is called.

Implements VCF::Fill.


Member Data Documentation

bool VCF::BasicFill::antiAlias_ [protected]
 

Color VCF::BasicFill::color_ [protected]
 

GraphicsContext* VCF::BasicFill::context_ [protected]
 

double VCF::BasicFill::opacity_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information