version 3.3

VRS::CylinderGenerator Class Reference

#include <vrs/analyticshapegenerators.h>

Inheritance diagram for VRS::CylinderGenerator:

VRS::VertexAttributeGenerator

List of all members.

Public Member Functions

 CylinderGenerator (const Cylinder *, unsigned int nx, unsigned int ny)
virtual ~CylinderGenerator ()
virtual Iterator< Vector > * calcVertexData (const ID &vertexDataType)
virtual Matrix getTransform () const


Constructor & Destructor Documentation

VRS::CylinderGenerator::CylinderGenerator ( const Cylinder ,
unsigned int  nx,
unsigned int  ny 
)

virtual VRS::CylinderGenerator::~CylinderGenerator (  )  [virtual]


Member Function Documentation

virtual Iterator<Vector>* VRS::CylinderGenerator::calcVertexData ( const ID vertexDataType  )  [virtual]

For the given abtract vertex data type (as defined in VertexAttributeMap), generates an Iterator that contains the vertex data for further use in a mesh. The VertexAttributeGenerator can generate

  • VertexAttributeMap::UV_PARAMETER (simple parametrisation of the mesh)
  • VertexAttributeMap::BINORMAL (by creating NORMAL and TANGENT data and calculating the cross-product). Other data must be created by subclasses for concrete analytic shapes.

Reimplemented from VRS::VertexAttributeGenerator.

virtual Matrix VRS::CylinderGenerator::getTransform (  )  const [virtual]

Returns the transformation matrix which should be applied to the shape for correct location and orientation.

Reimplemented from VRS::VertexAttributeGenerator.


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

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