VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
DtOverlayDrawable.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
******************************************************************************/
8
12
13
#ifndef DtOverlayDrawable_H_
14
#define DtOverlayDrawable_H_
15
16
#include <
vrvOsg/vrvOsg.h
>
17
#include <
vrvGraphics/DtOverlayRenderer.h
>
18
#include <osg/Drawable>
19
20
namespace
osg
21
{
22
class
Camera
;
23
}
24
25
namespace
makVrv
26
{
27
class
DtOsgOverlayManager;
28
class
DtChannel;
29
34
class
DT_DLL_VRVOSG
DtOverlayDrawable
:
public
osg::Drawable
35
{
36
public
:
37
DtOverlayDrawable
(
DtOsgOverlayManager
& overlayManager,
DtChannel
& channel);
38
42
void
setOverlayToRender(
DtOverlayRenderer
* renderer);
43
45
DtOverlayDrawable
(
const
DtOverlayDrawable
&,
const
osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
46
48
virtual
osg::Object*
cloneType
()
const
{
return
new
DtOverlayDrawable
(myOverlayManager,myChannel); }
49
51
virtual
osg::Object*
clone
(
const
osg::CopyOp& copyop)
const
{
return
new
DtOverlayDrawable
(*
this
,copyop); }
52
53
virtual
void
drawImplementation(osg::RenderInfo& renderInfo)
const
;
54
56
void
setProjectionCamera(osg::Camera* camera);
57
58
protected
:
59
osg::Camera*
myProjectionCamera
;
60
DtOverlayRenderer
*
myOverlayToRender
;
61
DtOsgOverlayManager
&
myOverlayManager
;
62
DtChannel
&
myChannel
;
63
};
64
}
65
66
#endif
67
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)