MatrixStack Class Reference

This is a matrix stack to temporarily store transformation matrices. More...

#include <MatrixStack.h>

Public Member Functions

 MatrixStack ()
 Constructor. More...
 
virtual ~MatrixStack ()
 Virtual destructor. More...
 
virtual void pushMatrix (const vmml::Matrix4f &matrix)
 Push a matrix to the stack. More...
 
virtual void popMatrix ()
 Delete last element on the stack. More...
 
virtual void clearMatrixStack ()
 Deletes all matrices in the stack. More...
 
virtual vmml::Matrix4f getMatrix ()
 Returns the matrix as the product of all pushed transformations. More...
 

Detailed Description

This is a matrix stack to temporarily store transformation matrices.

Author
Benjamin Buergisser

Constructor & Destructor Documentation

MatrixStack::MatrixStack ( )
inline

Constructor.

virtual MatrixStack::~MatrixStack ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

void MatrixStack::clearMatrixStack ( )
virtual

Deletes all matrices in the stack.

vmml::Matrix4f MatrixStack::getMatrix ( )
virtual

Returns the matrix as the product of all pushed transformations.

void MatrixStack::popMatrix ( )
virtual

Delete last element on the stack.

void MatrixStack::pushMatrix ( const vmml::Matrix4f &  matrix)
virtual

Push a matrix to the stack.

Parameters
[in]matrix