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 Attributes
qMRMLChartView Class Reference

qMRMLChartView is the display canvas for a Chart. More...

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

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

Public Types

typedef QWebEngineView Superclass
 Superclass typedef. More...
 

Public Slots

void setMRMLChartViewNode (vtkMRMLChartViewNode *newChartViewNode)
 Set the current viewNode to observe. More...
 
void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene that should be listened for events. More...
 

Signals

void dataMouseOver (const char *mrmlArrayID, int pointidx, double x, double y)
 
void dataPointClicked (const char *mrmlArrayID, int pointidx, double x, double y)
 
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

vtkMRMLColorLogiccolorLogic () const
 Get the application color logic. 0 by default. More...
 
vtkMRMLChartViewNodemrmlChartViewNode () const
 Get the ChartView node observed by view. More...
 
vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 
 qMRMLChartView (QWidget *parent=0)
 Constructors. More...
 
void setColorLogic (vtkMRMLColorLogic *colorLogic)
 
virtual QSize sizeHint () const
 Redefine the sizeHint so layouts work properly. More...
 
virtual ~qMRMLChartView ()
 

Protected Attributes

QScopedPointer< qMRMLChartViewPrivate > d_ptr
 

Detailed Description

qMRMLChartView is the display canvas for a Chart.

qMRMLChartView is currently implemented as a subclass of QWebView and charting is implemented using a jQuery library called jqPlot. This is subject to being made opaque, so that qMRMLChartView is merely a subclass of QWidget and internally a variety of implementations for charting may be provided.

Definition at line 46 of file qMRMLChartView.h.

Member Typedef Documentation

◆ Superclass

typedef QWebEngineView qMRMLChartView::Superclass

Superclass typedef.

Definition at line 59 of file qMRMLChartView.h.

Constructor & Destructor Documentation

◆ qMRMLChartView()

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

Constructors.

◆ ~qMRMLChartView()

virtual qMRMLChartView::~qMRMLChartView ( )
virtual

Member Function Documentation

◆ colorLogic()

vtkMRMLColorLogic* qMRMLChartView::colorLogic ( ) const

Get the application color logic. 0 by default.

◆ dataMouseOver

void qMRMLChartView::dataMouseOver ( const char *  mrmlArrayID,
int  pointidx,
double  x,
double  y 
)
signal

Signal emitted when mouse moves over a data point. Returns the id of the MRMLDoubleArrayNode, the index of the point, and the values

◆ dataPointClicked

void qMRMLChartView::dataPointClicked ( const char *  mrmlArrayID,
int  pointidx,
double  x,
double  y 
)
signal

Signal emitted when a data point has been clicked. Returns the id of the MRMLDoubleArrayNode, the index of the point, and the values

◆ mrmlChartViewNode()

vtkMRMLChartViewNode* qMRMLChartView::mrmlChartViewNode ( ) const

Get the ChartView node observed by view.

◆ mrmlScene()

vtkMRMLScene* qMRMLChartView::mrmlScene ( ) const

Return a pointer on the current MRML scene.

◆ mrmlSceneChanged

void qMRMLChartView::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 qMRMLChartView::setColorLogic ( vtkMRMLColorLogic colorLogic)

Set the application color logic for default node color.

◆ setMRMLChartViewNode

void qMRMLChartView::setMRMLChartViewNode ( vtkMRMLChartViewNode newChartViewNode)
slot

Set the current viewNode to observe.

◆ setMRMLScene

void qMRMLChartView::setMRMLScene ( vtkMRMLScene newScene)
slot

Set the MRML scene that should be listened for events.

◆ sizeHint()

virtual QSize qMRMLChartView::sizeHint ( ) const
virtual

Redefine the sizeHint so layouts work properly.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLChartViewPrivate> qMRMLChartView::d_ptr
protected

Definition at line 106 of file qMRMLChartView.h.


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