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

Public Member Functions

 uiGraphicsScene (const char *)
 
 ~uiGraphicsScene ()
 
template<class T >
T * addItem (T *)
 Item becomes mine. More...
 
uiGraphicsItemGroupaddItemGrp (uiGraphicsItemGroup *)
 
uiGraphicsItemSetaddItems (uiGraphicsItemSet *)
 
uiPolygonItemaddPolygon (const TypeSet< uiPoint > &, bool fill)
 
uiPolyLineItemaddPolyLine (const TypeSet< uiPoint > &)
 
uiRectItemaddRect (float x, float y, float w, float h)
 
void addUpdateToQueue (Task *)
 
const OD::Color backGroundColor () const
 
void copyToClipBoard ()
 
bool executePendingUpdates ()
 
uiGraphicsItemgetItem (int id)
 
const uiGraphicsItemgetItem (int id) const
 
MouseEventHandlergetMouseEventHandler ()
 
float getPixelDensity () const
 
uiRect getSelectedArea () const
 
int getSelItemSize () const
 
double height () const
 
bool isMouseEventActive () const
 
uiGraphicsItemitemAt (const Geom::Point2D< float > &)
 
const uiGraphicsItemitemAt (const Geom::Point2D< float > &) const
 
int nrItems () const
 
QGraphicsScene * qGraphicsScene ()
 
void removeAllItems ()
 
uiGraphicsItemremoveItem (uiGraphicsItem *)
 
uiGraphicsItemSetremoveItems (uiGraphicsItemSet *)
 
void saveAsImage (const char *fnm, int width, int height, int res)
 
void saveAsPDF (const char *fnm, int width, int height, int res)
 
uiRect sceneRect ()
 
void setBackGroundColor (const OD::Color &)
 
void setMouseEventActive (bool yn)
 
void setPixelDensity (float)
 
void setSceneRect (float x, float y, float w, float h)
 
void setSelectionArea (const uiRect &)
 
void translateText ()
 
void useBackgroundPattern (bool)
 
double width () const
 
- 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
 
virtual void setName (const char *nm)
 
- 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
 

Static Public Member Functions

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

Public Attributes

Notifier< uiGraphicsScenectrlCPressed
 
Notifier< uiGraphicsScenectrlPPressed
 
Notifier< uiGraphicsScenepixelDensityChange
 

Protected Member Functions

void CtrlCPressedCB (CallBacker *)
 
uiGraphicsItemdoAddItem (uiGraphicsItem *)
 
int indexOf (int id) const
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Protected Attributes

bool ismouseeventactive_
 
ObjectSet< uiGraphicsItemitems_
 
MouseEventHandler mousehandler_
 
ODGraphicsScene * odgraphicsscene_
 
float pixeldensity_
 
int queueid_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class uiGraphicsItem
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiGraphicsScene()

uiGraphicsScene::uiGraphicsScene ( const char *  )

◆ ~uiGraphicsScene()

uiGraphicsScene::~uiGraphicsScene ( )

Member Function Documentation

◆ addItem()

template<class T >
T * uiGraphicsScene::addItem ( T *  itm)
inline

Item becomes mine.

◆ addItemGrp()

uiGraphicsItemGroup* uiGraphicsScene::addItemGrp ( uiGraphicsItemGroup )

◆ addItems()

uiGraphicsItemSet* uiGraphicsScene::addItems ( uiGraphicsItemSet )

◆ addPolygon()

uiPolygonItem* uiGraphicsScene::addPolygon ( const TypeSet< uiPoint > &  ,
bool  fill 
)

◆ addPolyLine()

uiPolyLineItem* uiGraphicsScene::addPolyLine ( const TypeSet< uiPoint > &  )

◆ addRect()

uiRectItem* uiGraphicsScene::addRect ( float  x,
float  y,
float  w,
float  h 
)

◆ addUpdateToQueue()

void uiGraphicsScene::addUpdateToQueue ( Task )

◆ backGroundColor()

const OD::Color uiGraphicsScene::backGroundColor ( ) const

◆ copyToClipBoard()

void uiGraphicsScene::copyToClipBoard ( )

◆ CtrlCPressedCB()

void uiGraphicsScene::CtrlCPressedCB ( CallBacker )
protected

◆ doAddItem()

uiGraphicsItem* uiGraphicsScene::doAddItem ( uiGraphicsItem )
protected

◆ executePendingUpdates()

bool uiGraphicsScene::executePendingUpdates ( )

◆ getDefaultPixelDensity()

static float uiGraphicsScene::getDefaultPixelDensity ( )
static

◆ getItem() [1/2]

uiGraphicsItem* uiGraphicsScene::getItem ( int  id)

◆ getItem() [2/2]

const uiGraphicsItem* uiGraphicsScene::getItem ( int  id) const

◆ getMouseEventHandler()

MouseEventHandler& uiGraphicsScene::getMouseEventHandler ( )
inline

◆ getPixelDensity()

float uiGraphicsScene::getPixelDensity ( ) const
inline

◆ getSelectedArea()

uiRect uiGraphicsScene::getSelectedArea ( ) const

◆ getSelItemSize()

int uiGraphicsScene::getSelItemSize ( ) const

◆ height()

double uiGraphicsScene::height ( ) const

◆ indexOf()

int uiGraphicsScene::indexOf ( int  id) const
protected

◆ isMouseEventActive()

bool uiGraphicsScene::isMouseEventActive ( ) const
inline

◆ itemAt() [1/2]

uiGraphicsItem* uiGraphicsScene::itemAt ( const Geom::Point2D< float > &  )

◆ itemAt() [2/2]

const uiGraphicsItem* uiGraphicsScene::itemAt ( const Geom::Point2D< float > &  ) const

◆ nrItems()

int uiGraphicsScene::nrItems ( ) const

◆ qGraphicsScene()

QGraphicsScene* uiGraphicsScene::qGraphicsScene ( )
inline

◆ removeAllItems()

void uiGraphicsScene::removeAllItems ( )

◆ removeItem()

uiGraphicsItem* uiGraphicsScene::removeItem ( uiGraphicsItem )

Gives object back to caller (not deleted)

◆ removeItems()

uiGraphicsItemSet* uiGraphicsScene::removeItems ( uiGraphicsItemSet )

Does not delete the items

◆ saveAsImage()

void uiGraphicsScene::saveAsImage ( const char *  fnm,
int  width,
int  height,
int  res 
)

◆ saveAsPDF()

void uiGraphicsScene::saveAsPDF ( const char *  fnm,
int  width,
int  height,
int  res 
)

◆ sceneRect()

uiRect uiGraphicsScene::sceneRect ( )

◆ setBackGroundColor()

void uiGraphicsScene::setBackGroundColor ( const OD::Color )

◆ setMouseEventActive()

void uiGraphicsScene::setMouseEventActive ( bool  yn)
inline

◆ setPixelDensity()

void uiGraphicsScene::setPixelDensity ( float  )

◆ setSceneRect()

void uiGraphicsScene::setSceneRect ( float  x,
float  y,
float  w,
float  h 
)

◆ setSelectionArea()

void uiGraphicsScene::setSelectionArea ( const uiRect )

◆ translateText()

void uiGraphicsScene::translateText ( )

◆ useBackgroundPattern()

void uiGraphicsScene::useBackgroundPattern ( bool  )

◆ width()

double uiGraphicsScene::width ( ) const

Friends And Related Function Documentation

◆ uiGraphicsItem

friend class uiGraphicsItem
friend

Member Data Documentation

◆ ctrlCPressed

Notifier<uiGraphicsScene> uiGraphicsScene::ctrlCPressed

◆ ctrlPPressed

Notifier<uiGraphicsScene> uiGraphicsScene::ctrlPPressed

◆ ismouseeventactive_

bool uiGraphicsScene::ismouseeventactive_
protected

◆ items_

ObjectSet<uiGraphicsItem> uiGraphicsScene::items_
protected

◆ mousehandler_

MouseEventHandler uiGraphicsScene::mousehandler_
protected

◆ odgraphicsscene_

ODGraphicsScene* uiGraphicsScene::odgraphicsscene_
protected

◆ pixeldensity_

float uiGraphicsScene::pixeldensity_
protected

◆ pixelDensityChange

Notifier<uiGraphicsScene> uiGraphicsScene::pixelDensityChange

◆ queueid_

int uiGraphicsScene::queueid_
protected

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