open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Types | Signals | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
iA3DObjectVis Class Referenceabstract

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

#include <iA3DObjectVis.h>

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

Public Types

typedef vtkIdType IndexType
 the type used for indices into the data table. More...
 

Signals

void updated ()
 

Public Member Functions

 iA3DObjectVis (vtkRenderer *ren, vtkTable *objectTable, QSharedPointer< QMap< uint, uint > > columnMapping)
 
virtual ~iA3DObjectVis ()
 
virtual double const * bounds ()=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
 
virtual void show ()
 

Static Public Attributes

static const QColor SelectedColor
 

Protected Member Functions

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

Protected Attributes

QSharedPointer< QMap< uint, uint > > m_columnMapping
 
vtkTable * m_objectTable
 
vtkRenderer * m_ren
 

Detailed Description

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

fibers or pores) defined in a table use the factory method create3DObjectVis to create a specific instance!

Member Typedef Documentation

◆ IndexType

typedef vtkIdType iA3DObjectVis::IndexType

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

◆ iA3DObjectVis()

iA3DObjectVis::iA3DObjectVis ( vtkRenderer *  ren,
vtkTable *  objectTable,
QSharedPointer< QMap< uint, uint > >  columnMapping 
)

◆ ~iA3DObjectVis()

iA3DObjectVis::~iA3DObjectVis ( )
virtual

Member Function Documentation

◆ bounds()

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

◆ getLengthColor()

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

◆ getOrientationColor()

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

◆ multiClassRendering()

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

◆ renderLengthDistribution()

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

◆ renderOrientationDistribution()

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

◆ renderSelection()

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

◆ renderSingle()

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

◆ show()

void iA3DObjectVis::show ( )
virtual

Reimplemented in iA3DColoredPolyObjectVis.

◆ updated

void iA3DObjectVis::updated ( )
signal

◆ updateRenderer()

void iA3DObjectVis::updateRenderer ( )
protectedvirtual

Reimplemented in iA3DColoredPolyObjectVis.

Member Data Documentation

◆ m_columnMapping

QSharedPointer<QMap<uint, uint> > iA3DObjectVis::m_columnMapping
protected

◆ m_objectTable

vtkTable* iA3DObjectVis::m_objectTable
protected

◆ m_ren

vtkRenderer* iA3DObjectVis::m_ren
protected

◆ SelectedColor

const QColor iA3DObjectVis::SelectedColor
static

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