VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtObjectFacadeInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtObjectFacadeInterface_H_
11 #define DtObjectFacadeInterface_H_
12 
13 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtUniqueID.h>
15 #include <vrvCore/DtMouseState.h>
16 
17 #include <vrvUtil/signalslib.h>
18 
19 namespace makVrv
20 {
21  class DtStateVisualizer;
22 
26  {
27  public:
28 
30  virtual ~DtObjectFacadeInterface();
31 
33  virtual void setModelDefinition(const std::string& modelDefinition) = 0;
34 
36  virtual void setIndicatorModelDefinitions(
37  const std::string& normalTheme,
38  const std::string& activeTheme,
39  const std::string& selectedTheme,
40  const std::string& multiSelectedTheme) = 0;
41 
43  virtual DtUniqueID uniqueID() const = 0;
44 
46  virtual void setIndicatorsEnabled(bool enabled) = 0;
47 
49  virtual void setIndicatorsOnSelect(bool enabled) = 0;
50 
52  virtual void setHatLineVisible( bool visible ) = 0;
53 
55  virtual void setVisible(bool visible) = 0;
56 
58  virtual void setColor(float r,float g,float b,float a) = 0;
59 
61  virtual void setSelected(bool selected) = 0;
62 
64  virtual bool selected() const = 0;
65 
67  virtual DtStateVisualizer* visualizer(const std::string&) = 0;
68 
70 
72  typedef boost::signalslib::signal<void (
73  DtMouseState& mouseState, const DtUniqueID& id,
74  const std::string& displayEngineName,
75  const std::string& windowName, const std::string& channelName)>
77 
80 
83 
87  };
88 }
89 
90 #endif
91 
Base class for a facade object that owns widget indicators.
Definition: DtObjectFacadeInterface.h:25
WidgetEventSignal signal_indicatorMouseUp
Emitted when an indicator widget gets a mouse up event.
Definition: DtObjectFacadeInterface.h:82
WidgetEventSignal signal_indicatorMouseDown
Emitted when an indicator widget gets a mouse down event.
Definition: DtObjectFacadeInterface.h:79
This file contains the declaration for the class DtMouseState.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
This class encapsulates the state associated with a mouse button event.
Definition: DtMouseState.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
WidgetEventSignal signal_indicatorMouseDblClick
Emitted when an indicator widget gets a mouse dbl click event.
Definition: DtObjectFacadeInterface.h:85
The DtStateVisualizer is an abstract class.
Definition: DtStateVisualizer.h:32
Contains makVrv::DtUniqueID type.
boost::signalslib::signal< void(DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)> WidgetEventSignal
Emitted when an indicator widget gets a mouse down event.
Definition: DtObjectFacadeInterface.h:76
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)