VR-Forces 4.3 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
DtDepthOfField.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2014 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
14
#include <
vrvOsg/DtPostProcessor.h
>
15
16
namespace
makVrv
17
{
18
19
class
DtWindow;
20
24
class
DT_DLL_VRVOSG
DtDepthOfField
:
public
DtPostProcessor
25
{
26
public
:
28
DtDepthOfField
(
DtDe
& de,
const
std::string& postProcessType,
bool
handles2D);
29
31
virtual
~
DtDepthOfField
();
32
34
void
setFocalRange(
float
range);
35
37
void
setFocalDepth(
float
depth);
38
40
void
setAutofocus(
bool
useAutofocus);
41
43
virtual
void
update(
DtChannel
*channel);
44
45
protected
:
46
void
initialize();
47
48
void
slot_windowRemoved(
DtWindow
* window);
49
50
DtDe
&
myDe
;
51
52
// Focal distance is set by sampling the depth buffer in the center
53
float
myFocalRange
;
54
float
myFocalDepth
;
55
bool
myUseAutofocus
;
56
};
57
58
//
59
// Creator
60
//
61
65
class
DT_DLL_VRVOSG
DtDepthOfFieldCreator
66
:
public
DtPostProcessorCreator
67
{
68
public
:
70
friend
class
DtOsgPostProcessManager
;
71
73
DtDepthOfFieldCreator
();
74
76
virtual
~
DtDepthOfFieldCreator
();
77
78
protected
:
80
virtual
DtPostProcessor
* create(
DtDe
& de,
const
std::string& postProcessType);
81
};
82
83
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)