VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtControllableShapeFacade.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2009 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 // /******************************************************************************
6 // ** $RCSfile: DtControllableShapeFacade.h,v $ $Revision: 1.20 $ $State: Exp $
7 // ******************************************************************************/
8 //
9 // //! \file DtControllableShapeFacade.h
10 // //! \brief Interaction makVrv::DtControllableShapeFacade class.
11 // //! \ingroup vrvCore
12 //
13 // #ifndef DtControllableShapeFacade_H_
14 // #define DtControllableShapeFacade_H_
15 //
16 // #include <vrvCore/vrvCore.h>
17 // #include <vrvCore/DtUniqueID.h>
18 // #include <vrvCore/DtBaseConnection.h>
19 // #include <vrvCore/DtTacticalGraphicStateListener.h>
20 // #include <vrvCore/DtObjectFacadeInterface.h>
21 //
22 // #include <matrix/vlVector.h>
23 //
24 // #include <boost/signal.hpp>
25 //
26 // #include <vector>
27 // #include <string>
28 //
29 // namespace makVrv
30 // {
31 // class DtUnicode;
32 // class DtMouseState;
33 // class DtEnvironmentalVisualizerSet;
34 // class DtAgentManagerInterface;
35 //
36 // //! \brief The base class for tactical graphic facades
37 // //! \ingroup vrvCore
38 // class DT_DLL_VRVCORE DtControllableShapeFacade : public DtObjectFacadeInterface
39 // {
40 // public:
41 //
42 // //! \brief CTOR
43 // DtControllableShapeFacade(DtAgentManagerInterface& sceneInterface, int modelSet, const std::string& shape = "Route");
44 //
45 // //! \brief DTOR
46 // virtual ~DtControllableShapeFacade();
47 //
48 // //! \brief Sets all the points of the line to the supplied list. Vertices are in local database coordinates
49 // virtual void setControlPoints(const std::vector<DtVector>&);
50 //
51 // //! \brief Add a control point to the end of the control point list
52 // virtual DtUniqueID addControlPoint(const DtVector& position);
53 //
54 // //! \brief Insert a control point at the specified index
55 // //! \retval Returns false if the index was invalid
56 // virtual bool insertControlPoint(const DtVector& position, int index);
57 //
58 // //! \brief Remove a control point at the specified index
59 // //! \retval Returns false if the index was invalid
60 // virtual bool removeControlPoint(int index);
61 //
62 // //! \brief Returns the model set being visualized
63 // int modelSet() const;
64 //
65 // //! \brief Move a control point at the specified index to a new position
66 // //! \retval Returns false if the index was invalid
67 // virtual bool moveControlPoint(const DtVector& position, int index);
68 //
69 // //! \brief Realize the shape with the specified model definition
70 // virtual void setModelDefinition(const std::string& modelDefinition);
71 //
72 // //! \brief Set the color of the shape in RGBA
73 // virtual void setColor(float r,float g,float b,float a);
74 //
75 // //! \brief Set the origin of the controllable shape
76 // virtual void setOrigin(const DtVector& position);
77 //
78 // //! \brief Get the origin of the controllable shape
79 // virtual DtVector origin() const;
80 //
81 // //! \brief Set the whole facade object's selection state
82 // virtual void setSelected(bool selected);
83 //
84 // //! \brief Get the whole facade object's selection state
85 // virtual bool selected() const;
86 //
87 // //! \brief Set the selection state for a specific control point
88 // virtual void setSelected(int index, bool selected);
89 //
90 // //! \brief Set the selection state for a specific control point
91 // virtual void setSelected(const DtUniqueID& vertex, bool selected);
92 //
93 // //! \brief Get the selection state for a specific control point
94 // virtual bool selected(int index) const;
95 //
96 // //! \brief Get the selection state for a specific control point
97 // virtual bool selected(const DtUniqueID& vertex) const;
98 //
99 // //! Set true to allow this object to be picked
100 // virtual void setPickable( bool pickable );
101 //
102 // //! \brief Set the info text for a particular control point
103 // virtual void setInfoText(int index, const DtUnicode& infoText);
104 //
105 // //! \brief Set the widget indicators on or off
106 // virtual void setIndicatorsEnabled(bool enabled);
107 //
108 // //! \brief Set the widget indicators to be on only for selected objects
109 // virtual void setIndicatorsOnSelect(bool enabled);
110 //
111 // //! \brief Set if the Height Above Terrain (HAT) line is visible.
112 // void setHatLineVisible( bool visible );
113 //
114 // //! \brief Set whether or not the shape vertices are visible
115 // virtual void setShapeVertexVisible( bool visible );
116 //
117 // //! Set whether the shape is visible or hidden
118 // virtual void setVisible( bool visible );
119 //
120 // //! Enable or disable widget events for the control points
121 // virtual void setWidgetEventsEnabled(bool enabled);
122 //
123 // virtual DtUniqueID uniqueID() const;
124 //
125 // virtual void setIndicatorModelDefinitions(
126 // const std::string& normalTheme,
127 // const std::string& activeTheme,
128 // const std::string& selectedTheme,
129 // const std::string& multiSelectedTheme);
130 //
131 // //! Returns the number of vertices in this object
132 // virtual int numVertices() const;
133 //
134 // //! Returns the vertex at the specified position
135 // virtual DtVector position(int) const;
136 //
137 // //! Returns the visualizer based on the name, or 0 if does not exists
138 // virtual DtStateVisualizer* visualizer(const std::string&);
139 //
140 // DtEnvironmentalVisualizerSet* visualizer()
141 // {
142 // return myVisualizer;
143 // }
144 //
145 // protected:
146 // //! Vertex Indicator signal forwarders
147 // void slot_vertexMouseDown( DtMouseState& mouseState,
148 // const DtUniqueID& id, const std::string& displayEngineName,
149 // const std::string& windowName, const std::string& channelName );
150 // void slot_vertexMouseUp( DtMouseState& mouseState,
151 // const DtUniqueID& id, const std::string& displayEngineName,
152 // const std::string& windowName, const std::string& channelName );
153 // void slot_vertexMouseDblClick( DtMouseState& mouseState,
154 // const DtUniqueID& id, const std::string& displayEngineName,
155 // const std::string& windowName, const std::string& channelName );
156 //
157 // //! \brief Copy CTOR
158 // DtControllableShapeFacade(DtControllableShapeFacade&);
159 //
160 // protected:
161 // DtEnvironmentalVisualizerSet* myVisualizer;
162 // DtBaseConnection myBaseConnection;
163 // DtTacticalGraphicStateListener myListener;
164 // };
165 // }
166 //
167 // #endif
168 //

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)