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

Public Member Functions | |
| virtual void | evaluate (const Engine *, const Shape *, int &nu, int &nv) const =0 |
| virtual ID | category () const |
| VRS_TYPEINFO (Tessellation, MonoAttribute) | |
Static Protected Member Functions | |
| static double | calculateObjectScreenRatio (const Engine *, const Shape *) |
| virtual void VRS::Tessellation::evaluate | ( | const Engine * | , | |
| const Shape * | , | |||
| int & | nu, | |||
| int & | nv | |||
| ) | const [pure virtual] |
'evaluate' sets 'nu' and 'nv' to the tessellation-level for a shape, which is to be rendered by the context in its current state, i.e. with the current transformations.
Implemented in VRS::AutoDetail, VRS::ConstantDetail, and VRS::Detail.
| virtual ID VRS::Tessellation::category | ( | ) | const [virtual] |
All types of tessellation objects are stored uniformly as tessellation objects in contexts.
Reimplemented from VRS::Attribute.
| VRS::Tessellation::VRS_TYPEINFO | ( | Tessellation | , | |
| MonoAttribute | ||||
| ) |
| static double VRS::Tessellation::calculateObjectScreenRatio | ( | const Engine * | , | |
| const Shape * | ||||
| ) | [static, protected] |
This helper function calculates the size of a shape with respect to the viewport. The function is used by adaptive Tesselation sub-classes such as AutoDetail and Detail. The engine is needed to obtain the camera position.