VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Attributes
makVrv::DtWindowObject Class Reference

Base class for a graphical object that exists in a window Implements a parenting system for DtWindowObjects. More...

Inheritance diagram for makVrv::DtWindowObject:
Inheritance graph
[legend]

Classes

struct  DtClipBox
 typedef for this objects's clip coords, each window object has a clip box specified, however, only DtWindowSurface()'s can set the clip box limits. More...
 

Public Types

typedef std::list< DtUniqueIDChildList
 typedef list for holding the IDs of the children of this class More...
 
typedef DtVector2< doubleDtVector2d
 typedef 2D Vector More...
 
typedef DtMatrix3< doubleTransform
 typedef 3x3 Matrix for holding this object's transform More...
 

Public Member Functions

 DtWindowObject (DtDe &de, DtUniqueID id)
 CTOR. More...
 
virtual ~DtWindowObject ()
 DTOR. More...
 
virtual void setVisible (bool visible)
 Set / Get the window object's visibility in the window. More...
 
virtual bool visible ()
 
virtual DtUniqueID uniqueId ()
 Returns the unique ID of this object. More...
 
DtWindowObjectgetParent ()
 Get the parent windowObject. More...
 
virtual ChildList childList ()
 Returns the child list. More...
 
virtual void addChild (DtUniqueID id)
 Add a child to this objects child list. More...
 
virtual void removeChild (DtUniqueID id)
 Remove a child from this objects child list. More...
 
virtual void setColor (float r, float g, float b, float a)
 Set / Get the objects's color. More...
 
virtual void getColor (float &r, float &g, float &b, float &a)
 
virtual void needsUpdate ()
 Called when position/rotation/scale are updated A windowObject's parent will also call this method on all of it's children to update it's values. More...
 
virtual Transform windowTransform ()
 Get the window transform that is the total transform of this object and all it's parents. More...
 
virtual DtVector2d windowScale ()
 Get the window scale of the object. More...
 
virtual DtClipBox clipBox ()
 Get this object's clip box specifications. More...
 
virtual void setParentId (DtUniqueID parentId)
 Get / Set Parent IDs. More...
 
virtual DtUniqueID getParentId ()
 
virtual void setPosition (double x, double y)
 Set / Get the window position of this object. More...
 
virtual void getPosition (double &x, double &y)
 
virtual void setScale (double scale)
 Set / Get the scale of the x y components. More...
 
virtual void setScale (double x, double y)
 
virtual void getScale (double &x, double &y)
 
virtual void setRotation (double rotation)
 Set / Get the rotation of the window object around it's set position, (0.0,0.0) if none is set. More...
 
virtual void getRotation (double &rotation)
 
virtual void setInheritColor (bool inheritColor)
 Set / Get whether this object inherits it's color from it's parent. More...
 
virtual bool inheritColor ()
 

Protected Attributes

DtDemyDe
 
DtUniqueID myUniqueId
 
DtUniqueID myParentId
 
ChildList myChildIdList
 
DtVector2d myPosition
 
DtVector2d myScale
 
DtVector2d myWindowScale
 
double myRotation
 
bool myVisible
 
bool myInheritColor
 
float myColorR
 
float myColorG
 
float myColorB
 
float myColorA
 
Transform myRelativeTransform
 
Transform myWindowTransform
 
DtClipBox myClipBox
 

Detailed Description

Base class for a graphical object that exists in a window Implements a parenting system for DtWindowObjects.

Member Typedef Documentation

typedef list for holding the IDs of the children of this class

typedef 2D Vector

typedef 3x3 Matrix for holding this object's transform

Constructor & Destructor Documentation

makVrv::DtWindowObject::DtWindowObject ( DtDe de,
DtUniqueID  id 
)

CTOR.

virtual makVrv::DtWindowObject::~DtWindowObject ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtWindowObject::setVisible ( bool  visible)
virtual

Set / Get the window object's visibility in the window.

Reimplemented in makVrv::DtWindowArc, makVrv::DtOsgWindowArc, makVrv::DtWindowLine, makVrv::DtWindowEllipse, makVrv::DtWindowText, and makVrv::DtWindowPolygon.

virtual bool makVrv::DtWindowObject::visible ( )
virtual
virtual DtUniqueID makVrv::DtWindowObject::uniqueId ( )
virtual

Returns the unique ID of this object.

virtual void makVrv::DtWindowObject::setParentId ( DtUniqueID  parentId)
virtual

Get / Set Parent IDs.

virtual DtUniqueID makVrv::DtWindowObject::getParentId ( )
virtual
DtWindowObject* makVrv::DtWindowObject::getParent ( )

Get the parent windowObject.

virtual ChildList makVrv::DtWindowObject::childList ( )
virtual

Returns the child list.

virtual void makVrv::DtWindowObject::addChild ( DtUniqueID  id)
virtual

Add a child to this objects child list.

virtual void makVrv::DtWindowObject::removeChild ( DtUniqueID  id)
virtual

Remove a child from this objects child list.

virtual void makVrv::DtWindowObject::setPosition ( double  x,
double  y 
)
virtual

Set / Get the window position of this object.

virtual void makVrv::DtWindowObject::getPosition ( double x,
double y 
)
virtual
virtual void makVrv::DtWindowObject::setScale ( double  scale)
virtual

Set / Get the scale of the x y components.

virtual void makVrv::DtWindowObject::setScale ( double  x,
double  y 
)
virtual
virtual void makVrv::DtWindowObject::getScale ( double x,
double y 
)
virtual
virtual void makVrv::DtWindowObject::setRotation ( double  rotation)
virtual

Set / Get the rotation of the window object around it's set position, (0.0,0.0) if none is set.

virtual void makVrv::DtWindowObject::getRotation ( double rotation)
virtual
virtual void makVrv::DtWindowObject::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual
virtual void makVrv::DtWindowObject::getColor ( float &  r,
float &  g,
float &  b,
float &  a 
)
virtual
virtual void makVrv::DtWindowObject::setInheritColor ( bool  inheritColor)
virtual

Set / Get whether this object inherits it's color from it's parent.

virtual bool makVrv::DtWindowObject::inheritColor ( )
virtual
virtual void makVrv::DtWindowObject::needsUpdate ( )
virtual

Called when position/rotation/scale are updated A windowObject's parent will also call this method on all of it's children to update it's values.

Reimplemented in makVrv::DtWindowLine, makVrv::DtOsgWindowArc, makVrv::DtWindowText, makVrv::DtWindowEllipse, and makVrv::DtWindowPolygon.

virtual Transform makVrv::DtWindowObject::windowTransform ( )
virtual

Get the window transform that is the total transform of this object and all it's parents.

virtual DtVector2d makVrv::DtWindowObject::windowScale ( )
virtual

Get the window scale of the object.

This is total scale including this object's parent

virtual DtClipBox makVrv::DtWindowObject::clipBox ( )
virtual

Get this object's clip box specifications.

Member Data Documentation

DtDe& makVrv::DtWindowObject::myDe
protected
DtUniqueID makVrv::DtWindowObject::myUniqueId
protected
DtUniqueID makVrv::DtWindowObject::myParentId
protected
ChildList makVrv::DtWindowObject::myChildIdList
protected
DtVector2d makVrv::DtWindowObject::myPosition
protected
DtVector2d makVrv::DtWindowObject::myScale
protected
DtVector2d makVrv::DtWindowObject::myWindowScale
protected
double makVrv::DtWindowObject::myRotation
protected
bool makVrv::DtWindowObject::myVisible
protected
bool makVrv::DtWindowObject::myInheritColor
protected
float makVrv::DtWindowObject::myColorR
protected
float makVrv::DtWindowObject::myColorG
protected
float makVrv::DtWindowObject::myColorB
protected
float makVrv::DtWindowObject::myColorA
protected
Transform makVrv::DtWindowObject::myRelativeTransform
protected
Transform makVrv::DtWindowObject::myWindowTransform
protected
DtClipBox makVrv::DtWindowObject::myClipBox
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)