version 3.3

VRS::ImageHeightField Class Reference

Heightfield, based on Image-Data. More...

#include <vrs/image/imageheightfield.h>

Inheritance diagram for VRS::ImageHeightField:

VRS::HeightField VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 ImageHeightField (Image *image)
void setImage (Image *)
ImagegetImage () const
virtual int rows () const
virtual int columns () const
virtual double maxHeight () const
virtual double minHeight () const
 Returns the maximum and minimum value of the image.
virtual double height (int c, int r) const
 The height is taken from the corresponding pixel in the image.
 VRS_TYPEINFO (ImageHeightField, HeightField)
 VRS_SERIALIZABLE (ImageHeightField)

Protected Member Functions

 ImageHeightField ()


Detailed Description

Heightfield, based on Image-Data.

Constructor & Destructor Documentation

VRS::ImageHeightField::ImageHeightField ( Image image  ) 

The zero-level of this height-field is the xz-plane. Height-values are mapped to y-coordinates using this formula: y = color. The image must have 1 layer.

VRS::ImageHeightField::ImageHeightField (  )  [protected]


Member Function Documentation

void VRS::ImageHeightField::setImage ( Image  ) 

Image* VRS::ImageHeightField::getImage (  )  const

virtual int VRS::ImageHeightField::rows (  )  const [virtual]

Implements VRS::HeightField.

virtual int VRS::ImageHeightField::columns (  )  const [virtual]

The number of rows corresponds to the height of the image, the number of columns corresponds to the width of the image.

Implements VRS::HeightField.

virtual double VRS::ImageHeightField::maxHeight (  )  const [virtual]

Implements VRS::HeightField.

virtual double VRS::ImageHeightField::minHeight (  )  const [virtual]

Returns the maximum and minimum value of the image.

Implements VRS::HeightField.

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

The height is taken from the corresponding pixel in the image.

Implements VRS::HeightField.

VRS::ImageHeightField::VRS_TYPEINFO ( ImageHeightField  ,
HeightField   
)

VRS::ImageHeightField::VRS_SERIALIZABLE ( ImageHeightField   ) 


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