VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtVisibilityAdapter.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtVisibilityAdapter.h,v $ $Revision: 1.10 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvCore/vrvCore.h
>
15
#include <
vrvCore/DtSetVisibilityInterface.h
>
16
17
namespace
makVrv
18
{
22
template
<
typename
T>
23
class
DtVisibilityAdapter
:
public
DtSetVisibilityInterface
24
{
25
public
:
27
DtVisibilityAdapter
(
T
& implementation)
28
:
myImplementation
(implementation)
29
{
30
31
}
32
33
~DtVisibilityAdapter
()
34
{
35
36
}
37
38
inline
virtual
void
setVisible
(
bool
b)
39
{
40
myImplementation
.setVisible(b);
41
}
42
43
protected
:
44
T
&
myImplementation
;
45
};
46
}
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)