VR-Forces 4.8 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) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtObjectFacadeInterface.h,v $ $Revision: 1.7 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtObjectFacadeInterface_H_
14 #define DtObjectFacadeInterface_H_
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtUniqueID.h>
18 #include <vrvCore/DtMouseState.h>
19 
20 #include <boost/signal.hpp>
21 
22 namespace makVrv
23 {
24  class DtStateVisualizer;
25 
29  {
30  public:
31 
33  virtual ~DtObjectFacadeInterface();
34 
36  virtual void setModelDefinition(const std::string& modelDefinition) = 0;
37 
39  virtual void setIndicatorModelDefinitions(
40  const std::string& normalTheme,
41  const std::string& activeTheme,
42  const std::string& selectedTheme,
43  const std::string& multiSelectedTheme) = 0;
44 
46  virtual DtUniqueID uniqueID() const = 0;
47 
49  virtual void setIndicatorsEnabled(bool enabled) = 0;
50 
52  virtual void setIndicatorsOnSelect(bool enabled) = 0;
53 
55  virtual void setHatLineVisible( bool visible ) = 0;
56 
58  virtual void setVisible(bool visible) = 0;
59 
61  virtual void setColor(float r,float g,float b,float a) = 0;
62 
64  virtual void setSelected(bool selected) = 0;
65 
67  virtual bool selected() const = 0;
68 
70  virtual DtStateVisualizer* visualizer(const std::string&) = 0;
71 
73 
75  typedef boost::signal<void (
76  DtMouseState& mouseState, const DtUniqueID& id,
77  const std::string& displayEngineName,
78  const std::string& windowName, const std::string& channelName)>
80 
83 
86 
90  };
91 }
92 
93 #endif
94 
Base class for a facade object that owns widget indicators.
Definition: DtObjectFacadeInterface.h:28
WidgetEventSignal signal_indicatorMouseUp
Emitted when an indicator widget gets a mouse up event.
Definition: DtObjectFacadeInterface.h:85
WidgetEventSignal signal_indicatorMouseDown
Emitted when an indicator widget gets a mouse down event.
Definition: DtObjectFacadeInterface.h:82
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:23
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
WidgetEventSignal signal_indicatorMouseDblClick
Emitted when an indicator widget gets a mouse dbl click event.
Definition: DtObjectFacadeInterface.h:88
boost::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:79
The DtStateVisualizer is an abstract class.
Definition: DtStateVisualizer.h:30
Contains makVrv::DtUniqueID type.
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)