OpendTect  6.3
uigraphicsview.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Satyaki maitra
8  Date: March 2009
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uitoolsmod.h"
14 #include "uigraphicsviewbase.h"
15 
17 class uiLineItem;
18 class uiToolButton;
19 class uiParent;
20 namespace OD { class LineStyle; }
21 
23 {
24 public:
26  ~uiCrossHairItem();
27 
28  void setLineStyle(const OD::LineStyle&);
29  const OD::LineStyle& getLineStyle() const;
30 
31  void show(bool yn);
32  bool isShown() const;
33 
34  void showLine(OD::Orientation,bool yn);
35  bool isLineShown(OD::Orientation) const;
36 
37 protected:
38  void mouseMoveCB(CallBacker*);
39 
43 
46 };
47 
48 
51 public:
52  uiGraphicsView(uiParent*,const char* nm);
53 
54  uiToolButton* getSaveImageButton(uiParent*);
55  uiToolButton* getPrintImageButton(uiParent*);
56 
57  void enableImageSave();
58  void disableImageSave();
59 
60 protected:
62  void saveImageCB(CallBacker*);
63  void printImageCB(CallBacker*);
64 };
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Definition: draw.h:119
Definition: uigraphicsviewbase.h:26
bool enableimagesave_
Definition: uigraphicsview.h:61
OD::LineStyle & ls_
Definition: uigraphicsview.h:44
Definition: uiparent.h:24
FixedString LineStyle()
Definition: keystrs.h:80
Definition: uigraphicsitem.h:154
Definition: uigraphicsview.h:22
uiLineItem * vertline_
Definition: uigraphicsview.h:42
uiLineItem * horline_
Definition: uigraphicsview.h:41
Definition: uigraphicsview.h:49
Definition: uitoolbutton.h:20
OpendTect.
Definition: commontypes.h:25
uiGraphicsViewBase & view_
Definition: uigraphicsview.h:45
Definition: uigraphicsitemimpl.h:109
uiGraphicsItemGroup * itemgrp_
Definition: uigraphicsview.h:40
Orientation
Fundamental orientation in 2D UIs.
Definition: oduicommon.h:21

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017