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

Public Member Functions

 DataObjectGroup ()
 
virtual const char * getClassName () const
 
void setSeparate (bool yn=true)
 
virtual int size () const
 
virtual void addObject (DataObject *)
 
void addObject (int id)
 
virtual void insertObject (int idx, DataObject *)
 
virtual int getFirstIdx (int id) const
 
virtual int getFirstIdx (const DataObject *) const
 
virtual void removeObject (int idx)
 
virtual void removeAll ()
 
virtual DataObjectgetObject (int idx)
 
const DataObjectgetObject (int idx) const
 
void setDisplayTransformation (const visBase::Transformation *)
 
const visBase::TransformationgetDisplayTransformation () const
 
void setRightHandSystem (bool)
 
bool isRightHandSystem () const
 
void setPixelDensity (float dpi)
 
float getPixelDensity () 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
 
virtual bool selectable () const
 
void select () const
 
void deSelect () const
 
void updateSel () const
 
virtual bool isSelected () const
 
virtual NotifierAccessselection ()
 
virtual NotifierAccessdeSelection ()
 
virtual NotifierAccessrightClicked ()
 
virtual const TypeSet< int > * rightClickedPath () 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 DataObjectGroupcreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
- 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 ()
 

Public Attributes

Notifier< DataObjectGroupchange
 

Protected Member Functions

virtual ~DataObjectGroup ()
 
- Protected Member Functions inherited from visBase::DataObject
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
virtual void triggerSel ()
 
virtual void triggerDeSel ()
 
virtual void triggerRightClick (const EventInfo *=0)
 
 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

osg::Group * osggroup_
 
bool righthandsystem_
 
float pixeldensity_
 
ObjectSet< DataObjectobjects_
 
bool separate_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

DataObjectGroupoperator= (const DataObjectGroup &)
 
 DataObjectGroup (const DataObjectGroup &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Detailed Description

Constructor & Destructor Documentation

visBase::DataObjectGroup::DataObjectGroup ( const DataObjectGroup )
private
visBase::DataObjectGroup::DataObjectGroup ( )
virtual visBase::DataObjectGroup::~DataObjectGroup ( )
protectedvirtual

Member Function Documentation

virtual void visBase::DataObjectGroup::addObject ( DataObject )
virtual

Reimplemented in visSurvey::Scene, and visBase::Scene.

void visBase::DataObjectGroup::addObject ( int  id)
static DataObjectGroup* visBase::DataObjectGroup::create ( )
inlinestatic
static visBase::DataObject* visBase::DataObjectGroup::createInternal ( )
inlinestaticprivate
virtual const char* visBase::DataObjectGroup::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

Reimplemented in visBase::Transformation, and visBase::Scene.

const visBase::Transformation* visBase::DataObjectGroup::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.

virtual int visBase::DataObjectGroup::getFirstIdx ( int  id) const
virtual
Returns
the first index (there might be many instances) of the id in the group, or -1 if not found

Reimplemented in visSurvey::Scene.

virtual int visBase::DataObjectGroup::getFirstIdx ( const DataObject ) const
virtual
Returns
the first index (there might be many instances) of the object in the group, or -1 if not found
virtual DataObject* visBase::DataObjectGroup::getObject ( int  idx)
inlinevirtual

Reimplemented in visSurvey::Scene.

const DataObject* visBase::DataObjectGroup::getObject ( int  idx) const
inline
float visBase::DataObjectGroup::getPixelDensity ( ) const
inlinevirtual

Reimplemented from visBase::DataObject.

static const char* visBase::DataObjectGroup::getStaticClassName ( )
static
static void visBase::DataObjectGroup::initClass ( )
static
virtual void visBase::DataObjectGroup::insertObject ( int  idx,
DataObject  
)
virtual
bool visBase::DataObjectGroup::isRightHandSystem ( ) const
virtual

Reimplemented from visBase::DataObject.

Reimplemented in visSurvey::Scene.

DataObjectGroup& visBase::DataObjectGroup::operator= ( const DataObjectGroup )
private
virtual void visBase::DataObjectGroup::removeAll ( )
virtual

Reimplemented in visSurvey::Scene.

virtual void visBase::DataObjectGroup::removeObject ( int  idx)
virtual

Reimplemented in visSurvey::Scene.

void visBase::DataObjectGroup::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::DataObjectGroup::setPixelDensity ( float  dpi)
virtual

Reimplemented from visBase::DataObject.

void visBase::DataObjectGroup::setRightHandSystem ( bool  )
virtual
Returns
the trans of the first child with a trans, or null if none of the childrens has a trans

Reimplemented from visBase::DataObject.

void visBase::DataObjectGroup::setSeparate ( bool  yn = true)
inline
static const char* visBase::DataObjectGroup::sFactoryKeyword ( )
static
virtual int visBase::DataObjectGroup::size ( ) const
virtual

Set directly after creation, othersize it won't have effect

Reimplemented in visSurvey::Scene.

Member Data Documentation

Notifier<DataObjectGroup> visBase::DataObjectGroup::change
ObjectSet<DataObject> visBase::DataObjectGroup::objects_
protected
osg::Group* visBase::DataObjectGroup::osggroup_
protected
float visBase::DataObjectGroup::pixeldensity_
protected
bool visBase::DataObjectGroup::righthandsystem_
protected
bool visBase::DataObjectGroup::separate_
protected

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