OpendTect-6_4  6.4
vishorizonsectiontileglue.h
Go to the documentation of this file.
1 #ifndef vishorizonsectiontileglue_h
2 #define vishorizonsectiontileglue_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: March 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 // this header file only be used in the classes related to Horizonsection .
16 // don't include it in somewhere else !!!
17 
18 #include "typeset.h"
19 #include "thread.h"
20 #include "visdata.h"
21 
22 
23 namespace osg
24 {
25  class Geometry;
26  class Geode;
27  class Array;
28  class DrawElementsUShort;
29 }
30 
31 
32 namespace visBase
33 {
34  class HorizonSectionTile;
35  class Coordinates;
36 
38 {
39 public:
42  void buildGlue(HorizonSectionTile*,
43  HorizonSectionTile*,bool);
44  osg::Geode* getGeode() { return gluegeode_; }
45  void setDisplayTransformation(const mVisTrans*);
46 
47 protected:
50  std::vector<osg::Array*> gluetxcoords_;
51  osg::Geode* gluegeode_;
53  osg::DrawElementsUShort* glueps_;
54  osg::DrawElementsUShort* glueosgps_;
55 
57 
59 
60  void buildOsgGeometry();
61  void addGlueTrianglePrimitiveSet(TypeSet<int>&);
62  void removeGlue();
63  void setNrTexCoordLayers(int);
64 };
65 
66 }
67 
68 #endif
osg::DrawElementsUShort * glueosgps_
Definition: vishorizonsectiontileglue.h:54
Definition: vishorizonsectiontileglue.h:37
osg::Geometry * gluegeom_
Definition: vishorizonsectiontileglue.h:52
osg::DrawElementsUShort * glueps_
Definition: vishorizonsectiontileglue.h:53
osg::Geode * gluegeode_
Definition: vishorizonsectiontileglue.h:51
std::vector< osg::Array * > gluetxcoords_
Definition: vishorizonsectiontileglue.h:50
#define mVisTrans
Definition: visdata.h:31
Definition: vishorizonsectiontile.h:51
A set of coordinates. The coordinates will be transformed by the transformation before given to Coin...
Definition: viscoord.h:46
Definition: visannot.h:43
Threads::Mutex datalock_
Definition: vishorizonsectiontileglue.h:56
Is a lock that allows a thread to have exlusive rights to something.
Definition: thread.h:43
const visBase::Transformation * transformation_
Definition: vishorizonsectiontileglue.h:58
visBase::Coordinates * gluenormalarr_
Definition: vishorizonsectiontileglue.h:49
Open Scene Graph.
Definition: visannot.h:29
visBase::Coordinates * gluevtexarr_
Definition: vishorizonsectiontileglue.h:48
Definition: arraytesselator.h:21
osg::Geode * getGeode()
Definition: vishorizonsectiontileglue.h:44
FixedString Geometry()
Definition: keystrs.h:69

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