OpendTect-6_4  6.4
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
visBase::GeomIndexedShape Class Reference
Inheritance diagram for visBase::GeomIndexedShape:
[legend]

Classes

class  ColorHandler
 

Public Types

enum  GeomShapeType { Triangle, PolyLine, PolyLine3D }
 

Public Member Functions

 GeomIndexedShape ()
 
virtual const char * getClassName () const
 
void setDisplayTransformation (const visBase::Transformation *)
 
const visBase::TransformationgetDisplayTransformation () const
 
void setSurface (Geometry::IndexedShape *, TaskRunner *=0)
 
bool touch (bool forall, bool createnew=true, TaskRunner *=0)
 
void setRenderMode (RenderMode)
 
void setLineStyle (const OD::LineStyle &)
 
void enableColTab (bool)
 
bool isColTabEnabled () const
 
void setDataMapper (const ColTab::MapperSetup &, TaskRunner *)
 
const ColTab::MapperSetupgetDataMapper () const
 
void setDataSequence (const ColTab::Sequence &)
 
const ColTab::SequencegetDataSequence () const
 
void getAttribPositions (DataPointSet &, visBase::Transformation *extratrans, TaskRunner *) const
 
void setAttribData (const DataPointSet &, TaskRunner *)
 
void setMaterial (Material *)
 
void updateMaterialFrom (const Material *)
 
void setGeometryShapeType (GeomShapeType shapetype, Geometry::PrimitiveSet::PrimitiveType pstype=Geometry::PrimitiveSet::TriangleStrip)
 
void useOsgNormal (bool)
 
void setNormalBindType (VertexShape::BindType)
 
void setColorBindType (VertexShape::BindType)
 
void addNodeState (visBase::NodeState *)
 
void setTextureChannels (TextureChannels *)
 
virtual void setPixelDensity (float)
 
VertexShapegetVertexShape () const
 
- Public Member Functions inherited from visBase::VisualObjectImpl
void setRightHandSystem (bool yn)
 
bool isRightHandSystem () const
 
void setLockable ()
 
void readLock ()
 
void readUnLock ()
 
bool tryReadLock ()
 
void writeLock ()
 
void writeUnLock ()
 
bool tryWriteLock ()
 
void setMaterial (Material *)
 
const MaterialgetMaterial () const
 
MaterialgetMaterial ()
 
virtual bool usePar (const IOPar &)
 
virtual void fillPar (IOPar &) const
 
- Public Member Functions inherited from visBase::VisualObject
virtual bool getBoundingBox (Coord3 &min, Coord3 &max) const
 
virtual void setSceneEventCatcher (EventCatcher *)
 
void setSelectable (bool yn)
 
bool selectable () const
 
NotifierAccessselection ()
 
NotifierAccessdeSelection ()
 
virtual NotifierAccessrightClicked ()
 
const EventInforightClickedEventInfo () const
 
const TypeSet< int > * rightClickedPath () const
 
- Public Member Functions inherited from visBase::DataObject
virtual bool isOK () const
 
int id () const
 
void setID (int nid)
 
uiString name () const
 
virtual void setName (const uiString &)
 
osg::Node * osgNode (bool skipswitch=false)
 
const osg::Node * osgNode (bool skipswitch=false) const
 
void enableTraversal (unsigned int mask, bool yn=true)
 
bool isTraversalEnabled (unsigned int mask) const
 
SoNode * getInventorNode ()
 
const SoNode * getInventorNode () const
 
virtual bool turnOn (bool yn)
 
virtual bool isOn () const
 
bool isPickable (bool actively=true) const
 
void setPickable (bool actively, bool passively=true)
 
virtual bool rightClickable () const
 
void select () const
 
void deSelect () const
 
void updateSel () const
 
virtual bool isSelected () const
 
virtual float getPixelDensity () const
 
virtual const char * errMsg () const
 
bool serialize (const char *filename, bool binary=false)
 
void setParent (DataObjectGroup *g)
 
template<class T >
T * addNodeState (T *ns)
 
NodeStateremoveNodeState (NodeState *)
 
NodeStategetNodeState (int idx)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static GeomIndexedShapecreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
- Static Public Member Functions inherited from visBase::VisualObjectImpl
static const char * sKeyMaterialID ()
 
static const char * sKeyMaterial ()
 
static const char * sKeyIsOn ()
 
- Static Public Member Functions inherited from visBase::DataObject
static int getID (const osg::Node *)
 
static float getDefaultPixelDensity ()
 
static void setVisualizationThread (const void *)
 Call only once from initialization. More...
 
static bool isVisualizationThread ()
 
static void requestSingleRedraw ()
 
static void setCommonViewer (osgViewer::CompositeViewer *)
 
static osgViewer::CompositeViewer * getCommonViewer ()
 

Protected Member Functions

 ~GeomIndexedShape ()
 
void reClip ()
 
void mapAttributeToColorTableMaterial ()
 
void matChangeCB (CallBacker *)
 
void updateGeometryMaterial ()
 
- Protected Member Functions inherited from visBase::VisualObjectImpl
int addChild (osg::Node *)
 
void insertChild (int pos, osg::Node *)
 
void removeChild (osg::Node *)
 
int childIndex (const osg::Node *) const
 
 VisualObjectImpl (bool selectable)
 
virtual ~VisualObjectImpl ()
 
virtual void materialChangeCB (CallBacker *)
 
virtual void setGroupNode (osg::Group *)
 Must be called during construction. More...
 
- Protected Member Functions inherited from visBase::VisualObject
void triggerSel ()
 
void triggerDeSel ()
 
void triggerRightClick (const EventInfo *)
 
 VisualObject (bool selectable=false)
 
 ~VisualObject ()
 
- Protected Member Functions inherited from visBase::DataObject
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
 DataObject ()
 
template<class T >
T * setOsgNode (T *t)
 Must be called during construction. More...
 
void updateNodemask ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static const char * sKeyCoordIndex ()
 

Protected Attributes

ColorHandlercolorhandler_
 
Geometry::IndexedShapeshape_
 
VertexShapevtexshape_
 
bool colortableenabled_
 
int renderside_
 
Materialsinglematerial_
 
Materialcoltabmaterial_
 
ColTab::Sequence sequence_
 
GeomShapeType geomshapetype_
 
OD::LineStyle linestyle_
 
bool useosgnormal_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

GeomIndexedShapeoperator= (const GeomIndexedShape &)
 
 GeomIndexedShape (const GeomIndexedShape &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Detailed Description

Visualization for Geometry::IndexedShape.

Member Enumeration Documentation

Enumerator
Triangle 
PolyLine 
PolyLine3D 

Constructor & Destructor Documentation

visBase::GeomIndexedShape::GeomIndexedShape ( const GeomIndexedShape )
private
visBase::GeomIndexedShape::GeomIndexedShape ( )
visBase::GeomIndexedShape::~GeomIndexedShape ( )
protected

Member Function Documentation

void visBase::GeomIndexedShape::addNodeState ( visBase::NodeState )
static GeomIndexedShape* visBase::GeomIndexedShape::create ( )
inlinestatic
static visBase::DataObject* visBase::GeomIndexedShape::createInternal ( )
inlinestaticprivate
void visBase::GeomIndexedShape::enableColTab ( bool  )
void visBase::GeomIndexedShape::getAttribPositions ( DataPointSet ,
visBase::Transformation extratrans,
TaskRunner  
) const
virtual const char* visBase::GeomIndexedShape::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

const ColTab::MapperSetup* visBase::GeomIndexedShape::getDataMapper ( ) const
const ColTab::Sequence* visBase::GeomIndexedShape::getDataSequence ( ) const
const visBase::Transformation* visBase::GeomIndexedShape::getDisplayTransformation ( ) const
virtual

All positions going from the outside world to the vis should be transformed with this transform. This enables us to have different coord-systems outside OI, e.g. we can use UTM coords outside the vis without loosing precision in the vis.

Reimplemented from visBase::DataObject.

static const char* visBase::GeomIndexedShape::getStaticClassName ( )
static
VertexShape* visBase::GeomIndexedShape::getVertexShape ( ) const
inline
static void visBase::GeomIndexedShape::initClass ( )
static
bool visBase::GeomIndexedShape::isColTabEnabled ( ) const
void visBase::GeomIndexedShape::mapAttributeToColorTableMaterial ( )
protected
void visBase::GeomIndexedShape::matChangeCB ( CallBacker )
protected
GeomIndexedShape& visBase::GeomIndexedShape::operator= ( const GeomIndexedShape )
private
void visBase::GeomIndexedShape::reClip ( )
protected
void visBase::GeomIndexedShape::setAttribData ( const DataPointSet ,
TaskRunner  
)
void visBase::GeomIndexedShape::setColorBindType ( VertexShape::BindType  )
void visBase::GeomIndexedShape::setDataMapper ( const ColTab::MapperSetup ,
TaskRunner  
)
void visBase::GeomIndexedShape::setDataSequence ( const ColTab::Sequence )
void visBase::GeomIndexedShape::setDisplayTransformation ( const visBase::Transformation )
virtual

All positions going from the outside world to the vis should be transformed with this transform. This enables us to have different coord-systems outside OI, e.g. we can use UTM coords outside the vis without loosing precision in the vis.

Reimplemented from visBase::DataObject.

void visBase::GeomIndexedShape::setGeometryShapeType ( GeomShapeType  shapetype,
Geometry::PrimitiveSet::PrimitiveType  pstype = Geometry::PrimitiveSet::TriangleStrip 
)

remove previous geometry shape and create a new geometry shape based on shape type.

void visBase::GeomIndexedShape::setLineStyle ( const OD::LineStyle )

for polylin3d, only the radius is used.

void visBase::GeomIndexedShape::setMaterial ( Material )
virtual

Implements visBase::VisualObject.

void visBase::GeomIndexedShape::setNormalBindType ( VertexShape::BindType  )
virtual void visBase::GeomIndexedShape::setPixelDensity ( float  )
virtual

Reimplemented from visBase::DataObject.

void visBase::GeomIndexedShape::setRenderMode ( RenderMode  )
void visBase::GeomIndexedShape::setSurface ( Geometry::IndexedShape ,
TaskRunner = 0 
)

Does not become mine, should remain in memory

void visBase::GeomIndexedShape::setTextureChannels ( TextureChannels )
static const char* visBase::GeomIndexedShape::sFactoryKeyword ( )
static
static const char* visBase::GeomIndexedShape::sKeyCoordIndex ( )
inlinestaticprotected
bool visBase::GeomIndexedShape::touch ( bool  forall,
bool  createnew = true,
TaskRunner = 0 
)
void visBase::GeomIndexedShape::updateGeometryMaterial ( )
protected
void visBase::GeomIndexedShape::updateMaterialFrom ( const Material )
void visBase::GeomIndexedShape::useOsgNormal ( bool  )

Member Data Documentation

ColorHandler* visBase::GeomIndexedShape::colorhandler_
protected
bool visBase::GeomIndexedShape::colortableenabled_
protected
Material* visBase::GeomIndexedShape::coltabmaterial_
protected
GeomShapeType visBase::GeomIndexedShape::geomshapetype_
protected
OD::LineStyle visBase::GeomIndexedShape::linestyle_
protected
int visBase::GeomIndexedShape::renderside_
protected

0 = visisble from both sides. 1 = visible from positive side -1 = visible from negative side.

ColTab::Sequence visBase::GeomIndexedShape::sequence_
protected
Geometry::IndexedShape* visBase::GeomIndexedShape::shape_
protected
Material* visBase::GeomIndexedShape::singlematerial_
protected
bool visBase::GeomIndexedShape::useosgnormal_
protected
VertexShape* visBase::GeomIndexedShape::vtexshape_
protected

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