OpendTect  6.3
vishorizontexturehandler.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: Kristofer Tingdahl
7  Date: March 2009
8 ________________________________________________________________________
9 -*/
10 // this header file only be used in the classes related to Horzonsection .
11 // don't include it in somewhere else !!!
12 
13 
14 #include "visbasecommon.h"
15 #include "rowcol.h"
16 #include "refcount.h"
17 
18 class DataPointSet;
19 class BinIDValueSet;
20 namespace osg { class Node; }
21 namespace osgGeo { class LayeredTexture; }
22 
23 namespace visBase
24 {
25 class TextureChannel2RGBA;
26 class TextureChannels;
27 class HorizonSection;
28 
29 class HorizonTextureHandler : public RefCount::Referenced
30 {
31 public:
33  osg::Node* getOsgNode();
34  osgGeo::LayeredTexture* getOsgTexture();
35  int nrChannels() const;
36  void useChannel(bool);
37  void addChannel();
38  void removeChannel(int);
39  void swapChannels(int,int);
40  const BinIDValueSet* getCache(int channel) const;
41  void inValidateCache(int channel);
42 
43  void setChannels2RGBA(TextureChannel2RGBA*);
44  void setColTabSequence(int channel,
45  const ColTab::Sequence& se);
46  const ColTab::Sequence& getColTabSequence(int channel) const;
47 
48  void setColTabMapper(int channel,
49  const ColTab::Mapper& mapper,
50  TaskRunner* tskr);
51  const ColTab::Mapper& getColTabMapper(int ch) const;
52  void setTransparency(int ch, unsigned char yn);
53  unsigned char getTransparency(int ch) const;
54 
55  TextureChannel2RGBA* getChannels2RGBA();
56  const TextureChannel2RGBA* getChannels2RGBA() const;
57  TextureChannels* getChannels() const { return channels_; }
58  int nrVersions(int channel) const;
59  void setNrVersions(int channel,int);
60  int activeVersion(int channel) const;
61  void selectActiveVersion(int channel,int);
62 
63  void setTextureData(int channel, int sectionid,
64  const DataPointSet* dtpntset);
65  void updateTexture(int channel,int sectionid,
66  const DataPointSet*);
67  void updateTileTextureOrigin();
68 
69  void setHorizonSection(const HorizonSection&);
70 
71 
72 protected:
74 
77 
80 
81 };
82 
83 } // namesapce visBase
Definition: vishorizonsection.h:45
Definition: vistexturechannels.h:46
Set of data points with group selection.
Definition: datapointset.h:47
A series of color control points able to give an (interpolated) color for every position [0...
Definition: coltabsequence.h:37
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:35
TextureChannels * channels_
Definition: vishorizontexturehandler.h:78
TextureChannels * getChannels() const
Definition: vishorizontexturehandler.h:57
Maps data values to color sequence positions: [0,1].
Definition: coltabmapper.h:33
Definition: vistexturechannel2rgba.h:33
Class that can execute a task.
Definition: task.h:193
Definition: vishorizontexturehandler.h:29
ObjectSet< BinIDValueSet > cache_
Definition: vishorizontexturehandler.h:76
Definition: visannot.h:40
TextureChannel2RGBA * channel2rgba_
Definition: vishorizontexturehandler.h:79
Open Scene Graph.
Definition: visannot.h:26
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:21
const HorizonSection * horsection_
Definition: vishorizontexturehandler.h:75

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