OpendTect  6.3
vistexturechannel2voldata.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: Karthika
8  Date: Nov 2009
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "vistexturechannel2rgba.h"
15 #include "coltabsequence.h"
16 
17 
18 namespace visBase
19 {
20 
26 {
27 public:
31 
32  const osg::Image* createRGBA() const { return 0; }
33  bool canSetSequence() const { return true; }
34  void setSequence(int channel,const Sequence&);
35  const Sequence& getSequence(int channel) const;
36 
37  void setEnabled(int ch, bool yn);
38  bool isEnabled(int ch) const;
39 
40  bool canUseShading() const { return false; }
41  bool usesShading() const { return false; }
42  int maxNrChannels() const { return 1; }
43  int minNrChannels() const { return 1; }
44 
45  MappedTextureDataSet* createMappedDataSet() const;
46 
47 protected:
49 
50  void setChannels(TextureChannels*);
51  void notifyChannelChange();
52  void update();
53  void makeColorTables();
54  void seqModifCB(CallBacker*) { update(); }
55 
57  bool enabled_;
58 
59 /* OSG-TODO: Port to OSG if class is prolongated
60  SoTransferFunction* transferfunc_;
61  virtual SoNode* gtInvntrNode();
62 */
63 };
64 
65 } //namespace
#define mExpClass(module)
Definition: commondefs.h:157
bool usesShading() const
Definition: vistexturechannel2voldata.h:41
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
bool canUseShading() const
Definition: vistexturechannel2voldata.h:40
Definition: vistexturechannels.h:46
A series of color control points able to give an (interpolated) color for every position [0...
Definition: coltabsequence.h:37
bool enabled_
Definition: vistexturechannel2voldata.h:57
Definition: visimage.h:28
Definition: vistexturechannel2rgba.h:79
int maxNrChannels() const
Definition: vistexturechannel2voldata.h:42
Definition: vistexturechannel2rgba.h:33
ColTab::Sequence Sequence
Definition: vistexturechannel2voldata.h:28
void seqModifCB(CallBacker *)
Definition: vistexturechannel2voldata.h:54
static TextureChannel2VolData * create()
Definition: vistexturechannel2voldata.h:29
Definition: vistexturechannel2voldata.h:25
Definition: visannot.h:40
ConstRefMan< ColTab::Sequence > sequence_
Definition: vistexturechannel2voldata.h:56
bool canSetSequence() const
Definition: vistexturechannel2voldata.h:33
Open Scene Graph.
Definition: visannot.h:26
#define mCreateDataObj(clss)
Definition: visdata.h:210
int minNrChannels() const
Definition: vistexturechannel2voldata.h:43

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