version 3.3

VRS::AutoDetail Class Reference

View dependant tessellator, see Tessellation. More...

#include <vrs/autodetail.h>

Inheritance diagram for VRS::AutoDetail:

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

List of all members.

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)


Detailed Description

View dependant tessellator, see Tessellation.

Constructor & Destructor Documentation

VRS::AutoDetail::AutoDetail ( double  detail = 25.0,
unsigned int  max = 64 
)


Member Function Documentation

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   ) 


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

Generated on Fri May 18 06:00:17 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact