open_iA 2024.9
Loading...
Searching...
No Matches
iAGraphViewer Class Reference

Dataset viewer for graph data. More...

#include <iADataSetViewerImpl.h>

Inheritance diagram for iAGraphViewer:
[legend]
Collaboration diagram for iAGraphViewer:
[legend]

Public Member Functions

 iAGraphViewer (iADataSet *dataSet)
 
std::shared_ptr< iADataSetRenderercreateRenderer (vtkRenderer *ren, QVariantMap const &paramValues) override
 Called to create a 3D renderer for the dataset.
 
- Public Member Functions inherited from iADataSetViewer
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.
 
virtual void createGUI (iAMdiChild *child, size_t dataSetIdx)
 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.
 
virtual QString information () const
 Get information to display about the dataset.
 
virtual void prepare (iAProgress *p)
 called directly after the dataset is loaded, should do anything that needs to be computed in the background
 
bool renderFlagSet (QChar const &flag) const
 
void setAttributes (QVariantMap const &values)
 Call to change the attributes of this viewer.
 
virtual void setPickable (bool pickable)
 
void setPickActionVisible (bool visible)
 
void setRenderFlag (QChar const &flag, bool enable)
 
virtual uint slicerChannelID () const
 
virtual void slicerRegionSelected (double minVal, double maxVal, uint channelID)
 TODO NEWIO: improve!
 
void storeState ()
 called before a dataset is stored; stores the current viewer state into the metadata of the linked dataset (via attributeValues)
 
virtual void unitDistanceChanged (std::array< double, 3 > oldUnitDist, iAMdiChild *child)
 called when unit distance has changed due to dataset edit
 
iADataSetRendererrenderer ()
 
iADataSetRenderer const * renderer () const
 

Additional Inherited Members

- Signals inherited from iADataSetViewer
void dataSetChanged (size_t dataSetIdx)
 
void removeDataSet (size_t dataSetIdx)
 
- Static Public Attributes inherited from iADataSetViewer
static const QChar Render3DFlag
 
static const QChar RenderCutPlane
 
static const QString RenderFlags
 key that specifies which views or renderers the viewer currently has visible
 
static const QChar RenderMagicLensFlag
 
static const QChar RenderOutlineFlag
 
- Protected Member Functions inherited from iADataSetViewer
 iADataSetViewer (iADataSet *dataSet)
 
virtual ~iADataSetViewer ()
 
void addAttribute (QString const &name, iAValueType valueType, QVariant defaultValue=0.0, double min=std::numeric_limits< double >::lowest(), double max=std::numeric_limits< double >::max())
 adds an attribute that can be modified by the user to change the appearance of some aspect of the viewer
 
- Protected Attributes inherited from iADataSetViewer
QVariantMap m_attribValues
 
iADataSetm_dataSet
 the dataset for which this viewer is responsible
 

Detailed Description

Dataset viewer for graph data.

Constructor & Destructor Documentation

◆ iAGraphViewer()

iAGraphViewer::iAGraphViewer ( iADataSet * dataSet)

Member Function Documentation

◆ createRenderer()

std::shared_ptr< iADataSetRenderer > iAGraphViewer::createRenderer ( vtkRenderer * ren,
QVariantMap const & overrideValues )
overridevirtual

Called to create a 3D renderer for the dataset.

Override in derived class; used for both the "normal" 3D renderer and the magic lens renderer.

Parameters
renthe vtk renderer to attach the created renderer to
overrideValues(optional) parameter values for creating the renderer, overriding the default values that can be configured via Edit menu / iASettingsMananger

Reimplemented from iADataSetViewer.


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