#include <PolyLine.h>
Inheritance diagram for VPolyLine:
Public Methods | |
void | AddVertex (int x, int y) |
Add a vertex to the line. | |
void | UpdateControlPoints () |
Rescan points to update boundaries. | |
VPolyLine () | |
VPolyLine (VPolyLine *) | |
VShape* | Clone () |
Creates a copy of the shape. | |
virtual string | Identify () const |
Identifies the class. | |
Drawing | |
void | Draw (ScreenState *, AppState *pApp) |
Draw the shape to the screen. | |
virtual void | DrawWhileDragged (MouseEvent *, ScreenState *, AppState *) |
While shape is being dragged. | |
Flash Output | |
virtual FShapeRec* | FlashSDKCreateShapeRecordForThisPoint (int *pnPoint, VPoint *ptCurrent) |
Adds the polyline's shape records when used in VShape::FlashSDKPushFrame. | |
Events | |
virtual bool | OnClick (MouseEvent *e, ScreenState *, AppState *) |
Shape has been clicked on. | |
virtual bool | OnRightClick (VShape::MouseEvent *e, ScreenState *pState, AppState *pApp) |
Shape has been right clicked / tap + holded. | |
virtual bool | OnDeSelect () |
Shape has lost focus. | |
virtual bool | OnDrag (MouseEvent *e, ScreenState *, AppState *) |
Shape has been dragged. | |
virtual VShape* | OnDragCompleted (MouseEvent *e, ScreenState *, AppState *) |
Drag has finished. | |
Iterators | |
virtual VPoint | GetPoint (int index) const |
Returns specified point in the shape. | |
virtual void | MovePoint (int index, int dx, int dy) |
Moves specified point in the shape. | |
virtual void | SetPoint (int index, int x, int y) |
Overwrites specified point in the shape. | |
virtual void | DeletePoint (int index) |
Deletes specified point in the shape. | |
virtual unsigned int | PointCount () const |
Returns number of points in shape. | |
Protected Attributes | |
vector<VPoint> | m_vpt |
Stores the points that make up the polyline. | |
unsigned int | m_nLastDrawnPoint |
Point last drawn to screen--for efficient drawing while the shape is being constructed. | |
bool | m_bSubObjectMode |
Stores whether the shape is in subobject (point editing) mode. |