OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
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:
+ Collaboration diagram for WGESubdividedPlane:

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. More...
 
osg::ref_ptr< const osg::Vec3Array > getCenterArray () const
 Gives the reference to the centerpoints of the quads this plane is representing. More...
 

Private Attributes

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

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

◆ getCenterArray()

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.

◆ setCenterArray()

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

◆ m_quadCenters

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: