 |
OpendTect
6.6
|
Go to the documentation of this file.
14 #include "visbasemod.h"
32 class ForegroundLifter;
37 class TextureChannels;
41 #undef mDeclSetGetItem
42 #define mDeclSetGetItem( ownclass, clssname, variable ) \
44 clssname* gt##clssname() const; \
46 inline clssname* get##clssname() { return gt##clssname(); } \
47 inline const clssname* get##clssname() const { return gt##clssname(); } \
48 void set##clssname(clssname*)
84 class TextureCallbackHandler;
85 class NodeCallbackHandler;
92 void setPrimitiveType(
Geometry::PrimitiveSet::PrimitiveType);
128 { usecoordinateschangedcb_ = yn; }
131 {
return useosgsmoothnormal_; }
136 BIND_PER_PRIMITIVE, BIND_PER_VERTEX};
195 #undef mDeclSetGetItem
TextureCallbackHandler * texturecallbackhandler_
Definition: visshape.h:182
A cartesian coordinate in 3D space.
Definition: coord.h:72
Definition: visshape.h:52
void removeAllPrimitiveSets()
void useVertexBufferRender(bool)
bool useosgsmoothnormal_
Definition: visshape.h:174
void enableCoordinatesChangedCB(bool yn)
Definition: visshape.h:127
void setNormalBindType(BindType)
ObjectSet< Geometry::PrimitiveSet > primitivesets_
Definition: visshape.h:191
Geometry::PrimitiveSet * doCreate(bool, bool)
Definition: arraytesselator.h:21
Definition: visannot.h:43
NodeCallbackHandler * nodecallbackhandler_
Definition: visshape.h:181
virtual void setLineStyle(const OD::LineStyle &)
Definition: visshape.h:101
RefMan< TextureChannels > channels_
Definition: visshape.h:180
Coord3 getOsgNormal(int) const
BindType normalbindtype_
Definition: visshape.h:178
#define mExpClass(module)
Definition: commondefs.h:177
FixedString Geometry()
Definition: keystrs.h:72
bool needstextureupdate_
Will trigger redraw request if necessary.
Definition: visshape.h:163
Normals * normals_
Definition: visshape.h:165
Open Scene Graph.
Definition: visannot.h:29
Threads::Lock redrawlock_
Definition: visshape.h:183
static int cPerVertexMaterialBinding()
Definition: visshape.h:59
Definition: visobject.h:37
TextureCoords * texturecoords_
Definition: visshape.h:167
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
Definition: indexedshape.h:29
void coordinatesChangedCB(CallBacker *)
Definition: visshape.h:200
Coordinates * coords_
Definition: visshape.h:166
BindType colorbindtype_
Definition: visshape.h:177
void useOsgAutoNormalComputation(bool)
Definition: indexedshape.h:99
bool useOsgAutoNormalComputation() const
Definition: visshape.h:130
BindType
Definition: visshape.h:134
virtual void touchPrimitiveSet(int)
Definition: visshape.h:122
Definition: vistexturechannels.h:50
osg::Geode * geode_
Definition: visshape.h:171
Shape
Definition: gmtdef.h:20
bool isredrawing_
Definition: visshape.h:184
Definition: visshape.h:83
static const char * sKeyTexture()
void setTextureChannels(TextureChannels *)
void setUpdateVar(bool &var, bool yn)
void setRenderMode(RenderMode)
static int cOverallMaterialBinding()
Definition: visshape.h:58
osg::Node * node_
Definition: visshape.h:169
virtual void removePrimitiveSetFromScene(const osg::PrimitiveSet *)
static const char * sKeyMaterial()
#define mDeclSetGetItem(ownclass, clssname, variable)
Definition: visshape.h:42
void addPrimitiveSet(Geometry::PrimitiveSet *)
virtual void setDisplayTransformation(const visBase::Transformation *)
bool usecoordinateschangedcb_
Definition: visshape.h:175
Material * material_
Definition: visshape.h:74
Definition: vismaterial.h:37
static VertexShape * create()
Definition: visshape.h:89
int getMaterialBinding() const
void updatePartialGeometry(Interval< int >)
#define mVisTrans
Definition: visdata.h:28
void fillPar(IOPar &) const
VertexShape(Geometry::PrimitiveSet::PrimitiveType, bool creategeode)
static const char * sKeyOnOff()
void setMaterial(Material *mt)
int usePar(const IOPar &)
osg default render lighting is on
void setColorBindType(BindType)
PrimitiveType
Definition: indexedshape.h:32
void materialChangeCB(CallBacker *)
#define mCreateDataObj(clss)
Definition: visdata.h:214
Geometry::PrimitiveSet::PrimitiveType primitivetype_
Definition: visshape.h:186
void forceRedraw(bool=true)
@ BIND_PER_PRIMITIVE_SET
Definition: visshape.h:135
A set of coordinates. The coordinates will be transformed by the transformation before given to Coin,...
Definition: viscoord.h:45
virtual const Coordinates * getCoordinates() const
Definition: visshape.h:100
void setMaterialBinding(int)
Threads::Lock lock_
Definition: visshape.h:188
RenderMode
Base class for all objects that are visual on the scene.
Definition: visobject.h:33
Definition: vistexturecoords.h:28
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class.
Definition: threadlock.h:53
virtual void addPrimitiveSetToScene(osg::PrimitiveSet *)
void removePrimitiveSet(const Geometry::PrimitiveSet *)
void setAttribAndMode(osg::StateAttribute *)
Definition: visnormals.h:32
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
int nrPrimitiveSets() const
void enableRenderLighting(bool)
const unsigned char * getTextureData(int &, int &, int &) const
osg::Geometry * osggeom_
Definition: visshape.h:172
Geometry::PrimitiveSet * getPrimitiveSet(int)
const visBase::Transformation * getDisplayTransformation() const
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021