VR-Forces 4.0.4 Class Documentation
examples/exampleFomMapper/MassLabelVisualizer.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2010 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 
00006 #pragma once
00007 #include <vrvCore/DtEntityStateVisualizer.h>
00008 
00009 namespace makVrv
00010 {
00011    class DtWidgetLabelAgent;
00012    class DtProjectedWidgetModelAgent;
00013 }
00014 
00015 class MyEntityStateListener;
00016 
00018 class MassLabelVisualizer : public makVrv::DtEntityStateVisualizer
00019 {
00020 public:
00021 
00023    MassLabelVisualizer(makVrv::DtBaseConnection& simulation, 
00024       makVrv::DtStateListener& listener, int modelSet);
00025 
00027    virtual ~MassLabelVisualizer();
00028 
00031    virtual void createModelAgents();
00032 
00034    virtual void destroyModelAgents();
00035 
00037    virtual void updateMass(float mass);
00038 
00040    virtual const makVrv::DtStateVisualizer::TypeInfo& typeInfo() const;
00041 
00043    static const makVrv::DtStateVisualizer::TypeInfo& theTypeInfo();
00044 
00045 
00046 protected:
00047 
00051    virtual void setModelDefinitionForAgents();   
00052   
00053 protected:
00054 
00055    //A pointer to the model which attaches the widget to the scene object.
00056    makVrv::DtProjectedWidgetModelAgent* myProjectedModel;
00057 
00058    //A pointer to the lable which will display text.
00059    makVrv::DtWidgetLabelAgent* myLabel;
00060 };
00061 
00062 typedef makVrv::DtStateVisualizerCreatorTemplate<MassLabelVisualizer> MassLabelVisualizerCreator;

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)