OpendTect  6.3
vistopbotimage.h
Go to the documentation of this file.
1 #ifndef vistopbotimage_h
2 #define vistopbotimage_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Ranojay Sen
9  Date: June 2009
10 ________________________________________________________________________
11 
12 -*/
13 
14 
15 #include "visobject.h"
16 #include "position.h"
17 
18 namespace OD{ class RGBImage; }
19 namespace osgGeo { class LayeredTexture; class TexturePlaneNode; }
20 
21 
22 namespace visBase
23 {
24 
25 
27 {
28 public:
29  static TopBotImage* create()
31 
32  void setDisplayTransformation(const mVisTrans*);
33  const mVisTrans* getDisplayTransformation() const;
34  void setPos(const Coord3& tl,const Coord3& br);
35  const Coord3& topLeft() const { return pos0_; }
36  const Coord3& bottomRight() const { return pos1_; }
37 
38  void setImageFilename(const char*);
39  const char* getImageFilename() const;
40 
41  void setRGBImageFromFile(const char*);
42 
43  void setTransparency(float); // 0-1
44  float getTransparency() const; // returns value 0-1
45  void fillPar(IOPar&) const;
46  bool usePar(const IOPar&);
47 
48 protected:
49  ~TopBotImage();
50 
51  void updateCoords();
52  void setRGBImage(const OD::RGBImage&);
53 
54 
55  const mVisTrans* trans_;
59 
60  static const char* sKeyTopLeftCoord();
61  static const char* sKeyBottomRightCoord();
62  static const char* sKeyFileNameStr();
63  static const char* sKeyTransparencyStr();
64 
65  int layerid_;
66  osgGeo::LayeredTexture* laytex_;
67  osgGeo::TexturePlaneNode* texplane_;
68 };
69 
70 } // namespace visBase
71 
72 #endif
#define mExpClass(module)
Definition: commondefs.h:157
Coord3 pos1_
Definition: vistopbotimage.h:57
int layerid_
Definition: vistopbotimage.h:65
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
Coord3 pos0_
Definition: vistopbotimage.h:56
BufferString filenm_
Definition: vistopbotimage.h:58
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:35
const Coord3 & bottomRight() const
Definition: vistopbotimage.h:36
3D point or vector
Definition: commontypes.h:57
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
#define mVisTrans
Definition: visdata.h:25
osgGeo::TexturePlaneNode * texplane_
Definition: vistopbotimage.h:67
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
Definition: visannot.h:40
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
osgGeo::LayeredTexture * laytex_
Definition: vistopbotimage.h:66
Definition: vistopbotimage.h:26
const visBase::Transformation * trans_
Definition: vistopbotimage.h:55
OpendTect.
Definition: commontypes.h:25
Class for Red, Green, Blue image.
Definition: odimage.h:26
#define mCreateDataObj(clss)
Definition: visdata.h:210
Definition: visobject.h:67
static TopBotImage * create()
Definition: vistopbotimage.h:29

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