VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Attributes
makVrv::DtWindowEllipse Class Reference

A model-like object that draws a 2D ellipse. More...

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

Public Member Functions

 DtWindowEllipse (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtWindowEllipse ()
 DTOR.
virtual void setCenter (double x, double y)
 Set the center of the ellipse in normalized screen coordinates.
virtual void setDimensions (double xLength, double yLength)
 Set the dimensions of the ellipse (the lengths of its axes) in normalizes screen coordinates.
virtual void setNumVertices (int numVertices)
 Set the number of vertices to use in approximating the ellipse; Default is 32.
virtual void setScale (double scale)
 Set the ellipse's scale.
virtual void setRotation (double rotation)
 Set the ellipse's clockwise rotation in radians.
virtual void setVisible (bool isVisible)
 Set the ellipse's visibility.
virtual void setStipplePattern (unsigned int stipplePattern)
 Set the stipple pattern.
virtual void setColor (float r, float g, float b, float a)
 Set the ellipse's color.
virtual void setFill (bool fill)
 Set the ellipse to filled or outlined.
virtual void setInstance (DtWindowEllipseInstance *instance)
 Set or replace the line instance for the line Transfers ownership.
virtual DtWindowEllipseInstanceinstance ()
 Get the line instance for the line.
- Public Member Functions inherited from makVrv::DtWindowObject
 DtWindowObject (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtWindowObject ()
 DTOR.

Protected Attributes

DtWindowEllipseInstancemyInstance
- Protected Attributes inherited from makVrv::DtWindowObject
DtDemyDe
DtUniqueID myUniqueId

Detailed Description

A model-like object that draws a 2D ellipse.

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtWindowEllipse::~DtWindowEllipse ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtWindowEllipse::setCenter ( double  x,
double  y 
)
virtual

Set the center of the ellipse in normalized screen coordinates.

For example, setCenter(0.1, 0.5) sets the center to 10% horizontally from the left of the creen and 50% vertically from the bottom

virtual void makVrv::DtWindowEllipse::setDimensions ( double  xLength,
double  yLength 
)
virtual

Set the dimensions of the ellipse (the lengths of its axes) in normalizes screen coordinates.

For example, setDimensions(0.3, 0.5) sets the ellipse to 30% of the screen size horizontally and 50% vertically.

virtual void makVrv::DtWindowEllipse::setNumVertices ( int  numVertices)
virtual

Set the number of vertices to use in approximating the ellipse; Default is 32.

virtual void makVrv::DtWindowEllipse::setScale ( double  scale)
virtual

Set the ellipse's scale.

virtual void makVrv::DtWindowEllipse::setRotation ( double  rotation)
virtual

Set the ellipse's clockwise rotation in radians.

virtual void makVrv::DtWindowEllipse::setVisible ( bool  isVisible)
virtual

Set the ellipse's visibility.

Implements makVrv::DtWindowObject.

virtual void makVrv::DtWindowEllipse::setStipplePattern ( unsigned int  stipplePattern)
virtual

Set the stipple pattern.

virtual void makVrv::DtWindowEllipse::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the ellipse's color.

virtual void makVrv::DtWindowEllipse::setFill ( bool  fill)
virtual

Set the ellipse to filled or outlined.

virtual void makVrv::DtWindowEllipse::setInstance ( DtWindowEllipseInstance instance)
virtual

Set or replace the line instance for the line Transfers ownership.

virtual DtWindowEllipseInstance* makVrv::DtWindowEllipse::instance ( )
virtual

Get the line instance for the line.

Member Data Documentation

DtWindowEllipseInstance* makVrv::DtWindowEllipse::myInstance
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)