class PShape: public PObject, public PCanvasState

A class representing a graphics shape object.

Inheritance:


Public

[more] Construction


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Inherited from PCanvasState:

Public Classes

oenum PenStyles
oenum DrawingModes
oenum PolyFillMode

Public Methods

ovirtual BOOL SetPenStyle( PenStyles style )
oPenStyles GetPenStyle() const
ovirtual BOOL SetPenWidth( int width )
oint GetPenWidth() const
ovirtual BOOL SetPenMode( DrawingModes mode )
oDrawingModes GetPenMode() const
ovirtual BOOL SetPenFgColour( const PColour & colour )
oconst PColour& GetPenFgColour() const
ovirtual BOOL SetPenBkColour( const PColour & colour )
oconst PColour& GetPenBkColour() const
ovirtual BOOL SetFillPattern( const PPattern & pattern )
oPPattern GetFillPattern() const
ovirtual BOOL SetPatternOrigin( const PPoint & pt )
oPPoint GetPatternOrigin() const
ovirtual BOOL SetFillMode(DrawingModes style)
oDrawingModes GetFillMode() const
ovirtual BOOL SetFillFgColour( const PColour & colour )
oconst PColour& GetFillFgColour() const
ovirtual BOOL SetFillBkColour( const PColour & colour )
oconst PColour& GetFillBkColour() const
ovirtual BOOL SetFont(const PFont & newFont)
oPFont GetFont() const
ovirtual BOOL SetTextFgColour( const PColour & colour )
oconst PColour& GetTextFgColour() const
ovirtual BOOL SetTextBkColour( const PColour & colour )
oconst PColour& GetTextBkColour() const
ovirtual BOOL SetPolyFillMode( PolyFillMode newMode )
oPolyFillMode GetPolyFillMode() const
ovirtual BOOL SetPalette( const PPalette & newPal )
oPPalette GetPalette() const
ovirtual BOOL SetMappingRect( const PRect & rect )
oPRect GetMappingRect() const
ovirtual BOOL SetViewportRect( const PRect & rect )
oPRect GetViewportRect() const
ovoid SetOrigin(const PPoint & pt)
oPPoint GetOrigin() const

Public

New functions for class


Documentation

A class representing a graphics shape object. This is an abstract class for a number of objects representing graphics that may be drawn on a canvas, eg \ref{PLine} or \ref{PEllipse} etc.

A shape has all the niformation needed to draw it. This comes from the PCanvasState ancestor plus shape specific information such as the end points for a line.

All shapes have at least a position, plus the capability of a common set of behavour as defined by this class, eg the \ref{Draw()} function draws the shape on a \ref{PCanvas}.

o Construction

o PShape( PORDINATE x, PORDINATE y )
Create a new graphic shape.
Parameters:
x - Horizontal position for the shape.
y - Vertical position for the shape.

o PShape( const PPoint & pt )
Create a new graphic shape.
Parameters:
pt - Position for the shape.


Direct child classes:
PTextLines
PPolyShape
POrthoShape
PLine
PCompositeShape

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.