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
vrvPostProcessor
DtDepthOfField.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2016 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
6
#pragma once
7
11
12
#include <
vrvPostProcessor/vrvPostProcessor.h
>
13
14
#include <
vrvPostProcessor/DtPostProcessor.h
>
15
16
namespace
makVrv
17
{
18
19
class
DtWindow;
20
24
class
DT_DLL_VRVPOSTPROCESSOR
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_VRVPOSTPROCESSOR
DtDepthOfFieldCreator
64
:
public
DtPostProcessorCreator
65
{
66
public
:
68
friend
class
DtPostProcessManager
;
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 Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)