![]() |
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 00014 #pragma once 00015 00016 #include <vrvCore/DtVrvCommand.h> 00017 00018 #include <vrvCore/DtUniqueID.h> 00019 00020 #include <matrix/vlTaitBryan.h> 00021 #include <matrix/vlVector.h> 00022 00023 namespace makVrv 00024 { 00027 class DT_DLL_VRVCORE DtTetherViewCommand : public DtVrvCommand 00028 { 00029 public: 00030 DtTetherViewCommand(); 00031 virtual ~DtTetherViewCommand(); 00032 00034 virtual std::string observer(); 00035 00037 virtual void setObserver(const std::string& newObs); 00038 00041 virtual DtVector offset() const; 00042 00048 virtual void setOffset(const DtVector& vec); 00049 00051 virtual DtTaitBryan offsetOrientation() const; 00052 00054 virtual void setOffsetOrientation(const DtTaitBryan& ori); 00055 00058 virtual DtTaitBryan orientation() const; 00059 00063 virtual void setOrientation(const DtTaitBryan& ori); 00064 00066 virtual DtUniqueID attachedEntity() const; 00067 00069 virtual void setAttachedEntity(const DtUniqueID& entityId); 00070 00072 virtual void execute(DtDe& de); 00073 00074 protected: 00075 std::string myObserver; 00076 DtVector myOffset; 00077 DtTaitBryan myOrientation; 00078 DtUniqueID myAttachedEntity; 00079 }; 00080 00083 class DT_DLL_VRVCORE DtTetherViewCommandCreator : public DtVrvCommandCreator 00084 { 00085 public: 00086 DtTetherViewCommandCreator(GlobalIdConvertFunc func): DtVrvCommandCreator(func) {} 00087 virtual ~DtTetherViewCommandCreator() {} 00088 00089 virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control); 00090 }; 00091 00092 } //makVrv::