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 | Protected Member Functions | Protected Attributes | List of all members
iA3DLineObjectVis Class Reference

#include <iA3DLineObjectVis.h>

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

Public Member Functions

 iA3DLineObjectVis (vtkRenderer *ren, vtkTable *objectTable, QSharedPointer< QMap< uint, uint > > columnMapping, QColor const &color, std::map< size_t, std::vector< iAVec3f > > const &curvedFiberData, size_t segmentSkip)
 
std::vector< vtkSmartPointer< vtkPolyData > > extractSelectedObjects (QColor c) const override
 extract one mesh per selected object More...
 
vtkPolyData * finalPoly () override
 
vtkPolyData * getPolyData () override
 
void updateValues (std::vector< std::vector< double > > const &values, int straightOrCurved)
 
QString visualizationStatistics () const override
 
- Public Member Functions inherited from iA3DColoredPolyObjectVis
 iA3DColoredPolyObjectVis (vtkRenderer *ren, vtkTable *objectTable, QSharedPointer< QMap< uint, uint > > columnMapping, QColor const &neutralColor)
 
vtkSmartPointer< vtkActor > getActor ()
 
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
 
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 ()
 

Protected Member Functions

IndexType objectPointCount (IndexType objIdx) const override
 Get the number of points representing a given object. More...
 
IndexType objectStartPointIdx (IndexType objIdx) const override
 Get the index of the first point of a given object. More...
 
- Protected Member Functions inherited from iA3DColoredPolyObjectVis
IndexType allPointCount () const
 Get the number of points in all objects. 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

std::map< size_t, std::vector< iAVec3f > > m_curvedFiberData
 
vtkSmartPointer< vtkPolyData > m_linePolyData
 
vtkSmartPointer< vtkPoints > m_points
 
- Protected Attributes inherited from iA3DColoredPolyObjectVis
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 ()
 
- Static Public Attributes inherited from iA3DColoredPolyObjectVis
static const int DefaultContextOpacity = 8
 
static const int DefaultSelectionOpacity = 128
 
- Static Public Attributes inherited from iA3DObjectVis
static const QColor SelectedColor
 

Constructor & Destructor Documentation

◆ iA3DLineObjectVis()

iA3DLineObjectVis::iA3DLineObjectVis ( vtkRenderer *  ren,
vtkTable *  objectTable,
QSharedPointer< QMap< uint, uint > >  columnMapping,
QColor const &  color,
std::map< size_t, std::vector< iAVec3f > > const &  curvedFiberData,
size_t  segmentSkip 
)

Member Function Documentation

◆ extractSelectedObjects()

std::vector< vtkSmartPointer< vtkPolyData > > iA3DLineObjectVis::extractSelectedObjects ( QColor  c) const
overridevirtual

extract one mesh per selected object

Implements iA3DColoredPolyObjectVis.

◆ finalPoly()

vtkPolyData * iA3DLineObjectVis::finalPoly ( )
overridevirtual

◆ getPolyData()

vtkPolyData * iA3DLineObjectVis::getPolyData ( )
overridevirtual

◆ objectPointCount()

iA3DColoredPolyObjectVis::IndexType iA3DLineObjectVis::objectPointCount ( IndexType  objIdx) const
overrideprotectedvirtual

Get the number of points representing a given object.

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

Reimplemented from iA3DColoredPolyObjectVis.

◆ objectStartPointIdx()

iA3DColoredPolyObjectVis::IndexType iA3DLineObjectVis::objectStartPointIdx ( IndexType  objIdx) const
overrideprotectedvirtual

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 from iA3DColoredPolyObjectVis.

◆ updateValues()

void iA3DLineObjectVis::updateValues ( std::vector< std::vector< double > > const &  values,
int  straightOrCurved 
)

◆ visualizationStatistics()

QString iA3DLineObjectVis::visualizationStatistics ( ) const
overridevirtual

Member Data Documentation

◆ m_curvedFiberData

std::map<size_t, std::vector<iAVec3f> > iA3DLineObjectVis::m_curvedFiberData
protected

◆ m_linePolyData

vtkSmartPointer<vtkPolyData> iA3DLineObjectVis::m_linePolyData
protected

◆ m_points

vtkSmartPointer<vtkPoints> iA3DLineObjectVis::m_points
protected

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