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

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