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

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