OpendTect  6.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
uiLineItem Class Reference
Inheritance diagram for uiLineItem:
[legend]

Public Member Functions

 uiLineItem ()
 
 uiLineItem (const uiPoint &, float angle, float len)
 
 uiLineItem (const uiPoint &start, const uiPoint &stop)
 
 uiLineItem (float x1, float y1, float x2, float y2)
 
 uiLineItem (int x1, int y1, int x2, int y2)
 
 ~uiLineItem ()
 
uiRect lineRect () const
 
QGraphicsLineItem * qLineItem ()
 
void setLine (const Geom::Point2D< float > &, const Geom::Point2D< float > &)
 
void setLine (const Geom::Point2D< float > &centerpos, float dx1, float dy1, float dx2, float dy2)
 
void setLine (const Geom::Point2D< int > &centerpos, int dx1, int dy1, int dx2, int dy2)
 
void setLine (const uiPoint &start, const uiPoint &end)
 
void setLine (const uiWorldPoint &, const uiWorldPoint &)
 
void setLine (float x1, float y1, float x2, float y2)
 
void setLine (int x1, int y1, int x2, int y2)
 
void setPenColor (const Color &, bool withalpha=false)
 
void setPenStyle (const OD::LineStyle &, bool withalpha=false)
 
- Public Member Functions inherited from uiGraphicsItem
 uiGraphicsItem ()
 
 ~uiGraphicsItem ()
 
virtual OD::ButtonState acceptedMouseButtonsEnabled () const
 
void addChild (uiGraphicsItem *)
 
void addChildSet (uiGraphicsItemSet &)
 
virtual uiRect boundingRect () const
 
virtual uiGraphicsItemfindItem (QGraphicsItem *)
 
uiGraphicsItemgetChild (int)
 
Geom::Point2D< float > getPos () const
 
float getRotation ()
 
void getScale (float &sx, float &sy)
 
float getTransparency () const
 
int getZValue () const
 
void hide ()
 
int id () const
 
virtual bool isFiltersChildEventsEnabled () const
 
virtual bool isHoverEventsAccepted () const
 
bool isItemIgnoresTransformationsEnabled () const
 
virtual bool isMovable () const
 
bool isPresent (const uiGraphicsItem &) const
 
virtual bool isSelectable () const
 
virtual bool isSelected () const
 
virtual bool isVisible () const
 
void moveBy (float x, float y)
 
int nrChildren () const
 
QGraphicsItem * qGraphicsItem ()
 
const QGraphicsItem * qGraphicsItem () const
 
void removeAll (bool withdelete)
 
void removeChild (uiGraphicsItem *, bool withdelete)
 
void removeChildSet (uiGraphicsItemSet &)
 
void rotate (float angle)
 
void scale (float sx, float sy)
 
virtual void setAcceptedMouseButtons (OD::ButtonState)
 
virtual void setAcceptHoverEvents (bool)
 
void setCursor (const MouseCursor &)
 
virtual void setFillColor (const Color &, bool usetransp=false)
 
virtual void setFillPattern (const FillPattern &)
 
virtual void setFiltersChildEvents (bool)
 
virtual void setGradientFill (int x1, int y1, int x2, int y2, const TypeSet< float > &stops, const TypeSet< Color > &colors)
 
void setItemIgnoresTransformations (bool)
 
virtual void setMovable (bool)
 
void setPos (const Geom::Point2D< float > &)
 
void setPos (const uiPoint &p)
 
void setPos (const uiWorldPoint &)
 
void setPos (float x, float y)
 
void setRotation (float angle)
 
void setScale (float sx, float sy)
 
virtual void setScene (uiGraphicsScene *)
 
virtual void setSelectable (bool)
 
virtual void setSelected (bool)
 
void setToolTip (const uiString &)
 
virtual void setTransparency (float)
 
virtual void setVisible (bool)
 
void setZValue (int)
 
void show ()
 
uiPoint transformToScenePos (const uiPoint &itmpos) const
 
virtual void translateText ()
 
- 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
 

Protected Member Functions

QGraphicsItem * mkQtObj ()
 
- Protected Member Functions inherited from uiGraphicsItem
 uiGraphicsItem (QGraphicsItem *)
 
virtual void stPos (float, float)
 

Protected Attributes

QGraphicsLineItem * qlineitem_
 
- Protected Attributes inherited from uiGraphicsItem
ObjectSet< uiGraphicsItemchildren_
 
uiGraphicsItemparent_
 
QGraphicsItem * qgraphicsitem_
 
uiGraphicsScenescene_
 
bool selected_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from uiGraphicsItem
CNotifier< uiGraphicsItem, const MouseEvent & > leftClicked
 
CNotifier< uiGraphicsItem, const MouseEvent & > rightClicked
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiLineItem() [1/5]

uiLineItem::uiLineItem ( )

◆ uiLineItem() [2/5]

uiLineItem::uiLineItem ( int  x1,
int  y1,
int  x2,
int  y2 
)

◆ uiLineItem() [3/5]

uiLineItem::uiLineItem ( float  x1,
float  y1,
float  x2,
float  y2 
)

◆ uiLineItem() [4/5]

uiLineItem::uiLineItem ( const uiPoint start,
const uiPoint stop 
)

◆ uiLineItem() [5/5]

uiLineItem::uiLineItem ( const uiPoint ,
float  angle,
float  len 
)

◆ ~uiLineItem()

uiLineItem::~uiLineItem ( )

Member Function Documentation

◆ lineRect()

uiRect uiLineItem::lineRect ( ) const

◆ mkQtObj()

QGraphicsItem* uiLineItem::mkQtObj ( )
protectedvirtual

Reimplemented from uiGraphicsItem.

◆ qLineItem()

QGraphicsLineItem* uiLineItem::qLineItem ( )
inline

◆ setLine() [1/7]

void uiLineItem::setLine ( const Geom::Point2D< float > &  ,
const Geom::Point2D< float > &   
)

◆ setLine() [2/7]

void uiLineItem::setLine ( const Geom::Point2D< float > &  centerpos,
float  dx1,
float  dy1,
float  dx2,
float  dy2 
)

◆ setLine() [3/7]

void uiLineItem::setLine ( const Geom::Point2D< int > &  centerpos,
int  dx1,
int  dy1,
int  dx2,
int  dy2 
)

◆ setLine() [4/7]

void uiLineItem::setLine ( const uiPoint start,
const uiPoint end 
)

◆ setLine() [5/7]

void uiLineItem::setLine ( const uiWorldPoint ,
const uiWorldPoint  
)

◆ setLine() [6/7]

void uiLineItem::setLine ( float  x1,
float  y1,
float  x2,
float  y2 
)

◆ setLine() [7/7]

void uiLineItem::setLine ( int  x1,
int  y1,
int  x2,
int  y2 
)

◆ setPenColor()

void uiLineItem::setPenColor ( const Color ,
bool  withalpha = false 
)
virtual

Reimplemented from uiGraphicsItem.

◆ setPenStyle()

void uiLineItem::setPenStyle ( const OD::LineStyle ,
bool  withalpha = false 
)
virtual

Reimplemented from uiGraphicsItem.

Member Data Documentation

◆ qlineitem_

QGraphicsLineItem* uiLineItem::qlineitem_
protected

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