1 #ifndef vistexturechannels_h 2 #define vistexturechannels_h 16 #include "visbasemod.h" 22 namespace osgGeo {
class LayeredTexture; }
23 namespace ColTab {
class Mapper;
class MapperSetup; };
27 class MappedTextureDataSet;
28 class TextureChannel2RGBA;
52 class TextureCallbackHandler;
58 virtual
bool turnOn(
bool yn);
59 virtual
bool isOn() const;
61 int nrChannels() const;
63 int insertChannel(
int);
64 void removeChannel(
int);
65 void swapChannels(
int,
int);
67 void setColTabMapperSetup(
int channel,
68 const
ColTab::MapperSetup&);
70 const
ColTab::MapperSetup& getColTabMapperSetup(
int channel,
72 const
ColTab::Mapper& getColTabMapper(
int channel,
int version) const;
73 void reMapData(
int channel,
bool dontreclip,
75 const
TypeSet<
float>* getHistogram(
int channel) const;
77 void setSize(
int channel,
int sz0,
int sz1,
int sz2);
78 int getSize(
int channel,
unsigned char dim) const;
80 void setOrigin(
int channel,const
Coord& origin);
81 const
Coord& getOrigin(
int channel) const;
82 void setScale(
int channel,const
Coord& scale);
83 const
Coord& getScale(
int channel) const;
85 void setNrComponents(
int channel,
int nrcomp);
86 int getNrComponents(
int channel) const;
88 void setNrVersions(
int channel,
int nrvers);
89 int nrVersions(
int channel) const;
90 int currentVersion(
int channel) const;
91 void setCurrentVersion(
int channel,
int version);
93 bool isCurrentDataPremapped(
int channel) const;
95 bool setUnMappedVSData(
int channel,
int version,
97 TaskRunner*,
bool skipclip=false);
98 bool setUnMappedData(
int channel,
int version,
99 const
float*,
OD::PtrPolicy,
100 TaskRunner*,
bool skipclip=false);
101 bool setMappedData(
int channel,
int version,
102 unsigned char*,
OD::PtrPolicy);
103 void unfreezeOldData(
int channel);
106 TextureChannel2RGBA* getChannels2RGBA();
107 const TextureChannel2RGBA* getChannels2RGBA() const;
109 const SbImagei32* getChannels() const;
110 void touchMappedData();
112 osgGeo::LayeredTexture* getOsgTexture() {
return osgtexture_; }
116 void enableTextureInterpolation(
bool);
117 bool textureInterpolationEnabled()
const;
119 void setNonShaderResolution(
int);
120 int getNonShaderResolution()
const;
122 unsigned char nrDataBands()
const;
125 {
return nrDataBands() + nrUdfBands(); }
129 friend class ChannelInfo;
130 void update(
int channel,
bool freezeifnodata=
true);
131 void update(ChannelInfo*);
#define mExpClass(module)
Definition: commondefs.h:160
void turnOn(int flag)
Overrides the envirnonment variable.
Definition: vistexturechannels.h:50
osgGeo::LayeredTexture * osgtexture_
Definition: vistexturechannels.h:138
DataObject is the base class off all objects that are used in Visualization and ought to be shared in...
Definition: visdata.h:65
static TextureChannels * create()
Definition: vistexturechannels.h:55
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
unsigned char nrUdfBands() const
Definition: vistexturechannels.h:123
unsigned char nrTextureBands() const
Definition: vistexturechannels.h:124
bool interpolatetexture_
Definition: vistexturechannels.h:139
A cartesian coordinate in 2D space.
Definition: coord.h:25
TextureCallbackHandler * texturecallbackhandler_
Definition: vistexturechannels.h:134
Definition: vistexturechannel2rgba.h:36
const osgGeo::LayeredTexture * getOsgTexture() const
Definition: vistexturechannels.h:113
ObjectSet< ChannelInfo > channelinfo_
Definition: vistexturechannels.h:135
Set of (small) copyable elements.
Definition: commontypes.h:30
bool isOn(int flag=0xffff)
Class that can execute a task.
Definition: task.h:169
Interface to a series of values.
Definition: odmemory.h:17
Definition: visannot.h:43
OpendTect.
Definition: commontypes.h:29
PtrPolicy
Definition: odmemory.h:22
Color Table
Definition: coltab.h:22
#define mCreateDataObj(clss)
Definition: visdata.h:209
TextureChannel2RGBA * tc2rgba_
Definition: vistexturechannels.h:137