openscenegraph
Projection
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSG_PROJECTION
15#define OSG_PROJECTION 1
16
17#include <osg/Group>
18#include <osg/Matrix>
19
20namespace osg {
21
25{
26 public :
27
28
30
32 Projection(const Projection&,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
33
34 Projection(const Matrix& matix);
35
37
39 void setMatrix(const Matrix& mat) { _matrix = mat; }
40
42 inline const Matrix& getMatrix() const { return _matrix; }
43
45 void preMult(const Matrix& mat) { _matrix.preMult(mat); }
46
48 void postMult(const Matrix& mat) { _matrix.postMult(mat); }
49
50
51 protected :
52
53 virtual ~Projection();
54
56
57};
58
59}
60
61#endif
Definition CopyOp:41
Definition Group:29
Definition Matrixd:27
Definition Projection:25
void postMult(const Matrix &mat)
Definition Projection:48
Projection(const Projection &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
virtual ~Projection()
Projection(const Matrix &matix)
void setMatrix(const Matrix &mat)
Definition Projection:39
META_Node(osg, Projection)
Matrix _matrix
Definition Projection:55
const Matrix & getMatrix() const
Definition Projection:42
void preMult(const Matrix &mat)
Definition Projection:45
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSG_EXPORT
Definition osg/Export:39