12 #ifndef __WXCANPROP_H__
13 #define __WXCANPROP_H__
89 void SetFill(
const a2dFill& fill );
121 void SetStroke(
const a2dStroke& stroke );
130 #if wxART2D_USE_CVGIO
133 #endif //wxART2D_USE_CVGIO
171 double GetExtrudeDepth()
const {
return m_depth; }
173 double GetExtrudeAngle()
const {
return m_angle3d; }
175 void SetExtrudeDepth(
double depth ) { m_depth = depth; }
176 void SetExtrudeAngle(
double angle3d ) { m_angle3d =
wxDegToRad( angle3d ); }
182 #if wxART2D_USE_CVGIO
185 #endif //wxART2D_USE_CVGIO
217 void SetObject( wxObject*
object );
232 virtual
void SetVisible(
bool visible ) { m_visible = visible; }
285 #if wxART2D_USE_CVGIO
288 #endif //wxART2D_USE_CVGIO
306 #if defined(WXART2D_USINGDLL)
350 virtual void SetVisible(
bool visible ) { m_visible = visible; }
365 virtual
a2dObject* GetRefObjectNA() const;
374 #if wxART2D_USE_CVGIO
377 #endif //wxART2D_USE_CVGIO
398 DECLARE_EVENT_TABLE()
418 void ShowName(
bool show =
false );
429 #if wxART2D_USE_CVGIO
433 #endif //wxART2D_USE_CVGIO
435 void OnChar( wxKeyEvent& event );
500 virtual wxString StringRepresentation()
const;
502 virtual wxString StringValueRepresentation()
const;
504 #if wxART2D_USE_CVGIO
507 #endif //wxART2D_USE_CVGIO
544 void SetValue( a2dTagVec value );
546 a2dTagVec GetValue()
const {
return m_value; }
548 a2dTagVec* GetValuePtr() {
return &m_value; }
550 a2dTagVec& GetValueRef() {
return m_value; }
552 virtual wxString StringRepresentation()
const;
554 virtual wxString StringValueRepresentation()
const;
556 void PushTag( a2dTag tag );
562 #if wxART2D_USE_CVGIO
565 #endif //wxART2D_USE_CVGIO
Display Part of a a2dDrawing, in which a2dCanvasObjects are shown.
virtual void Assign(const a2dNamedProperty &other)=0
Virtual assignment operator.
a2dText derived from a2dCanvasObject, holds multiline text
(In) Visible property that can be added to Docview Objects.
a2dCanvasObject * m_parent
object which contains m_propId
all basic primitives derived from a2dCanvasObject
Base class for all types of strokes, understood by a2dDrawer2D classes.
mouse event sent from a2dCanvasObject to itself
class to map references to objects stored in XML, in order to make the connection later on...
Creates a shadow behind a a2dCanvasObject when added as property.
void SetSelectedOnly(bool selectedonly)
is set true, the object will only be rendered, if the owning object is selected
void SetValue(a2dCanvasObject *newvalue)
Set property value.
polygon defined with list of points.
virtual wxString StringRepresentation() const
double wxDegToRad(double deg)
conversion from degrees to radians
This template class is for property ids meant for properties that do not encapsulate another type...
bool GetCanRender() const
return true if the object can be rendered.
Defines a font to be set to a2dDrawer2D or stored in a2dCanvsObject etc.
Input and output handler for the XmlSer format.
OVERLAP
Result of a a2dBoundingBox intersection or hittest.
virtual a2dObject * GetRefObject() const
to get the a2dCanvasObject*
const a2dPropertyId * m_propId
the property id for which the value needs to be displayed.
The base class for all drawable objects in a a2dCanvasDocument.
wxUint32 m_resolveid
when loading a document, this is used to resolve references to objects
a2dCanvasObject is the base class for Canvas Objects.
property to hold a byte integer type vector to be associated with a a2dObject
a2dCanvasObject * GetParent(void) const
to get the parent where the m_propId is searched for.
a2dCanvasObjectPtr m_object
object held by this property.
bool GetPreRender() const
returns the current prerender setting.
wxUint64 a2dCanvasObjectFlagsMask
mask flags for a2dCanvasObject
Io handler to iterate through a a2dDocument.
a2dFillStyle
Filling styles for a2dFill.
a2dText is an abstract base class.
void SetPreRender(bool prerender)
is set true, the object within this property will be rendered before its parent a2dCanvasObject ...
bool m_render
in case of a grahics application, should this property be rendered.
bool GetSelectedOnly() const
returns the current only selected setting.
layer settings for a a2dCanvasDocument Holds layers settings classes
(In)Visible property that can be added to Canvas Objects.
a2dTag a2dNewTag()
Generate new tag for grouping.
virtual a2dPolygonL * GetClipObject() const
return a2dPolygonL that is used for clipping
a2dNamedProperty * Clone(a2dObject::CloneOptions options, a2dRefMap *refs=NULL) const
Virtual copy constructor.
const a2dFill & GetFill() const
Input and output handler for the XmlSer format.
Invisible Style property that can be added to Canvas Objects.
bool m_showname
Indicates if both name and value of the property are visible, or just the value.
bool m_visible
see SetVisible()
bool m_visible
see SetVisible()
A 2x3 affine matrix class for 2D transformations.
const a2dPropertyId * GetPropId()
get the id of the property displayed by this object
void SetCanRender(bool render)
if object can be rendered or not.
while iterating a a2dCanvasDocument, this holds the context.
bool m_render
in case of a grahics application, should this property be rendered.
a2dBooleanClip
Used for defining how a ClippingRegion defined as a polygon is combined with.
const a2dFont * a2dDEFAULT_CANVASFONT
global a2dFont stock object for default font
Clipping Path property that can be added to a2dCanvasObject's.
void SetCanRender(bool render)
if object can be rendered or not.
virtual a2dObject * GetRefObjectNA() const
when a2dProperty, return its value else return NULL
virtual bool GetVisible() const
return true if the object is visible.
This is the base class for all kinds of property id's for a2dObject.
property to hold a a2dCanvasObject pointer type variable to be associated with a canvasobject ...
const a2dStroke & GetStroke() const
virtual wxString StringValueRepresentation() const
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
virtual bool GetVisible() const
return true if the object is visible.
all polygon and polyline a2dCanvasObject are here.
This template class is for property ids with a known data type.
property to hold a a2dBoundingBox type variable to be associated with a canvasobject ...
a2dStrokeStyle
stroke styles for a2dStroke
virtual void SetVisible(bool visible)
the object is visible or not.
CloneOptions
options for cloning
bool GetCanRender() const
return true if the object can be rendered.
a2dCanvasObject * GetValue() const
Get property value.