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

Public Member Functions

 Normals ()
 
virtual const char * getClassName () const
 
void inverse ()
 Sets all normals to -normal. More...
 
int nrNormals () const
 Envelope only, not all may be used. More...
 
void setNormal (int, const Coord3 &)
 
int addNormal (const Coord3 &)
 
int nextID (int previd) const
 
void removeNormal (int)
 
Coord3 getNormal (int) const
 
void addNormalValue (int, const Coord3 &)
 
void clear ()
 
void setAll (const float *vals, int nmsz)
 vals are transformed, ordered in x,y,z. More...
 
void setAll (const Coord3 *coords, int nmsz)
 coords are transformed. More...
 
void setAll (const Coord3 &coord, int nmsz)
 set all normals as coord. More...
 
void setDisplayTransformation (const visBase::Transformation *nt)
 
const visBase::TransformationgetDisplayTransformation () const
 
osg::Array * osgArray ()
 
const osg::Array * osgArray () 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 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 Normalscreate ()
 
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 ()
 

Protected Member Functions

 ~Normals ()
 
- 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

TypeSet< int > unusednormals_
 
Threads::Mutexmutex_
 
const visBase::Transformationtransformation_
 
osg::Array * osgnormals_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

Normalsoperator= (const Normals &)
 
 Normals (const Normals &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Friends

class DoTransformation
 

Detailed Description

Constructor & Destructor Documentation

visBase::Normals::Normals ( const Normals )
private
visBase::Normals::Normals ( )
visBase::Normals::~Normals ( )
protected

Object should be locked when calling

Member Function Documentation

int visBase::Normals::addNormal ( const Coord3 )
void visBase::Normals::addNormalValue ( int  ,
const Coord3  
)
void visBase::Normals::clear ( )
static Normals* visBase::Normals::create ( )
inlinestatic
static visBase::DataObject* visBase::Normals::createInternal ( )
inlinestaticprivate
virtual const char* visBase::Normals::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

const visBase::Transformation* visBase::Normals::getDisplayTransformation ( ) const
inlinevirtual

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.

Coord3 visBase::Normals::getNormal ( int  ) const
static const char* visBase::Normals::getStaticClassName ( )
static
static void visBase::Normals::initClass ( )
static
void visBase::Normals::inverse ( )

Sets all normals to -normal.

int visBase::Normals::nextID ( int  previd) const
int visBase::Normals::nrNormals ( ) const

Envelope only, not all may be used.

Normals& visBase::Normals::operator= ( const Normals )
private
osg::Array* visBase::Normals::osgArray ( )
inline
const osg::Array* visBase::Normals::osgArray ( ) const
inline
void visBase::Normals::removeNormal ( int  )
void visBase::Normals::setAll ( const float *  vals,
int  nmsz 
)

vals are transformed, ordered in x,y,z.

void visBase::Normals::setAll ( const Coord3 coords,
int  nmsz 
)

coords are transformed.

void visBase::Normals::setAll ( const Coord3 coord,
int  nmsz 
)

set all normals as coord.

void visBase::Normals::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::Normals::setNormal ( int  ,
const Coord3  
)
static const char* visBase::Normals::sFactoryKeyword ( )
static

Friends And Related Function Documentation

friend class DoTransformation
friend

Member Data Documentation

Threads::Mutex& visBase::Normals::mutex_
protected
osg::Array* visBase::Normals::osgnormals_
protected
const visBase::Transformation* visBase::Normals::transformation_
protected
TypeSet<int> visBase::Normals::unusednormals_
protected

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