a2dBarCurve Class Reference
[a2dCanvasObject related objectscomplex canvasobject'scomplex canvasobject's for drawing sets of curves]

Bars in a Curve represented by a number of vertexes. More...

#include <curve.h>

Inheritance diagram for a2dBarCurve:

Inheritance graph
[legend]
Collaboration diagram for a2dBarCurve:

Collaboration graph
[legend]

List of all members.

Public Types

enum  a2dBarRenderFlags {
  a2dBAR_RENDER_NO_POINTS = 0x0001, a2dBAR_RENDER_NORMAL = 0x0002, a2dBAR_RENDER_3D = 0x0004, a2dBAR_RENDER_LINE = 0x0008,
  a2dBAR_RENDER_DEFAULT = a2dCURVES_RENDER_NORMAL
}
 these flags define how curves are drawn More...

Public Member Functions

 a2dBarCurve (a2dVertexArray *points)
 a2dBarCurve (const a2dBarCurve &other, CloneOptions options)
void SetBarWidth (double barwidth)
double GetBarWidth ()
virtual a2dObjectClone (CloneOptions options) const
 This is here so that this class cannot be used directly.
double GetExtrudeDepth ()
double GetExtrudeAngle ()
void SetExtrudeDepth (double depth)
void SetExtrudeAngle (double angle3d)
void SetExtrudeFill (const a2dFill &fill)
const a2dFillGetExtrudeFill ()

Protected Member Functions

void DoWalker (wxObject *parent, a2dWalkerIOHandler &handler)
 iterate over this object and its children
virtual void DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
 write object specific CVGL data
void DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
 load object specific CVG data
void DoRender (a2dIterC &ic, OVERLAP clipparent)
 render derived object

Protected Attributes

double m_barwidth
double m_depth
double m_angle3d
a2dFill m_extrudeFill

Static Protected Attributes

static const a2dPropertyIdRefObject PROPID_extrudeFill


Detailed Description

Bars in a Curve represented by a number of vertexes.

Definition at line 963 of file curve.h.


Member Enumeration Documentation

these flags define how curves are drawn

Enumerator:
a2dBAR_RENDER_NO_POINTS  show no points on the curve
a2dBAR_RENDER_NORMAL  rectangular bar
a2dBAR_RENDER_3D  3d bars or 3d look
a2dBAR_RENDER_LINE  just one line
a2dBAR_RENDER_DEFAULT  like normal curve

Definition at line 969 of file curve.h.


Member Function Documentation

void a2dBarCurve::DoWalker ( wxObject *  parent,
a2dWalkerIOHandler handler 
) [protected, virtual]

iterate over this object and its children

This function allows you to extend the functionality of all a2dCanvasObject classes in a a2dCanvasDocument, without adding extra members to these objects.

Default functions are called on the a2dWalkerIOHandler, which redirect the calls to other functions based on this object its classname. On can register classes to a2dWalkerIOHandler or derived classes. This way for each unique object in the document there can be a function in a2dWalkerIOHandler.

Returns:
false if some object did not have a function attached via a2dWalkerIOHandler.
See a2dWalkerIOHandler for more.

Reimplemented from a2dCanvasObject.

Definition at line 2894 of file curve.cpp.

void a2dBarCurve::DoLoad ( wxObject *  parent,
a2dIOHandlerXmlSerIn parser,
a2dXmlSer_flag  xmlparts 
) [protected, virtual]

load object specific CVG data

todo ignore until this down here is fully converted.

Reimplemented from a2dVertexCurve.

Definition at line 3107 of file curve.cpp.

void a2dBarCurve::DoRender ( a2dIterC ic,
OVERLAP  clipparent 
) [protected, virtual]

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:

  • 1- clip object against area to redraw.
  • 2- iterate on layers when needed.
A a2dCanvasObject is rendered as a + (plus sign) when there or no children.

Reimplemented from a2dVertexCurve.

Definition at line 2950 of file curve.cpp.


The documentation for this class was generated from the following files:
a2dBarCurve Class Reference -- Tue Aug 31 18:11:47 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation