OpendTect  6.3
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 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "vistexturechannel2rgba.h"
15 
16 namespace osgGeo { class RGBALayerProcess; }
17 
18 
19 namespace visBase
20 {
21 
27 {
28 public:
31 
32  const ColTab::Sequence& getSequence(int ch) const;
33  void getChannelName(int,uiString&) const;
34 
35  void swapChannels(int ch0,int ch1);
36 
37  void setEnabled(int ch,bool yn);
38  bool isEnabled(int ch) const;
39 
40  void setTransparency(unsigned char);
41  unsigned char getTransparency() const;
42 
43  void applyUndefPerChannel(bool);
44  bool isUndefPerChannel() const;
45 
46  int maxNrChannels() const { return 4; }
47  int minNrChannels() const { return 4; }
48 
49 protected:
50 
52 
53  void notifyChannelInsert(int ch);
54 
56  unsigned char proctransparency_;
57 
58  osgGeo::RGBALayerProcess* proc_;
59 };
60 
61 
62 }; //namespace
#define mExpClass(module)
Definition: commondefs.h:157
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:35
int minNrChannels() const
Definition: visrgbatexturechannel2rgba.h:47
Definition: uistring.h:88
osgGeo::RGBALayerProcess * proc_
Definition: visrgbatexturechannel2rgba.h:58
Definition: vistexturechannel2rgba.h:33
unsigned char proctransparency_
Definition: visrgbatexturechannel2rgba.h:56
Definition: visannot.h:40
BoolTypeSet enabled_
Definition: visrgbatexturechannel2rgba.h:55
static RGBATextureChannel2RGBA * create()
Definition: visrgbatexturechannel2rgba.h:29
Definition: coltab.h:20
#define mCreateDataObj(clss)
Definition: visdata.h:210
Definition: visrgbatexturechannel2rgba.h:26

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