![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: $ $Revision: 95512 $ $State: $ 00007 *******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvCore/DtVrvCommand.h> 00016 00017 namespace makVrv 00018 { 00021 class DT_DLL_VRVCORE DtObserverModeCommand : public DtVrvCommand 00022 { 00023 public: 00024 DtObserverModeCommand(); 00025 virtual ~DtObserverModeCommand(); 00026 00027 virtual std::string observer() const; 00028 virtual void setObserver(const std::string& obs); 00029 00030 virtual int mode() const; 00031 virtual void setMode(const int& mode); 00032 00033 virtual void execute(DtDe& de); 00034 00035 protected: 00036 std::string myObserver; 00037 int myMode; 00038 }; 00039 00042 class DT_DLL_VRVCORE DtObserverModeCommandCreator : public DtVrvCommandCreator 00043 { 00044 public: 00045 DtObserverModeCommandCreator(GlobalIdConvertFunc func): DtVrvCommandCreator(func) {} 00046 virtual ~DtObserverModeCommandCreator() {} 00047 00048 virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control); 00049 }; 00050 00051 00052 } //makVrv::