VR-Forces 4.7 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
vrvCore
DtPostProcessManagerInterface.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2016 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvUtil/DtVirtualBaseClass.h
>
14
#include <
vrvUtil/DtSignalConnectionManager.h
>
15
16
namespace
makVrv
17
{
18
class
DtChannel;
19
class
DtChannelManager;
23
class
DT_DLL_VRVCORE
DtPostProcessManagerInterface
:
public
DtVirtualBaseClass
24
{
25
public
:
27
typedef
std::list<std::string>
EffectNameList
;
28
30
virtual
~
DtPostProcessManagerInterface
();
31
33
static
DtPostProcessManagerInterface
& instance(
DtDe
& de);
34
36
static
std::string theClassName();
37
40
void
setPostProcessorsEnabled(
bool
enable);
41
43
bool
postProcessorsEnabled()
const
;
44
46
virtual
void
update(
DtChannel
*channel) = 0;
47
49
virtual
bool
enableEffects(
DtChannel
* channel,
EffectNameList
& effectPostList) = 0;
50
52
virtual
bool
disableEffects(
DtChannel
* channel,
EffectNameList
& effectPostList) = 0;
53
54
protected
:
56
DtPostProcessManagerInterface
();
57
59
DtPostProcessManagerInterface
(
DtDe
& de);
60
63
virtual
void
slot_channelCreated(
DtChannelManager
* channelManager,
DtChannel
* channel) = 0;
64
67
virtual
void
slot_channelDestroyed(
DtChannelManager
* channelManager,
DtChannel
* channel) = 0;
68
69
protected
:
70
// For listening for channel creation
71
DtSignalConnectionManager
myConnections
;
72
73
DtDe
&
myDe
;
74
75
// Enable or disable the post processor chain from running
76
// NOTE: This does not change whether individual post effects
77
// are enabled or whether the channel has enabled or disabled effects
78
bool
myEnablePostProcessors
;
79
};
80
83
class
DT_DLL_VRVCORE
DtPostProcessManagerInterfaceCreator
:
public
DtVirtualBaseClass
84
{
85
public
:
87
static
DtPostProcessManagerInterfaceCreator
& instance(
DtDe
& de);
88
90
static
void
registerInstance(
DtDe
& de,
DtPostProcessManagerInterfaceCreator
* instance);
91
93
virtual
DtPostProcessManagerInterface
* create(
DtDe
& de) = 0;
94
};
95
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)