open_iA 2024.9
Loading...
Searching...
No Matches
iAEllipsoidObjectVis Class Reference

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

#include <iAEllipsoidObjectVis.h>

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

Public Member Functions

 iAEllipsoidObjectVis (iAObjectsData const *data, QColor const &color, int phiRes=DefaultPhiRes, int thetaRes=DefaultThetaRes)
 
double const * bounds () override
 
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
 
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.
 
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 ()
 

Static Public Attributes

static const int DefaultPhiRes = 10
 
static const int DefaultThetaRes = 10
 
- 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
 

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 ()
 
- 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
 
- 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
 

Detailed Description

Visualizes the objects given in a table as ellipses.

Requires column mappings for center point coordinates and a dimension in each 3D direction in the given object table data

Constructor & Destructor Documentation

◆ iAEllipsoidObjectVis()

iAEllipsoidObjectVis::iAEllipsoidObjectVis ( iAObjectsData const * data,
QColor const & color,
int phiRes = DefaultPhiRes,
int thetaRes = DefaultThetaRes )

Member Function Documentation

◆ bounds()

double const * iAEllipsoidObjectVis::bounds ( )
overridevirtual

Reimplemented from iAColoredPolyObjectVis.

◆ extractSelectedObjects()

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

extract one mesh per selected object

Implements iAColoredPolyObjectVis.

◆ finalPolyData()

vtkPolyData * iAEllipsoidObjectVis::finalPolyData ( )
overridevirtual

◆ objectPointCount()

iAColoredPolyObjectVis::IndexType iAEllipsoidObjectVis::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 iAEllipsoidObjectVis::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 * iAEllipsoidObjectVis::polyData ( )
overridevirtual

◆ visualizationStatistics()

QString iAEllipsoidObjectVis::visualizationStatistics ( ) const
overridevirtual

Member Data Documentation

◆ DefaultPhiRes

const int iAEllipsoidObjectVis::DefaultPhiRes = 10
static

◆ DefaultThetaRes

const int iAEllipsoidObjectVis::DefaultThetaRes = 10
static

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