VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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
bool
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
bool
myUseReverseZBuffer
;
55
};
56
57
//
58
// Creator
59
//
60
64
class
DT_DLL_VRVPOSTPROCESSOR
DtDepthOfFieldCreator
65
:
public
DtPostProcessorCreator
66
{
67
public
:
69
friend
class
DtPostProcessManager
;
70
72
DtDepthOfFieldCreator
();
73
75
virtual
~
DtDepthOfFieldCreator
();
76
77
protected
:
79
virtual
DtPostProcessor
* create(
DtDe
& de,
const
std::string& postProcessType);
80
};
81
82
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)