OpenWalnut  1.4.0
Public Member Functions | Private Attributes
WGESubdividedPlane Class Reference

Represents a plane which is subdivided into quads where each quad primitive is colorable. More...

#include <WGESubdividedPlane.h>

+ Inheritance diagram for WGESubdividedPlane:

List of all members.

Public Member Functions

void setCenterArray (osg::ref_ptr< osg::Vec3Array > centers)
 For each quad primitive, the center point is computed and stored in m_quadCenters.
osg::ref_ptr< const
osg::Vec3Array > 
getCenterArray () const
 Gives the reference to the centerpoints of the quads this plane is representing.

Private Attributes

osg::ref_ptr< osg::Vec3Array > m_quadCenters
 Stores the center points of each quad.

Detailed Description

Represents a plane which is subdivided into quads where each quad primitive is colorable.

Definition at line 33 of file WGESubdividedPlane.h.


Member Function Documentation

osg::ref_ptr< const osg::Vec3Array > WGESubdividedPlane::getCenterArray ( ) const [inline]

Gives the reference to the centerpoints of the quads this plane is representing.

Returns:
Const reference to the center points

Definition at line 65 of file WGESubdividedPlane.h.

References m_quadCenters.

void WGESubdividedPlane::setCenterArray ( osg::ref_ptr< osg::Vec3Array >  centers) [inline]

For each quad primitive, the center point is computed and stored in m_quadCenters.

Parameters:
centersthe vertex array of the center points of each quad in same order as the quads

Definition at line 59 of file WGESubdividedPlane.h.

References m_quadCenters.


Member Data Documentation

osg::ref_ptr< osg::Vec3Array > WGESubdividedPlane::m_quadCenters [private]

Stores the center points of each quad.

This is saved in this geode, so the center points are available before transformation.

Definition at line 56 of file WGESubdividedPlane.h.

Referenced by getCenterArray(), and setCenterArray().


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