VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtEntityIndicatorVisualizer.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtEntityIndicatorVisualizer.h,v $ $Revision: 1.43 $ $State: Exp $
00007 ******************************************************************************/
00008 
00014 
00015 #pragma once
00016 #include <vrvCore/DtIndicatorVisualizer.h>
00017 
00018 namespace makVrv
00019 {
00020    class DtEntityStateListener;
00021    class DtEntityIndicatorWidget;
00022    
00029    class DT_DLL_VRVCORE DtEntityIndicatorVisualizer : 
00030       public DtIndicatorVisualizer
00031    {
00032    public:
00034       DtEntityIndicatorVisualizer(DtBaseConnection& simulation, 
00035          DtStateListener& listener, int modelSet);
00036 
00038       virtual ~DtEntityIndicatorVisualizer();
00039 
00040       virtual void setWidgetEventsEnabled(bool b);
00041       virtual void setIndicatorPinned(bool b);
00042       virtual void setColor(float r,float g,float b,float a);
00043 
00045       DtEntityIndicatorWidget* indicator() const;
00046 
00048       DtEntityStateListener& entityStateListener();
00049 
00051       virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
00052 
00054       static const DtStateVisualizer::TypeInfo& theTypeInfo();
00055 
00056    protected:
00057       virtual void createIndicator();
00058       virtual void destroyIndicator();
00059       virtual DtUnicode generateInfoString() const;
00060 
00061    protected:
00062 
00063       DtEntityIndicatorWidget* myIndicator;
00064 
00066       DtEntityStateListener* myEntityListener;
00067    };
00068 
00069 
00070    typedef DtStateVisualizerCreatorTemplate<DtEntityIndicatorVisualizer>
00071       DtEntityIndicatorVisualizerCreator;
00072 }

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)