| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/polygonoffsetgl.h>

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) | |
| 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.
| 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 | ) |