OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
visBase::Camera Class Reference

keep osg camera status and render info More...

Inheritance diagram for visBase::Camera:
[legend]

Public Member Functions

 Camera ()
 
virtual const char * getClassName () const
 
osg::Camera * osgCamera () const
 
Coord3 getTranslation () const
 
Coord3 getScale () const
 
void getRotation (Coord3 &vec, double &angle) const
 
void getLookAtMatrix (Coord3 &, Coord3 &, Coord3 &) const
 
const osg::RenderInfo * getRenderInfo () const
 Only available during pre/post draw cb. More...
 
- 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 void setDisplayTransformation (const visBase::Transformation *)
 
virtual const visBase::TransformationgetDisplayTransformation () const
 
virtual void setRightHandSystem (bool yn)
 
virtual bool isRightHandSystem () 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 Cameracreate ()
 
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< CamerapreDraw
 
Notifier< CamerapostDraw
 

Private Member Functions

Cameraoperator= (const Camera &)
 
 Camera (const Camera &)
 
void triggerDrawCallBack (const DrawCallback *, const osg::RenderInfo &)
 
virtual ~Camera ()
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Private Attributes

osg::Camera * camera_
 
const osg::RenderInfo * renderinfo_
 
DrawCallbackpredraw_
 
DrawCallbackpostdraw_
 

Friends

class DrawCallback
 

Additional Inherited Members

- 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 inherited from visBase::DataObject
DataObjectGroupparent_
 

Detailed Description

keep osg camera status and render info

Constructor & Destructor Documentation

visBase::Camera::Camera ( const Camera )
private
visBase::Camera::Camera ( )
virtual visBase::Camera::~Camera ( )
privatevirtual

Member Function Documentation

static Camera* visBase::Camera::create ( )
inlinestatic
static visBase::DataObject* visBase::Camera::createInternal ( )
inlinestaticprivate
virtual const char* visBase::Camera::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

void visBase::Camera::getLookAtMatrix ( Coord3 ,
Coord3 ,
Coord3  
) const
const osg::RenderInfo* visBase::Camera::getRenderInfo ( ) const
inline

Only available during pre/post draw cb.

void visBase::Camera::getRotation ( Coord3 vec,
double &  angle 
) const
Coord3 visBase::Camera::getScale ( ) const
static const char* visBase::Camera::getStaticClassName ( )
static
Coord3 visBase::Camera::getTranslation ( ) const
static void visBase::Camera::initClass ( )
static
Camera& visBase::Camera::operator= ( const Camera )
private
osg::Camera* visBase::Camera::osgCamera ( ) const
static const char* visBase::Camera::sFactoryKeyword ( )
static
void visBase::Camera::triggerDrawCallBack ( const DrawCallback ,
const osg::RenderInfo &   
)
private

Friends And Related Function Documentation

friend class DrawCallback
friend

Member Data Documentation

osg::Camera* visBase::Camera::camera_
private
Notifier<Camera> visBase::Camera::postDraw
DrawCallback* visBase::Camera::postdraw_
private
Notifier<Camera> visBase::Camera::preDraw
DrawCallback* visBase::Camera::predraw_
private
const osg::RenderInfo* visBase::Camera::renderinfo_
private

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