version 3.3

VRS::HeightField Class Reference

#include <vrs/heightfield.h>

Inheritance diagram for VRS::HeightField:

VRS::SharedObj VRS::Visitable VRS::ImageHeightField

List of all members.

Public Member Functions

virtual double height (int c, int r) const =0
virtual int rows () const =0
virtual int columns () const =0
virtual double maxHeight () const =0
virtual double minHeight () const =0
 implemented by subclasses.
virtual Vector vertex (int c, int r) const
virtual Vector normal (int c, int r) const
 r and c must be in the range [0,c-1]x[0,r-1].
virtual Iterator< Vector > * newIterator () const
virtual Iterator< Vector > * newNormalIterator () const
virtual Bounds boundingBox () const
 VRS_TYPEINFO (HeightField, SharedObj)


Detailed Description

Height Field Base Class. A height field is specified by a two-dimensional array of rows x columns points [c,r] together with a height function 'height' which returns the height for each height field element.

Member Function Documentation

virtual double VRS::HeightField::height ( int  c,
int  r 
) const [pure virtual]

Implemented in VRS::ImageHeightField.

virtual int VRS::HeightField::rows (  )  const [pure virtual]

Implemented in VRS::ImageHeightField.

virtual int VRS::HeightField::columns (  )  const [pure virtual]

Implemented in VRS::ImageHeightField.

virtual double VRS::HeightField::maxHeight (  )  const [pure virtual]

Implemented in VRS::ImageHeightField.

virtual double VRS::HeightField::minHeight (  )  const [pure virtual]

implemented by subclasses.

Implemented in VRS::ImageHeightField.

virtual Vector VRS::HeightField::vertex ( int  c,
int  r 
) const [virtual]

virtual Vector VRS::HeightField::normal ( int  c,
int  r 
) const [virtual]

r and c must be in the range [0,c-1]x[0,r-1].

virtual Iterator<Vector>* VRS::HeightField::newIterator (  )  const [virtual]

virtual Iterator<Vector>* VRS::HeightField::newNormalIterator (  )  const [virtual]

Creates an instance of an iterator for the vertex data and normal data. The data is traversed row by row. To render a heightfield, create a mesh and pass these iterators to it.

virtual Bounds VRS::HeightField::boundingBox (  )  const [virtual]

VRS::HeightField::VRS_TYPEINFO ( HeightField  ,
SharedObj   
)


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

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