VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtEntityIndicatorWidget.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtEntityIndicatorWidget.h,v $ $Revision: 1.23 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtEntityIndicatorWidget_H_
00014 #define DtEntityIndicatorWidget_H_
00015 
00016 #include <vrvCore/vrvCore.h>
00017 #include <vrvCore/DtUniqueID.h>
00018 #include <vrvCore/DtAgentManagerInterface.h>
00019 #include <vrvCore/DtMouseState.h>
00020 #include <vrvCore/DtWidgetSignaler.h>
00021 
00022 #include <boost/signal.hpp>
00023 
00024 namespace makVrv
00025 {
00026    class DtAgentManagerInterface;
00027    class DtProjectedWidgetModelAgent;
00028    class DtWidgetAgent;
00029    class DtModelAgent;
00030    class DtWidgetInstanceSignaler;
00031 
00034    class DT_DLL_VRVCORE DtEntityIndicatorWidget
00035    {
00036    public:
00037 
00038       DtEntityIndicatorWidget( DtAgentManagerInterface& sceneInterface,
00039          unsigned int modelSet,
00040          const std::string& normalTheme = "EntityIndicatorTheme",
00041          const std::string& pinnedTheme = "EntityIndicatorPinnedTheme",
00042          int height = 32, int width = 32);
00043 
00044       virtual ~DtEntityIndicatorWidget();
00045 
00047       virtual void setIndicatorActive(bool active);
00048 
00050       virtual void setColor(float r, float g, float b, float a = 1.);
00051 
00053       DtModelAgent* model();
00054 
00056       virtual void setEventsEnabled(bool enabled);
00057 
00059       DtWidgetEventSignals& eventSignals(DtWidgetSignaler& signaler);
00060 
00061    protected:
00062 
00063       DtAgentManagerInterface& mySceneInterface;
00064       DtWidgetInstanceSignaler* myWidgetSignaler;
00065       DtProjectedWidgetModelAgent* myProjectedWidgetModel;
00066       DtWidgetAgent* myWidgetAgent;
00067       std::string myNormalTheme;
00068       std::string myPinnedTheme;
00069       bool mySelected;
00070       bool myEventsEnabled;
00071 
00072    };
00073 }
00074 
00075 #endif
00076 

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)