OpendTect-6_4  6.4
Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
uiDirectionalPlot Class Reference

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

Inheritance diagram for uiDirectionalPlot:
[legend]

Protected Member Functions

void mouseRelease (CallBacker *)
 
void reSized (CallBacker *)
 
void gatherInfo ()
 
void draw ()
 
void drawGrid ()
 
void drawData ()
 
void drawScatter ()
 
void drawVals ()
 
void drawRose ()
 
void drawSelection ()
 
uiCurvedItemdrawSectorPart (int, Interval< float >, Color)
 
void drawSectorParts (bool)
 
void drawAnnot ()
 
void drawDirAnnot ()
 
void drawHeader ()
 
void drawScale ()
 
void drawColTab ()
 
uiPoint dataUIPos (float r, float ang) const
 
uiPoint usrUIPos (float r, float ang) const
 
- Protected Member Functions inherited from uiGraphicsView
void saveImageCB (CallBacker *)
 
void printImageCB (CallBacker *)
 
- Protected Member Functions inherited from uiGraphicsViewBase
void translateText ()
 
uiGraphicsViewBodymkbody (uiParent *, const char *)
 
void rubberBandCB (CallBacker *)
 
- 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

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

Private Member Functions

mODTextTranslationClass(uiDirectionalPlot) public uiDirectionalPlot (uiParent *, const Setup &)
 
 ~uiDirectionalPlot ()
 
void setData (const Stats::DirectionalData &)
 
void setData (const float *, int)
 Rose dgrm. More...
 
Stats::DirectionalData::SetupdataSetup ()
 
Setup & setup ()
 
const Stats::DirectionalDatadata () const
 
int nrSectors () const
 
int size () const
 
float angle (int s) const
 
int curSector () const
 
int selSector () const
 
void setSelectedSector (int i)
 
void setColTab (const char *nm)
 
void showColTabItem (bool)
 
void showScaleItem (bool)
 
void setNrEquicircles (int)
 
void getMousePosInfo (int &count, float &angle, float &pos)
 
void setHighlighted (const TypeSet< int > &)
 
void setHighlighted (int)
 

Private Attributes

Notifier< uiDirectionalPlotsectorPicked
 

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 Member Functions inherited from uiGraphicsView
 uiGraphicsView (uiParent *, const char *nm)
 
 ~uiGraphicsView ()
 
uiToolButtongetSaveImageButton (uiParent *)
 
uiToolButtongetPrintImageButton (uiParent *)
 
void enableImageSave ()
 
void disableImageSave ()
 
uiCrossHairItemgetCrossHairItem ()
 
- Public Member Functions inherited from uiGraphicsViewBase
 uiGraphicsViewBase (uiParent *, const char *)
 
 ~uiGraphicsViewBase ()
 
void setScene (uiGraphicsScene &)
 Scene becomes mine. More...
 
uiGraphicsScenescene ()
 
void show ()
 
void setScrollBarPolicy (bool hor, ScrollBarPolicy)
 
void setDragMode (ODDragMode)
 
ODDragMode dragMode () const
 
bool isRubberBandingOn () const
 
void setMouseTracking (bool)
 
bool hasMouseTracking () const
 
void setMouseWheelReversal (bool)
 
bool getMouseWheelReversal () const
 
void setMidMouseButtonForDrag (bool)
 
bool hasMidMouseButtonForDrag () const
 
int width () const
 width of widget More...
 
int height () const
 height of widget More...
 
int viewWidth () const
 width of viewport More...
 
int viewHeight () const
 height of viewport More...
 
int getSceneBorder () const
 
void setSceneBorder (int)
 
void centreOn (uiPoint)
 
uiRect getSceneRect () const
 
void setSceneRect (const uiRect &)
 
void setSceneAlignment (const Alignment &)
 
void setScaleFactor (float, float)
 
uiPoint getCursorPos () const
 
void getScaleFactor (float &, float &) const
 
uiPoint getScenePos (float, float) const
 
const uiPointgetStartPos () const
 
const uiRectgetSelectedArea () const
 
void setViewArea (double x, double y, double w, double h)
 
uiRect getViewArea () const
 
void setBackgroundColor (const Color &)
 
Color backgroundColor () const
 
void setNoBackGround ()
 
void rePaint ()
 
void enableScrollZoom (bool yn=true)
 
void disableScrollZoom ()
 
bool scrollZoomEnabled ()
 
uiSize scrollBarSize (bool horizontal) const
 
const uiPoint mapFromScene (const Geom::Point2D< float > &) const
 
const Geom::Point2D< float > mapToScene (const uiPoint &) const
 
bool isCtrlPressed () const
 
void setCtrlPressed (bool yn)
 
bool print ()
 
MouseEventHandlergetNavigationMouseEventHandler ()
 
MouseEventHandlergetMouseEventHandler ()
 
KeyboardEventHandlergetKeyboardEventHandler ()
 
GestureEventHandlergestureEventHandler ()
 
- 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 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 *)
 
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 inherited from uiGraphicsViewBase
static const ObjectSet< uiGraphicsViewBase > & allInstances ()
 
- 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 inherited from uiGraphicsViewBase
CNotifier< uiGraphicsViewBase, uiSizereSize
 CallBacker is OLD size. More...
 
Notifier< uiGraphicsViewBaserubberBandUsed
 
Notifier< uiGraphicsViewBasereDrawNeeded
 
Notifier< uiGraphicsViewBasereDrawn
 In practice, this happens only after reSize. More...
 
Notifier< uiGraphicsViewBasepreDraw
 
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...
 

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

mODTextTranslationClass (uiDirectionalPlot) public uiDirectionalPlot::uiDirectionalPlot ( uiParent ,
const Setup &   
)
private
uiDirectionalPlot::~uiDirectionalPlot ( )
private

Member Function Documentation

float uiDirectionalPlot::angle ( int  s) const
inlineprivate
int uiDirectionalPlot::curSector ( ) const
inlineprivate
const Stats::DirectionalData& uiDirectionalPlot::data ( ) const
inlineprivate
Stats::DirectionalData::Setup& uiDirectionalPlot::dataSetup ( )
inlineprivate
uiPoint uiDirectionalPlot::dataUIPos ( float  r,
float  ang 
) const
protected
void uiDirectionalPlot::draw ( )
protected
void uiDirectionalPlot::drawAnnot ( )
protected
void uiDirectionalPlot::drawColTab ( )
protected
void uiDirectionalPlot::drawData ( )
protected
void uiDirectionalPlot::drawDirAnnot ( )
protected
void uiDirectionalPlot::drawGrid ( )
protected
void uiDirectionalPlot::drawHeader ( )
protected
void uiDirectionalPlot::drawRose ( )
protected
void uiDirectionalPlot::drawScale ( )
protected
void uiDirectionalPlot::drawScatter ( )
protected
uiCurvedItem* uiDirectionalPlot::drawSectorPart ( int  ,
Interval< float >  ,
Color   
)
protected
void uiDirectionalPlot::drawSectorParts ( bool  )
protected
void uiDirectionalPlot::drawSelection ( )
protected
void uiDirectionalPlot::drawVals ( )
protected
void uiDirectionalPlot::gatherInfo ( )
protected
void uiDirectionalPlot::getMousePosInfo ( int &  count,
float &  angle,
float &  pos 
)
private
void uiDirectionalPlot::mouseRelease ( CallBacker )
protected
int uiDirectionalPlot::nrSectors ( ) const
inlineprivate
void uiDirectionalPlot::reSized ( CallBacker )
protected
int uiDirectionalPlot::selSector ( ) const
inlineprivate
void uiDirectionalPlot::setColTab ( const char *  nm)
private
void uiDirectionalPlot::setData ( const Stats::DirectionalData )
private
void uiDirectionalPlot::setData ( const float *  ,
int   
)
private

Rose dgrm.

void uiDirectionalPlot::setHighlighted ( const TypeSet< int > &  )
private
void uiDirectionalPlot::setHighlighted ( int  )
private
void uiDirectionalPlot::setNrEquicircles ( int  )
private
void uiDirectionalPlot::setSelectedSector ( int  i)
inlineprivate
Setup& uiDirectionalPlot::setup ( )
inlineprivate
void uiDirectionalPlot::showColTabItem ( bool  )
private
void uiDirectionalPlot::showScaleItem ( bool  )
private
int uiDirectionalPlot::size ( ) const
inlineprivate
uiPoint uiDirectionalPlot::usrUIPos ( float  r,
float  ang 
) const
protected

Member Data Documentation

uiPoint uiDirectionalPlot::center_
protected
const ColTab::Sequence* uiDirectionalPlot::colseq_
protected
uiColTabItem* uiDirectionalPlot::coltabitm_
protected
int uiDirectionalPlot::cursector_
protected
uiGraphicsItemGroup& uiDirectionalPlot::curveitems_
protected
Stats::DirectionalData uiDirectionalPlot::data_
protected
ObjectSet<uiLineItem> uiDirectionalPlot::dirlnitms_
protected
ObjectSet<uiTextItem> uiDirectionalPlot::dirtxtitms_
protected
ObjectSet<uiCircleItem> uiDirectionalPlot::equicircles_
protected
uiTextItem* uiDirectionalPlot::hdrannotitm1_
protected
uiTextItem* uiDirectionalPlot::hdrannotitm2_
protected
TypeSet<int> uiDirectionalPlot::highlightidxs_
protected
bool uiDirectionalPlot::isempty_
protected
uiGraphicsItemGroup& uiDirectionalPlot::markeritems_
protected
int uiDirectionalPlot::maxcount_
protected
uiCircleItem* uiDirectionalPlot::outercircleitm_
protected
Interval<float> uiDirectionalPlot::posrg_
protected
int uiDirectionalPlot::radius_
protected
uiTextItem* uiDirectionalPlot::scaleannotitm_
protected
uiCurvedItem* uiDirectionalPlot::scalearcitm_
protected
uiLineItem* uiDirectionalPlot::scalelineitm_
protected
uiTextItem* uiDirectionalPlot::scalestartitm_
protected
uiMarkerItem* uiDirectionalPlot::scalestartptitem_
protected
uiTextItem* uiDirectionalPlot::scalestopitm_
protected
uiGraphicsItemGroup& uiDirectionalPlot::sectorlines_
protected
Notifier<uiDirectionalPlot> uiDirectionalPlot::sectorPicked
private
int uiDirectionalPlot::selsector_
protected
uiCurvedItem* uiDirectionalPlot::selsectoritem_
protected
Setup uiDirectionalPlot::setup_
protected
Interval<float> uiDirectionalPlot::valrg_
protected

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