version 3.3

VRS::PolygonOffsetGL Class Reference

OpenGL Polygon Offset. More...

#include <vrs/opengl/polygonoffsetgl.h>

Inheritance diagram for VRS::PolygonOffsetGL:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  PrimitiveType { Points, Lines, Fill }

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (PrimitiveType)
 PolygonOffsetGL (PrimitiveType primitiveType=PolygonOffsetGL::Points, double factor=1.0, double units=1.0)
virtual ~PolygonOffsetGL ()
void setType (PolygonOffsetGL::PrimitiveType primtype)
PolygonOffsetGL::PrimitiveType getType () const
void setFactor (double factor)
double getFactor () const
 Set/get the factor coefficient.
void setUnits (double units)
double getUnits () const
 Set/get the unit coefficient.
 VRS_TYPEINFO (PolygonOffsetGL, MonoAttribute)
 VRS_SERIALIZABLE (PolygonOffsetGL)


Detailed Description

OpenGL Polygon Offset.

Member Enumeration Documentation

Enumerator:
Points 
Lines 
Fill 


Constructor & Destructor Documentation

VRS::PolygonOffsetGL::PolygonOffsetGL ( PrimitiveType  primitiveType = PolygonOffsetGL::Points,
double  factor = 1.0,
double  units = 1.0 
)

virtual VRS::PolygonOffsetGL::~PolygonOffsetGL (  )  [virtual]

Polygon offsets can specified for points, lines and facets separately. The offset value actually used is calculated by: m*factor + r*units where m is the max. depth slope of the polygon and r is the smallest value guaranteed to produce a resolvable difference in window coord. depth values. r is an impl.-specific constant. Note that the offset is added only to one of the three primitives types, points, lines or facets.


Member Function Documentation

VRS::PolygonOffsetGL::VRS_SERIALIZABLE_CLASS_ENUM ( PrimitiveType   ) 

void VRS::PolygonOffsetGL::setType ( PolygonOffsetGL::PrimitiveType  primtype  ) 

PolygonOffsetGL::PrimitiveType VRS::PolygonOffsetGL::getType (  )  const [inline]

void VRS::PolygonOffsetGL::setFactor ( double  factor  ) 

double VRS::PolygonOffsetGL::getFactor (  )  const [inline]

Set/get the factor coefficient.

void VRS::PolygonOffsetGL::setUnits ( double  units  ) 

double VRS::PolygonOffsetGL::getUnits (  )  const [inline]

Set/get the unit coefficient.

VRS::PolygonOffsetGL::VRS_TYPEINFO ( PolygonOffsetGL  ,
MonoAttribute   
)

VRS::PolygonOffsetGL::VRS_SERIALIZABLE ( PolygonOffsetGL   ) 


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

Generated on Tue May 22 06:00:24 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact