version 3.3

VRS::Detail Class Reference

#include <vrs/detail.h>

Inheritance diagram for VRS::Detail:

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

List of all members.

Public Member Functions

 Detail ()
 Constructs an empty (without any area-result pair) tessellation object.
virtual void clearTable ()
 Removes all previously stored area-result pairs.
virtual void setLevel (double area, unsigned int result)
virtual unsigned int getLevel (double area) const
 Returns the level of a specified area.
virtual void evaluate (const Engine *, const Shape *, int &nu, int &nv) const
 VRS_TYPEINFO (Detail, Tessellation)
 VRS_SERIALIZABLE (Detail)


Detailed Description

Semi-Automatic Tessellator. Creates tessellation objects, similar to `AutoDetail', but allow a finer tuning. The Tesselation is controlled by means of area-result pairs, that must be set with setLevel. The pairs internally are stored in the tessellation table, e.g. two arrays.

Constructor & Destructor Documentation

VRS::Detail::Detail (  ) 

Constructs an empty (without any area-result pair) tessellation object.


Member Function Documentation

virtual void VRS::Detail::clearTable (  )  [virtual]

Removes all previously stored area-result pairs.

virtual void VRS::Detail::setLevel ( double  area,
unsigned int  result 
) [virtual]

Sets the tesselation for all objects that cover area (which is just object_size/screen_size), but cover less than the next bigger specified area, if there is any.

virtual unsigned int VRS::Detail::getLevel ( double  area  )  const [virtual]

Returns the level of a specified area.

virtual void VRS::Detail::evaluate ( const Engine ,
const Shape ,
int &  nu,
int &  nv 
) const [virtual]

Sets nu and nv to the tessellation-level for a given shape. The engine is used to obtain the camera-position.

Implements VRS::Tessellation.

VRS::Detail::VRS_TYPEINFO ( Detail  ,
Tessellation   
)

VRS::Detail::VRS_SERIALIZABLE ( Detail   ) 


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

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