open_iA 2024.7
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
iALineObjectVis Class Reference

Visualizes the objects given in a table as lines. More...

#include <iALineObjectVis.h>

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

Public Member Functions

 iALineObjectVis (iAObjectsData const *data, QColor const &color, 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 iAColoredPolyObjectVis
 iAColoredPolyObjectVis (iAObjectsData const *, QColor const &neutralColor)
 
IndexType allPointCount () const
 Get the number of points in all objects.
 
double const * bounds () override
 
std::shared_ptr< iAObjectVisActorcreateActor (vtkRenderer *ren) override
 create "actor" class for visualizing this data collection
 
std::shared_ptr< iAPolyObjectVisActorcreatePolyActor (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 iAPolyObjectVisActorclass which are not available through the iAObjectVisActor interface.
 
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.
 
std::vector< size_t > const & selection () const
 
void setColor (QColor const &color)
 
void setContextOpacity (int contextAlpha)
 
void setLookupTable (std::shared_ptr< iALookupTable > lut, size_t paramIndex)
 
virtual void setSelection (std::vector< size_t > const &sortedSelInds, bool selectionActive)
 
void setSelectionOpacity (int selectionAlpha)
 
void updateColorSelectionRendering ()
 
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 iAObjectVis
 iAObjectVis (iAObjectsData const *data)
 
virtual ~iAObjectVis ()
 

Protected Attributes

vtkSmartPointer< vtkPolyData > m_linePolyData
 
vtkSmartPointer< vtkPoints > m_points
 
- Protected Attributes inherited from iAColoredPolyObjectVis
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 iAObjectVis
iAObjectsData const * m_data
 

Additional Inherited Members

- Public Types inherited from iAObjectVis
using IndexType = vtkIdType
 the type used for indices into the data table.
 
- Signals inherited from iAColoredPolyObjectVis
void selectionChanged ()
 
- Signals inherited from iAObjectVis
void dataChanged ()
 
void renderRequired ()
 
- Static Public Attributes inherited from iAColoredPolyObjectVis
static const int DefaultContextOpacity = 8
 
static const int DefaultSelectionOpacity = 128
 
- Static Public Attributes inherited from iAObjectVis
static const QColor SelectedColor
 
- Protected Member Functions inherited from iAColoredPolyObjectVis
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 iAObjectVis
QColor getLengthColor (vtkColorTransferFunction *ctFun, IndexType objID) const
 
QColor getOrientationColor (vtkImageData *oi, IndexType objID) const
 

Detailed Description

Visualizes the objects given in a table as lines.

Requires column mappings for start- and end point in the given object table data.

Constructor & Destructor Documentation

◆ iALineObjectVis()

iALineObjectVis::iALineObjectVis ( iAObjectsData const * data,
QColor const & color,
size_t segmentSkip )

Member Function Documentation

◆ extractSelectedObjects()

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

extract one mesh per selected object

Implements iAColoredPolyObjectVis.

◆ finalPolyData()

vtkPolyData * iALineObjectVis::finalPolyData ( )
overridevirtual

◆ objectPointCount()

iAColoredPolyObjectVis::IndexType iALineObjectVis::objectPointCount ( IndexType objIdx) const
overridevirtual

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 iAColoredPolyObjectVis.

◆ objectStartPointIdx()

iAColoredPolyObjectVis::IndexType iALineObjectVis::objectStartPointIdx ( IndexType objIdx) const
overridevirtual

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 iAColoredPolyObjectVis.

◆ polyData()

vtkPolyData * iALineObjectVis::polyData ( )
overridevirtual

◆ updateValues()

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

◆ visualizationStatistics()

QString iALineObjectVis::visualizationStatistics ( ) const
overridevirtual

Member Data Documentation

◆ m_linePolyData

vtkSmartPointer<vtkPolyData> iALineObjectVis::m_linePolyData
protected

◆ m_points

vtkSmartPointer<vtkPoints> iALineObjectVis::m_points
protected

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