ImFusion SDK 4.3
AnnotationWidget Class Reference

#include <ImFusion/GUI/AnnotationWidget.h>

Qt User interface for editing annotations managed by AnnotationModel. More...

+ Inheritance diagram for AnnotationWidget:

Detailed Description

Qt User interface for editing annotations managed by AnnotationModel.

Public Member Functions

 AnnotationWidget (MainWindowBase *mw)
 Construct annotation widget.
 
 ~AnnotationWidget () override
 Destructor.
 
AnnotationModelmodel ()
 
std::vector< InteractiveObject * > selectedAnnotations (const Data *dataset, bool includeGlobal=true) const
 
void createProjectiveObject (const std::vector< InteractiveObject * > &annotations, SharedImageSet &sis)
 Creates a ProjectiveObject for a given annotation and adds it to the selected Fluoro image.
 
void moveAnnotationsToData (const std::vector< InteractiveObject * > &annotations, Data *data)
 Move all passed annotations under the specified Data. If "data" is nullptr, move them to global annotations.
 
void setAutomaticallyLinkPoseWithParent (bool flag)
 
bool getAutomaticallyLinkPoseWithParent () const
 
- Public Member Functions inherited from ExpandableGroupBox
 ExpandableGroupBox (QWidget *parent=0)
 Creates an empty group box.
 
QSize sizeHint () const override
 
void setWidget (QWidget *widget)
 Sets the contained widget.
 
QWidget * widget ()
 Returns the contained widget if any or nullptr otherwise.
 
QString title () const
 
QIcon icon () const
 
bool isExpanded () const
 
bool isResizable () const
 
void setCollapsible (bool collapsible)
 Sets if box is collapsible.
 
bool isCollapsible ()
 Returns if box is collapsible.
 
void setDraggable (bool value)
 Sets the flag whether the box is draggable with the mouse when clicking on the top button.
 
bool isDraggable () const
 Returns the flag whether the box is draggable with the mouse when clicking on the top button.
 
int count () const
 Returns 1 if widget is set, 0 otherwise (required by the Qt designer plugin)
 
int currentIndex () const
 Returns 0 (required by the Qt designer plugin)
 
- Public Member Functions inherited from SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
 
SignalReceiveroperator= (SignalReceiver rhs)
 Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
 
virtual ~SignalReceiver ()
 Virtual destructor disconnects from all connected signals.
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event) override
 
- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 

Additional Inherited Members

- Public Slots inherited from ExpandableGroupBox
void expand ()
 Expands the group box.
 
void collapse ()
 Collapses the group box.
 
void setExpanded (bool expanded)
 Expands or collapses the group box (default: expanded)
 
void setResizable (bool isResizable)
 Makes the group box vertical resizable (default: disabled)
 
void setTitle (const QString &title)
 Sets the title of the group box.
 
void setIcon (const QIcon &icon)
 Sets the icon of the group box.
 
void clearAndDeleteLater ()
 
void setVisible (bool visible) override
 
void addAction (QAction *action)
 Adds a new action to the right side of the expand/collapse button.
 
void removeAction (QAction *action)
 Removes an action that was previously added with addAction.
 
std::vector< QAction * > actions ()
 Lists all actions.
 
void addPage (QWidget *widget)
 Calls setWidget if no containing widget is set, does nothing otherwise (required by the Qt designer plugin)
 
- Signals inherited from ExpandableGroupBox
void expansionChanged (bool expanded)
 
void resizableChanged (bool isResizable)
 
void titleChanged (QString title)
 
void iconChanged (QIcon icon)
 
void actionAdded (QAction *action)
 
void actionRemoved (QAction *action)
 
- Properties inherited from ExpandableGroupBox
QString title
 
QIcon icon
 
bool expanded
 
bool resizable
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close