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

Public Types

enum  PlaneType {
  X, Y, Z, Inl,
  Crl, YZ
}
 
enum  StereoType { None, RedCyan, QuadBuffer }
 
enum  WheelMode { Never, Always, OnHover }
 
- Public Types inherited from uiObject
enum  SzPolicy {
  Undef, Small, Medium, Wide,
  SmallVar, MedVar, WideVar, SmallMax,
  MedMax, WideMax
}
 How should the object's size behave? Undef : use default. Small : 1 base sz. Medium : 2* base sz + 1. Wide : 4* base sz + 3. The xxVar options specify that the element may have a bigger internal preferred size. In that case, the maximum is taken. The xxMax options specify that the element should take all available space ( stretch = 2 ) More...
 

Public Member Functions

 ui3DViewer (uiParent *, bool direct, const char *nm="ui3DViewer")
 
 ~ui3DViewer ()
 
void setMapView (bool yn)
 
bool isMapView () const
 
void setSceneID (int)
 
visBase::ScenegetScene ()
 
const visBase::ScenegetScene () const
 
int sceneID () const
 
void setViewMode (bool)
 
bool isViewMode () const
 
void enableAnimation (bool)
 
bool isAnimationEnabled () const
 
void rotateH (float angle)
 
void rotateV (float angle)
 
void dolly (float rel)
 
void setCameraZoom (float)
 
float getCameraZoom ()
 
const Coord3 getCameraPosition () const
 
void viewPlane (PlaneType)
 
void align ()
 
 mDeclareEnumUtils (StereoType) bool setStereoType(StereoType)
 
StereoType getStereoType () const
 
void setStereoOffset (float)
 
float getStereoOffset () const
 
void setMouseWheelZoomFactor (float)
 
float getMouseWheelZoomFactor () const
 
void setReversedMouseWheelDirection (bool)
 
bool getReversedMouseWheelDirection () const
 
void viewAll (bool animate=true)
 
void toHomePos ()
 
void saveHomePos ()
 
void showRotAxis (bool)
 
void setAnnotationColor (const Color &)
 
Color getAnnotationColor () const
 
void setAnnotationFont (const FontData &)
 
bool rotAxisShown () const
 
void toggleCameraType ()
 
bool isCameraPerspective () const
 
 mDeclareEnumUtils (WheelMode) void setWheelDisplayMode(WheelMode)
 
WheelMode getWheelDisplayMode () const
 
void setBackgroundColor (const Color &)
 
Color getBackgroundColor () const
 
Geom::Size2D< int > getViewportSizePixels () const
 
void setKeyBindings (const char *keybindname)
 
void getAllKeyBindings (BufferStringSet &) const
 
const char * getCurrentKeyBindings () const
 
visBase::PolygonSelectiongetPolygonSelector ()
 
visBase::SceneColTabgetSceneColTab ()
 
const osgViewer::View * getOsgViewerMainView () const
 
const osgViewer::View * getOsgViewerHudView () const
 
void setScenesPixelDensity (float dpi)
 
float getScenesPixelDensity () const
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
void savePropertySettings () const
 
- Public Member Functions inherited from uiObject
 uiObject (uiParent *, const char *nm)
 
 uiObject (uiParent *, const char *nm, uiObjectBody &)
 
 ~uiObject ()
 
void setHSzPol (SzPolicy)
 
void setVSzPol (SzPolicy)
 
SzPolicy szPol (bool hor=true) const
 
virtual int width () const
 Actual size in pixels. More...
 
virtual int height () const
 Actual size in pixels. More...
 
virtual void setName (const char *)
 
void setToolTip (const uiString &)
 
const uiStringtoolTip () const
 
void translateText ()
 
void display (bool yn, bool shrink=false, bool maximized=false)
 
void setFocus ()
 
bool hasFocus () const
 
void disabFocus ()
 
virtual void setCursor (const MouseCursor &)
 
bool isCursorInside () const
 
virtual void setStyleSheet (const char *)
 
virtual Color backgroundColor () const
 
Color roBackgroundColor () const
 
virtual void setBackgroundPixmap (const uiPixmap &)
 
virtual void setTextColor (const Color &)
 
void setSensitive (bool yn=true)
 
bool sensitive () const
 
bool visible () const
 
bool isDisplayed () const
 
int prefHNrPics () const
 
virtual void setPrefWidth (int)
 
void setPrefWidthInChar (int)
 
void setPrefWidthInChar (float)
 
void setMinimumWidth (int)
 
void setMaximumWidth (int)
 
int prefVNrPics () const
 
virtual void setPrefHeight (int)
 
void setPrefHeightInChar (int)
 
void setPrefHeightInChar (float)
 
void setMinimumHeight (int)
 
void setMaximumHeight (int)
 
void setStretch (int hor, int ver)
 Sets stretch factors for object If stretch factor is > 1, then object will already grow at pop-up. More...
 
void attach (constraintType, int margin=-1)
 attaches object to another In case the stretched... options are used, margin=-1 (default) stretches the object not to cross the border. margin=-2 stretches the object to fill the parent's border. This looks nice with separators. More...
 
void attach (constraintType, uiObject *, int margin=-1, bool reciprocal=true)
 
void attach (constraintType, uiParent *, int margin=-1, bool reciprocal=true)
 
void setFont (const uiFont &)
 
const uiFontfont () const
 
void setCaption (const uiString &)
 
void shallowRedraw (CallBacker *=0)
 
void deepRedraw (CallBacker *=0)
 
void reDraw (bool deep)
 
uiSize actualsize (bool include_border=true) const
 
uiParentparent ()
 
const uiParentparent () const
 
void reParent (uiParent *)
 
uiMainWinmainwin ()
 
 mQtclass (QWidget *) getWidget()
 
 mQtclass (QWidget *) qwidget()
 
const mQtclass (QWidget *) qwidget() const
 
virtual bool handleLongTabletPress ()
 
virtual const ObjectSet< uiBaseObject > * childList () const
 
void close ()
 

Static Public Member Functions

static FixedString sKeyBindingSettingsKey ()
 
- Static Public Member Functions inherited from uiObject
static void updateToolTips ()
 
static void setTabOrder (uiObject *first, uiObject *second)
 
static int baseFldSize ()
 
static int iconSize ()
 

Public Attributes

Notifier< ui3DViewerdestroyed
 
Notifier< ui3DViewerviewmodechanged
 
CNotifier< ui3DViewer, bool > pageupdown
 
CallBackvmcb
 
- Public Attributes inherited from uiObject
Notifier< uiObjectclosed
 Triggered when object closes. More...
 
CNotifier< uiObject, uiRect & > setGeometry
 triggered when getting a new geometry A reference to the new geometry is passed which can be manipulated, before the geometry is actually set to the QWidget. More...
 

Private Member Functions

uiObjectBodymkBody (uiParent *, bool direct, const char *)
 

Static Private Member Functions

static const char * sKeySceneID ()
 
static const char * sKeyAnimate ()
 
static const char * sKeyBGColor ()
 
static const char * sKeyStereo ()
 
static const char * sKeyQuadBuf ()
 
static const char * sKeyStereoOff ()
 
static const char * sKeyPrintDlg ()
 
static const char * sKeyPersCamera ()
 

Private Attributes

ui3DViewerBodyosgbody_
 

Friends

class ui3DViewerBody
 

Additional Inherited Members

- Protected Member Functions inherited from uiObject
virtual bool closeOK ()
 hook. Accepts/denies closing of window. More...
 
void triggerSetGeometry (const i_LayoutItem *, uiRect &)
 setGeometry should be triggered by this's layoutItem More...
 
void updateToolTip (CallBacker *=0)
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 

Detailed Description

Member Enumeration Documentation

Enumerator
Inl 
Crl 
YZ 
Enumerator
None 
RedCyan 
QuadBuffer 
Enumerator
Never 
Always 
OnHover 

Constructor & Destructor Documentation

ui3DViewer::ui3DViewer ( uiParent ,
bool  direct,
const char *  nm = "ui3DViewer" 
)
ui3DViewer::~ui3DViewer ( )

Member Function Documentation

void ui3DViewer::align ( )
void ui3DViewer::dolly ( float  rel)
void ui3DViewer::enableAnimation ( bool  )
void ui3DViewer::fillPar ( IOPar ) const
void ui3DViewer::getAllKeyBindings ( BufferStringSet ) const
Color ui3DViewer::getAnnotationColor ( ) const
Color ui3DViewer::getBackgroundColor ( ) const
const Coord3 ui3DViewer::getCameraPosition ( ) const
float ui3DViewer::getCameraZoom ( )
const char* ui3DViewer::getCurrentKeyBindings ( ) const
float ui3DViewer::getMouseWheelZoomFactor ( ) const
const osgViewer::View* ui3DViewer::getOsgViewerHudView ( ) const
const osgViewer::View* ui3DViewer::getOsgViewerMainView ( ) const
visBase::PolygonSelection* ui3DViewer::getPolygonSelector ( )
bool ui3DViewer::getReversedMouseWheelDirection ( ) const
visBase::Scene* ui3DViewer::getScene ( )
const visBase::Scene* ui3DViewer::getScene ( ) const
visBase::SceneColTab* ui3DViewer::getSceneColTab ( )
float ui3DViewer::getScenesPixelDensity ( ) const
float ui3DViewer::getStereoOffset ( ) const
StereoType ui3DViewer::getStereoType ( ) const
Geom::Size2D<int> ui3DViewer::getViewportSizePixels ( ) const
WheelMode ui3DViewer::getWheelDisplayMode ( ) const
bool ui3DViewer::isAnimationEnabled ( ) const
bool ui3DViewer::isCameraPerspective ( ) const
bool ui3DViewer::isMapView ( ) const
bool ui3DViewer::isViewMode ( ) const
ui3DViewer::mDeclareEnumUtils ( StereoType  )
ui3DViewer::mDeclareEnumUtils ( WheelMode  )
uiObjectBody& ui3DViewer::mkBody ( uiParent ,
bool  direct,
const char *   
)
private
void ui3DViewer::rotateH ( float  angle)
void ui3DViewer::rotateV ( float  angle)
bool ui3DViewer::rotAxisShown ( ) const
void ui3DViewer::saveHomePos ( )
void ui3DViewer::savePropertySettings ( ) const
int ui3DViewer::sceneID ( ) const
void ui3DViewer::setAnnotationColor ( const Color )
void ui3DViewer::setAnnotationFont ( const FontData )
void ui3DViewer::setBackgroundColor ( const Color )
virtual

Reimplemented from uiObject.

void ui3DViewer::setCameraZoom ( float  )
void ui3DViewer::setKeyBindings ( const char *  keybindname)
void ui3DViewer::setMapView ( bool  yn)
void ui3DViewer::setMouseWheelZoomFactor ( float  )

Always positive, direction is set by setReversedMouseWheelDirection()

void ui3DViewer::setReversedMouseWheelDirection ( bool  )
void ui3DViewer::setSceneID ( int  )
void ui3DViewer::setScenesPixelDensity ( float  dpi)
void ui3DViewer::setStereoOffset ( float  )
void ui3DViewer::setViewMode ( bool  )
void ui3DViewer::showRotAxis ( bool  )
static const char* ui3DViewer::sKeyAnimate ( )
inlinestaticprivate
static const char* ui3DViewer::sKeyBGColor ( )
inlinestaticprivate
static FixedString ui3DViewer::sKeyBindingSettingsKey ( )
static
static const char* ui3DViewer::sKeyPersCamera ( )
inlinestaticprivate
static const char* ui3DViewer::sKeyPrintDlg ( )
inlinestaticprivate
static const char* ui3DViewer::sKeyQuadBuf ( )
inlinestaticprivate
static const char* ui3DViewer::sKeySceneID ( )
inlinestaticprivate
static const char* ui3DViewer::sKeyStereo ( )
inlinestaticprivate
static const char* ui3DViewer::sKeyStereoOff ( )
inlinestaticprivate
void ui3DViewer::toggleCameraType ( )
void ui3DViewer::toHomePos ( )
bool ui3DViewer::usePar ( const IOPar )
void ui3DViewer::viewAll ( bool  animate = true)
void ui3DViewer::viewPlane ( PlaneType  )

Friends And Related Function Documentation

friend class ui3DViewerBody
friend

Member Data Documentation

Notifier<ui3DViewer> ui3DViewer::destroyed
ui3DViewerBody* ui3DViewer::osgbody_
private
CNotifier<ui3DViewer,bool> ui3DViewer::pageupdown
Notifier<ui3DViewer> ui3DViewer::viewmodechanged
CallBack* ui3DViewer::vmcb

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