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 | Private Attributes | List of all members
visBase::Scene Class Reference

Scene manages all DataObjects and has some managing functions such as the selection management and variables that should be common for the whole scene. More...

Inheritance diagram for visBase::Scene:
[legend]

Public Member Functions

 Scene ()
 
virtual const char * getClassName () const
 
void addObject (DataObject *)
 
void setCameraAmbientLight (float)
 
float getCameraAmbientLight () const
 
void setCameraLightIntensity (float)
 
float getCameraLightIntensity () const
 
LightgetDirectionalLight () const
 
PolygonOffsetgetPolygonOffset ()
 
bool saveCurrentOffsetAsDefault () const
 
bool blockMouseSelection (bool yn)
 
CameragetCamera ()
 
const CameragetCamera () const
 
virtual void setCamera (Camera *)
 
EventCatchereventCatcher ()
 
int getUpdateQueueID () const
 
int fixedIdx () const
 
float getPolygonOffsetFactor () const
 
float getPolygonOffsetUnits () const
 
void setName (const uiString &)
 
- Public Member Functions inherited from visBase::DataObjectGroup
 DataObjectGroup ()
 
void setSeparate (bool yn=true)
 
virtual int size () const
 
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
 
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 Scenecreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
static const char * sKeyOffset ()
 
static const char * sKeyFactor ()
 
static const char * sKeyUnits ()
 
static const char * sKeyLight ()
 
- Static Public Member Functions inherited from visBase::DataObjectGroup
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< ScenenameChanged
 
Notifier< ScenecontextIsUp
 
- Public Attributes inherited from visBase::DataObjectGroup
Notifier< DataObjectGroupchange
 

Protected Member Functions

virtual ~Scene ()
 
virtual void runUpdateQueueCB (CallBacker *)
 
void fillOffsetPar (IOPar &) const
 
- Protected Member Functions inherited from visBase::DataObjectGroup
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

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

Private Member Functions

Sceneoperator= (const Scene &)
 
 Scene (const Scene &)
 
void mousePickCB (CallBacker *)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Private Attributes

int mousedownid_
 
int updatequeueid_
 
int fixedidx_
 
PolygonOffsetpolygonoffset_
 
Lightlight_
 
bool blockmousesel_
 
osg::Group * osgsceneroot_
 
Cameracamera_
 

Detailed Description

Scene manages all DataObjects and has some managing functions such as the selection management and variables that should be common for the whole scene.

Constructor & Destructor Documentation

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

Reimplemented in visSurvey::Scene.

Member Function Documentation

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

Reimplemented from visBase::DataObjectGroup.

Reimplemented in visSurvey::Scene.

bool visBase::Scene::blockMouseSelection ( bool  yn)
Returns
previous status.
static Scene* visBase::Scene::create ( )
inlinestatic
static visBase::DataObject* visBase::Scene::createInternal ( )
inlinestaticprivate
EventCatcher& visBase::Scene::eventCatcher ( )
void visBase::Scene::fillOffsetPar ( IOPar ) const
protected
int visBase::Scene::fixedIdx ( ) const
inline
Camera* visBase::Scene::getCamera ( )
inline
const Camera* visBase::Scene::getCamera ( ) const
inline
float visBase::Scene::getCameraAmbientLight ( ) const
float visBase::Scene::getCameraLightIntensity ( ) const
virtual const char* visBase::Scene::getClassName ( ) const
virtual

Reimplemented from visBase::DataObjectGroup.

Light* visBase::Scene::getDirectionalLight ( ) const
PolygonOffset* visBase::Scene::getPolygonOffset ( )
inline
float visBase::Scene::getPolygonOffsetFactor ( ) const
float visBase::Scene::getPolygonOffsetUnits ( ) const
static const char* visBase::Scene::getStaticClassName ( )
static
int visBase::Scene::getUpdateQueueID ( ) const
inline
static void visBase::Scene::initClass ( )
static
void visBase::Scene::mousePickCB ( CallBacker )
private
Scene& visBase::Scene::operator= ( const Scene )
private
virtual void visBase::Scene::runUpdateQueueCB ( CallBacker )
protectedvirtual
bool visBase::Scene::saveCurrentOffsetAsDefault ( ) const
virtual void visBase::Scene::setCamera ( Camera )
virtual
void visBase::Scene::setCameraAmbientLight ( float  )
void visBase::Scene::setCameraLightIntensity ( float  )
void visBase::Scene::setName ( const uiString )
virtual

Reimplemented from visBase::DataObject.

static const char* visBase::Scene::sFactoryKeyword ( )
static
static const char* visBase::Scene::sKeyFactor ( )
inlinestatic
static const char* visBase::Scene::sKeyLight ( )
inlinestatic
static const char* visBase::Scene::sKeyOffset ( )
inlinestatic
static const char* visBase::Scene::sKeyUnits ( )
inlinestatic

Member Data Documentation

bool visBase::Scene::blockmousesel_
private
Camera* visBase::Scene::camera_
private
Notifier<Scene> visBase::Scene::contextIsUp
EventCatcher& visBase::Scene::events_
protected
int visBase::Scene::fixedidx_
private
Light* visBase::Scene::light_
private
int visBase::Scene::mousedownid_
private
Notifier<Scene> visBase::Scene::nameChanged
osg::Group* visBase::Scene::osgsceneroot_
private
PolygonOffset* visBase::Scene::polygonoffset_
private
int visBase::Scene::updatequeueid_
private

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