Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
TransformationExplorer Class Reference

Show a simplified version for the current TransformationManager state with existing transformations and frames. More...

#include <TransformationExplorer.h>

Signals

void currentFrameChanged (const camitk::FrameOfReference *)
 signal emitted when the currently selected frame was changed (the user clicked on a frame in the frame panel)
void currentTransformationChanged (const camitk::Transformation *)
 signal emitted when the currently selected transformation was changed (user clicked on a transformation in the transformation panel)
void directTransformationsUpdated (QVector< camitk::Transformation * >)
 signal emitted when the list of direct Transformations was updated Should be replaced by signals from TransformationManager
void framesUpdated (QVector< camitk::FrameOfReference * >)
 signal emitted when the list of Frames was updated Should be replaced by signals from TransformationManager
Signals inherited from camitk::Viewer
void selectionChanged ()
 this signal is emitted when the current selection was changed by the viewer

Public Member Functions

Q_INVOKABLE TransformationExplorer (QString)
 Constructor.
virtual ~TransformationExplorer ()
 Destructor.
Inherited from Viewer
void refresh (Viewer *whoIsAsking=nullptr) override
QWidget * getWidget () override
 get the frame explorer widget (QTreeWidget)
Public Member Functions inherited from camitk::Viewer
QStringList getComponentClassNames () const
 get the list of Component class manages by this viewer (default is set to "Component", i.e.
QString getDescription () const
 get the name of the viewer
virtual QDockWidget * getDockWidget () const
 Get the QDockWidget* where this viewer is currently docked (or nullptr if it is not docked anywhere or if the viewer is of type EMBEDDED).
virtual QLayout * getEmbedder () const
 Get the QLayout* where this viewer is currently embedded (or nullptr if it is not embedded anywhere or if the viewer is of type DOCKED).
virtual QPixmap getIcon () const
 get the viewer icon
virtual QMenu * getMenu ()
 get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
QString getName () const
 get the name of the viewer
virtual PropertyObjectgetPropertyObject ()
 get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
virtual QToolBar * getToolBar ()
 get the viewer toolbar (returns nullptr by default, i.e. there are no default toolbar)
virtual bool getToolBarVisibility () const
 get the current value of the toolbar visibility
ViewerType getType () const
 get the viewer layout
QUuid getUuid () const
 get the Uuid of this viewer
virtual void refresh (Viewer *whoIsAsking=nullptr)=0
 refresh the view (can be interesting to know which other viewer is calling this)
void setDescription (QString)
 set the viewer's description
virtual bool setDockWidget (QDockWidget *)
 If the viewer type is DOCKED, dock the widget inside the given dock widget (do nothing if the type is EMBEDDED or if the viewer has already been docked before) Note that once set, the dock widget cannot be modified.
virtual bool setEmbedder (QLayout *)
 If the viewer type is EMBEDDED, embed the viewer widget in the given layout (do nothing if the type is DOCKED) Note that you can call this method any time you want to move the viewer's widget to another layout (but there is only one embedder at a time).
virtual void setToolBarVisibility (bool)
 set the visibility of the toolbar in the main window (true by default).
void setType (ViewerType)
 set the viewer layout (the type can be changed dynamically to fit the developer's purpose)
bool setUuid (QUuid id)
 set the Uuid of this viewer
virtual void setVisible (bool)
 set the visibility of the viewer (show or hide its widget)
 Viewer (QString name, ViewerType type=EMBEDDED)
 default constructor
virtual ~Viewer () override
 default destructor

Additional Inherited Members

Public Types inherited from camitk::Viewer
enum  ViewerType { EMBEDDED , DOCKED }
 describes where this viewer should appear More...
Protected Member Functions inherited from camitk::Viewer
void clearSelection ()
 clear the selection
void selectionChanged (Component *comp)
 the selection has changed to be just one comp
void selectionChanged (ComponentList &compSet)
 The selection has changed to the given ComponentList.
void setComponentClassNames (QStringList)
 set the list of component class names managed by this viewer
void setIcon (QPixmap icon)
 set the default icon for the viewer extension

Detailed Description

Show a simplified version for the current TransformationManager state with existing transformations and frames.

This viewer widget shows

  • a tree widget with the existing frames
  • a tree widget with all the transformations that are not composite nor inverse
  • an interactive graph view that show frames as circles and transformations as arrows
See also
camitk::TransformationManager

Constructor & Destructor Documentation

◆ TransformationExplorer()

TransformationExplorer::TransformationExplorer ( QString name)

◆ ~TransformationExplorer()

TransformationExplorer::~TransformationExplorer ( )
virtual

Destructor.

Member Function Documentation

◆ currentFrameChanged

void TransformationExplorer::currentFrameChanged ( const camitk::FrameOfReference * )
signal

signal emitted when the currently selected frame was changed (the user clicked on a frame in the frame panel)

Referenced by refresh().

◆ currentTransformationChanged

void TransformationExplorer::currentTransformationChanged ( const camitk::Transformation * )
signal

signal emitted when the currently selected transformation was changed (user clicked on a transformation in the transformation panel)

Referenced by refresh().

◆ directTransformationsUpdated

void TransformationExplorer::directTransformationsUpdated ( QVector< camitk::Transformation * > )
signal

signal emitted when the list of direct Transformations was updated Should be replaced by signals from TransformationManager

Referenced by refresh().

◆ framesUpdated

void TransformationExplorer::framesUpdated ( QVector< camitk::FrameOfReference * > )
signal

signal emitted when the list of Frames was updated Should be replaced by signals from TransformationManager

Referenced by refresh().

◆ getWidget()

◆ refresh()


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