Slicer  4.11
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=nullptr)
 Constructors. More...
 
void setColorLogic (vtkMRMLColorLogic *colorLogic)
 
QSize sizeHint () const override
 Redefine the sizeHint so layouts work properly. More...
 
 ~qMRMLChartView () override
 

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 40 of file qMRMLChartView.h.

Member Typedef Documentation

◆ Superclass

typedef QWebEngineView qMRMLChartView::Superclass

Superclass typedef.

Definition at line 46 of file qMRMLChartView.h.

Constructor & Destructor Documentation

◆ qMRMLChartView()

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

Constructors.

◆ ~qMRMLChartView()

qMRMLChartView::~qMRMLChartView ( )
override

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()

QSize qMRMLChartView::sizeHint ( ) const
override

Redefine the sizeHint so layouts work properly.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLChartViewPrivate> qMRMLChartView::d_ptr
protected

Definition at line 92 of file qMRMLChartView.h.


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