VR-Forces 4.1.1 Class Documentation
DtEntityArticulatedStateModelVisualizer.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
11 
12 #pragma once
14 
15 class DtVector;
16 class DtTaitBryan;
17 
18 namespace makVrv
19 {
20 
21  class DtArticulatedModelAgent;
22 
27  {
28  public:
29 
32  DtStateListener& listener, int modelSet );
33 
36 
38  virtual void setAutoSendMovingState(bool);
39  bool autoSendMovingState() const
40  {
41  return myAutoSendMovingState;
42  }
43 
45  virtual void setState( int stateNumber, int stateValue );
46 
48  virtual void setVisualizerDefinition(const DtVisualizerDefinition& visDef);
49 
51  virtual void setColorizedColor( float r, float g, float b, float alpha );
52 
54  virtual void setDisableModelScaling( bool b );
55 
57  virtual void setLocalModelScalingEnabled( bool enabled );
58 
60  virtual void setLocalModelScalingAmount( float localScl );
61 
63  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
64 
66  static const DtStateVisualizer::TypeInfo& theTypeInfo();
67 
68  protected:
69 
70  virtual void createModelAgents();
71  virtual void destroyModelAgents();
72  virtual void setModelDefinitionForAgents();
73 
74  virtual void updateColorBlending();
75 
77  virtual void setPartTranslation(int partNumber,
78  const DtVector& transform, const DtVector& velocity) ;
79 
81  virtual void setPartOrientation(int partNumber,
82  const DtTaitBryan& orientation, const DtVector& rotationalVelocity);
83 
85  virtual void setVelocity(const DtVector& v);
86 
87  void updateMoving( bool moving);
88  virtual void setRelativeVelocity(const DtVector& v);
89 
90  protected:
91 
92  DtArticulatedModelAgent* myArticulatedModelAgent;
93 
98 
103 
106 
108 
109  };
110 
111 
116 
117 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)