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

Interface for a DtWindowPolygonInstance An object that draws a 2D Polygon. More...

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

Classes

struct  Vertex
 A 2D Vertex for the polygon. More...

Public Types

typedef std::vector< VertexVertexList

Public Member Functions

virtual ~DtWindowPolygonInstance ()
 DTOR.
virtual void setVertex (int i, double x, double y)=0
 Set the ith vertex of the polygon in screen coordinates from 0...1.
virtual void setFillPattern (unsigned int fillPattern)=0
 Set the polygon's fill pattern.
virtual void setFill (bool fill)=0
 Set the polygon filled or outlined.
virtual void setScale (double scale)=0
 Set the polygon's scale.
virtual void setRotation (double rotation)=0
 Set the polygon's rotation in radians clockwise.
virtual void setNumVertices (unsigned int numVertices)=0
 Set the number of vertices in the polygon.
virtual void setColor (float r, float g, float b, float a)=0
 Set the polygon's color.
virtual const VertexListvertices () const =0
 Get the polygon's vertices.
- Public Member Functions inherited from makVrv::DtSetVisibilityInterface
virtual ~DtSetVisibilityInterface ()
virtual void setVisible (bool visible)=0
 Set the visibility.

Detailed Description

Interface for a DtWindowPolygonInstance An object that draws a 2D Polygon.

Member Typedef Documentation

Constructor & Destructor Documentation

virtual makVrv::DtWindowPolygonInstance::~DtWindowPolygonInstance ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtWindowPolygonInstance::setVertex ( int  i,
double  x,
double  y 
)
pure virtual

Set the ith vertex of the polygon in screen coordinates from 0...1.

Implemented in makVrv::DtOsgWindowPolygonInstance.

virtual void makVrv::DtWindowPolygonInstance::setFillPattern ( unsigned int  fillPattern)
pure virtual

Set the polygon's fill pattern.

Implemented in makVrv::DtOsgWindowPolygonInstance.

virtual void makVrv::DtWindowPolygonInstance::setFill ( bool  fill)
pure virtual

Set the polygon filled or outlined.

Implemented in makVrv::DtOsgWindowPolygonInstance.

virtual void makVrv::DtWindowPolygonInstance::setScale ( double  scale)
pure virtual

Set the polygon's scale.

Implemented in makVrv::DtOsgWindowPolygonInstance.

virtual void makVrv::DtWindowPolygonInstance::setRotation ( double  rotation)
pure virtual

Set the polygon's rotation in radians clockwise.

Implemented in makVrv::DtOsgWindowPolygonInstance.

virtual void makVrv::DtWindowPolygonInstance::setNumVertices ( unsigned int  numVertices)
pure virtual

Set the number of vertices in the polygon.

Implemented in makVrv::DtOsgWindowPolygonInstance.

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

Set the polygon's color.

Implemented in makVrv::DtOsgWindowPolygonInstance.

virtual const VertexList& makVrv::DtWindowPolygonInstance::vertices ( ) const
pure virtual

Get the polygon's vertices.

Implemented in makVrv::DtOsgWindowPolygonInstance.


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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)