#include <canprim.h>


Public Member Functions | |
| a2dScaledEndLine (double x1, double y1, double x2, double y2, double contourwidth=0) | |
| constructor | |
| a2dScaledEndLine (const a2dScaledEndLine &ori, CloneOptions options) | |
| constructor using a a2dEndsLine as input | |
| a2dScaledEndLine (const a2dSLine &ori, CloneOptions options) | |
| constructor | |
| ~a2dScaledEndLine () | |
| destructor | |
| virtual a2dObject * | Clone (CloneOptions options) const |
| Clone this object and return a pointer to the new object. | |
| void | SetBegin (double l1, double l2, double b, bool spline=false) |
| set begin shape factors if it is a2dArrow derived | |
| void | SetEnd (double l1, double l2, double b, bool spline=false) |
| set end shape factors if it is a2dArrow derived | |
Protected Member Functions | |
| bool | DoUpdate (UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox) |
| Update derived Object specific things ( mainly boundingbox). | |
| void | DoRender (a2dIterC &ic, OVERLAP clipparent) |
| render derived object | |
The begin and end object on the line are scaled to the contour width. In case of a a2dArrow derived object, rendering is optimized to look good. All types of end objects are scalled up m_contourwidth. If m_contourwidth is zero, there will be no endpoints drawn.
Definition at line 1962 of file canprim.h.
| a2dScaledEndLine::a2dScaledEndLine | ( | double | x1, | |
| double | y1, | |||
| double | x2, | |||
| double | y2, | |||
| double | contourwidth = 0 | |||
| ) |
constructor
| x1 | x line start | |
| y1 | y line start | |
| x2 | x line end | |
| y2 | y line end | |
| contourwidth | to give the line a width |
Definition at line 5921 of file canprim.cpp.
| bool a2dScaledEndLine::DoUpdate | ( | UpdateMode | mode, | |
| const a2dBoundingBox & | childbox, | |||
| const a2dBoundingBox & | clipbox, | |||
| const a2dBoundingBox & | propbox | |||
| ) | [protected, virtual] |
Update derived Object specific things ( mainly boundingbox).
Calculates the boundingbox of the object (exclusif base class child objects but with other nested objects).
| mode | way to update the objects | |
| childbox | size of children boundingbox | |
| clipbox | clip to this | |
| propbox | size of properties boundingbox |
force may or may not have direct influence on the object itself, if this function is called directly for some reason (e.g from derived objects), you must invalidate the boudingbox yourself. GetDrawerBox()->SetValid( false );
Reimplemented from a2dEndsLine.
Definition at line 5964 of file canprim.cpp.
render derived object
if the object has sub objects (apart from the childobject which are handled here), those subobject most rendered by iterating on layer when needed/wanted, simular to child objects. We do not iterate here, since that is only needed if indeed there or subobjects. This will be know in a "wxDerivedCanvasObject DoRender".
SO parent objects that call this function, must:
Reimplemented from a2dEndsLine.
Definition at line 6000 of file canprim.cpp.