12 #ifndef __STYLEPROP_H__
13 #define __STYLEPROP_H__
19 #include "wx/geometry.h"
31 #if defined(WXART2D_USINGDLL)
66 void SetValue(
const a2dFill& value );
68 const a2dFill& GetValue()
const {
return m_value; }
70 virtual wxString StringRepresentation()
const;
72 virtual wxString StringValueRepresentation()
const;
77 #endif //wxART2D_USE_CVGIO
122 const a2dStroke& GetValue()
const {
return m_value; }
124 virtual wxString StringRepresentation()
const;
126 virtual wxString StringValueRepresentation()
const;
128 #if wxART2D_USE_CVGIO
131 #endif //wxART2D_USE_CVGIO
173 void SetValue(
const a2dFont& value );
175 const a2dFont& GetValue()
const {
return m_value; }
177 virtual wxString StringRepresentation()
const;
179 virtual wxString StringValueRepresentation()
const;
181 #if wxART2D_USE_CVGIO
184 #endif //wxART2D_USE_CVGIO
211 a2dCanvasObjectStroke();
214 a2dCanvasObjectStroke( const a2dCanvasObjectStroke& stroke );
217 a2dCanvasObjectStroke( a2dCanvasObject* object );
220 a2dCanvasObjectStroke( a2dCanvasObject* object, const wxColour& col, float width = 0, a2dStrokeStyle style = a2dSTROKE_SOLID);
223 a2dCanvasObjectStroke( a2dCanvasObject* object, const wxPen& stroke );
226 a2dCanvasObjectStroke( a2dCanvasObject* object, const wxColour& col, int width, a2dStrokeStyle style = a2dSTROKE_SOLID);
229 virtual a2dObject* Clone() const;
232 ~a2dCanvasObjectStroke();
234 float GetExtend() const;
236 void Render( a2dIterC& ic, a2dDrawer2D* drawer, const a2dBoundingBox& clipobj, int n, wxPoint points[] );
238 void SetDistance( double distance ) { m_distance = distance; }
240 DECLARE_DYNAMIC_CLASS(a2dCanvasObjectStroke)
244 #if wxART2D_USE_CVGIO
245 virtual void DoLoad( wxObject* parent, a2dIOHandlerXmlSerIn& parser, a2dXmlSer_flag xmlparts );
246 virtual void DoSave( wxObject* parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts , a2dObjectList* towrite );
247 #endif //wxART2D_USE_CVGIO
249 a2dCanvasObjectPtr m_obj;
(In) Visible property that can be added to Docview Objects.
Base class for all types of strokes, understood by a2dDrawer2D classes.
Stroke and fill base classes.
class to map references to objects stored in XML, in order to make the connection later on...
a2dIOHandlerCVGIn and a2dIOHandlerCVGOut - XML I/O classes for the CVG format.
Defines a font to be set to a2dDrawer2D or stored in a2dCanvsObject etc.
Input and output handler for the XmlSer format.
The base class for all drawable objects in a a2dCanvasDocument.
a2dCanvasObject is the base class for Canvas Objects.
property to hold a a2dFont type variable to be associated with a a2dObject
bounding class for optimizing drawing speed.
Drawing context abstraction.
Input and output handler for the XmlSer format.
while iterating a a2dCanvasDocument, this holds the context.
property to hold a a2dStroke type variable to be associated with a a2dObject
This template class is for property ids with a known data type.
property to hold a a2dFill type variable to be associated with a a2dObject
CloneOptions
options for cloning
basic 2 point line class for intersection and contouring routines.