![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtVisibilityAdapter.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvCore/vrvCore.h> 00015 #include <vrvCore/DtSetVisibilityInterface.h> 00016 00017 namespace makVrv 00018 { 00022 template <typename T> 00023 class DtVisibilityAdapter : public DtSetVisibilityInterface 00024 { 00025 public: 00027 DtVisibilityAdapter(T& implementation) 00028 : myImplementation(implementation) 00029 { 00030 00031 } 00032 00033 ~DtVisibilityAdapter() 00034 { 00035 00036 } 00037 00038 inline virtual void setVisible(bool b) 00039 { 00040 myImplementation.setVisible(b); 00041 } 00042 00043 protected: 00044 T& myImplementation; 00045 }; 00046 }