OpendTect  7.0
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
uiDirectionalPlot Class Reference

creates a directional plot: Rose diagrams and more. More...

Inheritance diagram for uiDirectionalPlot:
[legend]

Classes

struct  Setup
 

Public Member Functions

 uiDirectionalPlot (uiParent *, const Setup &)
 
 ~uiDirectionalPlot ()
 
float angle (int s) const
 
int curSector () const
 
const Stats::DirectionalDatadata () const
 
Stats::DirectionalData::SetupdataSetup ()
 
void getMousePosInfo (int &count, float &angle, float &pos)
 
int nrSectors () const
 
int selSector () const
 
void setColTab (const char *nm)
 
void setData (const float *, int)
 Rose dgrm. More...
 
void setData (const Stats::DirectionalData &)
 
void setHighlighted (const TypeSet< int > &)
 
void setHighlighted (int)
 
void setNrEquicircles (int)
 
void setSelectedSector (int i)
 
Setupsetup ()
 
void showColTabItem (bool)
 
void showScaleItem (bool)
 
int size () const
 
- Public Member Functions inherited from uiGraphicsView
 uiGraphicsView (uiParent *, const char *nm)
 
 ~uiGraphicsView ()
 
void disableImageSave ()
 
void enableImageSave ()
 
uiCrossHairItemgetCrossHairItem ()
 
uiActiongetPrintImageAction ()
 
uiToolButtongetPrintImageButton (uiParent *)
 
uiActiongetSaveImageAction ()
 
uiToolButtongetSaveImageButton (uiParent *)
 
- Public Member Functions inherited from uiGraphicsViewBase
 uiGraphicsViewBase (uiParent *, const char *)
 
 ~uiGraphicsViewBase ()
 
OD::Color backgroundColor () const override
 
void centreOn (uiPoint)
 
void disableScrollZoom ()
 
ODDragMode dragMode () const
 
void enableScrollZoom (bool yn=true)
 
GestureEventHandlergestureEventHandler ()
 
uiPoint getCursorPos () const
 
KeyboardEventHandlergetKeyboardEventHandler ()
 
MouseEventHandlergetMouseEventHandler ()
 
bool getMouseWheelReversal () const
 
MouseEventHandlergetNavigationMouseEventHandler ()
 
void getScaleFactor (float &, float &) const
 
int getSceneBorder () const
 
uiPoint getScenePos (float, float) const
 
uiRect getSceneRect () const
 
const uiRectgetSelectedArea () const
 
const uiPointgetStartPos () const
 
uiRect getViewArea () const
 
bool hasMidMouseButtonForDrag () const
 
bool hasMouseTracking () const
 
int height () const override
 height of widget More...
 
bool isCtrlPressed () const
 
bool isRubberBandingOn () const
 
uiPoint mapFromScene (const Geom::Point2D< float > &) const
 
Geom::Point2D< float > mapToScene (const uiPoint &) const
 
Geom::RectF mapToScene (const uiRect &) const
 
bool print ()
 
void rePaint ()
 
uiGraphicsScenescene ()
 
uiSize scrollBarSize (bool horizontal) const
 
bool scrollZoomEnabled ()
 
void setBackgroundColor (const OD::Color &) override
 
void setCtrlPressed (bool yn)
 
void setDragMode (ODDragMode)
 
void setMidMouseButtonForDrag (bool)
 
void setMouseTracking (bool)
 
void setMouseWheelReversal (bool)
 
void setNoBackGround ()
 
void setScaleFactor (float, float)
 
void setScene (uiGraphicsScene &)
 Scene becomes mine. More...
 
void setSceneAlignment (const Alignment &)
 
void setSceneBorder (int)
 
void setSceneRect (const uiRect &)
 
void setScrollBarPolicy (bool hor, ScrollBarPolicy)
 
void setViewArea (double x, double y, double w, double h)
 
void show ()
 
int viewHeight () const
 height of viewport More...
 
int viewWidth () const
 width of viewport More...
 
int width () const override
 width of widget More...
 
- Public Member Functions inherited from uiObject
 ~uiObject ()
 
uiSize actualSize (bool include_border=true) const
 
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)
 
virtual const ObjectSet< uiBaseObject > * childList () const
 
void close ()
 
void deepRedraw ()
 
void disabFocus ()
 
void display (bool yn, bool shrink=false, bool maximized=false)
 
const uiFontfont () const
 
QWidget * getWidget () override
 
virtual bool handleLongTabletPress ()
 
bool hasFocus () const
 
bool isCursorInside () const
 
bool isDisplayed () const
 
virtual bool isEmpty () const
 
bool isSensitive () const
 
uiMainWinmainwin ()
 
uiParentparent ()
 
const uiParentparent () const
 
int prefHNrPics () const
 
int prefVNrPics () const
 
QWidget * qwidget ()
 
const QWidget * qwidget () const
 
void reDraw (bool deep)
 
void reParent (uiParent *)
 
OD::Color roBackgroundColor () const
 
bool sensitive () const
 
virtual void setBackgroundPixmap (const uiPixmap &)
 
void setCaption (const uiString &)
 
virtual void setCursor (const MouseCursor &)
 
void setFocus ()
 
void setFont (const uiFont &)
 
void setHSzPol (SzPolicy)
 
void setMaximumHeight (int)
 
void setMaximumHeightInChar (int)
 
void setMaximumWidth (int)
 
void setMaximumWidthInChar (int)
 
void setMinimumHeight (int)
 
void setMinimumHeightInChar (int)
 
void setMinimumWidth (int)
 
void setMinimumWidthInChar (int)
 
virtual void setName (const char *) override
 
virtual void setPrefHeight (int)
 
void setPrefHeightInChar (float)
 
void setPrefHeightInChar (int)
 
virtual void setPrefWidth (int)
 
void setPrefWidthInChar (float)
 
void setPrefWidthInChar (int)
 
void setSensitive (bool yn=true)
 
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...
 
virtual void setStyleSheet (const char *)
 
virtual void setTextColor (const OD::Color &)
 
void setToolTip (const uiString &)
 
void setVSzPol (SzPolicy)
 
void shallowRedraw ()
 
int stretch (bool hor) const
 
SzPolicy szPol (bool hor=true) const
 
const uiStringtoolTip () const
 
void translateText () override
 
bool visible () const
 
- Public Member Functions inherited from uiBaseObject
 uiBaseObject (const char *nm, uiBody *=0)
 
virtual ~uiBaseObject ()
 
int beginCmdRecEvent (const BufferString &msg)
 
int beginCmdRecEvent (const char *msg=0)
 
int beginCmdRecEvent (od_uint64 id, const char *msg=0)
 
uiBodybody ()
 
const uiBodybody () const
 
void clear ()
 
void endCmdRecEvent (int refnr, const char *msg=0)
 
void endCmdRecEvent (od_uint64 id, int refnr, const char *msg=0)
 
void finalise ()
 
bool finalised () const
 
void finalize ()
 
bool finalized () const
 
const QWidget * getWidget () const
 
virtual Notifier< uiBaseObject > & postFinalise ()
 
virtual Notifier< uiBaseObject > & postFinalize ()
 
virtual Notifier< uiBaseObject > & preFinalise ()
 
virtual Notifier< uiBaseObject > & preFinalize ()
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Public Attributes

Notifier< uiDirectionalPlotsectorPicked
 
- Public Attributes inherited from uiGraphicsViewBase
Notifier< uiGraphicsViewBasepreDraw
 
Notifier< uiGraphicsViewBasereDrawn
 In practice, this happens only after reSize. More...
 
Notifier< uiGraphicsViewBasereDrawNeeded
 
CNotifier< uiGraphicsViewBase, uiSizereSize
 CallBacker is OLD size. More...
 
Notifier< uiGraphicsViewBaserubberBandUsed
 
Notifier< uiGraphicsViewBasescrollBarUsed
 
- 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...
 

Protected Member Functions

uiPoint dataUIPos (float r, float ang) const
 
void draw ()
 
void drawAnnot ()
 
void drawColTab ()
 
void drawData ()
 
void drawDirAnnot ()
 
void drawGrid ()
 
void drawHeader ()
 
void drawRose ()
 
void drawScale ()
 
void drawScatter ()
 
uiCurvedItemdrawSectorPart (int, Interval< float >, OD::Color)
 
void drawSectorParts (bool)
 
void drawSelection ()
 
void drawVals ()
 
void gatherInfo ()
 
void mouseRelease (CallBacker *)
 
void reSized (CallBacker *)
 
uiPoint usrUIPos (float r, float ang) const
 
- Protected Member Functions inherited from uiGraphicsView
void printImageCB (CallBacker *)
 
void saveImageCB (CallBacker *)
 
- Protected Member Functions inherited from uiGraphicsViewBase
uiGraphicsViewBodymkbody (uiParent *, const char *)
 
void rubberBandCB (CallBacker *)
 
void translateText () override
 
- Protected Member Functions inherited from uiObject
 uiObject (uiParent *, const char *nm)
 
 uiObject (uiParent *, const char *nm, uiObjectBody &)
 
virtual bool closeOK ()
 hook. Accepts/denies closing of window. More...
 
uiObjectBodyobjBody ()
 
const uiObjectBodyobjBody () const
 
void triggerSetGeometry (const i_LayoutItem *, uiRect &)
 setGeometry should be triggered by this's layoutItem More...
 
void updateToolTip (CallBacker *=nullptr)
 
- Protected Member Functions inherited from uiBaseObject
void setBody (uiBody *b)
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Protected Attributes

uiPoint center_
 
const ColTab::Sequencecolseq_
 
uiColTabItemcoltabitm_
 
int cursector_
 
uiGraphicsItemGroupcurveitems_
 
Stats::DirectionalData data_
 
ObjectSet< uiLineItemdirlnitms_
 
ObjectSet< uiTextItemdirtxtitms_
 
ObjectSet< uiCircleItemequicircles_
 
uiTextItemhdrannotitm1_
 
uiTextItemhdrannotitm2_
 
TypeSet< int > highlightidxs_
 
bool isempty_
 
uiGraphicsItemGroupmarkeritems_
 
int maxcount_
 
int nrequicircles_ = 3
 
uiCircleItemoutercircleitm_
 
Interval< float > posrg_
 
int radius_
 
uiTextItemscaleannotitm_
 
uiCurvedItemscalearcitm_
 
uiLineItemscalelineitm_
 
uiTextItemscalestartitm_
 
uiMarkerItemscalestartptitem_
 
uiTextItemscalestopitm_
 
uiGraphicsItemGroupsectorlines_
 
int selsector_
 
uiCurvedItemselsectoritem_
 
Setup setup_
 
Interval< float > valrg_
 
- Protected Attributes inherited from uiGraphicsView
uiCrossHairItemcrosshairitem_
 
bool enableimagesave_
 
- Protected Attributes inherited from uiGraphicsViewBase
uiGraphicsViewBodybody_
 
bool enabscrollzoom_
 
bool isctrlpressed_
 
uiGraphicsScenescene_
 
int sceneborder_
 
uiRectselectedarea_
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Public Types inherited from uiGraphicsViewBase
enum  ODDragMode { NoDrag , ScrollHandDrag , RubberBandDrag }
 
enum  ScrollBarPolicy { ScrollBarAsNeeded , ScrollBarAlwaysOff , ScrollBarAlwaysOn }
 
- 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 Types inherited from ObjectWithName
typedef OD::String name_type
 
- Static Public Member Functions inherited from uiGraphicsViewBase
static const ObjectSet< uiGraphicsViewBase > & allInstances ()
 
- Static Public Member Functions inherited from uiObject
static int baseFldSize ()
 
static int iconSize ()
 
static void setTabOrder (uiObject *first, uiObject *second)
 
static void updateToolTips ()
 
- Static Public Member Functions inherited from uiBaseObject
static void addCmdRecorder (const CallBack &)
 
static void removeCmdRecorder (const CallBack &)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

creates a directional plot: Rose diagrams and more.

For Type Rose, the sector part count_ will be used only For Type Scatter, (pos_,val_) are the polar coordinates. For Type Vals, the pos_ will be used as the 'R' of a polar coordinate. The 'val_' will be used for a color table lookup. If setup_.docount_ the coloring will be on count_.

<>

Constructor & Destructor Documentation

◆ uiDirectionalPlot()

uiDirectionalPlot::uiDirectionalPlot ( uiParent ,
const Setup  
)

◆ ~uiDirectionalPlot()

uiDirectionalPlot::~uiDirectionalPlot ( )

Member Function Documentation

◆ angle()

float uiDirectionalPlot::angle ( int  s) const
inline

◆ curSector()

int uiDirectionalPlot::curSector ( ) const
inline

◆ data()

const Stats::DirectionalData& uiDirectionalPlot::data ( ) const
inline

◆ dataSetup()

Stats::DirectionalData::Setup& uiDirectionalPlot::dataSetup ( )
inline

◆ dataUIPos()

uiPoint uiDirectionalPlot::dataUIPos ( float  r,
float  ang 
) const
protected

◆ draw()

void uiDirectionalPlot::draw ( )
protected

◆ drawAnnot()

void uiDirectionalPlot::drawAnnot ( )
protected

◆ drawColTab()

void uiDirectionalPlot::drawColTab ( )
protected

◆ drawData()

void uiDirectionalPlot::drawData ( )
protected

◆ drawDirAnnot()

void uiDirectionalPlot::drawDirAnnot ( )
protected

◆ drawGrid()

void uiDirectionalPlot::drawGrid ( )
protected

◆ drawHeader()

void uiDirectionalPlot::drawHeader ( )
protected

◆ drawRose()

void uiDirectionalPlot::drawRose ( )
protected

◆ drawScale()

void uiDirectionalPlot::drawScale ( )
protected

◆ drawScatter()

void uiDirectionalPlot::drawScatter ( )
protected

◆ drawSectorPart()

uiCurvedItem* uiDirectionalPlot::drawSectorPart ( int  ,
Interval< float >  ,
OD::Color   
)
protected

◆ drawSectorParts()

void uiDirectionalPlot::drawSectorParts ( bool  )
protected

◆ drawSelection()

void uiDirectionalPlot::drawSelection ( )
protected

◆ drawVals()

void uiDirectionalPlot::drawVals ( )
protected

◆ gatherInfo()

void uiDirectionalPlot::gatherInfo ( )
protected

◆ getMousePosInfo()

void uiDirectionalPlot::getMousePosInfo ( int &  count,
float &  angle,
float &  pos 
)

◆ mouseRelease()

void uiDirectionalPlot::mouseRelease ( CallBacker )
protected

◆ nrSectors()

int uiDirectionalPlot::nrSectors ( ) const
inline

◆ reSized()

void uiDirectionalPlot::reSized ( CallBacker )
protected

◆ selSector()

int uiDirectionalPlot::selSector ( ) const
inline

◆ setColTab()

void uiDirectionalPlot::setColTab ( const char *  nm)

◆ setData() [1/2]

void uiDirectionalPlot::setData ( const float *  ,
int   
)

Rose dgrm.

◆ setData() [2/2]

void uiDirectionalPlot::setData ( const Stats::DirectionalData )

◆ setHighlighted() [1/2]

void uiDirectionalPlot::setHighlighted ( const TypeSet< int > &  )

◆ setHighlighted() [2/2]

void uiDirectionalPlot::setHighlighted ( int  )

◆ setNrEquicircles()

void uiDirectionalPlot::setNrEquicircles ( int  )

◆ setSelectedSector()

void uiDirectionalPlot::setSelectedSector ( int  i)
inline

◆ setup()

Setup& uiDirectionalPlot::setup ( )
inline

◆ showColTabItem()

void uiDirectionalPlot::showColTabItem ( bool  )

◆ showScaleItem()

void uiDirectionalPlot::showScaleItem ( bool  )

◆ size()

int uiDirectionalPlot::size ( ) const
inline

◆ usrUIPos()

uiPoint uiDirectionalPlot::usrUIPos ( float  r,
float  ang 
) const
protected

Member Data Documentation

◆ center_

uiPoint uiDirectionalPlot::center_
protected

◆ colseq_

const ColTab::Sequence* uiDirectionalPlot::colseq_
protected

◆ coltabitm_

uiColTabItem* uiDirectionalPlot::coltabitm_
protected

◆ cursector_

int uiDirectionalPlot::cursector_
protected

◆ curveitems_

uiGraphicsItemGroup& uiDirectionalPlot::curveitems_
protected

◆ data_

Stats::DirectionalData uiDirectionalPlot::data_
protected

◆ dirlnitms_

ObjectSet<uiLineItem> uiDirectionalPlot::dirlnitms_
protected

◆ dirtxtitms_

ObjectSet<uiTextItem> uiDirectionalPlot::dirtxtitms_
protected

◆ equicircles_

ObjectSet<uiCircleItem> uiDirectionalPlot::equicircles_
protected

◆ hdrannotitm1_

uiTextItem* uiDirectionalPlot::hdrannotitm1_
protected

◆ hdrannotitm2_

uiTextItem* uiDirectionalPlot::hdrannotitm2_
protected

◆ highlightidxs_

TypeSet<int> uiDirectionalPlot::highlightidxs_
protected

◆ isempty_

bool uiDirectionalPlot::isempty_
protected

◆ markeritems_

uiGraphicsItemGroup& uiDirectionalPlot::markeritems_
protected

◆ maxcount_

int uiDirectionalPlot::maxcount_
protected

◆ nrequicircles_

int uiDirectionalPlot::nrequicircles_ = 3
protected

◆ outercircleitm_

uiCircleItem* uiDirectionalPlot::outercircleitm_
protected

◆ posrg_

Interval<float> uiDirectionalPlot::posrg_
protected

◆ radius_

int uiDirectionalPlot::radius_
protected

◆ scaleannotitm_

uiTextItem* uiDirectionalPlot::scaleannotitm_
protected

◆ scalearcitm_

uiCurvedItem* uiDirectionalPlot::scalearcitm_
protected

◆ scalelineitm_

uiLineItem* uiDirectionalPlot::scalelineitm_
protected

◆ scalestartitm_

uiTextItem* uiDirectionalPlot::scalestartitm_
protected

◆ scalestartptitem_

uiMarkerItem* uiDirectionalPlot::scalestartptitem_
protected

◆ scalestopitm_

uiTextItem* uiDirectionalPlot::scalestopitm_
protected

◆ sectorlines_

uiGraphicsItemGroup& uiDirectionalPlot::sectorlines_
protected

◆ sectorPicked

Notifier<uiDirectionalPlot> uiDirectionalPlot::sectorPicked

◆ selsector_

int uiDirectionalPlot::selsector_
protected

◆ selsectoritem_

uiCurvedItem* uiDirectionalPlot::selsectoritem_
protected

◆ setup_

Setup uiDirectionalPlot::setup_
protected

◆ valrg_

Interval<float> uiDirectionalPlot::valrg_
protected

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