OSG
3.4.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
osg_head
include
osg
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
36
META_Node
(
osg
,
Projection
);
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
55
Matrix
_matrix
;
56
57
};
58
59
}
60
61
#endif
osg::Projection::setMatrix
void setMatrix(const Matrix &mat)
Definition:
Projection.h:39
OSG_EXPORT
#define OSG_EXPORT
Definition:
Export.h:43
osg::Group
Definition:
Group.h:28
META_Node
#define META_Node(library, name)
Definition:
Node.h:59
osg::CopyOp::SHALLOW_COPY
Definition:
CopyOp.h:47
osg::Projection::getMatrix
const Matrix & getMatrix() const
Definition:
Projection.h:42
osg::Matrixd
Definition:
Matrixd.h:26
osg::CopyOp
Definition:
CopyOp.h:40
osg::Projection
Definition:
Projection.h:24
osg::Projection::_matrix
Matrix _matrix
Definition:
Projection.h:55
osg
Definition:
AlphaFunc.h:19
osg::Projection::postMult
void postMult(const Matrix &mat)
Definition:
Projection.h:48
osg::Projection::preMult
void preMult(const Matrix &mat)
Definition:
Projection.h:45
Generated on Tue Oct 4 2016 19:20:47 for OSG by
1.8.8