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

Public Types

enum  SelectionType { Off, Rectangle, Polygon }
 

Public Member Functions

 PolygonSelection ()
 
virtual const char * getClassName () const
 
void setSelectionType (SelectionType)
 
SelectionType getSelectionType () const
 
void setLineStyle (const OD::LineStyle &)
 
const OD::LineStylegetLineStyle () const
 
void clear ()
 
bool hasPolygon () const
 
bool singleSelection () const
 
bool isSelfIntersecting () const
 
bool isInside (const Coord3 &, bool displayspace=false) const
 
char includesRange (const Coord3 &start, const Coord3 &stop, bool displayspace) const
 
void setUTMCoordinateTransform (const visBase::Transformation *)
 
bool rayPickThrough (const Coord3 &worldpos, TypeSet< int > &pickedobjids, int depthidx=0) const
 
void setMasterCamera (Camera *)
 
void setHUDCamera (Camera *)
 
PolygonSelectioncopy () 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 void setDisplayTransformation (const visBase::Transformation *)
 
virtual const visBase::TransformationgetDisplayTransformation () const
 
virtual void setPixelDensity (float dpi)
 
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 PolygonSelectioncreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
static Notifier< PolygonSelection > * polygonFinished ()
 
- 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

 PolygonSelection (const osgGeo::PolygonSelection *)
 
 ~PolygonSelection ()
 
void polygonChangeCB (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
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...
 

Protected Attributes

const visBase::Transformationutm2disptransform_
 
DrawStyledrawstyle_
 
ODPolygon< double > * polygon_
 
Threads::ReadWriteLock polygonlock_
 
osgGeo::PolygonSelection * selector_
 
Cameramastercamera_
 
SelectionCallBack * selectorcb_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

PolygonSelectionoperator= (const PolygonSelection &)
 
 PolygonSelection (const PolygonSelection &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Detailed Description

Paints a polygon or a rectangle just in front of near-clipping plane driven by mouse- movement. Once drawn, queries can be made whether points are inside or outside the polygon.

Member Enumeration Documentation

Enumerator
Off 
Rectangle 
Polygon 

Constructor & Destructor Documentation

visBase::PolygonSelection::PolygonSelection ( const PolygonSelection )
private
visBase::PolygonSelection::PolygonSelection ( )
visBase::PolygonSelection::PolygonSelection ( const osgGeo::PolygonSelection *  )
protected
visBase::PolygonSelection::~PolygonSelection ( )
protected

Member Function Documentation

void visBase::PolygonSelection::clear ( )
PolygonSelection* visBase::PolygonSelection::copy ( ) const
static PolygonSelection* visBase::PolygonSelection::create ( )
inlinestatic
static visBase::DataObject* visBase::PolygonSelection::createInternal ( )
inlinestaticprivate
virtual const char* visBase::PolygonSelection::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

const OD::LineStyle& visBase::PolygonSelection::getLineStyle ( ) const
SelectionType visBase::PolygonSelection::getSelectionType ( ) const
static const char* visBase::PolygonSelection::getStaticClassName ( )
static
bool visBase::PolygonSelection::hasPolygon ( ) const
char visBase::PolygonSelection::includesRange ( const Coord3 start,
const Coord3 stop,
bool  displayspace 
) const

0: projected box fully outside polygon 1: projected box partially outside polygon 2: projected box fully inside polygon 3: all box points behind projection plane 4: some box points behind projection plane

static void visBase::PolygonSelection::initClass ( )
static
bool visBase::PolygonSelection::isInside ( const Coord3 ,
bool  displayspace = false 
) const
bool visBase::PolygonSelection::isSelfIntersecting ( ) const
PolygonSelection& visBase::PolygonSelection::operator= ( const PolygonSelection )
private
void visBase::PolygonSelection::polygonChangeCB ( CallBacker )
protected
static Notifier<PolygonSelection>* visBase::PolygonSelection::polygonFinished ( )
static
bool visBase::PolygonSelection::rayPickThrough ( const Coord3 worldpos,
TypeSet< int > &  pickedobjids,
int  depthidx = 0 
) const
void visBase::PolygonSelection::setHUDCamera ( Camera )
void visBase::PolygonSelection::setLineStyle ( const OD::LineStyle )
void visBase::PolygonSelection::setMasterCamera ( Camera )
void visBase::PolygonSelection::setSelectionType ( SelectionType  )
void visBase::PolygonSelection::setUTMCoordinateTransform ( const visBase::Transformation )

This is a special function to set transform for computing real-world coordinates from screen coordinates.

static const char* visBase::PolygonSelection::sFactoryKeyword ( )
static
bool visBase::PolygonSelection::singleSelection ( ) const

Member Data Documentation

DrawStyle* visBase::PolygonSelection::drawstyle_
protected
Camera* visBase::PolygonSelection::mastercamera_
protected
ODPolygon<double>* visBase::PolygonSelection::polygon_
mutableprotected
Threads::ReadWriteLock visBase::PolygonSelection::polygonlock_
mutableprotected
osgGeo::PolygonSelection* visBase::PolygonSelection::selector_
protected
SelectionCallBack* visBase::PolygonSelection::selectorcb_
protected
const visBase::Transformation* visBase::PolygonSelection::utm2disptransform_
protected

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