OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Projection.h
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 
20 namespace osg {
21 
24 class OSG_EXPORT Projection : public Group
25 {
26  public :
27 
28 
29  Projection();
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
void setMatrix(const Matrix &mat)
Definition: Projection.h:39
#define OSG_EXPORT
Definition: Export.h:43
#define META_Node(library, name)
Definition: Node.h:59
const Matrix & getMatrix() const
Definition: Projection.h:42
Matrix _matrix
Definition: Projection.h:55
Definition: AlphaFunc.h:19
void postMult(const Matrix &mat)
Definition: Projection.h:48
void preMult(const Matrix &mat)
Definition: Projection.h:45