wxShapeFramework  1.13.0 beta
wxSFDiamondShape Class Reference

Class encapsulating the diamond shape. It extends the basic polygon shape. More...

#include <DiamondShape.h>

Inheritance diagram for wxSFDiamondShape:
Collaboration diagram for wxSFDiamondShape:

List of all members.

Public Member Functions

 XS_DECLARE_CLONABLE_CLASS (wxSFDiamondShape)
 wxSFDiamondShape ()
 Default constructor.
 wxSFDiamondShape (const wxRealPoint &pos, wxSFDiagramManager *manager)
 User constructor.
 wxSFDiamondShape (const wxSFDiamondShape &obj)
 Copy constructor.
virtual ~wxSFDiamondShape ()
 Destructor.
virtual bool Contains (const wxPoint &pos)
 Test whether the given point is inside the shape. The function can be overrided if neccessary.

Detailed Description

Class encapsulating the diamond shape. It extends the basic polygon shape.

See also:
wxSFPolygonShape

Constructor & Destructor Documentation

Default constructor.

wxSFDiamondShape::wxSFDiamondShape ( const wxRealPoint &  pos,
wxSFDiagramManager manager 
)

User constructor.

Parameters:
posInitial position
managerPointer to parent diagram manager

Copy constructor.

Parameters:
objReference to the source object
virtual wxSFDiamondShape::~wxSFDiamondShape ( ) [virtual]

Destructor.


Member Function Documentation

virtual bool wxSFDiamondShape::Contains ( const wxPoint &  pos) [virtual]

Test whether the given point is inside the shape. The function can be overrided if neccessary.

Parameters:
posExamined point
Returns:
TRUE if the point is inside the shape area, otherwise FALSE

Reimplemented from wxSFShapeBase.


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