Projection
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSG_PROJECTION
#define OSG_PROJECTION 1
#include <osg/Group>
#include <osg/Matrix>
namespace osg {
class OSG_EXPORT Projection : public Group
{
public :
Projection();
Projection(const Projection&,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
Projection(const Matrix& matix);
META_Node(osg, Projection);
void setMatrix(const Matrix& mat) { _matrix = mat; }
inline const Matrix& getMatrix() const { return _matrix; }
void preMult(const Matrix& mat) { _matrix.preMult(mat); }
void postMult(const Matrix& mat) { _matrix.postMult(mat); }
protected :
virtual ~Projection();
Matrix _matrix;
};
}
#endif
Group
Matrix
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Group::Group
Group()
osg::Projection::postMult
void postMult(const Matrix &mat)
Definition Projection:48
osg::Projection::Projection
Projection(const Projection &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
osg::Projection::~Projection
virtual ~Projection()
osg::Projection::Projection
Projection(const Matrix &matix)
osg::Projection::setMatrix
void setMatrix(const Matrix &mat)
Definition Projection:39
osg::Projection::META_Node
META_Node(osg, Projection)
osg::Projection::_matrix
Matrix _matrix
Definition Projection:55
osg::Projection::getMatrix
const Matrix & getMatrix() const
Definition Projection:42
osg::Projection::Projection
Projection()
osg::Projection::preMult
void preMult(const Matrix &mat)
Definition Projection:45
osg
Definition AlphaFunc:19
osg::Matrix
Matrixd Matrix
Definition Matrix:27
OSG_EXPORT
#define OSG_EXPORT
Definition osg/Export:39