wxShapeFramework  1.13.0 beta
wxSFArrowBase Class Reference

Base class for a line arrows. More...

#include <ArrowBase.h>

Inheritance diagram for wxSFArrowBase:
Collaboration diagram for wxSFArrowBase:

List of all members.

Public Member Functions

 XS_DECLARE_CLONABLE_CLASS (wxSFArrowBase)
 wxSFArrowBase (void)
 Default constructor.
 wxSFArrowBase (wxSFShapeBase *parent)
 Constructor.
 wxSFArrowBase (const wxSFArrowBase &obj)
 Copy constructor.
 ~wxSFArrowBase (void)
 Destructor.
void SetParentShape (wxSFShapeBase *parent)
 Set a parent of the arrow shape.
wxSFShapeBaseGetParentShape ()
 Get pointer to a parent shape.
virtual void Draw (const wxRealPoint &from, const wxRealPoint &to, wxDC &dc)
 Draw arrow shape at the end of a virtual line.

Protected Member Functions

void TranslateArrow (wxPoint *trg, const wxRealPoint *src, int n, const wxRealPoint &from, const wxRealPoint &to)
 Rotate and move arrow's vertices in accordance of virtual line at which end the arrow will be placed.

Protected Attributes

wxSFShapeBasem_pParentShape
 Pointer to a parent shape.

Friends

class wxSFLineShape

Detailed Description

Base class for a line arrows.


Constructor & Destructor Documentation

Default constructor.

Constructor.

Parameters:
parentPointer to a parent shape

Copy constructor.

Parameters:
objSource base arrow shape

Destructor.


Member Function Documentation

virtual void wxSFArrowBase::Draw ( const wxRealPoint &  from,
const wxRealPoint &  to,
wxDC &  dc 
) [virtual]

Draw arrow shape at the end of a virtual line.

Parameters:
fromStart of the virtual line
toEnd of the virtual line
dcDevice context for drawing

Reimplemented in wxSFSolidArrow, wxSFCircleArrow, wxSFOpenArrow, and wxSFDiamondArrow.

Get pointer to a parent shape.

Returns:
Pointer to a parent shape if exists, otherwise NULL
void wxSFArrowBase::SetParentShape ( wxSFShapeBase parent) [inline]

Set a parent of the arrow shape.

Parameters:
parentPointer to the parent shape
void wxSFArrowBase::TranslateArrow ( wxPoint *  trg,
const wxRealPoint *  src,
int  n,
const wxRealPoint &  from,
const wxRealPoint &  to 
) [protected]

Rotate and move arrow's vertices in accordance of virtual line at which end the arrow will be placed.

Parameters:
trgPointer to array where translated vertices will be stored
srcPointer to array of source vertices
nNumber of vertices
fromStart of the virtual line
toEnd of the virtual line

Friends And Related Function Documentation

friend class wxSFLineShape [friend]

Member Data Documentation

Pointer to a parent shape.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines