RectItemPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-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 
18 #ifndef _GAZEBO_GUI_BUILDING_RECTITEM_PRIVATE_HH_
19 #define _GAZEBO_GUI_BUILDING_RECTITEM_PRIVATE_HH_
20 
21 #include <vector>
22 
23 #include "gazebo/gui/qt.h"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
29  class GrabberHandle;
30  class RotateHandle;
31 
34  {
36  public: QPointF mousePressPos;
37 
39  public: int gridSpace;
40 
43  public: std::vector<GrabberHandle *> grabbers;
44 
47 
50  public: std::vector<Qt::CursorShape> cursors;
51 
53  public: unsigned int resizeFlag;
54 
57  public: double positionOnWall;
58 
60  public: double angleOnWall;
61  };
62  }
63 }
64 #endif
std::vector< Qt::CursorShape > cursors
A list of resize cursors used when the mouse hovers over the grabber handles.
Definition: RectItemPrivate.hh:50
double angleOnWall
Angle with respect to parent wall, either 0 or 180 degrees.
Definition: RectItemPrivate.hh:60
RotateHandle * rotateHandle
Rotate handle for rotating the rect item.
Definition: RectItemPrivate.hh:46
int gridSpace
Mouse press position in pixel coordinates.
Definition: RectItemPrivate.hh:39
std::vector< GrabberHandle * > grabbers
A list of grabber handles for this item.
Definition: RectItemPrivate.hh:43
Handle for rotating an editor item.
Definition: RotateHandle.hh:40
unsigned int resizeFlag
Resize flag that controls how the rect item can be resized.
Definition: RectItemPrivate.hh:53
double positionOnWall
Normalized position with respect to the wall segment's start point.
Definition: RectItemPrivate.hh:57
QPointF mousePressPos
Mouse press position in pixel coordinates.
Definition: RectItemPrivate.hh:36
Private data for the RectItem class.
Definition: RectItemPrivate.hh:33