version 3.3

VRS::BilinearPatch Class Reference

#include <vrs/bilinearpatch.h>

Inheritance diagram for VRS::BilinearPatch:

VRS::Shape VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 BilinearPatch (Iterator< Vector > *vertexitr, Iterator< Vector > *normalitr=0, Iterator< Vector > *textureitr=0, Iterator< Color > *coloritr=0)
 Constructs a bilinear patch with the given iterators.
virtual void setVertexIterator (Iterator< Vector > *)
 Sets the vertices specifying the patch.
virtual void setNormalIterator (Iterator< Vector > *)
 Sets the normals for the vertices.
virtual void setTextureIterator (Iterator< Vector > *)
 Sets the texture coordinates for the vertices.
virtual void setColorIterator (Iterator< Color > *)
 Sets the colors for the vertices.
virtual Iterator< Vector > * newVertexIterator () const
 Returns the vertices specifying the patch.
virtual Iterator< Vector > * newNormalIterator () const
 Returns the normals for the vertices.
virtual Iterator< Vector > * newTextureIterator () const
 Returns the texture coordinates for the vertices.
virtual Iterator< Color > * newColorIterator () const
 Returns the colors for the vertices.
virtual Bounds boundingBox () const
 Bounding box of the faces.
 VRS_TYPEINFO (BilinearPatch, Shape)
 VRS_SERIALIZABLE (BilinearPatch)

Protected Member Functions

 BilinearPatch ()


Detailed Description

Single bilinear patch. A bilinear patch is defined by four vertices.

Constructor & Destructor Documentation

VRS::BilinearPatch::BilinearPatch ( Iterator< Vector > *  vertexitr,
Iterator< Vector > *  normalitr = 0,
Iterator< Vector > *  textureitr = 0,
Iterator< Color > *  coloritr = 0 
)

Constructs a bilinear patch with the given iterators.

A bilinear patch is defined by exactly four vertices. There must be at least four vertices, if more than four elements are provided only the first four are taken for evaluation.

VRS::BilinearPatch::BilinearPatch (  )  [inline, protected]


Member Function Documentation

virtual void VRS::BilinearPatch::setVertexIterator ( Iterator< Vector > *   )  [virtual]

Sets the vertices specifying the patch.

There must be at least four vertices, if more than four elements are provided only the first four are taken for evaluation.

virtual void VRS::BilinearPatch::setNormalIterator ( Iterator< Vector > *   )  [virtual]

Sets the normals for the vertices.

virtual void VRS::BilinearPatch::setTextureIterator ( Iterator< Vector > *   )  [virtual]

Sets the texture coordinates for the vertices.

virtual void VRS::BilinearPatch::setColorIterator ( Iterator< Color > *   )  [virtual]

Sets the colors for the vertices.

virtual Iterator<Vector>* VRS::BilinearPatch::newVertexIterator (  )  const [virtual]

Returns the vertices specifying the patch.

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

Returns the normals for the vertices.

virtual Iterator<Vector>* VRS::BilinearPatch::newTextureIterator (  )  const [virtual]

Returns the texture coordinates for the vertices.

virtual Iterator<Color>* VRS::BilinearPatch::newColorIterator (  )  const [virtual]

Returns the colors for the vertices.

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

Bounding box of the faces.

Implements VRS::Shape.

VRS::BilinearPatch::VRS_TYPEINFO ( BilinearPatch  ,
Shape   
)

VRS::BilinearPatch::VRS_SERIALIZABLE ( BilinearPatch   ) 


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

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