VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEnvironmentalIndicatorVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <matrix/vlVector.h>
14 
15 namespace makVrv
16 {
17  class DtControlPointWidget;
18  class DtEnvironmentalStateListener;
19 
27  {
28  public:
31  DtStateListener& listener, int modelSet);
32 
35 
36  virtual void setWidgetEventsEnabled(bool b);
37 
38  virtual void setColor(float r,float g,float b,float a);
39  virtual void setIndicatorModelDefinitions(const std::string& normalTheme,
40  const std::string& activeTheme, const std::string& selectedTheme,
41  const std::string& multiSelectedTheme );
42 
43  virtual void setIndicatorsEnabled(bool);
44  virtual void setShowInfoPopupOnSelect(bool b);
45 
46  virtual void setUniqueID(DtUniqueID id);
47 
48  virtual void setSelected(bool);
49  virtual void setMultiSelected(bool);
50  virtual void setIndicatorPinned(bool b);
51 
52  DtEnvironmentalStateListener& environmentalStateListener()
53  {
54  return *myEnvironmentalListener;
55  }
56 
57  bool multiSelected() const
58  {
59  return myMultiSelected;
60  }
61 
63  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
64 
66  static const DtStateVisualizer::TypeInfo& theTypeInfo();
67 
68  protected:
69  virtual void createIndicator();
70  virtual void destroyIndicator();
71  virtual void createModelAgents();
72  virtual DtUnicode generateInfoString() const;
73  virtual bool indicatorsRealizable() const;
74  virtual bool indicatorsVisible() const;
75  virtual void updateIndicatorVisibility();
76  virtual void updateDefinitionState();
77  virtual bool selected() const;
78  virtual void slot_mouseInChanged(bool isMouseInIndicator);
79 
80  protected:
83  std::string myNormalTheme;
84  std::string myActiveTheme;
85  std::string myNormalPointTheme;
86  std::string myActivePointTheme;
88 
89  // Same as myListener, but casted for convenience
91  };
92 
97 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)