a2dWindowMM Class Reference
[a2dCanvasObject related objects]

a2dWindowMM More...

#include <rectangle.h>

Inheritance diagram for a2dWindowMM:

Inheritance graph
[legend]
Collaboration diagram for a2dWindowMM:

Collaboration graph
[legend]

List of all members.

Public Types

enum  a2dWindowMMStyle { SUNKEN = 0x0001, RAISED = 0x0002 }
enum  a2dWindowMMState {
  NON = 0x0000, DISABLED = 0x0001, SELECTED = 0x0002, FOCUS = 0x0004,
  HOVER = 0x0008, ALL = 0xFFFF
}

Public Member Functions

 a2dWindowMM (double x, double y, double w, double h)
 constructor
 a2dWindowMM (const a2dPoint2D &p1, const a2dPoint2D &p2)
 constructor
 a2dWindowMM (const a2dBoundingBox &bbox)
 constructor
 a2dWindowMM (const a2dWindowMM &rec, CloneOptions options)
void SetStyle (long style)
 Set drawing style for window see a2dWindowMMStyle.
long GetStyle ()
 Get drawing style for window see a2dWindowMMStyle.
void Init ()
 initialize
virtual a2dObjectClone (CloneOptions options) const
 Clone this object and return a pointer to the new object.
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
bool DoUpdate (UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
 Update derived Object specific things ( mainly boundingbox).

Protected Member Functions

void OnEnterObject (a2dCanvasObjectMouseEvent &event)
 called when the mouse enters the object
void OnLeaveObject (a2dCanvasObjectMouseEvent &event)
 called when the mouse leaves the object
void DoRender (a2dIterC &ic, OVERLAP clipparent)
 render derived object

Protected Attributes

long m_style
long m_state
a2dStroke m_backStroke
a2dStroke m_darkStroke
a2dStroke m_lightStroke
a2dStroke m_whiteStroke
a2dStroke m_blackStroke
a2dStroke m_hoverStroke


Detailed Description

a2dWindowMM

Rectangular Window with Min and Max coordinates.

Definition at line 189 of file rectangle.h.


Constructor & Destructor Documentation

a2dWindowMM::a2dWindowMM ( double  x,
double  y,
double  w,
double  h 
)

constructor

Parameters:
x,: x minimum
y,: y minimum
w,: Width of rectangle.
h,: Heigth of rectangle

Definition at line 691 of file rectangle.cpp.

a2dWindowMM::a2dWindowMM ( const a2dPoint2D p1,
const a2dPoint2D p2 
)

constructor

Parameters:
p1 one point of rectangle
p2 second point on diagonal

Definition at line 697 of file rectangle.cpp.

a2dWindowMM::a2dWindowMM ( const a2dBoundingBox bbox  ) 

constructor

Parameters:
bbox used for size of rectangle

Definition at line 703 of file rectangle.cpp.


Member Function Documentation

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

load object specific CVG data

todo ignore until this down here is fully converted.

Reimplemented from a2dRectMM.

Definition at line 877 of file rectangle.cpp.

bool a2dWindowMM::DoUpdate ( UpdateMode  mode,
const a2dBoundingBox childbox,
const a2dBoundingBox clipbox,
const a2dBoundingBox propbox 
) [virtual]

Update derived Object specific things ( mainly boundingbox).

Calculates the boundingbox of the object (exclusif base class child objects but with other nested objects).

Parameters:
mode way to update the objects
childbox size of children boundingbox
clipbox clip to this
propbox size of properties boundingbox
Remarks:
in a derived class this function can also be used to update object specific cache data.

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 a2dRectMM.

Reimplemented in a2dWidgetButton.

Definition at line 889 of file rectangle.cpp.

void a2dWindowMM::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 a2dRectMM.

Reimplemented in a2dWidgetButton.

Definition at line 760 of file rectangle.cpp.


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