CIvfQuadPlane Class Reference

#include <ivf/IvfQuadPlane.h>

Inheritance diagram for CIvfQuadPlane:

CIvfQuadSet CIvfGLPrimitive CIvfShape CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Types

enum  TPlaneOrientation { PO_XY, PO_XZ, PO_YZ }

Public Member Functions

 CIvfQuadPlane ()
virtual ~CIvfQuadPlane ()
 IvfClassInfo ("CIvfQuadPlane", CIvfQuadSet)
void flipVert ()
void setWidth (double width)
void setTexture (CIvfTexture *texture)
void setSize (double width, double height)
void setOrientation (TPlaneOrientation orientation)
void setTextureRepeat (double xrepeat, double yrepeat)

Detailed Description

Quad plane class

Implements a simple plane defined by a width and a height. When using textures the class will consider the aspect ratio of the texture.

Author:
Jonas Lindemann
Examples:

textures.cpp.

Definition at line 43 of file IvfQuadPlane.h.


Constructor & Destructor Documentation

CIvfQuadPlane::CIvfQuadPlane  ) 
 

CIvfQuadPlane constructor

virtual CIvfQuadPlane::~CIvfQuadPlane  )  [virtual]
 

CIvfQuadPlane destructor


Member Function Documentation

void CIvfQuadPlane::flipVert  ) 
 

Flips texture coordinates

void CIvfQuadPlane::setOrientation TPlaneOrientation  orientation  ) 
 

Set orientation of plane.

void CIvfQuadPlane::setSize double  width,
double  height
 

Set size of plane

Overrides any settings set using the methods setWidth and setTexture.

void CIvfQuadPlane::setTexture CIvfTexture texture  ) 
 

Set texture

Calculates ratio and modifies the plane size

Reimplemented from CIvfShape.

void CIvfQuadPlane::setTextureRepeat double  xrepeat,
double  yrepeat
 

Set texture repeat in x and y direction.

void CIvfQuadPlane::setWidth double  width  ) 
 

Set width of plane

Automatically calculates height if a texture has been given. If no texture has been set height = width.


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:56 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO