ModelManipulatorPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2016 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_MANIPULATOR_PRIVATE_HH_
18 #define _MODEL_MANIPULATOR_PRIVATE_HH_
19 
20 #include <string>
21 #include <vector>
22 
25 
27 
29 
30 namespace gazebo
31 {
32  namespace gui
33  {
36  {
40 
42  public: std::string manipMode;
43 
46 
49 
52 
55 
58 
62 
65 
68 
71 
74 
76  public: bool initialized;
77 
80 
82  public: std::vector<math::Vector3> mouseChildVisualScale;
83 
86 
88  public: bool globalManip;
89  };
90  }
91 }
92 #endif
Generic description of a mouse event.
Definition: MouseEvent.hh:35
bool globalManip
True to manipulate model in global frame.
Definition: ModelManipulatorPrivate.hh:88
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
Mathematical representation of a box and related functions.
Definition: Box.hh:35
Generic integer x, y vector.
Definition: Vector2i.hh:36
transport::PublisherPtr modelPub
Model publisher that publishes model pose to the server.
Definition: ModelManipulatorPrivate.hh:57
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
transport::NodePtr node
Transportation node.
Definition: ModelManipulatorPrivate.hh:54
Forward declarations for transport.
rendering::UserCameraPtr userCamera
Pointer to the user camera.
Definition: ModelManipulatorPrivate.hh:64
transport::PublisherPtr userCmdPub
Publish user command messages for the server to place in the undo queue.
Definition: ModelManipulatorPrivate.hh:61
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:112
common::KeyEvent keyEvent
Current key event.
Definition: ModelManipulatorPrivate.hh:73
Private data for the ModelManipulator class.
Definition: ModelManipulatorPrivate.hh:35
rendering::ScenePtr scene
Pointer to the scene where models are in.
Definition: ModelManipulatorPrivate.hh:67
math::Vector2i mouseStart
Keep track of the mouse start screen position.
Definition: ModelManipulatorPrivate.hh:48
math::Vector3 mouseVisualScale
Scale of the visual attached to the mouse.
Definition: ModelManipulatorPrivate.hh:79
common::MouseEvent mouseEvent
Current mouse event.
Definition: ModelManipulatorPrivate.hh:70
rendering::SelectionObjPtr selectionObj
Selection object which users can interact with to manipulate the model.
Definition: ModelManipulatorPrivate.hh:39
std::string manipMode
The current manipulation mode.
Definition: ModelManipulatorPrivate.hh:42
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:80
std::vector< math::Vector3 > mouseChildVisualScale
Scale of all the child visuals attached to the mouse.
Definition: ModelManipulatorPrivate.hh:82
std::shared_ptr< SelectionObj > SelectionObjPtr
Definition: RenderTypes.hh:188
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:92
math::Box mouseVisualBbox
Bounding box of the visual attached to the mouse (for scaling).
Definition: ModelManipulatorPrivate.hh:85
rendering::VisualPtr mouseMoveVis
The current visual attached to the mouse.
Definition: ModelManipulatorPrivate.hh:51
math::Pose mouseMoveVisStartPose
Keep track of the mouse start pose before a move action.
Definition: ModelManipulatorPrivate.hh:45
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
bool initialized
True if the model manipulator is initialized.
Definition: ModelManipulatorPrivate.hh:76