VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtFollowViewCommand.h
Go to the documentation of this file.
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 #include <vrvCore/DtUniqueID.h>
00017 #include <matrix/vlTaitBryan.h>
00018 #include <matrix/vlVector.h>
00019 
00020 namespace makVrv
00021 {
00024    class DT_DLL_VRVCORE DtFollowViewCommand : public DtVrvCommand
00025    {
00026    public: 
00028       DtFollowViewCommand();
00029 
00031       virtual ~DtFollowViewCommand();
00032 
00034       virtual std::string observer();
00035       
00037       virtual void setObserver(const std::string& newObs);
00038 
00041       virtual DtVector offset() const;
00042 
00049       //1 and X to the right.      
00050       virtual void setOffset(const DtVector& vec);
00051 
00054       virtual DtTaitBryan offsetOrientation() const;
00055 
00060       virtual void setOffsetOrientation(const DtTaitBryan& ori);
00061 
00063       virtual DtUniqueID attachedEntity() const;
00064 
00066       virtual void setAttachedEntity(const DtUniqueID& entityId); 
00067 
00069       virtual void execute(DtDe& de);
00070 
00071    protected:
00072       std::string myObserver;
00073       DtVector myOffset;
00074       DtTaitBryan myOffsetOri;
00075       DtUniqueID myAttachedEntity;
00076    };
00077 
00080    class DT_DLL_VRVCORE DtFollowViewCommandCreator : public DtVrvCommandCreator
00081    {
00082    public:
00083       DtFollowViewCommandCreator(GlobalIdConvertFunc func): DtVrvCommandCreator(func) {}
00084       virtual ~DtFollowViewCommandCreator() {}
00085 
00086       virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control);
00087    };
00088 
00089 } //makVrv::

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)