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

Public Member Functions | |
| AutoDetail (double detail=25.0, unsigned int max=64) | |
| void | setDetail (double detail) |
| Sets the detail of the tessellation. | |
| double | getDetail () const |
| Returns the detail of the tessellation, see setDetail. | |
| void | setMaximum (unsigned int) |
| Sets the maximum tessellation detail, see setDetail. | |
| unsigned int | getMaximum () const |
| Returns the maximum tessellation detail, see setDetail. | |
| virtual void | evaluate (const Engine *, const Shape *, int &nu, int &nv) const |
| VRS_TYPEINFO (AutoDetail, Tessellation) | |
| VRS_SERIALIZABLE (AutoDetail) | |
| VRS::AutoDetail::AutoDetail | ( | double | detail = 25.0, |
|
| unsigned int | max = 64 | |||
| ) |
| void VRS::AutoDetail::setDetail | ( | double | detail | ) |
Sets the detail of the tessellation.
Roughly speaking, 'detail' specifies how often an object that fills the screen in one direction should be sub-divided. The resulting tesselation is detail*(object_area/screen_area). Note that the result is clamped to the region [1; maximum].
| double VRS::AutoDetail::getDetail | ( | ) | const [inline] |
Returns the detail of the tessellation, see setDetail.
| void VRS::AutoDetail::setMaximum | ( | unsigned | int | ) |
Sets the maximum tessellation detail, see setDetail.
| unsigned int VRS::AutoDetail::getMaximum | ( | ) | const [inline] |
Returns the maximum tessellation detail, see setDetail.
| virtual void VRS::AutoDetail::evaluate | ( | const Engine * | , | |
| const Shape * | , | |||
| int & | nu, | |||
| int & | nv | |||
| ) | const [virtual] |
Sets for nu and nv the tessellation-level for a given shape. The engine is used to obtain the camera-position.
Implements VRS::Tessellation.
| VRS::AutoDetail::VRS_TYPEINFO | ( | AutoDetail | , | |
| Tessellation | ||||
| ) |
| VRS::AutoDetail::VRS_SERIALIZABLE | ( | AutoDetail | ) |