VR-Forces 4.2 Class Documentation
MassLabelVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 #include <vrvCore/DtEntityStateVisualizer.h>
8 
9 namespace makVrv
10 {
11  class DtWidgetLabelAgent;
12  class DtProjectedWidgetModelAgent;
13 }
14 
16 
18 class MassLabelVisualizer : public makVrv::DtEntityStateVisualizer
19 {
20 public:
21 
23  MassLabelVisualizer(makVrv::DtBaseConnection& simulation,
24  makVrv::DtStateListener& listener, int modelSet);
25 
27  virtual ~MassLabelVisualizer();
28 
31  virtual void createModelAgents();
32 
34  virtual void destroyModelAgents();
35 
37  virtual void updateMass(float mass);
38 
40  virtual const makVrv::DtStateVisualizer::TypeInfo& typeInfo() const;
41 
43  static const makVrv::DtStateVisualizer::TypeInfo& theTypeInfo();
44 
45 
46 protected:
47 
51  virtual void setModelDefinitionForAgents();
52 
53 protected:
54 
55  //A pointer to the model which attaches the widget to the scene object.
56  makVrv::DtProjectedWidgetModelAgent* myProjectedModel;
57 
58  //A pointer to the lable which will display text.
59  makVrv::DtWidgetLabelAgent* myLabel;
60 };
61 
62 typedef makVrv::DtStateVisualizerCreatorTemplate<MassLabelVisualizer> MassLabelVisualizerCreator;

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)