OpendTect-6_4  6.4
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 ()
 
void removeAllItems ()
 
uiGraphicsItemremoveItem (uiGraphicsItem *)
 
uiGraphicsItemSetremoveItems (uiGraphicsItemSet *)
 
template<class T >
T * addItem (T *)
 Item becomes mine. More...
 
uiGraphicsItemSetaddItems (uiGraphicsItemSet *)
 
uiGraphicsItemGroupaddItemGrp (uiGraphicsItemGroup *)
 
int nrItems () const
 
uiGraphicsItemgetItem (int id)
 
const uiGraphicsItemgetItem (int id) const
 
uiGraphicsItemitemAt (const Geom::Point2D< float > &)
 
const uiGraphicsItemitemAt (const Geom::Point2D< float > &) const
 
uiRectItemaddRect (float x, float y, float w, float h)
 
uiPolygonItemaddPolygon (const TypeSet< uiPoint > &, bool fill)
 
uiPolyLineItemaddPolyLine (const TypeSet< uiPoint > &)
 
void useBackgroundPattern (bool)
 
void setBackGroundColor (const Color &)
 
const Color backGroundColor () const
 
int getSelItemSize () const
 
uiRect getSelectedArea () const
 
void setSelectionArea (const uiRect &)
 
MouseEventHandlergetMouseEventHandler ()
 
double width () const
 
double height () const
 
void saveAsImage (const char *, int, int, int)
 
void saveAsPDF (const char *, int w, int h, int r)
 
void saveAsPS (const char *, int w, int h, int r)
 
void saveAsPDF_PS (const char *, bool pdf_or_ps, int w, int h, int r)
 
void setSceneRect (float x, float y, float w, float h)
 
uiRect sceneRect ()
 
bool isMouseEventActive () const
 
void setMouseEventActive (bool yn)
 
 mQtclass (QGraphicsScene *) qGraphicsScene()
 
void copyToClipBoard ()
 
void addUpdateToQueue (Task *)
 
bool executePendingUpdates ()
 
void setPixelDensity (float)
 
float getPixelDensity () const
 
void translateText ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static float getDefaultPixelDensity ()
 

Public Attributes

Notifier< uiGraphicsScenectrlPPressed
 
Notifier< uiGraphicsScenectrlCPressed
 
Notifier< uiGraphicsScenepixelDensityChange
 

Protected Member Functions

void CtrlCPressedCB (CallBacker *)
 
uiGraphicsItemdoAddItem (uiGraphicsItem *)
 
int indexOf (int id) const
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

ObjectSet< uiGraphicsItemitems_
 
ODGraphicsScene * odgraphicsscene_
 
MouseEventHandler mousehandler_
 
bool ismouseeventactive_
 
int queueid_
 
float pixeldensity_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Friends

class uiGraphicsItem
 

Detailed Description

Constructor & Destructor Documentation

uiGraphicsScene::uiGraphicsScene ( const char *  )
uiGraphicsScene::~uiGraphicsScene ( )

Member Function Documentation

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

Item becomes mine.

uiGraphicsItemGroup* uiGraphicsScene::addItemGrp ( uiGraphicsItemGroup )
uiGraphicsItemSet* uiGraphicsScene::addItems ( uiGraphicsItemSet )
uiPolygonItem* uiGraphicsScene::addPolygon ( const TypeSet< uiPoint > &  ,
bool  fill 
)
uiPolyLineItem* uiGraphicsScene::addPolyLine ( const TypeSet< uiPoint > &  )
uiRectItem* uiGraphicsScene::addRect ( float  x,
float  y,
float  w,
float  h 
)
void uiGraphicsScene::addUpdateToQueue ( Task )
const Color uiGraphicsScene::backGroundColor ( ) const
void uiGraphicsScene::copyToClipBoard ( )
void uiGraphicsScene::CtrlCPressedCB ( CallBacker )
protected
uiGraphicsItem* uiGraphicsScene::doAddItem ( uiGraphicsItem )
protected
bool uiGraphicsScene::executePendingUpdates ( )
static float uiGraphicsScene::getDefaultPixelDensity ( )
static
uiGraphicsItem* uiGraphicsScene::getItem ( int  id)
const uiGraphicsItem* uiGraphicsScene::getItem ( int  id) const
MouseEventHandler& uiGraphicsScene::getMouseEventHandler ( )
inline
float uiGraphicsScene::getPixelDensity ( ) const
inline
uiRect uiGraphicsScene::getSelectedArea ( ) const
int uiGraphicsScene::getSelItemSize ( ) const
double uiGraphicsScene::height ( ) const
int uiGraphicsScene::indexOf ( int  id) const
protected
bool uiGraphicsScene::isMouseEventActive ( ) const
inline
uiGraphicsItem* uiGraphicsScene::itemAt ( const Geom::Point2D< float > &  )
const uiGraphicsItem* uiGraphicsScene::itemAt ( const Geom::Point2D< float > &  ) const
uiGraphicsScene::mQtclass ( QGraphicsScene *  )
inline
int uiGraphicsScene::nrItems ( ) const
void uiGraphicsScene::removeAllItems ( )
uiGraphicsItem* uiGraphicsScene::removeItem ( uiGraphicsItem )

Gives object back to caller (not deleted)

uiGraphicsItemSet* uiGraphicsScene::removeItems ( uiGraphicsItemSet )

Does not delete the items

void uiGraphicsScene::saveAsImage ( const char *  ,
int  ,
int  ,
int   
)
void uiGraphicsScene::saveAsPDF ( const char *  ,
int  w,
int  h,
int  r 
)
void uiGraphicsScene::saveAsPDF_PS ( const char *  ,
bool  pdf_or_ps,
int  w,
int  h,
int  r 
)
void uiGraphicsScene::saveAsPS ( const char *  ,
int  w,
int  h,
int  r 
)
uiRect uiGraphicsScene::sceneRect ( )
void uiGraphicsScene::setBackGroundColor ( const Color )
void uiGraphicsScene::setMouseEventActive ( bool  yn)
inline
void uiGraphicsScene::setPixelDensity ( float  )
void uiGraphicsScene::setSceneRect ( float  x,
float  y,
float  w,
float  h 
)
void uiGraphicsScene::setSelectionArea ( const uiRect )
void uiGraphicsScene::translateText ( )
void uiGraphicsScene::useBackgroundPattern ( bool  )
double uiGraphicsScene::width ( ) const

Friends And Related Function Documentation

friend class uiGraphicsItem
friend

Member Data Documentation

Notifier<uiGraphicsScene> uiGraphicsScene::ctrlCPressed
Notifier<uiGraphicsScene> uiGraphicsScene::ctrlPPressed
bool uiGraphicsScene::ismouseeventactive_
protected
ObjectSet<uiGraphicsItem> uiGraphicsScene::items_
protected
MouseEventHandler uiGraphicsScene::mousehandler_
protected
ODGraphicsScene* uiGraphicsScene::odgraphicsscene_
protected
float uiGraphicsScene::pixeldensity_
protected
Notifier<uiGraphicsScene> uiGraphicsScene::pixelDensityChange
int uiGraphicsScene::queueid_
protected

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