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

Public Member Functions

bool turnOn (bool yn)
 
bool isOn () const
 
bool isShown () const
 
virtual int nrResolutions () const =0
 
virtual void setResolution (int, TaskRunner *)=0
 
int getResolution () const
 
bool setChannels2RGBA (visBase::TextureChannel2RGBA *)
 
visBase::TextureChannel2RGBAgetChannels2RGBA ()
 
visBase::TextureChannelsgetChannels () const
 
bool canHaveMultipleAttribs () const
 
bool canAddAttrib (int nrattribstoadd=1) const
 
bool canRemoveAttrib () const
 
int nrAttribs () const
 
bool addAttrib ()
 
bool removeAttrib (int attrib)
 
bool swapAttribs (int attrib0, int attrib1)
 
void setAttribTransparency (int, unsigned char)
 
unsigned char getAttribTransparency (int) const
 
virtual void allowShading (bool)
 
const Attrib::SelSpecgetSelSpec (int attrib, int version=0) const
 
const TypeSet< Attrib::SelSpec > * getSelSpecs (int attrib) const
 
void setSelSpec (int, const Attrib::SelSpec &)
 
void setSelSpecs (int attrib, const TypeSet< Attrib::SelSpec > &)
 
void clearTextures ()
 
void enableTextureInterpolation (bool)
 
bool textureInterpolationEnabled () const
 
bool isAngle (int attrib) const
 
void setAngleFlag (int attrib, bool yn)
 
void enableAttrib (int attrib, bool yn)
 
bool isAttribEnabled (int attrib) const
 
const TypeSet< float > * getHistogram (int) const
 
int getColTabID (int) const
 
const ColTab::MapperSetupgetColTabMapperSetup (int attrib, int version) const
 
const ColTab::MapperSetupgetColTabMapperSetup (int) const
 
void setColTabMapperSetup (int, const ColTab::MapperSetup &, TaskRunner *)
 
const ColTab::SequencegetColTabSequence (int) const
 
bool canSetColTabSequence () const
 
void setColTabSequence (int, const ColTab::Sequence &, TaskRunner *)
 
bool canHaveMultipleTextures () const
 
int nrTextures (int attrib) const
 
void selectTexture (int attrib, int texture)
 
int selectedTexture (int attrib) const
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
virtual bool canBDispOn2DViewer () const
 
bool canEnableTextureInterpolation () const
 
bool canDisplayInteractively (Pos::GeomID geomid=-1) const
 
const char * errMsg () 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 ()
 
- 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 const char * getClassName () const
 
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
 
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 void setDisplayTransformation (const visBase::Transformation *)
 
virtual const visBase::TransformationgetDisplayTransformation () const
 
virtual void setPixelDensity (float dpi)
 
virtual float getPixelDensity () 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...
 
- Public Member Functions inherited from visSurvey::SurveyObject
void doRef ()
 
void doUnRef ()
 
virtual const char * get3DSurvGeomName () const
 
virtual Pos::GeomID getGeomID () const
 
virtual Coord3 getNormal (const Coord3 &pos) const
 
virtual float calcDist (const Coord3 &pos) const
 
virtual float maxDist () const
 
virtual bool allowsPicks () const
 
virtual bool isPicking () const
 
virtual void getPickingMessage (BufferString &msg) const
 
virtual void snapToTracePos (Coord3 &) const
 
virtual NotifierAccessgetMovementNotifier ()
 
virtual void otherObjectsMoved (const ObjectSet< const SurveyObject > &, int whichobj)
 
virtual void setTranslation (const Coord3 &)
 
virtual Coord3 getTranslation () const
 
virtual void getChildren (TypeSet< int > &) const
 
virtual bool canDuplicate () const
 
virtual SurveyObjectduplicate (TaskRunner *) const
 
virtual MultiID getMultiID () const
 
virtual bool hasPosModeManipulator () const
 
virtual void showManipulator (bool yn)
 
virtual bool isManipulatorShown () const
 
virtual bool isManipulated () const
 
virtual bool canResetManipulation () const
 
virtual void resetManipulation ()
 
virtual void acceptManipulation ()
 
virtual BufferString getManipulationString () const
 
virtual NotifierAccessgetManipulationNotifier ()
 
virtual void enableEditor (bool yn)
 
virtual bool allowMaterialEdit () const
 
virtual const OD::LineStylelineStyle () const
 
virtual void setLineStyle (const OD::LineStyle &)
 
virtual void getLineWidthBounds (int &min, int &max)
 
virtual bool hasSpecificLineColor () const
 
virtual void setOnlyAtSectionsDisplay (bool)
 
virtual bool displayedOnlyAtSections () const
 
virtual bool hasColor () const
 
virtual bool usesColor () const
 
virtual void setColor (Color)
 
virtual Color getColor () const
 
virtual void setAnnotColor (Color)
 
virtual Color getAnnotColor () const
 
virtual BufferString getResolutionName (int) const
 
const visBase::TextureChannel2RGBAgetChannels2RGBA () const
 
virtual AttribFormat getAttributeFormat (int attrib=-1) const
 
void getChannelName (int, uiString &) const
 
virtual bool canHandleColTabSeqTrans (int) const
 
bool isAnyAttribEnabled () const
 
virtual bool hasSingleColorFallback () const
 
virtual Pol2D3D getAllowedDataType () const
 
virtual bool canRemoveSelection () const
 
virtual bool removeSelections (TaskRunner *)
 
virtual void clearSelections ()
 
virtual void getMousePosInfo (const visBase::EventInfo &, Coord3 &xyzpos, BufferString &val, BufferString &info) const
 
virtual void getMousePosInfo (const visBase::EventInfo &, IOPar &) const
 
virtual const MouseCursorgetMouseCursor () const
 
virtual void updateMouseCursorCB (CallBacker *)
 
virtual void getObjectInfo (BufferString &) const
 
virtual bool setDataPackID (int attrib, DataPack::ID, TaskRunner *)
 
virtual DataPack::ID getDataPackID (int attrib) const
 
virtual DataPack::ID getDisplayedDataPackID (int attrib) const
 
virtual DataPackMgr::ID getDataPackMgrID () const
 
virtual TrcKeyZSampling getTrcKeyZSampling (int attrib) const
 
virtual bool setDataVolume (int attrib, const RegularSeisDataPack *, TaskRunner *)
 
virtual const RegularSeisDataPackgetCacheVolume (int attr) const
 
virtual void getTraceKeyPath (TrcKeyPath &, TypeSet< Coord > *=0) const
 
virtual void getDataTraceBids (TypeSet< BinID > &) const
 
virtual Interval< float > getDataTraceRange () const
 
virtual void getRandomPos (DataPointSet &, TaskRunner *) const
 
virtual void getRandomPosCache (int attrib, DataPointSet &) const
 
virtual void setRandomPosData (int attrib, const DataPointSet *, TaskRunner *)
 
virtual void readAuxData ()
 
virtual void setScene (Scene *scn)
 
virtual const ScenegetScene () const
 
virtual ScenegetScene ()
 
virtual int getSceneID () const
 
virtual bool setZAxisTransform (ZAxisTransform *, TaskRunner *)
 
virtual const ZAxisTransformgetZAxisTransform () const
 
virtual bool alreadyTransformed (int attrib) const
 
virtual void annotateNextUpdateStage (bool yn)
 
int getUpdateStageNr () const
 
virtual void lock (bool yn)
 
virtual bool isLocked () const
 
virtual NotifierAccessgetLockNotifier ()
 
virtual bool isVerticalPlane () const
 
virtual bool isInlCrl () const
 
virtual void turnOnSelectionMode (bool)
 
void setUserRefs (int attrib, BufferStringSet *nms)
 
void setSaveInSessionsFlag (bool yn)
 
bool getSaveInSessionsFlag () const
 
virtual bool canBeRemoved () const
 

Protected Member Functions

 MultiTextureSurveyObject ()
 
 ~MultiTextureSurveyObject ()
 
void getValueString (const Coord3 &, BufferString &) const
 Coord is in ztransformed space. More...
 
virtual bool getCacheValue (int attrib, int version, const Coord3 &, float &) const =0
 Coord is in attribute space. More...
 
void updateMainSwitch ()
 
virtual void addCache ()=0
 
virtual void removeCache (int)=0
 
virtual void swapCache (int, int)=0
 
virtual void emptyCache (int)=0
 
virtual bool hasCache (int) const =0
 
virtual bool init ()
 
- 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 Member Functions inherited from visSurvey::SurveyObject
 SurveyObject ()
 
 ~SurveyObject ()
 
void initAdaptiveMouseCursor (CallBacker *eventcb, int objid, int inplanedragkeys, MouseCursor &)
 

Protected Attributes

visBase::TextureChannelschannels_
 
int resolution_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 
- Protected Attributes inherited from visSurvey::SurveyObject
BufferString errmsg_
 
Scenescene_
 
int updatestagenr_
 
bool locked_
 
ObjectSet< BufferStringSetuserrefs_
 
const Survey::Geometry3Ds3dgeom_
 
BufferString survname_
 
bool saveinsessionsflag_
 

Static Private Member Functions

static const char * sKeySequence ()
 
static const char * sKeyMapper ()
 
static const char * sKeyResolution ()
 
static const char * sKeyTextTrans ()
 

Private Attributes

ObjectSet< TypeSet< Attrib::SelSpec > > as_
 
bool enabletextureinterp_
 
bool onoffstatus_
 

Additional Inherited Members

- Public Types inherited from visSurvey::SurveyObject
enum  AttribFormat {
  None, Cube, Traces, RandomPos,
  OtherFormat
}
 
- 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 ()
 
- Static Public Member Functions inherited from visSurvey::SurveyObject
static float sDefMaxDist ()
 
static const char * sKeyColTabID ()
 
static const char * sKeySequence ()
 
static const char * sKeyMapper ()
 
static const char * sKeyTextTrans ()
 
static const char * sKeyTC2RGBA ()
 
static const char * sKeyNrAttribs ()
 
static const char * sKeyAttribs ()
 
static const char * sKeyLocked ()
 
static const char * sKeySurvey ()
 
- Static Protected Member Functions inherited from visSurvey::SurveyObject
static int cValNameOffset ()
 

Detailed Description

Base class for objects with multitextures. Class handles all texture handling for inheriting classes, which avoids code duplication.

Constructor & Destructor Documentation

visSurvey::MultiTextureSurveyObject::MultiTextureSurveyObject ( )
protected
visSurvey::MultiTextureSurveyObject::~MultiTextureSurveyObject ( )
protected

Member Function Documentation

bool visSurvey::MultiTextureSurveyObject::addAttrib ( )
virtual

Reimplemented from visSurvey::SurveyObject.

virtual void visSurvey::MultiTextureSurveyObject::addCache ( )
protectedpure virtual
virtual void visSurvey::MultiTextureSurveyObject::allowShading ( bool  )
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::canAddAttrib ( int  nrattribstoadd = 1) const
virtual

Reimplemented from visSurvey::SurveyObject.

virtual bool visSurvey::MultiTextureSurveyObject::canBDispOn2DViewer ( ) const
inlinevirtual
bool visSurvey::MultiTextureSurveyObject::canDisplayInteractively ( Pos::GeomID  geomid = -1) const
bool visSurvey::MultiTextureSurveyObject::canEnableTextureInterpolation ( ) const
inlinevirtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::canHaveMultipleAttribs ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::canHaveMultipleTextures ( ) const
inlinevirtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::canRemoveAttrib ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::canSetColTabSequence ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::MultiTextureSurveyObject::clearTextures ( )

Blanks all textures.

virtual void visSurvey::MultiTextureSurveyObject::emptyCache ( int  )
protectedpure virtual
void visSurvey::MultiTextureSurveyObject::enableAttrib ( int  attrib,
bool  yn 
)
virtual

Reimplemented from visSurvey::SurveyObject.

Reimplemented in visSurvey::Seis2DDisplay.

void visSurvey::MultiTextureSurveyObject::enableTextureInterpolation ( bool  )
virtual

Reimplemented from visSurvey::SurveyObject.

const char* visSurvey::MultiTextureSurveyObject::errMsg ( ) const
inlinevirtual

Reimplemented from visBase::DataObject.

Reimplemented in visSurvey::RandomTrackDisplay.

void visSurvey::MultiTextureSurveyObject::fillPar ( IOPar ) const
virtual
unsigned char visSurvey::MultiTextureSurveyObject::getAttribTransparency ( int  ) const
virtual

Reimplemented from visSurvey::SurveyObject.

virtual bool visSurvey::MultiTextureSurveyObject::getCacheValue ( int  attrib,
int  version,
const Coord3 ,
float &   
) const
protectedpure virtual
visBase::TextureChannels* visSurvey::MultiTextureSurveyObject::getChannels ( ) const
inlinevirtual

Reimplemented from visSurvey::SurveyObject.

visBase::TextureChannel2RGBA* visSurvey::MultiTextureSurveyObject::getChannels2RGBA ( )
virtual

Reimplemented from visSurvey::SurveyObject.

int visSurvey::MultiTextureSurveyObject::getColTabID ( int  ) const
const ColTab::MapperSetup* visSurvey::MultiTextureSurveyObject::getColTabMapperSetup ( int  attrib,
int  version 
) const
virtual

Reimplemented from visSurvey::SurveyObject.

const ColTab::MapperSetup* visSurvey::MultiTextureSurveyObject::getColTabMapperSetup ( int  ) const
const ColTab::Sequence* visSurvey::MultiTextureSurveyObject::getColTabSequence ( int  ) const
virtual

Reimplemented from visSurvey::SurveyObject.

const TypeSet<float>* visSurvey::MultiTextureSurveyObject::getHistogram ( int  ) const
virtual

Reimplemented from visSurvey::SurveyObject.

int visSurvey::MultiTextureSurveyObject::getResolution ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

const Attrib::SelSpec* visSurvey::MultiTextureSurveyObject::getSelSpec ( int  attrib,
int  version = 0 
) const
virtual

Reimplemented from visSurvey::SurveyObject.

const TypeSet<Attrib::SelSpec>* visSurvey::MultiTextureSurveyObject::getSelSpecs ( int  attrib) const
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::MultiTextureSurveyObject::getValueString ( const Coord3 ,
BufferString  
) const
protected

Coord is in ztransformed space.

virtual bool visSurvey::MultiTextureSurveyObject::hasCache ( int  ) const
protectedpure virtual
virtual bool visSurvey::MultiTextureSurveyObject::init ( )
protectedvirtual
bool visSurvey::MultiTextureSurveyObject::isAngle ( int  attrib) const
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::isAttribEnabled ( int  attrib) const
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::isOn ( ) const
virtual

Reimplemented from visBase::DataObject.

bool visSurvey::MultiTextureSurveyObject::isShown ( ) const

Returns true if displayed, i.e. it is on, and has at least one enabled attribute.

int visSurvey::MultiTextureSurveyObject::nrAttribs ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

virtual int visSurvey::MultiTextureSurveyObject::nrResolutions ( ) const
pure virtual
int visSurvey::MultiTextureSurveyObject::nrTextures ( int  attrib) const
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::removeAttrib ( int  attrib)
virtual

Reimplemented from visSurvey::SurveyObject.

virtual void visSurvey::MultiTextureSurveyObject::removeCache ( int  )
protectedpure virtual
int visSurvey::MultiTextureSurveyObject::selectedTexture ( int  attrib) const
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::MultiTextureSurveyObject::selectTexture ( int  attrib,
int  texture 
)
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::MultiTextureSurveyObject::setAngleFlag ( int  attrib,
bool  yn 
)
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::MultiTextureSurveyObject::setAttribTransparency ( int  ,
unsigned  char 
)
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::setChannels2RGBA ( visBase::TextureChannel2RGBA )
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::MultiTextureSurveyObject::setColTabMapperSetup ( int  ,
const ColTab::MapperSetup ,
TaskRunner  
)
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::MultiTextureSurveyObject::setColTabSequence ( int  ,
const ColTab::Sequence ,
TaskRunner  
)
virtual

Reimplemented from visSurvey::SurveyObject.

virtual void visSurvey::MultiTextureSurveyObject::setResolution ( int  ,
TaskRunner  
)
pure virtual
void visSurvey::MultiTextureSurveyObject::setSelSpec ( int  ,
const Attrib::SelSpec  
)
virtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::MultiTextureSurveyObject::setSelSpecs ( int  attrib,
const TypeSet< Attrib::SelSpec > &   
)
virtual

Reimplemented from visSurvey::SurveyObject.

static const char* visSurvey::MultiTextureSurveyObject::sKeyMapper ( )
staticprivate
static const char* visSurvey::MultiTextureSurveyObject::sKeyResolution ( )
staticprivate
static const char* visSurvey::MultiTextureSurveyObject::sKeySequence ( )
staticprivate
static const char* visSurvey::MultiTextureSurveyObject::sKeyTextTrans ( )
staticprivate
bool visSurvey::MultiTextureSurveyObject::swapAttribs ( int  attrib0,
int  attrib1 
)
virtual

Reimplemented from visSurvey::SurveyObject.

virtual void visSurvey::MultiTextureSurveyObject::swapCache ( int  ,
int   
)
protectedpure virtual
bool visSurvey::MultiTextureSurveyObject::textureInterpolationEnabled ( ) const
virtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::MultiTextureSurveyObject::turnOn ( bool  yn)
virtual

Reimplemented from visBase::DataObject.

void visSurvey::MultiTextureSurveyObject::updateMainSwitch ( )
protected
bool visSurvey::MultiTextureSurveyObject::usePar ( const IOPar )
virtual

Member Data Documentation

ObjectSet<TypeSet<Attrib::SelSpec> > visSurvey::MultiTextureSurveyObject::as_
private
visBase::TextureChannels* visSurvey::MultiTextureSurveyObject::channels_
protected
bool visSurvey::MultiTextureSurveyObject::enabletextureinterp_
private
bool visSurvey::MultiTextureSurveyObject::onoffstatus_
private
int visSurvey::MultiTextureSurveyObject::resolution_
protected

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