OpendTect  6.6
visgeomindexedshape.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: September 2007
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "visbasemod.h"
15 #include "valseries.h"
16 #include "visobject.h"
17 #include "coltabsequence.h"
18 #include "coltabmapper.h"
19 #include "visshape.h"
20 #include "draw.h"
21 
22 namespace Geometry { class IndexedGeometry; }
23 class TaskRunner;
24 class DataPointSet;
25 
26 namespace visBase
27 {
28 class DrawStyle;
29 class Transformation;
30 class Coordinates;
31 class Normals;
32 class TextureCoords;
33 class ForegroundLifter;
34 class VertexShape;
35 class TextureChannels;
36 
40 {
41 public:
44 
45  void setDisplayTransformation(const mVisTrans*);
46  const mVisTrans* getDisplayTransformation() const;
47 
48  void setSurface(Geometry::IndexedShape*,
49  TaskRunner* = 0);
52 
53  bool touch(bool forall,bool createnew=true,
54  TaskRunner* =0);
55 
56  void setRenderMode(RenderMode);
57 
58  void setLineStyle(const OD::LineStyle&);
61  void enableColTab(bool);
62  bool isColTabEnabled() const;
63  void setDataMapper(const ColTab::MapperSetup&,
64  TaskRunner*);
65  const ColTab::MapperSetup* getDataMapper() const;
66  void setDataSequence(const ColTab::Sequence&);
67  const ColTab::Sequence* getDataSequence() const;
68 
69  void getAttribPositions(DataPointSet&,
70  mVisTrans* extratrans,
71  TaskRunner*) const;
72  void setAttribData(const DataPointSet&,
73  TaskRunner*);
74 
75  void setMaterial(Material*);
76  void updateMaterialFrom(const Material*);
77 
85  void useOsgNormal(bool);
89 
91  virtual void setPixelDensity(float);
92 
93  VertexShape* getVertexShape() const { return vtexshape_; }
94 
95 
96 protected:
98  void reClip();
102 
104  {
105  public:
112  };
113 
114  static const char* sKeyCoordIndex() { return "CoordIndex";}
115 
117 
129 
132 };
133 
134 };
135 
visBase::GeomIndexedShape::ColorHandler::mapper_
ColTab::Mapper mapper_
Definition: visgeomindexedshape.h:108
OD::LineStyle
Definition: draw.h:118
visBase::GeomIndexedShape::sequence_
ColTab::Sequence sequence_
Definition: visgeomindexedshape.h:127
visBase::GeomIndexedShape::ColorHandler::~ColorHandler
~ColorHandler()
visBase::GeomIndexedShape::addNodeState
void addNodeState(visBase::NodeState *)
visBase::GeomIndexedShape::ColorHandler::attributecache_
ArrayValueSeries< float, float > attributecache_
Definition: visgeomindexedshape.h:111
visBase::GeomIndexedShape::ColorHandler::sequence_
ColTab::Sequence sequence_
Definition: visgeomindexedshape.h:109
ColTab
Color Table
Definition: coltab.h:22
visBase::GeomIndexedShape::getVertexShape
VertexShape * getVertexShape() const
Definition: visgeomindexedshape.h:93
valseries.h
Geometry
Definition: arraytesselator.h:21
visBase
Definition: visannot.h:43
Geometry::IndexedShape
Definition: indexedshape.h:182
visBase::GeomIndexedShape::~GeomIndexedShape
~GeomIndexedShape()
OD
OpendTect.
Definition: commontypes.h:28
visBase::GeomIndexedShape::matChangeCB
void matChangeCB(CallBacker *)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
visBase::GeomIndexedShape::setNormalBindType
void setNormalBindType(VertexShape::BindType)
visBase::GeomIndexedShape::sKeyCoordIndex
static const char * sKeyCoordIndex()
Definition: visgeomindexedshape.h:114
visBase::GeomIndexedShape::linestyle_
OD::LineStyle linestyle_
Definition: visgeomindexedshape.h:130
visBase::GeomIndexedShape::mapAttributeToColorTableMaterial
void mapAttributeToColorTableMaterial()
coltabmapper.h
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
coltabsequence.h
visobject.h
visBase::GeomIndexedShape::singlematerial_
Material * singlematerial_
Definition: visgeomindexedshape.h:125
visBase::GeomIndexedShape::setGeometryShapeType
void setGeometryShapeType(GeomShapeType shapetype, Geometry::PrimitiveSet::PrimitiveType pstype=Geometry::PrimitiveSet::TriangleStrip)
DataPointSet
Set of data points with group selection.
Definition: datapointset.h:48
visBase::GeomIndexedShape::vtexshape_
VertexShape * vtexshape_
Definition: visgeomindexedshape.h:119
ColTab::Sequence
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
visBase::GeomIndexedShape::shape_
Geometry::IndexedShape * shape_
Definition: visgeomindexedshape.h:118
visBase::VertexShape::BindType
BindType
Definition: visshape.h:134
visBase::TextureChannels
Definition: vistexturechannels.h:50
visBase::GeomIndexedShape::coltabmaterial_
Material * coltabmaterial_
Definition: visgeomindexedshape.h:126
visBase::GeomIndexedShape::ColorHandler::ColorHandler
ColorHandler()
visBase::GeomIndexedShape::GeomShapeType
GeomShapeType
Definition: visgeomindexedshape.h:78
Geometry::PrimitiveSet::TriangleStrip
@ TriangleStrip
Definition: indexedshape.h:33
visBase::VertexShape
Definition: visshape.h:83
visBase::GeomIndexedShape::ColorHandler::material_
visBase::Material * material_
Definition: visgeomindexedshape.h:110
ColTab::Mapper
Maps data values to colortable positions: [0,1].
Definition: coltabmapper.h:84
visBase::GeomIndexedShape
Definition: visgeomindexedshape.h:40
TaskRunner
Class that can execute a task.
Definition: task.h:170
visBase::GeomIndexedShape::setColorBindType
void setColorBindType(VertexShape::BindType)
visBase::NodeState
Definition: visnodestate.h:27
visBase::Material
Definition: vismaterial.h:37
visBase::GeomIndexedShape::useosgnormal_
bool useosgnormal_
Definition: visgeomindexedshape.h:131
visBase::GeomIndexedShape::ColorHandler
Definition: visgeomindexedshape.h:104
visBase::GeomIndexedShape::Triangle
@ Triangle
Definition: visgeomindexedshape.h:78
draw.h
visBase::GeomIndexedShape::setPixelDensity
virtual void setPixelDensity(float)
mVisTrans
#define mVisTrans
Definition: visdata.h:28
visBase::VisualObjectImpl
Definition: visobject.h:72
visBase::GeomIndexedShape::colortableenabled_
bool colortableenabled_
Definition: visgeomindexedshape.h:120
Geometry::PrimitiveSet::PrimitiveType
PrimitiveType
Definition: indexedshape.h:32
mCreateDataObj
#define mCreateDataObj(clss)
Definition: visdata.h:214
visBase::GeomIndexedShape::updateGeometryMaterial
void updateGeometryMaterial()
visBase::GeomIndexedShape::reClip
void reClip()
visBase::GeomIndexedShape::geomshapetype_
GeomShapeType geomshapetype_
Definition: visgeomindexedshape.h:128
sKey::LineStyle
FixedString LineStyle()
Definition: keystrs.h:89
visBase::GeomIndexedShape::setTextureChannels
void setTextureChannels(TextureChannels *)
visBase::PolyLine
Definition: vispolyline.h:36
visBase::GeomIndexedShape::colorhandler_
ColorHandler * colorhandler_
Definition: visgeomindexedshape.h:116
visBase::GeomIndexedShape::renderside_
int renderside_
Definition: visgeomindexedshape.h:121
visBase::RenderMode
RenderMode
Base class for all objects that are visual on the scene.
Definition: visobject.h:33
ArrayValueSeries< float, float >
visBase::GeomIndexedShape::create
static GeomIndexedShape * create()
Definition: visgeomindexedshape.h:42
visBase::GeomIndexedShape::useOsgNormal
void useOsgNormal(bool)
visBase::PolyLine3D
Definition: vispolyline.h:64
visshape.h

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