OpendTect  6.3
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
visSurvey::PolygonBodyDisplay Class Reference
Inheritance diagram for visSurvey::PolygonBodyDisplay:
[legend]

Public Member Functions

 PolygonBodyDisplay ()
 
 mDefaultFactoryInstantiation (visSurvey::SurveyObject, PolygonBodyDisplay,"PolygonBodyDisplay", toUiString(sFactoryKeyword()))
 
DBKey getDBKey () const
 
bool isInlCrl () const
 
Color getColor () const
 
void setColor (Color)
 
bool hasColor () const
 
bool allowMaterialEdit () const
 
NotifierAccessmaterialChange ()
 
const OD::LineStylelineStyle () const
 
void setLineStyle (const OD::LineStyle &)
 
void showManipulator (bool)
 
bool isManipulatorShown () const
 
void setDisplayTransformation (const mVisTrans *)
 
const mVisTransgetDisplayTransformation () const
 
void setSceneEventCatcher (visBase::EventCatcher *)
 
void display (bool polygons, bool body)
 
bool arePolygonsDisplayed () const
 
bool isBodyDisplayed () const
 
void setOnlyAtSectionsDisplay (bool yn)
 
bool displayedOnlyAtSections () const
 
bool setEMID (const EM::ObjectID &)
 
EM::ObjectID getEMID () const
 
void touchAll (bool, bool updatemarker=false)
 
EM::PolygonBodygetEMPolygonBody () const
 
bool canRemoveSelection () const
 
bool removeSelections (TaskRunner *)
 
const uiStringerrMsg () const
 
virtual void setPixelDensity (float)
 
virtual void fillPar (IOPar &) const
 
virtual bool usePar (const IOPar &)
 
- 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 ()
 
- Public Member Functions inherited from visBase::VisualObject
virtual bool getBoundingBox (Coord3 &min, Coord3 &max) const
 
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 const char * getClassName () const
 
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
 
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 void setDisplayTransformation (const visBase::Transformation *)
 
virtual float getPixelDensity () 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 (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 

Protected Member Functions

virtual ~PolygonBodyDisplay ()
 
void otherObjectsMoved (const ObjectSet< const SurveyObject > &, int whichobj)
 
void updatePolygonDisplay ()
 
void updateSingleColor ()
 
void updateManipulator ()
 
bool isPicking () const
 
void mouseCB (CallBacker *)
 
void emChangeCB (CallBacker *)
 
void updateNearestPolygonMarker ()
 
void setNewIntersectingPolygon (const Coord3 &normal, const Coord3 &pt)
 
Coord3 disp2world (const Coord3 &displaypos) const
 
void setLineRadius (visBase::GeomIndexedShape *)
 
void reMakeIntersectionSurface ()
 
void matChangeCB (CallBacker *)
 
- 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
 ~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 () const
 Call from the destructor of your inherited object. More...
 
- Protected Member Functions inherited from visSurvey::SurveyObject
 SurveyObject ()
 
 ~SurveyObject ()
 
void initAdaptiveMouseCursor (CallBacker *eventcb, int objid, int inplanedragkeys, MouseCursor &)
 

Static Protected Member Functions

static const char * sKeyEMPolygonSurfID ()
 
- Static Protected Member Functions inherited from visSurvey::SurveyObject
static int cValNameOffset ()
 

Protected Attributes

visBase::EventCatchereventcatcher_
 
const mVisTransdisplaytransform_
 
visBase::GeomIndexedShapebodydisplay_
 
Geometry::ExplPolygonSurfaceexplicitbody_
 
visBase::GeomIndexedShapepolygondisplay_
 
Geometry::ExplPolygonSurfaceexplicitpolygons_
 
visBase::GeomIndexedShapeintersectiondisplay_
 
Geometry::ExplPlaneIntersectionexplicitintersections_
 
ObjectSet< const SurveyObjectintersectionobjs_
 
TypeSet< int > planeids_
 
visBase::PolyLine3Dnearestpolygonmarker_
 
int nearestpolygon_
 
EM::PolygonBodyempolygonsurf_
 
MPE::PolygonBodyEditorpolygonsurfeditor_
 
visSurvey::MPEEditorviseditor_
 
Coord3 mousepos_
 
bool showmanipulator_
 
Color nontexturecol_
 
bool displaypolygons_
 
visBase::DrawStyledrawstyle_
 
visBase::TriangleStripSetintsurf_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 
- Protected Attributes inherited from visSurvey::SurveyObject
uiString errmsg_
 
Scenescene_
 
int updatestagenr_
 
bool locked_
 
ObjectSet< BufferStringSetuserrefs_
 
const Survey::Geometry3Ds3dgeom_
 
BufferString survname_
 
bool saveinsessionsflag_
 

Additional Inherited Members

- 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 (Threads::ThreadID)
 Call only once from initialization. More...
 
static bool isVisualizationThread ()
 
static void requestSingleRedraw ()
 
static void setCommonViewer (osgViewer::CompositeViewer *)
 
static osgViewer::CompositeViewer * getCommonViewer ()
 
static const osgGeo::GLInfo * getGLInfo ()
 
static NotifierAccessglInfoAvailable ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

Constructor & Destructor Documentation

visSurvey::PolygonBodyDisplay::PolygonBodyDisplay ( )
virtual visSurvey::PolygonBodyDisplay::~PolygonBodyDisplay ( )
protectedvirtual

Member Function Documentation

bool visSurvey::PolygonBodyDisplay::allowMaterialEdit ( ) const
inlinevirtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::PolygonBodyDisplay::arePolygonsDisplayed ( ) const
bool visSurvey::PolygonBodyDisplay::canRemoveSelection ( ) const
inlinevirtual

Reimplemented from visSurvey::SurveyObject.

Coord3 visSurvey::PolygonBodyDisplay::disp2world ( const Coord3 displaypos) const
protected
void visSurvey::PolygonBodyDisplay::display ( bool  polygons,
bool  body 
)
bool visSurvey::PolygonBodyDisplay::displayedOnlyAtSections ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::PolygonBodyDisplay::emChangeCB ( CallBacker )
protected
const uiString& visSurvey::PolygonBodyDisplay::errMsg ( ) const
inlinevirtual

Reimplemented from visBase::DataObject.

virtual void visSurvey::PolygonBodyDisplay::fillPar ( IOPar ) const
virtual

Reimplemented from visBase::VisualObjectImpl.

Color visSurvey::PolygonBodyDisplay::getColor ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

DBKey visSurvey::PolygonBodyDisplay::getDBKey ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

const mVisTrans* visSurvey::PolygonBodyDisplay::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.

EM::ObjectID visSurvey::PolygonBodyDisplay::getEMID ( ) const
EM::PolygonBody* visSurvey::PolygonBodyDisplay::getEMPolygonBody ( ) const
inline
bool visSurvey::PolygonBodyDisplay::hasColor ( ) const
inlinevirtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::PolygonBodyDisplay::isBodyDisplayed ( ) const
bool visSurvey::PolygonBodyDisplay::isInlCrl ( ) const
inlinevirtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::PolygonBodyDisplay::isManipulatorShown ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::PolygonBodyDisplay::isPicking ( ) const
protectedvirtual

Reimplemented from visSurvey::SurveyObject.

const OD::LineStyle* visSurvey::PolygonBodyDisplay::lineStyle ( ) const
virtual
Note
Modification of color should be done with setMaterial on visBase::VisualObject If the linestyle can be set, a non-zero pointer should be return.

Reimplemented from visSurvey::SurveyObject.

void visSurvey::PolygonBodyDisplay::matChangeCB ( CallBacker )
protected
NotifierAccess* visSurvey::PolygonBodyDisplay::materialChange ( )
visSurvey::PolygonBodyDisplay::mDefaultFactoryInstantiation ( visSurvey::SurveyObject  ,
PolygonBodyDisplay  ,
"PolygonBodyDisplay"  ,
toUiString(sFactoryKeyword())   
)
void visSurvey::PolygonBodyDisplay::mouseCB ( CallBacker )
protected
void visSurvey::PolygonBodyDisplay::otherObjectsMoved ( const ObjectSet< const SurveyObject > &  ,
int  whichobj 
)
protectedvirtual

If other objects are moved, removed or added in the scene, this function is called.

Note
that it only notifies on objects that return something on getMovementNotifier().
Parameters
whichobjrefers to id of the moved object

Reimplemented from visSurvey::SurveyObject.

void visSurvey::PolygonBodyDisplay::reMakeIntersectionSurface ( )
protected
bool visSurvey::PolygonBodyDisplay::removeSelections ( TaskRunner )
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::PolygonBodyDisplay::setColor ( Color  )
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::PolygonBodyDisplay::setDisplayTransformation ( const mVisTrans )
bool visSurvey::PolygonBodyDisplay::setEMID ( const EM::ObjectID )
void visSurvey::PolygonBodyDisplay::setLineRadius ( visBase::GeomIndexedShape )
protected
void visSurvey::PolygonBodyDisplay::setLineStyle ( const OD::LineStyle )
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::PolygonBodyDisplay::setNewIntersectingPolygon ( const Coord3 normal,
const Coord3 pt 
)
protected
void visSurvey::PolygonBodyDisplay::setOnlyAtSectionsDisplay ( bool  yn)
virtual

Reimplemented from visSurvey::SurveyObject.

virtual void visSurvey::PolygonBodyDisplay::setPixelDensity ( float  )
virtual

Reimplemented from visBase::DataObject.

void visSurvey::PolygonBodyDisplay::setSceneEventCatcher ( visBase::EventCatcher )
virtual

Reimplemented from visBase::VisualObject.

void visSurvey::PolygonBodyDisplay::showManipulator ( bool  )
virtual

Reimplemented from visSurvey::SurveyObject.

static const char* visSurvey::PolygonBodyDisplay::sKeyEMPolygonSurfID ( )
inlinestaticprotected
void visSurvey::PolygonBodyDisplay::touchAll ( bool  ,
bool  updatemarker = false 
)
void visSurvey::PolygonBodyDisplay::updateManipulator ( )
protected
void visSurvey::PolygonBodyDisplay::updateNearestPolygonMarker ( )
protected
void visSurvey::PolygonBodyDisplay::updatePolygonDisplay ( )
protected
void visSurvey::PolygonBodyDisplay::updateSingleColor ( )
protected
virtual bool visSurvey::PolygonBodyDisplay::usePar ( const IOPar )
virtual

Reimplemented from visBase::VisualObjectImpl.

Member Data Documentation

visBase::GeomIndexedShape* visSurvey::PolygonBodyDisplay::bodydisplay_
protected
bool visSurvey::PolygonBodyDisplay::displaypolygons_
protected
const mVisTrans* visSurvey::PolygonBodyDisplay::displaytransform_
protected
visBase::DrawStyle* visSurvey::PolygonBodyDisplay::drawstyle_
protected
EM::PolygonBody* visSurvey::PolygonBodyDisplay::empolygonsurf_
protected
visBase::EventCatcher* visSurvey::PolygonBodyDisplay::eventcatcher_
protected
Geometry::ExplPolygonSurface* visSurvey::PolygonBodyDisplay::explicitbody_
protected
Geometry::ExplPlaneIntersection* visSurvey::PolygonBodyDisplay::explicitintersections_
protected
Geometry::ExplPolygonSurface* visSurvey::PolygonBodyDisplay::explicitpolygons_
protected
visBase::GeomIndexedShape* visSurvey::PolygonBodyDisplay::intersectiondisplay_
protected
ObjectSet<const SurveyObject> visSurvey::PolygonBodyDisplay::intersectionobjs_
protected
visBase::TriangleStripSet* visSurvey::PolygonBodyDisplay::intsurf_
protected
Coord3 visSurvey::PolygonBodyDisplay::mousepos_
protected
int visSurvey::PolygonBodyDisplay::nearestpolygon_
protected
visBase::PolyLine3D* visSurvey::PolygonBodyDisplay::nearestpolygonmarker_
protected
Color visSurvey::PolygonBodyDisplay::nontexturecol_
protected
TypeSet<int> visSurvey::PolygonBodyDisplay::planeids_
protected
visBase::GeomIndexedShape* visSurvey::PolygonBodyDisplay::polygondisplay_
protected
MPE::PolygonBodyEditor* visSurvey::PolygonBodyDisplay::polygonsurfeditor_
protected
bool visSurvey::PolygonBodyDisplay::showmanipulator_
protected
visSurvey::MPEEditor* visSurvey::PolygonBodyDisplay::viseditor_
protected

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