version 3.3

VRS::Tessellation Class Reference

#include <vrs/tessellation.h>

Inheritance diagram for VRS::Tessellation:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::AutoDetail VRS::ConstantDetail VRS::Detail

List of all members.

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


Detailed Description

Abstract Base Class for Tessellation Objects. Tessellation objects control how good tessellations of complex shapes will approximate the real shape. The active Tessellation object is read from simplifiers for analytic shapes.

Member Function Documentation

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.


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

Generated on Wed May 23 06:00:30 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact