open_iA 2024.9
Loading...
Searching...
No Matches
iAObjectVis Class Referenceabstract

Base class for 3D visualizations of objects (e.g. More...

#include <iAObjectVis.h>

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

Public Types

using IndexType = vtkIdType
 the type used for indices into the data table.
 

Signals

void dataChanged ()
 
void renderRequired ()
 

Public Member Functions

 iAObjectVis (iAObjectsData const *data)
 
virtual ~iAObjectVis ()
 
virtual double const * bounds ()=0
 
virtual std::shared_ptr< iAObjectVisActorcreateActor (vtkRenderer *ren)=0
 
virtual void multiClassRendering (QList< QColor > const &classColors, QStandardItem *rootItem, double alpha)=0
 
virtual void renderLengthDistribution (vtkColorTransferFunction *cTFun, vtkFloatArray *extents, double halfInc, int filterID, double const *range)=0
 
virtual void renderOrientationDistribution (vtkImageData *oi)=0
 
virtual void renderSelection (std::vector< size_t > const &sortedSelInds, int classID, QColor const &classColor, QStandardItem *activeClassItem)=0
 
virtual void renderSingle (IndexType selectedObjID, int classID, QColor const &classColor, QStandardItem *activeClassItem)=0
 

Static Public Attributes

static const QColor SelectedColor
 

Protected Member Functions

QColor getLengthColor (vtkColorTransferFunction *ctFun, IndexType objID) const
 
QColor getOrientationColor (vtkImageData *oi, IndexType objID) const
 

Protected Attributes

iAObjectsData const * m_data
 

Detailed Description

Base class for 3D visualizations of objects (e.g.

fibers or pores) defined in a table.

Use the factory method create3DObjectVis in iAObjectVisFactory.h to create a specific instance!

Member Typedef Documentation

◆ IndexType

using iAObjectVis::IndexType = vtkIdType

the type used for indices into the data table.

(Implementation Note: if vtkTable is replaced by something else, e.g. SPMData or a general table class, this might need to be adapted)

Constructor & Destructor Documentation

◆ iAObjectVis()

iAObjectVis::iAObjectVis ( iAObjectsData const * data)

◆ ~iAObjectVis()

iAObjectVis::~iAObjectVis ( )
virtual

Member Function Documentation

◆ bounds()

virtual double const * iAObjectVis::bounds ( )
pure virtual

◆ createActor()

virtual std::shared_ptr< iAObjectVisActor > iAObjectVis::createActor ( vtkRenderer * ren)
pure virtual

◆ dataChanged

void iAObjectVis::dataChanged ( )
signal

◆ getLengthColor()

QColor iAObjectVis::getLengthColor ( vtkColorTransferFunction * ctFun,
IndexType objID ) const
protected

◆ getOrientationColor()

QColor iAObjectVis::getOrientationColor ( vtkImageData * oi,
IndexType objID ) const
protected

◆ multiClassRendering()

virtual void iAObjectVis::multiClassRendering ( QList< QColor > const & classColors,
QStandardItem * rootItem,
double alpha )
pure virtual

◆ renderLengthDistribution()

virtual void iAObjectVis::renderLengthDistribution ( vtkColorTransferFunction * cTFun,
vtkFloatArray * extents,
double halfInc,
int filterID,
double const * range )
pure virtual

◆ renderOrientationDistribution()

virtual void iAObjectVis::renderOrientationDistribution ( vtkImageData * oi)
pure virtual

◆ renderRequired

void iAObjectVis::renderRequired ( )
signal

◆ renderSelection()

virtual void iAObjectVis::renderSelection ( std::vector< size_t > const & sortedSelInds,
int classID,
QColor const & classColor,
QStandardItem * activeClassItem )
pure virtual

◆ renderSingle()

virtual void iAObjectVis::renderSingle ( IndexType selectedObjID,
int classID,
QColor const & classColor,
QStandardItem * activeClassItem )
pure virtual

Member Data Documentation

◆ m_data

iAObjectsData const* iAObjectVis::m_data
protected

◆ SelectedColor

const QColor iAObjectVis::SelectedColor
static

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