open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
iA3DCylinderObjectVis Class Reference

#include <iA3DCylinderObjectVis.h>

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

Public Member Functions

 iA3DCylinderObjectVis (vtkTable *objectTable, QSharedPointer< QMap< uint, uint > > columnMapping, QColor const &color, std::map< size_t, std::vector< iAVec3f > > const &curvedFiberData, int numberOfCylinderSides=DefaultNumberOfCylinderSides, size_t segmentSkip=1)
 
virtual ~iA3DCylinderObjectVis ()
 
std::vector< vtkSmartPointer< vtkPolyData > > extractSelectedObjects (QColor c) const override
 extract one mesh per selected object
 
IndexType finalObjectPointCount (IndexType objIdx) const override
 Get the number of points representing a given final object.
 
IndexType finalObjectStartPointIdx (IndexType objIdx) const override
 Get the index of the first point of a given final object.
 
vtkPolyData * finalPolyData () override
 
void setContextDiameterFactor (double contextDiameterFactor)
 
void setDiameterFactor (double diameterFactor)
 
void setSelection (std::vector< size_t > const &sortedSelInds, bool selectionActive) override
 
QString visualizationStatistics () const override
 
- Public Member Functions inherited from iA3DLineObjectVis
 iA3DLineObjectVis (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
 
vtkPolyData * finalPolyData () override
 
IndexType objectPointCount (IndexType objIdx) const override
 Get the number of points representing a given object.
 
IndexType objectStartPointIdx (IndexType objIdx) const override
 Get the index of the first point of a given object.
 
vtkPolyData * polyData () override
 
void updateValues (std::vector< std::vector< double > > const &values, int straightOrCurved)
 
QString visualizationStatistics () const override
 
- Public Member Functions inherited from iA3DColoredPolyObjectVis
 iA3DColoredPolyObjectVis (vtkTable *objectTable, QSharedPointer< QMap< uint, uint > > columnMapping, QColor const &neutralColor)
 
IndexType allPointCount () const
 Get the number of points in all objects.
 
double const * bounds () override
 
QSharedPointer< iA3DObjectActorcreateActor (vtkRenderer *ren) override
 create "actor" class for visualizing this data collection
 
QSharedPointer< iA3DPolyObjectActorcreatePolyActor (vtkRenderer *ren)
 same as createActor, but retrieve derived class more specific for visualizing a 3D colored poly data object; use this if you need to access methods from the iA3DPolyObjectActor class which are not available through the iA3DObjectActor interface.
 
virtual std::vector< vtkSmartPointer< vtkPolyData > > extractSelectedObjects (QColor c=QColor()) const =0
 extract one mesh per selected object
 
IndexType finalAllPointCount () const
 Get the number of points in all final objects.
 
virtual IndexType finalObjectPointCount (IndexType objIdx) const
 Get the number of points representing a given final object.
 
virtual IndexType finalObjectStartPointIdx (IndexType objIdx) const
 Get the index of the first point of a given final object.
 
virtual vtkPolyData * finalPolyData ()=0
 
virtual IndexType objectPointCount (IndexType objIdx) const
 Get the number of points representing a given object.
 
virtual IndexType objectStartPointIdx (IndexType objIdx) const
 Get the index of the first point of a given object.
 
virtual vtkPolyData * polyData ()=0
 
std::vector< size_t > const & selection () const
 
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)
 
void updateColorSelectionRendering ()
 
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
 
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
 
- Public Member Functions inherited from iA3DObjectVis
 iA3DObjectVis (vtkTable *objectTable, QSharedPointer< QMap< uint, uint > > columnMapping)
 
virtual ~iA3DObjectVis ()
 
virtual double const * bounds ()=0
 
virtual QSharedPointer< iA3DObjectActorcreateActor (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 int DefaultNumberOfCylinderSides = 12
 
- 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
 

Additional Inherited Members

- Public Types inherited from iA3DObjectVis
typedef vtkIdType IndexType
 the type used for indices into the data table.
 
- Signals inherited from iA3DObjectVis
void dataChanged ()
 
void renderRequired ()
 
- Protected Member Functions inherited from iA3DColoredPolyObjectVis
void setObjectColor (IndexType objIdx, QColor const &qcolor)
 Set an object to a specified color.
 
void setupColors ()
 Set up the array of colors for each object.
 
void setupOriginalIds ()
 Set up the mapping from object parts to object IDs.
 
- Protected Member Functions inherited from iA3DObjectVis
QColor getLengthColor (vtkColorTransferFunction *ctFun, IndexType objID) const
 
QColor getOrientationColor (vtkImageData *oi, IndexType objID) const
 
- Protected Attributes inherited from iA3DLineObjectVis
std::map< size_t, std::vector< iAVec3f > > m_curvedFiberData
 
vtkSmartPointer< vtkPolyData > m_linePolyData
 
vtkSmartPointer< vtkPoints > m_points
 
- Protected Attributes inherited from iA3DColoredPolyObjectVis
QColor m_baseColor
 
vtkSmartPointer< vtkUnsignedCharArray > m_colors
 
int m_contextAlpha
 
std::vector< size_t > m_selection
 
int m_selectionAlpha
 
QColor m_selectionColor
 
- Protected Attributes inherited from iA3DObjectVis
QSharedPointer< QMap< uint, uint > > m_columnMapping
 
vtkTable * m_objectTable
 

Constructor & Destructor Documentation

◆ iA3DCylinderObjectVis()

iA3DCylinderObjectVis::iA3DCylinderObjectVis ( vtkTable *  objectTable,
QSharedPointer< QMap< uint, uint > >  columnMapping,
QColor const &  color,
std::map< size_t, std::vector< iAVec3f > > const &  curvedFiberData,
int  numberOfCylinderSides = DefaultNumberOfCylinderSides,
size_t  segmentSkip = 1 
)

◆ ~iA3DCylinderObjectVis()

iA3DCylinderObjectVis::~iA3DCylinderObjectVis ( )
virtual

Member Function Documentation

◆ extractSelectedObjects()

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

extract one mesh per selected object

Implements iA3DColoredPolyObjectVis.

◆ finalObjectPointCount()

iA3DColoredPolyObjectVis::IndexType iA3DCylinderObjectVis::finalObjectPointCount ( IndexType  objIdx) const
overridevirtual

Get the number of points representing a given final object.

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

Reimplemented from iA3DColoredPolyObjectVis.

◆ finalObjectStartPointIdx()

iA3DColoredPolyObjectVis::IndexType iA3DCylinderObjectVis::finalObjectStartPointIdx ( IndexType  objIdx) const
overridevirtual

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

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

Reimplemented from iA3DColoredPolyObjectVis.

◆ finalPolyData()

vtkPolyData * iA3DCylinderObjectVis::finalPolyData ( )
overridevirtual

◆ setContextDiameterFactor()

void iA3DCylinderObjectVis::setContextDiameterFactor ( double  contextDiameterFactor)

◆ setDiameterFactor()

void iA3DCylinderObjectVis::setDiameterFactor ( double  diameterFactor)

◆ setSelection()

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

Reimplemented from iA3DColoredPolyObjectVis.

◆ visualizationStatistics()

QString iA3DCylinderObjectVis::visualizationStatistics ( ) const
overridevirtual

Member Data Documentation

◆ DefaultNumberOfCylinderSides

const int iA3DCylinderObjectVis::DefaultNumberOfCylinderSides = 12
static

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