Class for managing all viewing aspects of volume datasets (3D renderer, slicers, histogram, line profile).
More...
|
| | iAVolumeViewer (iADataSet *dataSet) |
| |
| | ~iAVolumeViewer () |
| |
| void | createGUI (iAMdiChild *child, size_t dataSetIdx) override |
| | Should contain all things that need to be done in the GUI thread for viewing this dataset The default implementation creates a 3D renderer (via createRenderer method) and adds an entry to the dataset list.
|
| |
| std::shared_ptr< iADataSetRenderer > | createRenderer (vtkRenderer *ren, QVariantMap const &overrideValues) override |
| | Called to create a 3D renderer for the dataset.
|
| |
| iAChartWithFunctionsWidget * | histogram () |
| | Access to the chart widget used for displaying the histogram.
|
| |
| std::shared_ptr< iAHistogramData > | histogramData (int component) const |
| | Access to the histogram data.
|
| |
| QString | information () const override |
| | Get information to display about the dataset.
|
| |
| void | prepare (iAProgress *p) override |
| | called directly after the dataset is loaded, should do anything that needs to be computed in the background
|
| |
| void | setPickable (bool pickable) override |
| |
| void | showInSlicers (bool show) |
| | convenience function for showing/hiding dataset in slicer:
|
| |
| uint | slicerChannelID () const override |
| |
| void | slicerRegionSelected (double minVal, double maxVal, uint channelID) override |
| | TODO NEWIO: improve!
|
| |
| iATransferFunction * | transfer () |
| | Access to the transfer function used in renderer and slicer view.
|
| |
| void | unitDistanceChanged (std::array< double, 3 > oldUnitDist, iAMdiChild *child) override |
| | called when unit distance has changed due to dataset edit
|
| |
| iAImageData const * | volume () const |
| | Access to the displayed dataset.
|
| |
| QAction * | addViewAction (QString const &name, QString const &iconName, bool checked) |
| | helper function for creating and adding a toggling action for switching some aspect of this viewer needs to be called before calling createGUI of this base class (which passes the view actions created so far to the dataset list.
|
| |
| iAAttributes | attributesWithValues () const |
| | Retrieves the list of all attributes for this viewer, merged with their current values as default values:
|
| |
| QVariantMap | attributeValues () const |
| | Retrieve only the current attribute values.
|
| |
| bool | renderFlagSet (QChar const &flag) const |
| |
| void | setAttributes (QVariantMap const &values) |
| | Call to change the attributes of this viewer.
|
| |
| void | setPickActionVisible (bool visible) |
| |
| void | setRenderFlag (QChar const &flag, bool enable) |
| |
| void | storeState () |
| | called before a dataset is stored; stores the current viewer state into the metadata of the linked dataset (via attributeValues)
|
| |
| iADataSetRenderer * | renderer () |
| |
| iADataSetRenderer const * | renderer () const |
| |
Class for managing all viewing aspects of volume datasets (3D renderer, slicers, histogram, line profile).
| void iAVolumeViewer::createGUI |
( |
iAMdiChild * | child, |
|
|
size_t | dataSetIdx ) |
|
overridevirtual |
Should contain all things that need to be done in the GUI thread for viewing this dataset The default implementation creates a 3D renderer (via createRenderer method) and adds an entry to the dataset list.
If you want these things to happen, but additionally some other things, call this function from the derived method (i.e. iADataSetViewer::createGUI). Sometimes, you might not want these things to happen (as e.g. the iAProjectViewer does, since it does not need a 3D viewer nor a dataset list entry),
Reimplemented from iADataSetViewer.