OpendTect  6.3
visimage.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: Kristofer Tingdahl
8  Date: Feb 2007
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "visdata.h"
15 #include "odimage.h"
16 
17 template <class T> class Array2D;
18 
19 class SoTexture2;
20 class SbImage;
21 
22 
23 namespace visBase
24 {
25 
29 {
30 public:
31  static Image* create()
33 
34  bool replacesMaterial() const;
35  void replaceMaterial(bool yn);
36 
37  void setData(const Array2D<Color>&,bool trans);
38  void setFileName(const char*);
39  const char* getFileName() const;
40 
41 protected:
42  ~Image();
43  SoTexture2* texture_;
44 };
45 
46 
48 {
49 public:
50  RGBImage();
51  RGBImage(SbImage*);
52 
53  bool hasAlpha() const;
54  char nrComponents() const;
55  bool setSize(int,int);
56  int getSize(bool xdir) const;
57  Color get(int,int) const;
58  bool set(int,int,const Color&);
59 
60  void fill(unsigned char*) const;
61 protected:
62 
63  SbImage* image_;
64 };
65 
66 };
#define mExpClass(module)
Definition: commondefs.h:157
Definition: visimage.h:47
DataObject is the base class off all objects that are used in Visualization and ought to be shared in...
Definition: visdata.h:59
Definition: visimage.h:28
SbImage * image_
Definition: visimage.h:63
static Image * create()
Definition: visimage.h:31
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:127
Definition: visannot.h:40
OpendTect.
Definition: commontypes.h:25
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:24
#define mCreateDataObj(clss)
Definition: visdata.h:210

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