![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 * Copyright (c) 2011 MAK Technologies, Inc. 00003 * All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 * $RCSfile: DtSpaceFollowViewCommand.h $ $Revision: 95512 $ $State: $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvCore/DtVrvCommand.h> 00016 #include <vrvCore/DtUniqueID.h> 00017 00018 #include <matrix/vlTaitBryan.h> 00019 #include <matrix/vlVector.h> 00020 00021 namespace makVrv 00022 { 00023 00026 class DT_DLL_VRVCORE DtSpaceFollowViewCommand : public DtVrvCommand 00027 { 00028 public: 00029 00031 DtSpaceFollowViewCommand(); 00032 00034 virtual ~DtSpaceFollowViewCommand(); 00035 00038 00040 virtual std::string observer() const; 00041 00043 virtual void setObserver( const std::string& newObs ); 00044 00045 virtual DtVector offset() const; 00046 virtual void setOffset( const DtVector& vec ); 00047 00048 virtual DtTaitBryan offsetOrientation() const; 00049 virtual void setOffsetOrientation( const DtTaitBryan& ori ); 00050 00052 virtual DtUniqueID attachedEntity() const; 00053 00055 virtual void setAttachedEntity( const DtUniqueID& entityId ); 00056 00057 virtual DtBoolean localModelScalingEnabled() const; 00058 virtual void setLocalModelScalingEnabled( DtBoolean enabled ); 00059 00060 virtual DtFloat32 localModelScalingAmount() const; 00061 virtual void setLocalModelScalingAmount( DtFloat32 amount ); 00062 00064 00066 virtual void execute( DtDe& de ); 00067 00068 protected: 00069 00070 std::string myObserver; 00071 DtVector myOffset; 00072 DtTaitBryan myOffsetOri; 00073 DtUniqueID myAttachedEntity; 00074 DtBoolean myLocalModelScalingEnabled; 00075 DtFloat32 myLocalModelScalingAmount; 00076 00077 }; 00078 00081 class DT_DLL_VRVCORE DtSpaceFollowViewCommandCreator 00082 : public DtVrvCommandCreator 00083 { 00084 public: 00085 00087 DtSpaceFollowViewCommandCreator( GlobalIdConvertFunc func ); 00088 00090 virtual ~DtSpaceFollowViewCommandCreator(); 00091 00094 virtual DtVrvCommand* create( vrvControlToolkit::DtVrvControl_v1* control ); 00095 00096 }; 00097 00098 } //makVrv::