![]() |
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 #include <vrvCore/DtUniqueID.h> 00018 00019 #include <matrix/vlTaitBryan.h> 00020 #include <matrix/vlVector.h> 00021 00022 namespace makVrv 00023 { 00024 00027 class DT_DLL_VRVCORE DtTrackViewCommand : public DtVrvCommand 00028 { 00029 public: 00031 DtTrackViewCommand(); 00032 00034 virtual ~DtTrackViewCommand(); 00035 00037 virtual std::string observer(); 00038 00040 virtual void setObserver(const std::string& newObs); 00041 00044 virtual DtVector worldPosition(); 00045 00048 virtual void setWorldPosition(const DtVector& vec); 00049 00053 virtual DtUniqueID trackedEntity() const; 00054 00056 virtual void setTrackedEntity( const DtUniqueID& entityElementID ); 00057 00059 virtual void execute(DtDe& de); 00060 00061 protected: 00062 std::string myObserver; 00063 DtUniqueID myTrackedEntity; 00064 DtVector myWorldPos; 00065 }; 00066 00069 class DT_DLL_VRVCORE DtTrackViewCommandCreator : public DtVrvCommandCreator 00070 { 00071 public: 00072 DtTrackViewCommandCreator(GlobalIdConvertFunc func): DtVrvCommandCreator(func) {} 00073 virtual ~DtTrackViewCommandCreator() {} 00074 00075 virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control); 00076 }; 00077 00078 } //makVrv::