17 namespace ColTab {
class Sequence; }
18 namespace osgGeo {
class LayeredTexture;
class ColorSequence; }
19 namespace osg {
class Image; }
24 class TextureChannels;
25 class MappedTextureDataSet;
43 virtual const osg::Image* createRGBA()
const;
53 virtual bool isEnabled(
int ch)
const {
return true; }
55 virtual bool canUseShading()
const;
56 virtual void allowShading(
bool);
57 virtual bool usesShading()
const;
59 virtual int maxNrChannels()
const = 0;
61 virtual void getChannelName(
int,
uiString&)
const;
63 int getTexturePixelSizeInBits()
const;
64 const unsigned char* getTextureData()
const;
65 int getTextureWidth()
const;
66 int getTextureHeight()
const;
82 virtual int nrChannels()
const = 0;
83 virtual bool addChannel() = 0;
84 virtual bool enableNotify(
bool) = 0;
86 virtual void touch() = 0;
87 virtual void setNrChannels(
int) = 0;
105 void swapChannels(
int ch0,
int ch1);
107 bool canSetSequence()
const {
return true;}
108 void setSequence(
int ch,
const Sequence&);
109 const Sequence& getSequence(
int ch)
const;
111 void setEnabled(
int ch,
bool yn);
112 bool isEnabled(
int ch)
const;
114 void setTransparency(
int ch,
unsigned char yn);
115 unsigned char getTransparency(
int ch)
const;
117 int maxNrChannels()
const;
121 void notifyChannelInsert(
int ch);
122 void notifyChannelRemove(
int ch);
124 void adjustNrChannels();
130 void updFromSeq(
int);
133 void startMonitorSeq(
int);
134 void stopMonitorSeq(
int);
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Definition: vistexturechannels.h:46
ObjectSet< osgGeo::ColorSequence > osgcolsequences_
Definition: vistexturechannel2rgba.h:140
virtual void notifyChannelChange()
Definition: vistexturechannel2rgba.h:39
BoolTypeSet enabled_
Definition: vistexturechannel2rgba.h:137
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
A series of color control points able to give an (interpolated) color for every position [0...
Definition: coltabsequence.h:37
DataObject is the base class off all objects that are used in Visualization and ought to be shared in...
Definition: visdata.h:59
TypeSet< unsigned char > opacity_
Definition: vistexturechannel2rgba.h:138
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:35
Definition: vistexturechannel2rgba.h:79
Definition: uistring.h:88
virtual bool isEnabled(int ch) const
Definition: vistexturechannel2rgba.h:53
virtual bool canSetSequence() const
Definition: vistexturechannel2rgba.h:47
TypeSet< ConstRefMan< Sequence > > colseqs_
Definition: vistexturechannel2rgba.h:136
virtual void notifyChannelRemove(int ch)
Definition: vistexturechannel2rgba.h:41
Definition: vistexturechannel2rgba.h:33
Definition: vistexturechannel2rgba.h:96
virtual void setEnabled(int ch, bool yn)
Definition: vistexturechannel2rgba.h:52
static ColTabTextureChannel2RGBA * create()
Definition: vistexturechannel2rgba.h:102
Definition: visannot.h:40
Open Scene Graph.
Definition: visannot.h:26
virtual int minNrChannels() const
Definition: vistexturechannel2rgba.h:60
#define mCreateDataObj(clss)
Definition: visdata.h:210
virtual void swapChannels(int ch0, int ch1)
Definition: vistexturechannel2rgba.h:51
osgGeo::LayeredTexture * laytex_
Definition: vistexturechannel2rgba.h:72
TextureChannels * channels_
Definition: vistexturechannel2rgba.h:71
virtual void setSequence(int, const ColTab::Sequence &)
Definition: vistexturechannel2rgba.h:48
virtual void notifyChannelInsert(int ch)
Definition: vistexturechannel2rgba.h:40
ObjectSet< TypeSet< unsigned char > > osgcolseqarrays_
Definition: vistexturechannel2rgba.h:141
ColTab::Sequence Sequence
Definition: vistexturechannel2rgba.h:100