VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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.

Protected Attributes

DtWindowEllipseInstancemyInstance

Detailed Description

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


Constructor & Destructor Documentation

CTOR.

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.

Get the line instance for the line.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)