![]() |
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 DtTetherTrackViewCommand : public DtVrvCommand 00028 { 00029 public: 00031 DtTetherTrackViewCommand(); 00032 00034 virtual ~DtTetherTrackViewCommand(); 00035 00037 virtual std::string observer(); 00038 00040 virtual void setObserver(const std::string& newObs); 00041 00044 virtual DtVector offset() const; 00045 00051 virtual void setOffset(const DtVector& vec); 00052 00054 virtual DtTaitBryan offsetOrientation() const; 00055 00059 virtual void setOffsetOrientation(const DtTaitBryan& ori); 00060 00062 virtual DtUniqueID attachedEntity() const; 00063 00065 virtual void setAttachedEntity(const DtUniqueID& entityId); 00066 00070 virtual DtUniqueID trackedEntity() const; 00071 00073 virtual void setTrackedEntity(const DtUniqueID& entityId); 00074 00076 virtual void execute(DtDe& de); 00077 00078 protected: 00079 std::string myObserver; 00080 DtVector myOffset; 00081 DtTaitBryan myOffsetOri; 00082 DtUniqueID myAttachedEntity; 00083 DtUniqueID myTrackedEntity; 00084 }; 00085 00088 class DT_DLL_VRVCORE DtTetherTrackViewCommandCreator : public DtVrvCommandCreator 00089 { 00090 public: 00091 DtTetherTrackViewCommandCreator(GlobalIdConvertFunc func): DtVrvCommandCreator(func) {} 00092 virtual ~DtTetherTrackViewCommandCreator() {} 00093 00094 virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control); 00095 }; 00096 00097 } //makVrv::