![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: $ $Revision: 102211 $ $State: $ 00007 *******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvGlStudioShared/DtGlStudioShared.h> 00016 00017 #include <vrvCore/DtVrvCommand.h> 00018 00019 namespace makVrv 00020 { 00023 class DT_DLL_VRVGLSTUDIOSHARED DtHudsCommand : public DtVrvCommand 00024 { 00025 public: 00026 DtHudsCommand(); 00027 virtual ~DtHudsCommand(); 00028 00030 virtual bool isEnabled() const; 00031 00033 virtual void setEnabled(bool state); 00034 00036 virtual float smoothingPeriod() const; 00037 00039 virtual void setSmoothingPeriod(const float& newPeriod); 00040 00042 virtual void execute(DtDe& de); 00043 00044 protected: 00045 bool myState; 00046 float mySmoothingPeriod; 00047 }; 00048 00051 class DT_DLL_VRVGLSTUDIOSHARED DtHudsCommandCreator : public DtVrvCommandCreator 00052 { 00053 public: 00054 DtHudsCommandCreator(GlobalIdConvertFunc func): DtVrvCommandCreator(func) {} 00055 virtual ~DtHudsCommandCreator() {} 00056 00057 virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control); 00058 }; 00059 00060 } //makVrv::