ImportImageViewPrivate.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_IMPORT_IMAGE_VIEW_PRIVATE_HH_
19 #define _GAZEBO_GUI_IMPORT_IMAGE_VIEW_PRIVATE_HH_
20 
21 #include <vector>
22 
24 
25 #include "gazebo/gui/qt.h"
26 
27 namespace gazebo
28 {
29  namespace gui
30  {
31  // Forward declare pointers.
32  class GridLines;
33  class ImportImageDialog;
34  class MeasureItem;
35 
39  {
41  public: int pixmapWidthPx;
42 
44  public: int pixmapHeightPx;
45 
47  public: int imageWidthPx;
48 
50  public: int measureScenePx;
51 
53  public: bool drawInProgress;
54 
56  public: std::vector<event::ConnectionPtr> connections;
57 
60  public: QGraphicsItem *currentMouseItem;
61 
63  public: GridLines *gridLines;
64 
66  public: QGraphicsPixmapItem *imageItem;
67 
69  public: QPixmap *imagePixmap;
70 
72  public: QGraphicsTextItem *noImageText;
73 
75  public: QGraphicsTextItem *invalidImageText;
76 
79 
82 
84  public: bool drawDistanceEnabled;
85  };
86  }
87 }
88 
89 #endif
QGraphicsTextItem * invalidImageText
Text to be displayed when an invalid file is selected.
Definition: ImportImageViewPrivate.hh:75
Measurement lines and values.
Definition: MeasureItem.hh:40
QGraphicsPixmapItem * imageItem
Currently selected image item.
Definition: ImportImageViewPrivate.hh:66
MeasureItem * measureItem
Text to be displayed when an invalid file is selected.
Definition: ImportImageViewPrivate.hh:78
Definition: ImportImageViewPrivate.hh:38
int measureScenePx
Length of the measure on the scene in pixels.
Definition: ImportImageViewPrivate.hh:50
int pixmapHeightPx
Height of the pixmap in pixels.
Definition: ImportImageViewPrivate.hh:44
bool drawInProgress
Indicate whether or not a drawing operation is taking place.
Definition: ImportImageViewPrivate.hh:53
bool drawDistanceEnabled
Indicates if it is allowed to draw on the view or not.
Definition: ImportImageViewPrivate.hh:84
QGraphicsTextItem * noImageText
Text to be displayed when no image has been selected.
Definition: ImportImageViewPrivate.hh:72
GridLines * gridLines
Grid lines drawn on the background of the editor.
Definition: ImportImageViewPrivate.hh:63
std::vector< event::ConnectionPtr > connections
A list of gui editor events connected to this view.
Definition: ImportImageViewPrivate.hh:56
2D grid lines.
Definition: GridLines.hh:37
int imageWidthPx
Width of the image in pixels.
Definition: ImportImageViewPrivate.hh:47
int pixmapWidthPx
Width of the pixmap in pixels.
Definition: ImportImageViewPrivate.hh:41
QPixmap * imagePixmap
Currently selected image pixmap.
Definition: ImportImageViewPrivate.hh:69
QGraphicsItem * currentMouseItem
Editor item currently attached to the mouse during a drawing.
Definition: ImportImageViewPrivate.hh:60
ImportImageDialog * dialog
Parent widget, which is the dialog.
Definition: ImportImageViewPrivate.hh:81
Definition: ImportImageDialog.hh:38