NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Classes | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QmitkPointSetCropper Class Reference

Highly Experimental. More...

Inheritance diagram for QmitkPointSetCropper:
Inheritance graph
[legend]
Collaboration diagram for QmitkPointSetCropper:
Collaboration graph
[legend]

Public Slots

virtual void CropPointSet ()
 
virtual void CreateNewBoundingObject ()
 
virtual void ChkInformationToggled (bool on)
 

Public Member Functions

 QmitkPointSetCropper (QObject *parent=0)
 Constructor. More...
 
virtual ~QmitkPointSetCropper ()
 Destructor. More...
 
virtual void SetFocus () override
 SetFocus. More...
 
virtual void CreateQtPartControl (QWidget *parent) override
 Creates the Qt widget containing the functionality controls, like sliders, buttons etc. More...
 
virtual void CreateConnections ()
 Creates the Qt connections needed. More...
 
virtual void ExecuteOperation (mitk::Operation *) override
 
QWidget * GetControls ()
 
virtual void OnSelectionChanged (berry::IWorkbenchPart::Pointer part, const QList< mitk::DataNode::Pointer > &nodes) override
 
- Public Member Functions inherited from niftk::BaseView
 BaseView ()
 
virtual ~BaseView ()
 
virtual void onVisibilityChanged (const mitk::DataNode *node) override
 Called when the visibility of a node in the data storage changed. More...
 
virtual void OnFocusChanged ()
 Called when the window focus changes, and tracks the current mitk::BaseRenderer*. More...
 
virtual bool IsExclusiveFunctionality () const
 Returns whether this functionality should be exclusive, or in other words, the only active plugin. More...
 
virtual bool IsActivated ()
 Returns the activation status. More...
 
virtual bool IsVisible ()
 Returns the visible status. More...
 
mitk::DataStorage::Pointer GetDataStorage () const override
 Gets the currently active data storage. More...
 
virtual void SetCurrentSelection (mitk::DataNode::Pointer dataNode) override
 Selects the data node in this view and also in the data manager. It sets the "selected" property of the node. As a (positive) side effect of changing the data manager selection, the "selected" property of the previously selected nodes will be cleared. More...
 
virtual QmitkRenderWindow * GetRenderWindow (QString id)
 Retrieves a RenderWindow from the mitkRenderWindowPart. More...
 
virtual QmitkRenderWindow * GetSelectedRenderWindow () const override
 Retrieves the currently selected RenderWindow from the mitkRenderWindowPart. More...
 
virtual bool IsActiveEditorCursorVisible () const override
 Gets the visibility of the cursor (aka. crosshair) in the 2D render windows of the main display. More...
 
virtual void SetActiveEditorCursorVisible (bool visible) const override
 Sets the visibility of the cursor (aka. crosshair) in the 2D render windows of the main display. More...
 
virtual void RequestRenderWindowUpdate (mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL) override
 Request an update of all render windows of the currently active render window part. More...
 
QList< mitk::DataNode::Pointer > GetDataManagerSelection () const override
 Gets the list of nodes selected in the data manager. More...
 
virtual void FireNodeSelected (mitk::DataNode::Pointer node) override
 Informs other parts of the workbench that node is selected via the blueberry selection service. More...
 
virtual
mitk::SliceNavigationController * 
GetSliceNavigationController () override
 Retrieve the current slice navigation controller from the currently focused render window. More...
 
virtual void FocusOnCurrentWindow () const override
 Used to try and get the FocusManager to focus on the Current IRenderWindowPart. More...
 
virtual mitk::Point3D GetSelectedPosition () const override
 Gets the selected position in the active render window part. More...
 
virtual void SetSelectedPosition (const mitk::Point3D &selectedPosition) override
 Sets the selected position in the active render window part. More...
 
- Public Member Functions inherited from niftk::VisibilityChangeObserver
 VisibilityChangeObserver ()
 
virtual ~VisibilityChangeObserver ()
 

Protected Member Functions

virtual void CreateBoundingObject ()
 Creates the cuboid and its data tree node. More...
 
virtual void AddBoundingObjectToNode (mitk::DataNode *node, bool fit)
 Finds the given node in the data tree and optionally fits the cuboid to it. More...
 
virtual void RemoveBoundingObjectFromNode ()
 Removes the cuboid from any node and hides it from the user. More...
 
virtual void NodeRemoved (const mitk::DataNode *node) override
 NodeRemoved. More...
 
- Protected Member Functions inherited from niftk::BaseView
virtual void Activated () override
 
virtual void Deactivated () override
 
virtual void Visible () override
 
virtual void Hidden () override
 
virtual QWidget * GetParent ()
 
virtual void SetParent (QWidget *)
 Normally called from within CreateQtPartControl, we store the parent widget. More...
 
void SetViewToCoordinate (const mitk::Point3D &coordinate)
 Gets the current render window, and sets it to the given coordinate, specified in millimetres. More...
 

Protected Attributes

Ui::QmitkPointSetCropperControls * m_Controls
 
QWidget * m_ParentWidget
 
mitk::WeakPointer< mitk::DataNode > m_PointSetNode
 A pointer to the node of the PointSet to be croped. More...
 
mitk::WeakPointer< mitk::PointSet > m_PointSetToCrop
 A pointer to the PointSet to be cropped. More...
 
mitk::BoundingObject::Pointer m_CroppingObject
 The cuboid used for cropping. More...
 
mitk::DataNode::Pointer m_CroppingObjectNode
 Tree node of the cuboid used for cropping. More...
 
mitk::AffineInteractor::Pointer m_AffineInteractor
 Interactor for moving and scaling the cuboid. More...
 

Additional Inherited Members

- Public Types inherited from niftk::BaseView
typedef QmitkAbstractView SuperClass
 

Detailed Description

Highly Experimental.

Constructor & Destructor Documentation

QmitkPointSetCropper::QmitkPointSetCropper ( QObject *  parent = 0)

Constructor.

virtual QmitkPointSetCropper::~QmitkPointSetCropper ( )
virtual

Destructor.

Member Function Documentation

virtual void QmitkPointSetCropper::AddBoundingObjectToNode ( mitk::DataNode *  node,
bool  fit 
)
protectedvirtual

Finds the given node in the data tree and optionally fits the cuboid to it.

virtual void QmitkPointSetCropper::ChkInformationToggled ( bool  on)
virtualslot
virtual void QmitkPointSetCropper::CreateBoundingObject ( )
protectedvirtual

Creates the cuboid and its data tree node.

virtual void QmitkPointSetCropper::CreateConnections ( )
virtual

Creates the Qt connections needed.

virtual void QmitkPointSetCropper::CreateNewBoundingObject ( )
virtualslot
virtual void QmitkPointSetCropper::CreateQtPartControl ( QWidget *  parent)
overridevirtual

Creates the Qt widget containing the functionality controls, like sliders, buttons etc.

virtual void QmitkPointSetCropper::CropPointSet ( )
virtualslot
virtual void QmitkPointSetCropper::ExecuteOperation ( mitk::Operation *  )
overridevirtual
QWidget* QmitkPointSetCropper::GetControls ( )
virtual void QmitkPointSetCropper::NodeRemoved ( const mitk::DataNode *  node)
overrideprotectedvirtual

NodeRemoved.

Parameters
node
virtual void QmitkPointSetCropper::OnSelectionChanged ( berry::IWorkbenchPart::Pointer  part,
const QList< mitk::DataNode::Pointer > &  nodes 
)
overridevirtual
See also
QmitkAbstractView::OnSelectionChanged.

Reimplemented from niftk::BaseView.

virtual void QmitkPointSetCropper::RemoveBoundingObjectFromNode ( )
protectedvirtual

Removes the cuboid from any node and hides it from the user.

virtual void QmitkPointSetCropper::SetFocus ( )
overridevirtual

SetFocus.

Member Data Documentation

mitk::AffineInteractor::Pointer QmitkPointSetCropper::m_AffineInteractor
protected

Interactor for moving and scaling the cuboid.

Ui::QmitkPointSetCropperControls* QmitkPointSetCropper::m_Controls
protected

Controls containing an PointSet selection drop down, some usage information and a "crop" button

mitk::BoundingObject::Pointer QmitkPointSetCropper::m_CroppingObject
protected

The cuboid used for cropping.

mitk::DataNode::Pointer QmitkPointSetCropper::m_CroppingObjectNode
protected

Tree node of the cuboid used for cropping.

QWidget* QmitkPointSetCropper::m_ParentWidget
protected

The parent QWidget

mitk::WeakPointer<mitk::DataNode> QmitkPointSetCropper::m_PointSetNode
protected

A pointer to the node of the PointSet to be croped.

mitk::WeakPointer<mitk::PointSet> QmitkPointSetCropper::m_PointSetToCrop
protected

A pointer to the PointSet to be cropped.


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