OpendTect  7.0
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
uiGraphicsItem Class Reference
Inheritance diagram for uiGraphicsItem:
[legend]

Public Member Functions

 uiGraphicsItem ()
 
 ~uiGraphicsItem ()
 
virtual OD::ButtonState acceptedMouseButtonsEnabled () const
 
void addChild (uiGraphicsItem *)
 
void addChildSet (uiGraphicsItemSet &)
 
void addChildWithoutCheck (uiGraphicsItem *)
 
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 OD::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< OD::Color > &colors)
 
void setItemIgnoresTransformations (bool)
 
virtual void setMovable (bool)
 
virtual void setPenColor (const OD::Color &, bool usetransp=false)
 
virtual void setPenStyle (const OD::LineStyle &, bool usetransp=false)
 
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
 
virtual CallBackertrueCaller ()
 

Public Attributes

CNotifier< uiGraphicsItem, const MouseEvent & > leftClicked
 
CNotifier< uiGraphicsItem, const MouseEvent & > rightClicked
 

Protected Member Functions

 uiGraphicsItem (QGraphicsItem *)
 
virtual QGraphicsItem * mkQtObj ()
 
virtual void stPos (float, float)
 

Protected Attributes

ObjectSet< uiGraphicsItemchildren_
 
uiGraphicsItemparent_
 
QGraphicsItem * qgraphicsitem_
 
uiGraphicsScenescene_
 
bool selected_
 

Private Member Functions

void updateTransform ()
 

Static Private Member Functions

static int getNewID ()
 

Private Attributes

double angle_
 
const int id_
 
uiWorldPoint scale_
 
uiString tooltip_
 
uiWorldPoint translation_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiGraphicsItem() [1/2]

uiGraphicsItem::uiGraphicsItem ( )

◆ ~uiGraphicsItem()

uiGraphicsItem::~uiGraphicsItem ( )

◆ uiGraphicsItem() [2/2]

uiGraphicsItem::uiGraphicsItem ( QGraphicsItem *  )
protected

Member Function Documentation

◆ acceptedMouseButtonsEnabled()

virtual OD::ButtonState uiGraphicsItem::acceptedMouseButtonsEnabled ( ) const
virtual

◆ addChild()

void uiGraphicsItem::addChild ( uiGraphicsItem )

◆ addChildSet()

void uiGraphicsItem::addChildSet ( uiGraphicsItemSet )

◆ addChildWithoutCheck()

void uiGraphicsItem::addChildWithoutCheck ( uiGraphicsItem )

◆ boundingRect()

virtual uiRect uiGraphicsItem::boundingRect ( ) const
virtual

Reimplemented in uiGraphicsItemGroup.

◆ findItem()

virtual uiGraphicsItem* uiGraphicsItem::findItem ( QGraphicsItem *  )
virtual

Reimplemented in uiGraphicsItemGroup.

◆ getChild()

uiGraphicsItem* uiGraphicsItem::getChild ( int  )

◆ getNewID()

static int uiGraphicsItem::getNewID ( )
staticprivate

◆ getPos()

Geom::Point2D<float> uiGraphicsItem::getPos ( ) const

◆ getRotation()

float uiGraphicsItem::getRotation ( )

◆ getScale()

void uiGraphicsItem::getScale ( float &  sx,
float &  sy 
)

◆ getTransparency()

float uiGraphicsItem::getTransparency ( ) const

◆ getZValue()

int uiGraphicsItem::getZValue ( ) const

◆ hide()

void uiGraphicsItem::hide ( )

◆ id()

int uiGraphicsItem::id ( ) const
inline

◆ isFiltersChildEventsEnabled()

virtual bool uiGraphicsItem::isFiltersChildEventsEnabled ( ) const
virtual

◆ isHoverEventsAccepted()

virtual bool uiGraphicsItem::isHoverEventsAccepted ( ) const
virtual

◆ isItemIgnoresTransformationsEnabled()

bool uiGraphicsItem::isItemIgnoresTransformationsEnabled ( ) const

◆ isMovable()

virtual bool uiGraphicsItem::isMovable ( ) const
virtual

◆ isPresent()

bool uiGraphicsItem::isPresent ( const uiGraphicsItem ) const

◆ isSelectable()

virtual bool uiGraphicsItem::isSelectable ( ) const
virtual

◆ isSelected()

virtual bool uiGraphicsItem::isSelected ( ) const
inlinevirtual

◆ isVisible()

virtual bool uiGraphicsItem::isVisible ( ) const
virtual

Reimplemented in uiGraphicsItemGroup.

◆ mkQtObj()

virtual QGraphicsItem* uiGraphicsItem::mkQtObj ( )
inlineprotectedvirtual

◆ moveBy()

void uiGraphicsItem::moveBy ( float  x,
float  y 
)

◆ nrChildren()

int uiGraphicsItem::nrChildren ( ) const

◆ qGraphicsItem() [1/2]

QGraphicsItem* uiGraphicsItem::qGraphicsItem ( )
inline

◆ qGraphicsItem() [2/2]

const QGraphicsItem* uiGraphicsItem::qGraphicsItem ( ) const
inline

◆ removeAll()

void uiGraphicsItem::removeAll ( bool  withdelete)

◆ removeChild()

void uiGraphicsItem::removeChild ( uiGraphicsItem ,
bool  withdelete 
)

◆ removeChildSet()

void uiGraphicsItem::removeChildSet ( uiGraphicsItemSet )

◆ rotate()

void uiGraphicsItem::rotate ( float  angle)
inline

◆ scale()

void uiGraphicsItem::scale ( float  sx,
float  sy 
)
inline

◆ setAcceptedMouseButtons()

virtual void uiGraphicsItem::setAcceptedMouseButtons ( OD::ButtonState  )
virtual

◆ setAcceptHoverEvents()

virtual void uiGraphicsItem::setAcceptHoverEvents ( bool  )
virtual

◆ setCursor()

void uiGraphicsItem::setCursor ( const MouseCursor )

◆ setFillColor()

virtual void uiGraphicsItem::setFillColor ( const OD::Color ,
bool  usetransp = false 
)
virtual

Reimplemented in uiMarkerItem.

◆ setFillPattern()

virtual void uiGraphicsItem::setFillPattern ( const FillPattern )
virtual

◆ setFiltersChildEvents()

virtual void uiGraphicsItem::setFiltersChildEvents ( bool  )
virtual

◆ setGradientFill()

virtual void uiGraphicsItem::setGradientFill ( int  x1,
int  y1,
int  x2,
int  y2,
const TypeSet< float > &  stops,
const TypeSet< OD::Color > &  colors 
)
virtual

Creates a linear gradient from (x1,y1) to (x2,y2). stops are values between 0 and 1 on the gradient line where colors are defined

◆ setItemIgnoresTransformations()

void uiGraphicsItem::setItemIgnoresTransformations ( bool  )

◆ setMovable()

virtual void uiGraphicsItem::setMovable ( bool  )
virtual

◆ setPenColor()

virtual void uiGraphicsItem::setPenColor ( const OD::Color ,
bool  usetransp = false 
)
virtual

Reimplemented in uiLineItem.

◆ setPenStyle()

virtual void uiGraphicsItem::setPenStyle ( const OD::LineStyle ,
bool  usetransp = false 
)
virtual

Reimplemented in uiLineItem.

◆ setPos() [1/4]

void uiGraphicsItem::setPos ( const Geom::Point2D< float > &  )

◆ setPos() [2/4]

void uiGraphicsItem::setPos ( const uiPoint p)

◆ setPos() [3/4]

void uiGraphicsItem::setPos ( const uiWorldPoint )

◆ setPos() [4/4]

void uiGraphicsItem::setPos ( float  x,
float  y 
)

◆ setRotation()

void uiGraphicsItem::setRotation ( float  angle)

◆ setScale()

void uiGraphicsItem::setScale ( float  sx,
float  sy 
)

◆ setScene()

virtual void uiGraphicsItem::setScene ( uiGraphicsScene )
virtual

Reimplemented in uiGraphicsItemGroup.

◆ setSelectable()

virtual void uiGraphicsItem::setSelectable ( bool  )
virtual

◆ setSelected()

virtual void uiGraphicsItem::setSelected ( bool  )
virtual

◆ setToolTip()

void uiGraphicsItem::setToolTip ( const uiString )

◆ setTransparency()

virtual void uiGraphicsItem::setTransparency ( float  )
virtual

To set the overall transparency of graphics item. Passed value should be between 0 and 1. If the item contains colors with some transparency, resultant transparency of the color will be an effective value of both transparencies.

◆ setVisible()

virtual void uiGraphicsItem::setVisible ( bool  )
virtual

Reimplemented in uiGraphicsItemGroup.

◆ setZValue()

void uiGraphicsItem::setZValue ( int  )

◆ show()

void uiGraphicsItem::show ( )

◆ stPos()

virtual void uiGraphicsItem::stPos ( float  ,
float   
)
protectedvirtual

Reimplemented in uiAdvancedTextItem, and uiTextItem.

◆ transformToScenePos()

uiPoint uiGraphicsItem::transformToScenePos ( const uiPoint itmpos) const

◆ translateText()

virtual void uiGraphicsItem::translateText ( )
virtual

Reimplemented in uiTextItem, and uiGraphicsItemGroup.

◆ updateTransform()

void uiGraphicsItem::updateTransform ( )
private

Member Data Documentation

◆ angle_

double uiGraphicsItem::angle_
private

◆ children_

ObjectSet<uiGraphicsItem> uiGraphicsItem::children_
protected

◆ id_

const int uiGraphicsItem::id_
private

◆ leftClicked

CNotifier<uiGraphicsItem,const MouseEvent&> uiGraphicsItem::leftClicked

◆ parent_

uiGraphicsItem* uiGraphicsItem::parent_
protected

◆ qgraphicsitem_

QGraphicsItem* uiGraphicsItem::qgraphicsitem_
protected

◆ rightClicked

CNotifier<uiGraphicsItem,const MouseEvent&> uiGraphicsItem::rightClicked

◆ scale_

uiWorldPoint uiGraphicsItem::scale_
private

◆ scene_

uiGraphicsScene* uiGraphicsItem::scene_
protected

◆ selected_

bool uiGraphicsItem::selected_
protected

◆ tooltip_

uiString uiGraphicsItem::tooltip_
private

◆ translation_

uiWorldPoint uiGraphicsItem::translation_
private

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