Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::ColorMatrix Class Reference

Texture Matrix state class for encapsulating OpenGL texture matrix functionality. More...

Inheritance diagram for osg::ColorMatrix:

Inheritance graph
[legend]
List of all members.

Public Methods

 ColorMatrix ()
 ColorMatrix (const ColorMatrix &cm, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.

 META_StateAttribute (osg, ColorMatrix, COLORMATRIX)
virtual int compare (const StateAttribute &sa) const
 return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

void setMatrix (const Matrix &matrix)
 Set the color matrix.

MatrixgetMatrix ()
 Get the color matrix.

const MatrixgetMatrix () const
 Get the const color matrix.

virtual void apply (State &state) const
 apply as OpenGL texture matrix.


Protected Methods

virtual ~ColorMatrix (void)

Protected Attributes

Matrix _matrix

Detailed Description

Texture Matrix state class for encapsulating OpenGL texture matrix functionality.


Constructor & Destructor Documentation

osg::ColorMatrix::ColorMatrix  
 

osg::ColorMatrix::ColorMatrix const ColorMatrix &    cm,
const CopyOp   copyop = CopyOp::SHALLOW_COPY
[inline]
 

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::ColorMatrix::~ColorMatrix void    [protected, virtual]
 


Member Function Documentation

virtual void osg::ColorMatrix::apply State   state const [virtual]
 

apply as OpenGL texture matrix.

Implements osg::StateAttribute.

virtual int osg::ColorMatrix::compare const StateAttribute   sa const [inline, virtual]
 

return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Implements osg::StateAttribute.

const Matrix& osg::ColorMatrix::getMatrix   const [inline]
 

Get the const color matrix.

Matrix& osg::ColorMatrix::getMatrix   [inline]
 

Get the color matrix.

osg::ColorMatrix::META_StateAttribute osg   ,
ColorMatrix   ,
COLORMATRIX   
 

void osg::ColorMatrix::setMatrix const Matrix   matrix [inline]
 

Set the color matrix.


Member Data Documentation

Matrix osg::ColorMatrix::_matrix [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:27 2002 for the Open Scene Graph by doxygen 1.2.16.