OpendTect-6_4  6.4
vishorizontexturehandler.h
Go to the documentation of this file.
1 #ifndef vishorizontexturehandler_h
2 #define vishorizontexturehandler_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Kristofer Tingdahl
8  Date: March 2009
9  RCS: $Id$
10 ________________________________________________________________________
11 -*/
12 // this header file only be used in the classes related to Horzonsection .
13 // don't include it in somewhere else !!!
14 
15 
16 #include "refcount.h"
17 #include "rowcol.h"
18 
19 class DataPointSet;
20 class BinIDValueSet;
21 class TaskRunner;
22 
23 namespace osg { class Node; }
24 namespace osgGeo { class LayeredTexture; }
25 namespace ColTab { class Sequence; class MapperSetup; }
26 
27 namespace visBase
28 {
29  class TextureChannel2RGBA;
30  class TextureChannels;
31  class HorizonSection;
32 
34 {
36 public:
38  osg::Node* getOsgNode();
39  osgGeo::LayeredTexture* getOsgTexture();
40  int nrChannels() const;
41  void useChannel(bool);
42  void addChannel();
43  void removeChannel(int);
44  void swapChannels(int,int);
45  const BinIDValueSet* getCache(int channel) const;
46  void inValidateCache(int channel);
47 
48  void setChannels2RGBA(TextureChannel2RGBA*);
49  void setColTabSequence(int channel,
50  const ColTab::Sequence& se);
51  const ColTab::Sequence* getColTabSequence(int channel) const;
52 
53  void setColTabMapperSetup(int channel,
54  const ColTab::MapperSetup& mapper,
55  TaskRunner* tr);
56  const ColTab::MapperSetup* getColTabMapperSetup(int ch) const;
57  const TypeSet<float>* getHistogram(int ch) const;
58  void setTransparency(int ch, unsigned char yn);
59  unsigned char getTransparency(int ch) const;
60 
61  TextureChannel2RGBA* getChannels2RGBA();
62  const TextureChannel2RGBA* getChannels2RGBA() const;
63  TextureChannels* getChannels() const { return channels_; }
64  int nrVersions(int channel) const;
65  void setNrVersions(int channel,int);
66  int activeVersion(int channel) const;
67  void selectActiveVersion(int channel,int);
68 
69  void setTextureData(int channel, int sectionid,
70  const DataPointSet* dtpntset);
71  void updateTexture(int channel,int sectionid,
72  const DataPointSet*);
73  void updateTileTextureOrigin();
74 
75  void setHorizonSection(const HorizonSection&);
76 
77 
78 protected:
79 
82 
85 
86 };
87 }
88 #endif
#define mRefCountImpl(ClassName)
Macro to setup a class with destructor for reference counting.
Definition: refcount.h:163
Definition: vishorizonsection.h:51
Definition: vistexturechannels.h:50
Set of data points with group selection.
Definition: datapointset.h:48
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
TextureChannels * channels_
Definition: vishorizontexturehandler.h:83
TextureChannels * getChannels() const
Definition: vishorizontexturehandler.h:63
Definition: vistexturechannel2rgba.h:36
Class that can execute a task.
Definition: task.h:169
Definition: vishorizontexturehandler.h:33
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
ObjectSet< BinIDValueSet > cache_
Definition: vishorizontexturehandler.h:81
Definition: visannot.h:43
TextureChannel2RGBA * channel2rgba_
Definition: vishorizontexturehandler.h:84
Open Scene Graph.
Definition: visannot.h:29
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
Color Table
Definition: coltab.h:22
const HorizonSection * horsection_
Definition: vishorizontexturehandler.h:80

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