18 #ifndef _IMPORT_IMAGE_VIEW_HH_
19 #define _IMPORT_IMAGE_VIEW_HH_
35 class ImportImageDialog;
55 public:
void SetImage(
const std::string &_filename);
59 public:
void RefreshDistance(
double _distance);
63 public:
void EnableDrawDistance(
bool _enable);
67 private:
void resizeEvent(QResizeEvent *_event);
71 private:
void mouseMoveEvent(QMouseEvent *_event);
75 private:
void mousePressEvent(QMouseEvent *_event);
79 private:
void mouseReleaseEvent(QMouseEvent *_event);
83 private:
void keyPressEvent(QKeyEvent *_event);
87 private:
void DrawMeasure(
const QPoint &_pos);
102 private:
bool drawInProgress;
105 private: std::vector<event::ConnectionPtr> connections;
109 private: QGraphicsItem *currentMouseItem;
115 private: QGraphicsPixmapItem *imageItem;
118 private: QPixmap *imagePixmap;
121 private: QGraphicsTextItem *noImageText;
124 private: QGraphicsTextItem *invalidImageText;
133 private:
bool drawDistanceEnabled;
Measurement lines and values.
Definition: MeasureItem.hh:36
int pixmapWidthPx
Width of the pixmap in pixels.
Definition: ImportImageView.hh:90
int measureScenePx
Length of the measure on the scene in pixels.
Definition: ImportImageView.hh:99
int imageWidthPx
Width of the image in pixels.
Definition: ImportImageView.hh:96
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393
2D grid lines.
Definition: GridLines.hh:33
int pixmapHeightPx
Height of the pixmap in pixels.
Definition: ImportImageView.hh:93
Control the import image view and manage contents in the scene.
Definition: ImportImageView.hh:42
Definition: ImportImageDialog.hh:33