OpendTect-6_4  6.4
uiprintscenedlg.h
Go to the documentation of this file.
1 #ifndef uiprintscenedlg_h
2 #define uiprintscenedlg_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: K. Tingdahl
8  Date: July 2002
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiosgmod.h"
15 #include "uisaveimagedlg.h"
16 
17 class uiGenInput;
18 class uiLabeledComboBox;
19 class ui3DViewer;
20 
21 namespace osgViewer
22 { class View; }
23 namespace osg
24 { class Image; }
25 
31 { mODTextTranslationClass(ui3DViewer2Image)
32 public:
33  ui3DViewer2Image(ui3DViewer&,const char* imgfnm,
34  uiSize imgsz=uiSize(),int dpi=-1);
35 
36  bool create();
37 
38 protected:
39 
40  enum {InvalidImages=0, OnlyMainViewImage, MainAndHudImages };
41  osg::Image* offScreenRenderViewToImage(osgViewer::View*,
42  unsigned char transparency);
44  int validateImages(const osg::Image*,const osg::Image*);
45  bool hasImageValidFormat(const osg::Image*);
46  void flipImageVertical(osg::Image*);
47  bool saveImages(const osg::Image*,const osg::Image*);
48 
52  float dpi_;
54 };
55 
56 
59 public:
61 protected:
62 
64 
65  const char* getExtension();
66  void writeToSettings();
67  void getSupportedFormats(const char** imagefrmt,
68  const char** frmtdesc,
69  BufferString& filters);
70 
71  enum {InvalidImages=0, OnlyMainViewImage, MainAndHudImages };
72  void setFldVals(CallBacker*);
73  void sceneSel(CallBacker*);
74  bool acceptOK(CallBacker*);
75  osg::Image* offScreenRenderViewToImage(osgViewer::View*,
76  unsigned char transparency);
78  int validateImages(const osg::Image*,const osg::Image*);
79  bool hasImageValidFormat(const osg::Image*);
80  void flipImageVertical(osg::Image*);
81  bool saveImages(const osg::Image*,const osg::Image*);
82 
84 };
85 
86 #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
uiSize sizepix_
Definition: uiprintscenedlg.h:51
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: visdata.h:28
Definition: uistring.h:89
Definition: uiparent.h:26
Definition: uigeom.h:25
Definition: uiprintscenedlg.h:40
const ObjectSet< ui3DViewer > & viewers_
Definition: uiprintscenedlg.h:83
float dpi_
Definition: uiprintscenedlg.h:52
Definition: ui3dviewer.h:29
General Input Element.
Definition: uigeninput.h:58
uiString errmsg_
Definition: uiprintscenedlg.h:53
Print scene dialog box.
Definition: uiprintscenedlg.h:30
Definition: uicombobox.h:133
Definition: uiprintscenedlg.h:57
uiLabeledComboBox * scenefld_
Definition: uiprintscenedlg.h:63
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
static uiHor3DInterpol * create(uiParent *)
Open Scene Graph.
Definition: visannot.h:29
Definition: uiprintscenedlg.h:71
Definition: uisaveimagedlg.h:27
BufferString imgfnm_
Definition: uiprintscenedlg.h:50
ui3DViewer & vwr_
Definition: uiprintscenedlg.h:49

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