Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::StackDropResult Class Reference

#include <berryStackDropResult.h>

Inheritance diagram for berry::StackDropResult:
Collaboration diagram for berry::StackDropResult:

Public Member Functions

 StackDropResult (const QRect &snapRectangle, Object::Pointer cookie)
 
QRect GetSnapRectangle ()
 
Object::Pointer GetCookie ()
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () const
 
virtual void Delete ()
 
QDebug Print (QDebug os, Indent Indent=0) const
 
virtual QString ToString () const
 
virtual uint HashCode () const
 
virtual bool operator< (const Object *) const
 
void Register () const
 
void UnRegister (bool del=true) const
 
int GetReferenceCount () const
 
void SetReferenceCount (int)
 
void AddDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
void RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
virtual bool operator== (const Object *) const
 

Public Attributes

berryObjectMacro(StackDropResult) private Object::Pointer cookie
 

Additional Inherited Members

- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- Protected Member Functions inherited from berry::Object
 Object ()
 
virtual ~Object ()
 
virtual QDebug PrintSelf (QDebug os, Indent indent) const
 
virtual QDebug PrintHeader (QDebug os, Indent indent) const
 
virtual QDebug PrintTrailer (QDebug os, Indent indent) const
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Detailed Description

This structure describes a drop event that will cause a dragged part to be stacked in a position currently occupied by another part.

Definition at line 35 of file berryStackDropResult.h.

Constructor & Destructor Documentation

berry::StackDropResult::StackDropResult ( const QRect &  snapRectangle,
Object::Pointer  cookie 
)

Creates a drop result

Parameters
snapRectangleregion that should be highlighted by the tracking rectangle (display coordinates)
cookiethe presentation may attach an object to this drop result in order to identify the drop location. This object will be passed back into the presentation's add method.

Definition at line 22 of file berryStackDropResult.cpp.

Member Function Documentation

Object::Pointer berry::StackDropResult::GetCookie ( )

Returns the cookie for this drop result. This object provided by the presentation, but is remembered by the workbench. It will be given back to the presentation's add method to indicate that a part is being added as a result of a drop operation.

Returns
the drop cookie for this drop result

Definition at line 34 of file berryStackDropResult.cpp.

References cookie.

QRect berry::StackDropResult::GetSnapRectangle ( )

Returns a rectangle (screen coordinates) describing the target location for this drop operation. While dragging, the tracking rectangle will snap to this position.

Returns
a snap rectangle (not null)

Definition at line 29 of file berryStackDropResult.cpp.

Member Data Documentation

berryObjectMacro (StackDropResult) private Object::Pointer berry::StackDropResult::cookie

Definition at line 39 of file berryStackDropResult.h.

Referenced by GetCookie().


The documentation for this class was generated from the following files: