OpendTect-6_4  6.4
visimage.h
Go to the documentation of this file.
1 #ifndef visimage_h
2 #define visimage_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: Feb 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "visbasemod.h"
17 #include "visdata.h"
18 #include "odimage.h"
19 
20 template <class T> class Array2D;
21 
22 class SoTexture2;
23 class SbImage;
24 
25 
26 namespace visBase
27 {
28 
32 {
33 public:
34  static Image* create()
36 
37  bool replacesMaterial() const;
38  void replaceMaterial(bool yn);
39 
40  void setData(const Array2D<Color>&,bool trans);
41  void setFileName(const char*);
42  const char* getFileName() const;
43 
44 protected:
45  ~Image();
46  SoTexture2* texture_;
47 
48  virtual SoNode* gtInvntrNode();
49 
50 };
51 
52 
54 {
55 public:
56  RGBImage();
57  RGBImage(SbImage*);
58 
59  bool hasAlpha() const;
60  char nrComponents() const;
61  bool setSize(int,int);
62  int getSize(bool xdir) const;
63  Color get(int,int) const;
64  bool set(int,int,const Color&);
65 
66  void fill(unsigned char*) const;
67 protected:
68 
69  SbImage* image_;
70 };
71 
72 };
73 
74 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: visimage.h:53
DataObject is the base class off all objects that are used in Visualization and ought to be shared in...
Definition: visdata.h:65
Definition: visimage.h:31
SbImage * image_
Definition: visimage.h:69
static Image * create()
Definition: visimage.h:34
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
Definition: visannot.h:43
OpendTect.
Definition: commontypes.h:29
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
#define mCreateDataObj(clss)
Definition: visdata.h:209

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