VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSpaceFollowViewCommand.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtVrvCommand.h>
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <matrix/vlTaitBryan.h>
16 #include <matrix/vlVector.h>
17 
18 namespace makVrv
19 {
20 
24  {
25  public:
26 
29 
31  virtual ~DtSpaceFollowViewCommand();
32 
35 
37  virtual std::string observer() const;
38 
40  virtual void setObserver( const std::string& newObs );
41 
42  virtual DtVector offset() const;
43  virtual void setOffset( const DtVector& vec );
44 
45  virtual DtTaitBryan offsetOrientation() const;
46  virtual void setOffsetOrientation( const DtTaitBryan& ori );
47 
49  virtual DtUniqueID attachedEntity() const;
50 
52  virtual void setAttachedEntity( const DtUniqueID& entityId );
53 
54  virtual DtBoolean localModelScalingEnabled() const;
55  virtual void setLocalModelScalingEnabled( DtBoolean enabled );
56 
57  virtual DtFloat32 localModelScalingAmount() const;
58  virtual void setLocalModelScalingAmount( DtFloat32 amount );
59 
61 
63  virtual void execute( DtDe& de );
64 
65  protected:
66 
67  std::string myObserver;
69  DtTaitBryan myOffsetOri;
73 
74  };
75 
79  : public DtVrvCommandCreator
80  {
81  public:
82 
85 
88 
91  virtual DtVrvCommand* create( vrvControlToolkit::DtVrvControl_v1* control );
92 
93  };
94 
95 } //makVrv::
std::string myObserver
Definition: DtSpaceFollowViewCommand.h:67
DtSpaceFollowViewCommand enables space follow mode on the named observer.
Definition: DtSpaceFollowViewCommand.h:23
DtVrvCommandCreator is the base class for all command creators.
Definition: DtVrvCommand.h:44
DtUniqueID myAttachedEntity
Definition: DtSpaceFollowViewCommand.h:70
boost::function< DtUniqueID(const std::string &)> GlobalIdConvertFunc
typedef for the function that takes a protocol specific id (as a string) and looks up the DtUniqueID ...
Definition: DtVrvCommand.h:40
DtTaitBryan myOffsetOri
Definition: DtSpaceFollowViewCommand.h:69
float DtFloat32
Definition: vrvControlStructTypes.h:35
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtFloat32 myLocalModelScalingAmount
Definition: DtSpaceFollowViewCommand.h:72
Base structure for all controls.
Definition: vrvControlToolkitDataTypes.h:245
DtBoolean myLocalModelScalingEnabled
Definition: DtSpaceFollowViewCommand.h:71
DtSpaceFollowViewCommandCreator creates DtSpaceFollowViewCommands.
Definition: DtSpaceFollowViewCommand.h:78
DtVrvCommand is the base class for all commands.
Definition: DtVrvCommand.h:24
DtVector myOffset
Definition: DtSpaceFollowViewCommand.h:68
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
voidpf uLong offset
Definition: ioapi.h:42
Contains makVrv::DtVrvCommand and makVrv::DtVrvCommandCreator Classes.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)