OpendTect-6_4  6.4
vistexturechannel2voldata.h
Go to the documentation of this file.
1 #ifndef vistexturechannel2voldata_h
2 #define vistexturechannel2voldata_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Karthika
9  Date: Nov 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "visbasemod.h"
17 #include "vistexturechannel2rgba.h"
18 #include "coltabsequence.h"
19 
20 
21 namespace visBase
22 {
23 
29 {
30 public:
33 
34  const osg::Image* createRGBA() const { return 0; }
35  bool canSetSequence() const { return true; }
36  void setSequence(int channel,const ColTab::Sequence&);
37  const ColTab::Sequence* getSequence(int channel) const;
38 
39  void setEnabled(int ch, bool yn);
40  bool isEnabled(int ch) const;
41 
42  bool canUseShading() const { return false; }
43  bool usesShading() const { return false; }
44  int maxNrChannels() const { return 1; }
45  int minNrChannels() const { return 1; }
46 
47  MappedTextureDataSet* createMappedDataSet() const;
48 
49 protected:
51 
52  void setChannels(TextureChannels*);
53  void notifyChannelChange();
54  void update();
55  void makeColorTables();
56 
58  bool enabled_;
59 
60 /* OSG-TODO: Port to OSG if class is prolongated
61  SoTransferFunction* transferfunc_;
62  virtual SoNode* gtInvntrNode();
63 */
64 };
65 
66 } //namespace
67 
68 
69 #endif
#define mExpClass(module)
Definition: commondefs.h:160
bool usesShading() const
Definition: vistexturechannel2voldata.h:43
bool canUseShading() const
Definition: vistexturechannel2voldata.h:42
Definition: vistexturechannels.h:50
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
bool enabled_
Definition: vistexturechannel2voldata.h:58
ColTab::Sequence sequence_
Definition: vistexturechannel2voldata.h:57
Definition: visimage.h:31
Definition: vistexturechannel2rgba.h:82
int maxNrChannels() const
Definition: vistexturechannel2voldata.h:44
Definition: vistexturechannel2rgba.h:36
static TextureChannel2VolData * create()
Definition: vistexturechannel2voldata.h:31
Definition: vistexturechannel2voldata.h:28
Definition: visannot.h:43
bool canSetSequence() const
Definition: vistexturechannel2voldata.h:35
Open Scene Graph.
Definition: visannot.h:29
#define mCreateDataObj(clss)
Definition: visdata.h:209
int minNrChannels() const
Definition: vistexturechannel2voldata.h:45

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