VR-Forces Development_Version 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
virtual
void
setFocalRange(
float
range);
35
37
virtual
void
setFocalDepth(
float
depth);
38
40
virtual
void
setAutofocus(
bool
useAutofocus);
41
43
virtual
void
update(
DtChannel
*channel);
44
45
protected
:
46
virtual
void
slot_windowRemoved(
DtWindow
* window);
47
48
DtDe
&
myDe
;
49
50
// Focal distance is set by sampling the depth buffer in the center
51
float
myFocalRange
;
52
float
myFocalDepth
;
53
bool
myUseAutofocus
;
54
};
55
56
//
57
// Creator
58
//
59
63
class
DT_DLL_VRVOSG
DtDepthOfFieldCreator
64
:
public
DtPostProcessorCreator
65
{
66
public
:
68
friend
class
DtOsgPostProcessManager
;
69
71
DtDepthOfFieldCreator
();
72
74
virtual
~
DtDepthOfFieldCreator
();
75
76
protected
:
78
virtual
DtPostProcessor
* create(
DtDe
& de,
const
std::string& postProcessType);
79
};
80
81
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)