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

#include <iA3DColoredPolyObjectVis.h>

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

Public Member Functions

 iA3DColoredPolyObjectVis (vtkRenderer *ren, vtkTable *objectTable, QSharedPointer< QMap< uint, uint > > columnMapping, QColor const &neutralColor)
 
virtual std::vector< vtkSmartPointer< vtkPolyData > > extractSelectedObjects (QColor c=QColor()) const =0
 extract one mesh per selected object More...
 
virtual vtkPolyData * finalPoly ()=0
 
vtkSmartPointer< vtkActor > getActor ()
 
virtual vtkPolyData * getPolyData ()=0
 
void hide ()
 
void removeClippingPlanes ()
 
void setClippingPlanes (vtkPlane *planes[3])
 
void setColor (QColor const &color)
 
void setContextOpacity (int contextAlpha)
 
void setLookupTable (QSharedPointer< iALookupTable > lut, size_t paramIndex)
 
virtual void setSelection (std::vector< size_t > const &sortedSelInds, bool selectionActive)
 
void setSelectionOpacity (int selectionAlpha)
 
virtual void setShowLines (bool)
 
void setShowWireFrame (bool show)
 
void show () override
 
void updateColorSelectionRendering ()
 
bool visible () const
 
virtual QString visualizationStatistics () const =0
 
void renderSelection (std::vector< size_t > const &sortedSelInds, int classID, QColor const &classColor, QStandardItem *activeClassItem) override
 "legacy" methods for various selection/coloring options, specific to FeatureScout module More...
 
void renderSingle (IndexType selectedObjID, int classID, QColor const &classColors, QStandardItem *activeClassItem) override
 
void multiClassRendering (QList< QColor > const &colors, QStandardItem *rootItem, double alpha) override
 
void renderOrientationDistribution (vtkImageData *oi) override
 
void renderLengthDistribution (vtkColorTransferFunction *ctFun, vtkFloatArray *extents, double halfInc, int filterID, double const *range) override
 
void showBoundingBox ()
 bounding box / bounds More...
 
void hideBoundingBox ()
 
double const * bounds () override
 
- Public Member Functions inherited from iA3DObjectVis
 iA3DObjectVis (vtkRenderer *ren, vtkTable *objectTable, QSharedPointer< QMap< uint, uint > > columnMapping)
 
virtual ~iA3DObjectVis ()
 

Static Public Attributes

static const int DefaultContextOpacity = 8
 
static const int DefaultSelectionOpacity = 128
 
- Static Public Attributes inherited from iA3DObjectVis
static const QColor SelectedColor
 

Protected Member Functions

IndexType allPointCount () const
 Get the number of points in all objects. More...
 
virtual IndexType objectPointCount (IndexType objIdx) const
 Get the number of points representing a given object. More...
 
virtual IndexType objectStartPointIdx (IndexType objIdx) const
 Get the index of the first point of a given object. More...
 
void setObjectColor (IndexType objIdx, QColor const &qcolor)
 Set an object to a specified color. More...
 
void setupBoundingBox ()
 Prepare the filters providing the bounding box. More...
 
void setupColors ()
 Set up the array of colors for each object. More...
 
void setupOriginalIds ()
 Set up the mapping from object parts to object IDs. More...
 
void updatePolyMapper ()
 Triggers an update of the color mapper and the renderer. More...
 
void updateRenderer () override
 Updates the renderer; but only if the own actor is actually shown. More...
 
- Protected Member Functions inherited from iA3DObjectVis
QColor getLengthColor (vtkColorTransferFunction *ctFun, IndexType objID) const
 
QColor getOrientationColor (vtkImageData *oi, IndexType objID) const
 

Protected Attributes

vtkSmartPointer< vtkActor > m_actor
 
QColor m_baseColor
 
bool m_clippingPlanesEnabled
 
vtkSmartPointer< vtkUnsignedCharArray > m_colors
 
int m_contextAlpha
 
vtkSmartPointer< vtkPolyDataMapper > m_mapper
 
vtkSmartPointer< vtkActor > m_outlineActor
 
vtkSmartPointer< vtkOutlineFilter > m_outlineFilter
 
vtkSmartPointer< vtkPolyDataMapper > m_outlineMapper
 
std::vector< size_t > m_selection
 
int m_selectionAlpha
 
QColor m_selectionColor
 
bool m_visible
 
- Protected Attributes inherited from iA3DObjectVis
QSharedPointer< QMap< uint, uint > > m_columnMapping
 
vtkTable * m_objectTable
 
vtkRenderer * m_ren
 

Additional Inherited Members

- Public Types inherited from iA3DObjectVis
typedef vtkIdType IndexType
 the type used for indices into the data table. More...
 
- Signals inherited from iA3DObjectVis
void updated ()
 

Constructor & Destructor Documentation

◆ iA3DColoredPolyObjectVis()

iA3DColoredPolyObjectVis::iA3DColoredPolyObjectVis ( vtkRenderer *  ren,
vtkTable *  objectTable,
QSharedPointer< QMap< uint, uint > >  columnMapping,
QColor const &  neutralColor 
)

Member Function Documentation

◆ allPointCount()

iA3DColoredPolyObjectVis::IndexType iA3DColoredPolyObjectVis::allPointCount ( ) const
protected

Get the number of points in all objects.

Returns
the number of points in all objects, i.e. the sum of objectPointCount over all object indices.

◆ bounds()

double const * iA3DColoredPolyObjectVis::bounds ( )
overridevirtual

Implements iA3DObjectVis.

Reimplemented in iA3DEllipseObjectVis.

◆ extractSelectedObjects()

virtual std::vector< vtkSmartPointer< vtkPolyData > > iA3DColoredPolyObjectVis::extractSelectedObjects ( QColor  c = QColor()) const
pure virtual

extract one mesh per selected object

Implemented in iA3DCylinderObjectVis, iA3DEllipseObjectVis, and iA3DLineObjectVis.

◆ finalPoly()

virtual vtkPolyData * iA3DColoredPolyObjectVis::finalPoly ( )
pure virtual

◆ getActor()

vtkSmartPointer< vtkActor > iA3DColoredPolyObjectVis::getActor ( )

◆ getPolyData()

virtual vtkPolyData * iA3DColoredPolyObjectVis::getPolyData ( )
pure virtual

◆ hide()

void iA3DColoredPolyObjectVis::hide ( )

◆ hideBoundingBox()

void iA3DColoredPolyObjectVis::hideBoundingBox ( )

◆ multiClassRendering()

void iA3DColoredPolyObjectVis::multiClassRendering ( QList< QColor > const &  colors,
QStandardItem *  rootItem,
double  alpha 
)
overridevirtual

Implements iA3DObjectVis.

◆ objectPointCount()

iA3DColoredPolyObjectVis::IndexType iA3DColoredPolyObjectVis::objectPointCount ( IndexType  objIdx) const
protectedvirtual

Get the number of points representing a given object.

Parameters
objIdxthe index of the object.
Returns
the number of points in the object.

Reimplemented in iA3DLineObjectVis.

◆ objectStartPointIdx()

iA3DColoredPolyObjectVis::IndexType iA3DColoredPolyObjectVis::objectStartPointIdx ( IndexType  objIdx) const
protectedvirtual

Get the index of the first point of a given object.

Parameters
objIdxthe index of the object.
Returns
the index of the first point in the object.

Reimplemented in iA3DLineObjectVis.

◆ removeClippingPlanes()

void iA3DColoredPolyObjectVis::removeClippingPlanes ( )

◆ renderLengthDistribution()

void iA3DColoredPolyObjectVis::renderLengthDistribution ( vtkColorTransferFunction *  ctFun,
vtkFloatArray *  extents,
double  halfInc,
int  filterID,
double const *  range 
)
overridevirtual

Implements iA3DObjectVis.

◆ renderOrientationDistribution()

void iA3DColoredPolyObjectVis::renderOrientationDistribution ( vtkImageData *  oi)
overridevirtual

Implements iA3DObjectVis.

◆ renderSelection()

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

"legacy" methods for various selection/coloring options, specific to FeatureScout module

Implements iA3DObjectVis.

◆ renderSingle()

void iA3DColoredPolyObjectVis::renderSingle ( IndexType  selectedObjID,
int  classID,
QColor const &  classColors,
QStandardItem *  activeClassItem 
)
overridevirtual

Implements iA3DObjectVis.

◆ setClippingPlanes()

void iA3DColoredPolyObjectVis::setClippingPlanes ( vtkPlane *  planes[3])

◆ setColor()

void iA3DColoredPolyObjectVis::setColor ( QColor const &  color)

◆ setContextOpacity()

void iA3DColoredPolyObjectVis::setContextOpacity ( int  contextAlpha)

◆ setLookupTable()

void iA3DColoredPolyObjectVis::setLookupTable ( QSharedPointer< iALookupTable lut,
size_t  paramIndex 
)

◆ setObjectColor()

void iA3DColoredPolyObjectVis::setObjectColor ( IndexType  objIdx,
QColor const &  qcolor 
)
protected

Set an object to a specified color.

Parameters
objIdxindex of the object.
qcolornew color of the object.

◆ setSelection()

void iA3DColoredPolyObjectVis::setSelection ( std::vector< size_t > const &  sortedSelInds,
bool  selectionActive 
)
virtual

Reimplemented in iA3DCylinderObjectVis.

◆ setSelectionOpacity()

void iA3DColoredPolyObjectVis::setSelectionOpacity ( int  selectionAlpha)

◆ setShowLines()

virtual void iA3DColoredPolyObjectVis::setShowLines ( bool  )
inlinevirtual

Reimplemented in iA3DCylinderObjectVis.

◆ setShowWireFrame()

void iA3DColoredPolyObjectVis::setShowWireFrame ( bool  show)

◆ setupBoundingBox()

void iA3DColoredPolyObjectVis::setupBoundingBox ( )
protected

Prepare the filters providing the bounding box.

◆ setupColors()

void iA3DColoredPolyObjectVis::setupColors ( )
protected

Set up the array of colors for each object.

◆ setupOriginalIds()

void iA3DColoredPolyObjectVis::setupOriginalIds ( )
protected

Set up the mapping from object parts to object IDs.

◆ show()

void iA3DColoredPolyObjectVis::show ( )
overridevirtual

Reimplemented from iA3DObjectVis.

◆ showBoundingBox()

void iA3DColoredPolyObjectVis::showBoundingBox ( )

bounding box / bounds

◆ updateColorSelectionRendering()

void iA3DColoredPolyObjectVis::updateColorSelectionRendering ( )

◆ updatePolyMapper()

void iA3DColoredPolyObjectVis::updatePolyMapper ( )
protected

Triggers an update of the color mapper and the renderer.

◆ updateRenderer()

void iA3DColoredPolyObjectVis::updateRenderer ( )
overrideprotectedvirtual

Updates the renderer; but only if the own actor is actually shown.

Reimplemented from iA3DObjectVis.

◆ visible()

bool iA3DColoredPolyObjectVis::visible ( ) const

◆ visualizationStatistics()

virtual QString iA3DColoredPolyObjectVis::visualizationStatistics ( ) const
pure virtual

Member Data Documentation

◆ DefaultContextOpacity

const int iA3DColoredPolyObjectVis::DefaultContextOpacity = 8
static

◆ DefaultSelectionOpacity

const int iA3DColoredPolyObjectVis::DefaultSelectionOpacity = 128
static

◆ m_actor

vtkSmartPointer<vtkActor> iA3DColoredPolyObjectVis::m_actor
protected

◆ m_baseColor

QColor iA3DColoredPolyObjectVis::m_baseColor
protected

◆ m_clippingPlanesEnabled

bool iA3DColoredPolyObjectVis::m_clippingPlanesEnabled
protected

◆ m_colors

vtkSmartPointer<vtkUnsignedCharArray> iA3DColoredPolyObjectVis::m_colors
protected

◆ m_contextAlpha

int iA3DColoredPolyObjectVis::m_contextAlpha
protected

◆ m_mapper

vtkSmartPointer<vtkPolyDataMapper> iA3DColoredPolyObjectVis::m_mapper
protected

◆ m_outlineActor

vtkSmartPointer<vtkActor> iA3DColoredPolyObjectVis::m_outlineActor
protected

◆ m_outlineFilter

vtkSmartPointer<vtkOutlineFilter> iA3DColoredPolyObjectVis::m_outlineFilter
protected

◆ m_outlineMapper

vtkSmartPointer<vtkPolyDataMapper> iA3DColoredPolyObjectVis::m_outlineMapper
protected

◆ m_selection

std::vector<size_t> iA3DColoredPolyObjectVis::m_selection
protected

◆ m_selectionAlpha

int iA3DColoredPolyObjectVis::m_selectionAlpha
protected

◆ m_selectionColor

QColor iA3DColoredPolyObjectVis::m_selectionColor
protected

◆ m_visible

bool iA3DColoredPolyObjectVis::m_visible
protected

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