Slicer  4.8
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 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 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 *mrmlPlotDataIDs, vtkCollection *selectionCol)
 
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

vtkMRMLColorLogiccolorLogic () const
 Get the application color logic. 0 by default. More...
 
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...
 
void setColorLogic (vtkMRMLColorLogic *colorLogic)
 
virtual QSize sizeHint () const
 Redefine the sizeHint so layouts work properly. More...
 
virtual ~qMRMLPlotView ()
 

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 46 of file qMRMLPlotView.h.

Member Typedef Documentation

◆ Superclass

typedef ctkVTKChartView qMRMLPlotView::Superclass

Superclass typedef.

Definition at line 51 of file qMRMLPlotView.h.

Constructor & Destructor Documentation

◆ qMRMLPlotView()

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

Constructors.

◆ ~qMRMLPlotView()

virtual qMRMLPlotView::~qMRMLPlotView ( )
virtual

Member Function Documentation

◆ colorLogic()

vtkMRMLColorLogic* qMRMLPlotView::colorLogic ( ) const

Get the application color logic. 0 by default.

◆ dataSelected

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

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

◆ 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.

◆ setColorLogic()

void qMRMLPlotView::setColorLogic ( vtkMRMLColorLogic colorLogic)

Set the application color logic for default node color.

◆ 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.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLPlotViewPrivate> qMRMLPlotView::d_ptr
protected

Definition at line 94 of file qMRMLPlotView.h.


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