OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
visSurvey::ImageDisplay Class Reference

Image display, owns the RGBImage and distributes it to the child objects. More...

Inheritance diagram for visSurvey::ImageDisplay:
[legend]

Public Member Functions

bool setFileName (const char *)
 
const char * getFileName () const
 
void setSet (Pick::Set *)
 
void setDisplayTransformation (const mVisTrans *)
 
const mVisTransgetDisplayTransformation () const
 
void setRGBImage (OD::RGBImage *)
 Will become mine. More...
 
- Public Member Functions inherited from visSurvey::LocationDisplay
void setSetMgr (Pick::SetMgr *)
 
Pick::SetgetSet ()
 
const Pick::SetgetSet () const
 
MultiID getMultiID () const
 
const char * errMsg () const
 
void fullRedraw (CallBacker *=0)
 
void showAll (bool yn)
 
bool allShown () const
 
virtual void setOnlyAtSectionsDisplay (bool)
 
virtual bool displayedOnlyAtSections () const
 
void allowDoubleClick (bool yn)
 
virtual BufferString getManipulationString () const
 
void getObjectInfo (BufferString &) const
 
void getMousePosInfo (const visBase::EventInfo &ei, IOPar &iop) const
 
virtual void getMousePosInfo (const visBase::EventInfo &, Coord3 &, BufferString &, BufferString &) const
 
virtual bool hasColor () const
 
virtual Color getColor () const
 
virtual void setColor (Color)
 
virtual bool allowsPicks () const
 
virtual bool isPicking () const
 
virtual void otherObjectsMoved (const ObjectSet< const SurveyObject > &, int)
 
virtual NotifierAccessgetManipulationNotifier ()
 
void setRightHandSystem (bool yn)
 
virtual void setSceneEventCatcher (visBase::EventCatcher *)
 
virtual void turnOnSelectionMode (bool)
 
int getPickIdx (visBase::DataObject *) const
 
const SurveyObjectgetPickedSurveyObject () const
 
bool canRemoveSelection () const
 
void removeSelection (const Selector< Coord3 > &, TaskRunner *)
 
bool setZAxisTransform (ZAxisTransform *, TaskRunner *)
 
const ZAxisTransformgetZAxisTransform () const
 
virtual void fillPar (IOPar &) const
 
virtual bool usePar (const IOPar &)
 
Coord3 convertCoords (const Coord3 &, bool disptoworld)
 
- Public Member Functions inherited from visBase::VisualObjectImpl
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
 
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
 
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 void setDisplayTransformation (const visBase::Transformation *)
 
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 void getPickingMessage (BufferString &msg) const
 
virtual void snapToTracePos (Coord3 &) const
 
virtual NotifierAccessgetMovementNotifier ()
 
virtual void setTranslation (const Coord3 &)
 
virtual Coord3 getTranslation () const
 
virtual void getChildren (TypeSet< int > &) const
 
virtual bool canDuplicate () const
 
virtual SurveyObjectduplicate (TaskRunner *) 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 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 bool usesColor () const
 
virtual void setAnnotColor (Color)
 
virtual Color getAnnotColor () const
 
virtual int nrResolutions () const
 
virtual BufferString getResolutionName (int) const
 
virtual int getResolution () const
 
virtual void setResolution (int, TaskRunner *)
 
virtual visBase::TextureChannelsgetChannels () const
 
virtual visBase::TextureChannel2RGBAgetChannels2RGBA ()
 
const visBase::TextureChannel2RGBAgetChannels2RGBA () const
 
virtual bool setChannels2RGBA (visBase::TextureChannel2RGBA *)
 
virtual AttribFormat getAttributeFormat (int attrib=-1) const
 
virtual bool canHaveMultipleAttribs () const
 
virtual int nrAttribs () const
 
virtual bool canAddAttrib (int nrattribstoadd=1) const
 
virtual bool addAttrib ()
 
virtual bool canRemoveAttrib () const
 
virtual bool removeAttrib (int attrib)
 
virtual bool swapAttribs (int a0, int a1)
 
virtual void setAttribTransparency (int, unsigned char)
 
virtual unsigned char getAttribTransparency (int) const
 
virtual const ColTab::MapperSetupgetColTabMapperSetup (int attrib, int version=0) const
 
void getChannelName (int, uiString &) const
 
virtual void setColTabMapperSetup (int, const ColTab::MapperSetup &, TaskRunner *)
 
virtual const ColTab::SequencegetColTabSequence (int) const
 
virtual bool canSetColTabSequence () const
 
virtual void setColTabSequence (int, const ColTab::Sequence &, TaskRunner *)
 
virtual bool canHandleColTabSeqTrans (int) const
 
virtual void enableTextureInterpolation (bool)
 
virtual bool textureInterpolationEnabled () const
 
virtual bool canEnableTextureInterpolation () const
 
virtual bool isAngle (int attrib) const
 
virtual void setAngleFlag (int attrib, bool yn)
 
virtual void enableAttrib (int attrib, bool yn)
 
virtual bool isAttribEnabled (int attrib) const
 
bool isAnyAttribEnabled () const
 
virtual bool hasSingleColorFallback () const
 
virtual Pol2D3D getAllowedDataType () const
 
virtual const TypeSet< float > * getHistogram (int attrib) const
 
virtual void clearSelections ()
 
virtual void setSelSpec (int, const Attrib::SelSpec &)
 
virtual void setSelSpecs (int attrib, const TypeSet< Attrib::SelSpec > &)
 
virtual const Attrib::SelSpecgetSelSpec (int attrib, int version=0) const
 
virtual const TypeSet< Attrib::SelSpec > * getSelSpecs (int attrib) const
 
virtual bool canHaveMultipleTextures () const
 
virtual int nrTextures (int attrib) const
 
virtual void selectTexture (int attrib, int texture)
 
virtual int selectedTexture (int attrib) const
 
virtual void allowShading (bool)
 
virtual const MouseCursorgetMouseCursor () const
 
virtual void updateMouseCursorCB (CallBacker *)
 
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 const ScenegetScene () const
 
virtual ScenegetScene ()
 
virtual int getSceneID () 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 canBDispOn2DViewer () const
 
virtual bool isVerticalPlane () const
 
virtual bool isInlCrl () const
 
void setUserRefs (int attrib, BufferStringSet *nms)
 
void setSaveInSessionsFlag (bool yn)
 
bool getSaveInSessionsFlag () const
 
virtual bool canBeRemoved () const
 

Static Public Member Functions

static ImageDisplaycreate () mCreateDataObj(ImageDisplay)
 
- 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 ()
 

Public Attributes

Notifier< ImageDisplayneedFileName
 

Protected Member Functions

visBase::VisualObjectcreateLocation () const
 
void setPosition (int, const Pick::Location &, bool add=false)
 
void removePosition (int idx)
 
void setImageDataFromFile (const char *fnm)
 
void dispChg (CallBacker *)
 
bool hasDirection () const
 
 ~ImageDisplay ()
 
void setScene (visSurvey::Scene *)
 
void updateCoords (CallBacker *=0)
 
virtual int clickedMarkerIndex (const visBase::EventInfo &evi) const
 
- Protected Member Functions inherited from visSurvey::LocationDisplay
 LocationDisplay ()
 
virtual void removeAll ()
 
virtual void redrawMultiSets ()
 
virtual bool hasText () const
 
virtual bool isMarkerClick (const visBase::EventInfo &evi) const
 
virtual void updateDragger ()
 
virtual void setDraggerNormal (const Coord3 &)
 
virtual bool draggerNormal () const
 
virtual bool removeSelections (TaskRunner *)
 
virtual int isDirMarkerClick (const TypeSet< int > &) const
 
void triggerDeSel ()
 
virtual ~LocationDisplay ()
 
bool addPick (const Coord3 &, const Sphere &, bool)
 
void removePick (int, bool setundo=true)
 
bool getPickSurface (const visBase::EventInfo &, Coord3 &pos, Coord3 &normal) const
 
Coord3 display2World (const Coord3 &) const
 
Coord3 world2Display (const Coord3 &) const
 
bool transformPos (Pick::Location &) const
 
const Coord3 getActivePlaneNormal (const visBase::EventInfo &) const
 
void pickCB (CallBacker *cb)
 
virtual void locChg (CallBacker *cb)
 
virtual void setChg (CallBacker *cb)
 
- 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 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

const mVisTransdisplaytransform_
 
BufferString imagefnm_
 
const OD::RGBImagergbimage_
 
RefMan< visBase::DataObjectGroupgroup_
 
- Protected Attributes inherited from visSurvey::LocationDisplay
Pick::Setset_
 
Pick::SetMgrpicksetmgr_
 
Notifier< LocationDisplaymanip_
 
int waitsfordirectionid_
 
int waitsforpositionid_
 
TypeSet< int > invalidpicks_
 
bool showall_
 
int mousepressid_
 
int pickedsobjid_
 Picked SurveyObject ID. More...
 
int voiidx_
 
bool ctrldown_
 
ObjectSet< Selector< Coord3 > > selectors_
 
visBase::EventCatchereventcatcher_
 
const mVisTranstransformation_
 
ZAxisTransformdatatransform_
 
MultiID storedmid_
 
Sowersower_
 
Coord3 undoloccoord_
 
bool undomove_
 
bool selectionmodel_
 
- 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_
 

Additional Inherited Members

- Public Types inherited from visSurvey::SurveyObject
enum  AttribFormat {
  None, Cube, Traces, RandomPos,
  OtherFormat
}
 
- Static Protected Member Functions inherited from visSurvey::LocationDisplay
static const char * sKeyID ()
 
static const char * sKeyMgrName ()
 
static const char * sKeyShowAll ()
 
static const char * sKeyMarkerType ()
 
static const char * sKeyMarkerSize ()
 
- Static Protected Member Functions inherited from visSurvey::SurveyObject
static int cValNameOffset ()
 

Detailed Description

Image display, owns the RGBImage and distributes it to the child objects.

Constructor & Destructor Documentation

visSurvey::ImageDisplay::~ImageDisplay ( )
protected

Member Function Documentation

virtual int visSurvey::ImageDisplay::clickedMarkerIndex ( const visBase::EventInfo evi) const
protectedvirtual

Reimplemented from visSurvey::LocationDisplay.

static ImageDisplay* visSurvey::ImageDisplay::create ( )
static
visBase::VisualObject* visSurvey::ImageDisplay::createLocation ( ) const
protected
void visSurvey::ImageDisplay::dispChg ( CallBacker )
protectedvirtual

Reimplemented from visSurvey::LocationDisplay.

const mVisTrans* visSurvey::ImageDisplay::getDisplayTransformation ( ) const
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 visSurvey::LocationDisplay.

const char* visSurvey::ImageDisplay::getFileName ( ) const
bool visSurvey::ImageDisplay::hasDirection ( ) const
inlineprotectedvirtual

Reimplemented from visSurvey::LocationDisplay.

void visSurvey::ImageDisplay::removePosition ( int  idx)
protectedvirtual

Reimplemented from visSurvey::LocationDisplay.

void visSurvey::ImageDisplay::setDisplayTransformation ( const mVisTrans )
virtual

Reimplemented from visSurvey::LocationDisplay.

bool visSurvey::ImageDisplay::setFileName ( const char *  )
void visSurvey::ImageDisplay::setImageDataFromFile ( const char *  fnm)
protected
void visSurvey::ImageDisplay::setPosition ( int  ,
const Pick::Location ,
bool  add = false 
)
protectedvirtual

Reimplemented from visSurvey::LocationDisplay.

void visSurvey::ImageDisplay::setRGBImage ( OD::RGBImage )

Will become mine.

void visSurvey::ImageDisplay::setScene ( visSurvey::Scene )
protectedvirtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::ImageDisplay::setSet ( Pick::Set )
virtual

Reimplemented from visSurvey::LocationDisplay.

void visSurvey::ImageDisplay::updateCoords ( CallBacker = 0)
protected

Member Data Documentation

const mVisTrans* visSurvey::ImageDisplay::displaytransform_
protected
RefMan<visBase::DataObjectGroup> visSurvey::ImageDisplay::group_
protected
BufferString visSurvey::ImageDisplay::imagefnm_
protected
Notifier<ImageDisplay> visSurvey::ImageDisplay::needFileName
const OD::RGBImage* visSurvey::ImageDisplay::rgbimage_
protected

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