Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
qMRMLPlotView Class Reference

qMRMLPlotView is the display canvas for a Plot. More...

#include <Libs/MRML/Widgets/qMRMLPlotView.h>

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

Public Types

typedef ctkVTKChartView Superclass
 Superclass typedef. More...
 

Public Slots

void fitToContent ()
 Change axis limits to show all content. More...
 
void RemovePlotSelections ()
 Unselect all the points. More...
 
void setMRMLPlotViewNode (vtkMRMLPlotViewNode *newPlotViewNode)
 Set the current viewNode to observe. More...
 
void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene that should be listened for events. More...
 

Signals

void dataSelected (vtkStringArray *mrmlPlotSeriesIDs, vtkCollection *selectionCol)
 
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

vtkMRMLPlotViewNodemrmlPlotViewNode () const
 Get the PlotView node observed by view. More...
 
vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 
 qMRMLPlotView (QWidget *parent=0)
 Constructors. More...
 
virtual QSize sizeHint () const
 Redefine the sizeHint so layouts work properly. More...
 
virtual ~qMRMLPlotView ()
 

Protected Slots

void updateMRMLChartAxisRangeFromWidget ()
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 Handle keyboard events. More...
 
virtual void keyReleaseEvent (QKeyEvent *event)
 

Protected Attributes

QScopedPointer< qMRMLPlotViewPrivate > d_ptr
 

Detailed Description

qMRMLPlotView is the display canvas for a Plot.

qMRMLPlotView supports only 2D plots. For extending this class to 3DPlots it is needed to expand the mother class cktVTKChartView to use also vtkChartXYZ (currently exploiting only vtkChartXY).

Definition at line 45 of file qMRMLPlotView.h.

Member Typedef Documentation

◆ Superclass

typedef ctkVTKChartView qMRMLPlotView::Superclass

Superclass typedef.

Definition at line 50 of file qMRMLPlotView.h.

Constructor & Destructor Documentation

◆ qMRMLPlotView()

qMRMLPlotView::qMRMLPlotView ( QWidget *  parent = 0)
explicit

Constructors.

◆ ~qMRMLPlotView()

virtual qMRMLPlotView::~qMRMLPlotView ( )
virtual

Member Function Documentation

◆ dataSelected

void qMRMLPlotView::dataSelected ( vtkStringArray *  mrmlPlotSeriesIDs,
vtkCollection *  selectionCol 
)
signal

Signal emitted when a data point or more has been selected. Returns the MRMLPlotSeriesNodes IDs and the correspective arrays with the data points ids (vtkIdTypeArray).

◆ fitToContent

void qMRMLPlotView::fitToContent ( )
slot

Change axis limits to show all content.

◆ keyPressEvent()

virtual void qMRMLPlotView::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Handle keyboard events.

◆ keyReleaseEvent()

virtual void qMRMLPlotView::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

◆ mrmlPlotViewNode()

vtkMRMLPlotViewNode* qMRMLPlotView::mrmlPlotViewNode ( ) const

Get the PlotView node observed by view.

◆ mrmlScene()

vtkMRMLScene* qMRMLPlotView::mrmlScene ( ) const

Return a pointer on the current MRML scene.

◆ mrmlSceneChanged

void qMRMLPlotView::mrmlSceneChanged ( vtkMRMLScene )
signal

When designing custom qMRMLWidget in the designer, you can connect the mrmlSceneChanged signal directly to the aggregated MRML widgets that have a setMRMLScene slot.

◆ RemovePlotSelections

void qMRMLPlotView::RemovePlotSelections ( )
slot

Unselect all the points.

◆ setMRMLPlotViewNode

void qMRMLPlotView::setMRMLPlotViewNode ( vtkMRMLPlotViewNode newPlotViewNode)
slot

Set the current viewNode to observe.

◆ setMRMLScene

void qMRMLPlotView::setMRMLScene ( vtkMRMLScene newScene)
slot

Set the MRML scene that should be listened for events.

◆ sizeHint()

virtual QSize qMRMLPlotView::sizeHint ( ) const
virtual

Redefine the sizeHint so layouts work properly.

◆ updateMRMLChartAxisRangeFromWidget

void qMRMLPlotView::updateMRMLChartAxisRangeFromWidget ( )
protectedslot

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLPlotViewPrivate> qMRMLPlotView::d_ptr
protected

Definition at line 96 of file qMRMLPlotView.h.


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