Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryStackDropResult.h>
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::TypeInfo > | GetSuperclasses () 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< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
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 |
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.
berry::StackDropResult::StackDropResult | ( | const QRect & | snapRectangle, |
Object::Pointer | cookie | ||
) |
Creates a drop result
snapRectangle | region that should be highlighted by the tracking rectangle (display coordinates) |
cookie | the 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.
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.
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.
Definition at line 29 of file berryStackDropResult.cpp.
berryObjectMacro (StackDropResult) private Object::Pointer berry::StackDropResult::cookie |
Definition at line 39 of file berryStackDropResult.h.
Referenced by GetCookie().