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::FlatViewer Class Reference
Inheritance diagram for visBase::FlatViewer:
[legend]

Public Member Functions

 FlatViewer ()
 
virtual const char * getClassName () const
 
void handleChange (unsigned int)
 
void setPosition (const Coord3 &c00, const Coord3 &c01, const Coord3 &c10, const Coord3 &c11)
 
void turnOnGridLines (bool offsetlines, bool zlines)
 
void allowShading (bool yn)
 
void replaceChannels (TextureChannels *)
 
Interval< float > getDataRange (bool iswva) const
 
const SamplingData< float > getDefaultGridSampling (bool x1) const
 
int nrResolutions () const
 
void setResolution (int res)
 
int getResolution () const
 
BufferString getResolutionName (int) const
 
FlatView::AuxDatacreateAuxData (const char *nm) const
 
int nrAuxData () const
 
FlatView::AuxDatagetAuxData (int idx)
 
const FlatView::AuxDatagetAuxData (int idx) const
 
void addAuxData (FlatView::AuxData *a)
 
FlatView::AuxDataremoveAuxData (FlatView::AuxData *a)
 
FlatView::AuxDataremoveAuxData (int idx)
 
void setDisplayTransformation (const visBase::Transformation *)
 
virtual void setPixelDensity (float)
 
- Public Member Functions inherited from FlatView::Viewer
 Viewer ()
 
virtual ~Viewer ()
 
virtual Appearanceappearance ()
 
const Appearanceappearance () const
 
ZAxisTransformgetZAxisTransform () const
 
bool setZAxisTransform (ZAxisTransform *)
 
bool hasZAxisTransform () const
 
void addPack (::DataPack::ID)
 
void usePack (bool wva,::DataPack::ID, bool usedefs=true)
 Does not add new packs, just selects from added. More...
 
void removePack (::DataPack::ID)
 Releases DataPack after removing from the list. More...
 
void setPack (bool wva,::DataPack::ID id, bool usedefs=true)
 
void clearAllPacks ()
 
const FlatDataPackobtainPack (bool wva, bool checkother=false) const
 
bool hasPack (bool wva) const
 
DataPack::ID packID (bool wva) const
 
const TypeSet< ::DataPack::ID > & availablePacks () const
 
virtual bool isVertical () const
 
bool isVisible (bool wva) const
 
void setVisible (bool wva, bool visibility)
 
Coord3 getCoord (const Point &) const
 
virtual void fillAppearancePar (IOPar &iop) const
 Does not store any data, just how data is displayed. More...
 
virtual void useAppearancePar (const IOPar &iop)
 
void storeDefaults (const char *key) const
 
void useStoredDefaults (const char *key)
 
void getAuxInfo (const Point &, IOPar &) const
 
virtual void showAuxDataObjects (AuxData &, bool)
 
virtual void updateProperties (const AuxData &)
 
virtual void reGenerate (AuxData &)
 
virtual void remove (const AuxData &)
 
StepInterval< double > getDataPackRange (bool forx1) const
 
void removeAuxDatas (ObjectSet< AuxData > &)
 
void removeAllAuxData ()
 
virtual void setAnnotChoice (int selannot)
 
virtual int getAnnotChoice (BufferStringSet &) const
 
void enableStatusBarUpdate ()
 
void disableStatusBarUpdate ()
 
bool needStatusBarUpdate () const
 
void setSeisGeomidsToViewer (TypeSet< Pos::GeomID > &)
 
const TypeSet< Pos::GeomID > & getAllSeisGeomids () const
 
void setZDomain (const ZDomain::Def &)
 
const ZDomain::InfozDomain () 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 const visBase::TransformationgetDisplayTransformation () const
 
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 FlatViewercreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
- 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 ()
 

Public Attributes

Notifier< FlatViewerdataChanged
 
Notifier< FlatViewerdispParsChanged
 

Protected Member Functions

 ~FlatViewer ()
 
void updateGridLines (bool x1)
 
- Protected Member Functions inherited from FlatView::Viewer
void addAuxInfo (bool, const Point &, IOPar &) const
 
- 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

TextureChannelschannels_
 
ColTabTextureChannel2RGBAchannel2rgba_
 
RefMan< TextureRectanglerectangle_
 
PolyLinex1gridlines_
 
PolyLinex2gridlines_
 
Materialgridlinematerial_
 
int resolution_
 
Coord3 c00_
 
Coord3 c01_
 
Coord3 c10_
 
Coord3 c11_
 
- Protected Attributes inherited from FlatView::Viewer
TypeSet< ::DataPack::IDids_
 
Appearancedefapp_
 
DataPackMgrdpm_
 
ZAxisTransformdatatransform_
 
FlatView_CB_Rcvr * cbrcvr_
 
Threads::Lock lock_
 
bool needstatusbarupd_
 
ZDomain::Infozdinfo_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

FlatVieweroperator= (const FlatViewer &)
 
 FlatViewer (const FlatViewer &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Additional Inherited Members

- Public Types inherited from FlatView::Viewer
enum  DataChangeType {
  All =0xFFFFFFFF, BitmapData =0x0001, DisplayPars =0x0002, Annot =0x0004,
  Auxdata =0x0008
}
 

Detailed Description

Implementation of FlatViewer::Viewer in 3D.

Constructor & Destructor Documentation

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

Member Function Documentation

void visBase::FlatViewer::addAuxData ( FlatView::AuxData a)
inlinevirtual

Implements FlatView::Viewer.

void visBase::FlatViewer::allowShading ( bool  yn)
static FlatViewer* visBase::FlatViewer::create ( )
inlinestatic
FlatView::AuxData* visBase::FlatViewer::createAuxData ( const char *  nm) const
inlinevirtual

Implements FlatView::Viewer.

static visBase::DataObject* visBase::FlatViewer::createInternal ( )
inlinestaticprivate
FlatView::AuxData* visBase::FlatViewer::getAuxData ( int  idx)
inlinevirtual

Implements FlatView::Viewer.

const FlatView::AuxData* visBase::FlatViewer::getAuxData ( int  idx) const
inlinevirtual

Implements FlatView::Viewer.

virtual const char* visBase::FlatViewer::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

Interval<float> visBase::FlatViewer::getDataRange ( bool  iswva) const
virtual

Reimplemented from FlatView::Viewer.

const SamplingData<float> visBase::FlatViewer::getDefaultGridSampling ( bool  x1) const
int visBase::FlatViewer::getResolution ( ) const
inline
BufferString visBase::FlatViewer::getResolutionName ( int  ) const
static const char* visBase::FlatViewer::getStaticClassName ( )
static
void visBase::FlatViewer::handleChange ( unsigned  datachangetype)
virtual
Parameters
datachangetypecan be any combination of DataChangeType.

Implements FlatView::Viewer.

static void visBase::FlatViewer::initClass ( )
static
int visBase::FlatViewer::nrAuxData ( ) const
inlinevirtual

Implements FlatView::Viewer.

int visBase::FlatViewer::nrResolutions ( ) const
inline
FlatViewer& visBase::FlatViewer::operator= ( const FlatViewer )
private
FlatView::AuxData* visBase::FlatViewer::removeAuxData ( FlatView::AuxData a)
inlinevirtual

Implements FlatView::Viewer.

FlatView::AuxData* visBase::FlatViewer::removeAuxData ( int  idx)
inlinevirtual

Implements FlatView::Viewer.

void visBase::FlatViewer::replaceChannels ( TextureChannels )

Replaces internal texture. The new texture will not be added to the scene.

void visBase::FlatViewer::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.

virtual void visBase::FlatViewer::setPixelDensity ( float  )
virtual

Reimplemented from visBase::DataObject.

void visBase::FlatViewer::setPosition ( const Coord3 c00,
const Coord3 c01,
const Coord3 c10,
const Coord3 c11 
)
void visBase::FlatViewer::setResolution ( int  res)
static const char* visBase::FlatViewer::sFactoryKeyword ( )
static
void visBase::FlatViewer::turnOnGridLines ( bool  offsetlines,
bool  zlines 
)
void visBase::FlatViewer::updateGridLines ( bool  x1)
protected

Member Data Documentation

Coord3 visBase::FlatViewer::c00_
protected
Coord3 visBase::FlatViewer::c01_
protected
Coord3 visBase::FlatViewer::c10_
protected
Coord3 visBase::FlatViewer::c11_
protected
ColTabTextureChannel2RGBA* visBase::FlatViewer::channel2rgba_
protected
TextureChannels* visBase::FlatViewer::channels_
protected
Notifier<FlatViewer> visBase::FlatViewer::dataChanged
Notifier<FlatViewer> visBase::FlatViewer::dispParsChanged
Material* visBase::FlatViewer::gridlinematerial_
protected
RefMan<TextureRectangle> visBase::FlatViewer::rectangle_
protected
int visBase::FlatViewer::resolution_
protected
PolyLine* visBase::FlatViewer::x1gridlines_
protected
PolyLine* visBase::FlatViewer::x2gridlines_
protected

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