Computer Assisted Medical Intervention Tool Kit  version 5.2
PMLExplorerWidget Class Reference

This class is the Pml explore action widget presented/controller. More...

#include <PMLExplorerWidget.h>

+ Inheritance diagram for PMLExplorerWidget:
+ Collaboration diagram for PMLExplorerWidget:

Public Slots

void createNewProperty ()
 called when the user click on new in the object controller More...
 
void propertyChanged ()
 called when the user click on apply in the object controller More...
 
void showAtomGlyphToggled (bool)
 This slot is connected to the corresponding UI Checkbox, update the showAtomGlyph state. More...
 

Public Member Functions

 PMLExplorerWidget (PMLComponent *comp)
 Constructor. More...
 
void updateTarget (PMLComponent *comp)
 Update the widget content as the input selected component changed. More...
 
 ~PMLExplorerWidget () override
 Destructor. More...
 

Detailed Description

This class is the Pml explore action widget presented/controller.

It allows to map the graphical treeview widget from the pml object.

Considering the MVP pattern:

  • M = the PMLComponent and the PhysicalModel instances it encapsulates
  • V = the Qt Widget build using Qt Designer (ui_pmlExploreWidget)
  • P = this class, it uses the data in the PMLComponent/PhysicalModel to build the GUI representation (update the widget) and use the user feedback to modify the PMLComponent/PhysicalModel.

Constructor & Destructor Documentation

◆ PMLExplorerWidget()

PMLExplorerWidget::PMLExplorerWidget ( PMLComponent comp)

Constructor.

References camitk::ObjectController::BUTTON, createNewProperty(), propertyChanged(), and showAtomGlyphToggled().

+ Here is the call graph for this function:

◆ ~PMLExplorerWidget()

PMLExplorerWidget::~PMLExplorerWidget ( )
override

Destructor.

Member Function Documentation

◆ createNewProperty

void PMLExplorerWidget::createNewProperty ( )
slot

called when the user click on new in the object controller

References a, CamiTKPropertyList::addProperty(), camitk::Component::addProperty(), and camitk::ObjectController::setObject().

Referenced by PMLExplorerWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ propertyChanged

void PMLExplorerWidget::propertyChanged ( )
slot

called when the user click on apply in the object controller

References a, Component::getProperties(), camitk::Component::refresh(), PMLComponent::refreshDisplay(), Properties::set(), camitk::Component::setModified(), Component::setName(), and Structure::setName().

Referenced by PMLExplorerWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showAtomGlyphToggled

void PMLExplorerWidget::showAtomGlyphToggled ( bool  checkBoxState)
slot

This slot is connected to the corresponding UI Checkbox, update the showAtomGlyph state.

Referenced by PMLExplorerWidget().

+ Here is the caller graph for this function:

◆ updateTarget()

void PMLExplorerWidget::updateTarget ( PMLComponent comp)

Update the widget content as the input selected component changed.

References camitk::ObjectController::setObject().

Referenced by PMLExplorerAction::getWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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