ModelSnapPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _MODEL_SNAP_PRIVATE_HH_
18 #define _MODEL_SNAP_PRIVATE_HH_
19 
20 #include <string>
21 #include <vector>
22 
25 
27 
29 
30 namespace gazebo
31 {
32  namespace gui
33  {
37  {
40 
43 
46 
49 
52 
55 
58 
60  public: bool initialized;
61 
63  public: std::vector<math::Vector3> selectedTriangle;
64 
66  public: std::vector<math::Vector3> hoverTriangle;
67 
70 
73 
76 
78  public: boost::recursive_mutex *updateMutex;
79 
82 
85 
88 
91 
93  public: bool selectedTriangleDirty;
94 
96  public: bool hoverTriangleDirty;
97  };
98  }
99 }
100 #endif
rendering::DynamicLines * snapHighlight
A highlight of the hovered triangle.
Definition: ModelSnapPrivate.hh:90
Class for drawing lines that can change.
Definition: DynamicLines.hh:43
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:144
rendering::ScenePtr scene
Pointer to the scene where models are in.
Definition: ModelSnapPrivate.hh:48
Generic description of a mouse event.
Definition: MouseEvent.hh:32
boost::shared_ptr< RayQuery > RayQueryPtr
Definition: RenderTypes.hh:158
rendering::VisualPtr selectedVis
Currently selected visual.
Definition: ModelSnapPrivate.hh:69
rendering::VisualPtr snapVisual
A visual to represent the snap spot.
Definition: ModelSnapPrivate.hh:81
bool selectedTriangleDirty
A variable to indicate the selected triangle has changed.
Definition: ModelSnapPrivate.hh:93
event::ConnectionPtr renderConnection
Connection for the render event.
Definition: ModelSnapPrivate.hh:75
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
Forward declarations for transport.
bool hoverTriangleDirty
A variable to indicate the hovered triangle has changed.
Definition: ModelSnapPrivate.hh:96
std::vector< math::Vector3 > selectedTriangle
Vertices of a mesh triangle used as the basis for alignment.
Definition: ModelSnapPrivate.hh:63
common::KeyEvent keyEvent
Current key event.
Definition: ModelSnapPrivate.hh:57
bool initialized
True if the model align tool is initialized.
Definition: ModelSnapPrivate.hh:60
rendering::DynamicLines * snapLines
Lines to highlight the selected triangle.
Definition: ModelSnapPrivate.hh:84
transport::NodePtr node
Transportation node.
Definition: ModelSnapPrivate.hh:39
boost::recursive_mutex * updateMutex
Mutex to protect the selected triangle vertices.
Definition: ModelSnapPrivate.hh:78
transport::PublisherPtr modelPub
Model publisher that publishes model pose to the server.
Definition: ModelSnapPrivate.hh:42
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
common::MouseEvent mouseEvent
Current mouse event.
Definition: ModelSnapPrivate.hh:54
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:74
std::vector< math::Vector3 > hoverTriangle
Vertices of a mesh triangle being hovered.
Definition: ModelSnapPrivate.hh:66
Definition: ModelSnapPrivate.hh:36
rendering::UserCameraPtr userCamera
Pointer to the user camera.
Definition: ModelSnapPrivate.hh:45
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:102
rendering::VisualPtr hoverVis
Currently hovered visual.
Definition: ModelSnapPrivate.hh:72
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:86
rendering::RayQueryPtr rayQuery
Ray query for selecting a surface of an entity.
Definition: ModelSnapPrivate.hh:51
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
rendering::VisualPtr highlightVisual
A visual to represent the hovered area.
Definition: ModelSnapPrivate.hh:87