OpendTect  6.6
visrgbatexturechannel2rgba.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: K. Tingdahl
8  Date: Oct 2008
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "visbasemod.h"
16 #include "vistexturechannel2rgba.h"
17 
18 namespace osgGeo { class RGBALayerProcess; }
19 
20 
21 namespace visBase
22 {
23 
29 {
30 public:
33 
34  const ColTab::Sequence* getSequence(int ch) const;
35  void getChannelName(int,uiString&) const;
36 
37  void swapChannels(int ch0,int ch1);
38 
39  void setEnabled(int ch,bool yn);
40  bool isEnabled(int ch) const;
41 
42  void setTransparency(unsigned char);
43  unsigned char getTransparency() const;
44 
45  void applyUndefPerChannel(bool);
46  bool isUndefPerChannel() const;
47 
48  int maxNrChannels() const { return 4; }
49  int minNrChannels() const { return 4; }
50 
51 protected:
52 
54 
55  void notifyChannelInsert(int ch);
56 
58  unsigned char proctransparency_;
59 
61 
62  osgGeo::RGBALayerProcess* proc_;
63 };
64 
65 
66 }; //namespace
67 
68 
visBase::RGBATextureChannel2RGBA::notifyChannelInsert
void notifyChannelInsert(int ch)
visBase::TextureChannel2RGBA
Definition: vistexturechannel2rgba.h:36
visBase::RGBATextureChannel2RGBA::enabled_
BoolTypeSet enabled_
Definition: visrgbatexturechannel2rgba.h:57
visBase::RGBATextureChannel2RGBA
Definition: visrgbatexturechannel2rgba.h:29
vistexturechannel2rgba.h
ColTab
Color Table
Definition: coltab.h:22
visBase::RGBATextureChannel2RGBA::create
static RGBATextureChannel2RGBA * create()
Definition: visrgbatexturechannel2rgba.h:31
visBase
Definition: visannot.h:43
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
visBase::RGBATextureChannel2RGBA::~RGBATextureChannel2RGBA
~RGBATextureChannel2RGBA()
visBase::RGBATextureChannel2RGBA::proctransparency_
unsigned char proctransparency_
Definition: visrgbatexturechannel2rgba.h:58
ArrPtrMan< ColTab::Sequence >
HDF5::isEnabled
bool isEnabled(const char *typ=0)
Definition: hdf5access.h:253
visBase::RGBATextureChannel2RGBA::sequences_
static ArrPtrMan< ColTab::Sequence > sequences_
Definition: visrgbatexturechannel2rgba.h:60
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
osgGeo
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
mCreateDataObj
#define mCreateDataObj(clss)
Definition: visdata.h:214
visBase::RGBATextureChannel2RGBA::proc_
osgGeo::RGBALayerProcess * proc_
Definition: visrgbatexturechannel2rgba.h:62
visBase::RGBATextureChannel2RGBA::minNrChannels
int minNrChannels() const
Definition: visrgbatexturechannel2rgba.h:49
TypeSet< BoolTypeSetType >

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