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

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