ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cvGenericFilter Class Referenceabstract

#include <cvGenericFilter.h>

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

Public Member Functions

 cvGenericFilter (QWidget *parent=nullptr)
 
virtual ~cvGenericFilter ()
 
virtual void apply ()=0
 
virtual void start ()
 
virtual void update ()
 
virtual void reset ()
 
virtual void restoreOrigin ()
 
virtual ccHObject * getOutput ()
 
virtual void getOutput (std::vector< ccHObject * > &outputSlices, std::vector< ccPolyline * > &outputContours)
 
virtual bool initModel ()
 
virtual bool setInput (ccHObject *obj)
 
virtual void shift (const CCVector3d &v)
 Shifts the current interactor. More...
 
virtual void updateUi ()
 
virtual void showInteractor (bool state)
 
virtual void getInteractorInfos (ccBBox &bbox, ccGLMatrixd &trans)
 
virtual void getInteractorTransformation (ccGLMatrixd &trans)
 
virtual void getInteractorBounds (ccBBox &bbox)
 
virtual void clearAllActor ()
 
void setUpViewer (PclUtils::PCLVis *viewer)
 
void showOutline (bool show=true)
 
void setNegative (bool state)
 
void setInteractor (vtkRenderWindowInteractor *interactor)
 
vtkRenderWindowInteractor * getInteractor ()
 

Protected Types

enum  DisplayEffect { Opaque, Transparent, Points, Wireframe }
 

Protected Slots

void onDoubleClick (int x, int y)
 

Protected Member Functions

virtual void modelReady ()
 
virtual void dataChanged ()
 
virtual void colorsChanged ()
 
void setDisplayEffect (DisplayEffect effect)
 
DisplayEffect displayEffect () const
 
void safeOff (vtk3DWidget *widget)
 
virtual void initFilter ()
 
virtual void createUi ()
 
void updateSize ()
 
void UpdateScalarRange ()
 
void applyDisplayEffect ()
 
void setScalarBarColors (const QColor &clr1, const QColor &clr2)
 
QColor color1 () const
 
QColor color2 () const
 
void setScalarRange (double min, double max)
 
double scalarMin () const
 
double scalarMax () const
 
vtkSmartPointer< vtkDataArray > getActorScalars (vtkSmartPointer< vtkActor > actor)
 
int getDefaultScalarInterpolationForDataSet (vtkDataSet *data)
 
vtkSmartPointer< vtkLookupTable > createLookupTable (double min, double max)
 
template<class ConfigClass >
void setupConfigWidget (ConfigClass *cc)
 
template<class DataObject , class Mapper >
void createActorFromData (vtkDataObject *dataObj)
 
void showScalarBar (bool show=true)
 
void setOutlineColor (const QColor &clr)
 
bool isValidPolyData () const
 
bool isValidDataSet () const
 
void addActor (const vtkSmartPointer< vtkProp > actor)
 
void removeActor (const vtkSmartPointer< vtkProp > actor)
 
void setResultData (vtkSmartPointer< vtkDataObject > data)
 
vtkSmartPointer< vtkDataObject > resultData () const
 

Protected Attributes

Ui::GenericFilterDlg * m_ui = nullptr
 
DisplayEffect m_displayEffect = Opaque
 
vtkDataObject * m_dataObject = nullptr
 
vtkSmartPointer< vtkDataObject > m_resultData
 
bool m_keepMode
 
bool m_negative
 
bool m_meshMode
 
bool m_preview
 
std::string m_id
 
ccHObject * m_entity = nullptr
 
PclUtils::PCLVis * m_viewer = nullptr
 
vtkRenderWindowInteractor * m_interactor = nullptr
 
vtkSmartPointer< vtkActor > m_modelActor
 
vtkSmartPointer< vtkLODActor > m_filterActor
 
vtkSmartPointer< vtkScalarBarActor > m_scalarBar
 
vtkSmartPointer< vtkActor > m_outlineActor
 
QColor m_color1 = Qt::blue
 
QColor m_color2 = Qt::red
 
double m_scalarMin = 0.0
 
double m_scalarMax = 1.0
 

Static Protected Attributes

static const int MAX_PREVIEW_NUMBER = 20e4
 

Member Enumeration Documentation

◆ DisplayEffect

Enumerator
Opaque 
Transparent 
Points 
Wireframe 

Constructor & Destructor Documentation

◆ cvGenericFilter()

cvGenericFilter::cvGenericFilter ( QWidget *  parent = nullptr)
explicit

◆ ~cvGenericFilter()

cvGenericFilter::~cvGenericFilter ( )
virtual

Member Function Documentation

◆ addActor()

◆ apply()

◆ applyDisplayEffect()

◆ clearAllActor()

◆ color1()

QColor cvGenericFilter::color1 ( ) const
protected

References m_color1.

◆ color2()

QColor cvGenericFilter::color2 ( ) const
protected

References m_color2.

◆ colorsChanged()

void cvGenericFilter::colorsChanged ( )
protectedvirtual

◆ createActorFromData()

template<class DataObject , class Mapper >
void cvGenericFilter::createActorFromData ( vtkDataObject *  dataObj)
protected

◆ createLookupTable()

◆ createUi()

◆ dataChanged()

virtual void cvGenericFilter::dataChanged ( )
inlineprotectedvirtual

◆ displayEffect()

cvGenericFilter::DisplayEffect cvGenericFilter::displayEffect ( ) const
protected

References m_displayEffect.

◆ getActorScalars()

vtkSmartPointer< vtkDataArray > cvGenericFilter::getActorScalars ( vtkSmartPointer< vtkActor >  actor)
protected

◆ getDefaultScalarInterpolationForDataSet()

int cvGenericFilter::getDefaultScalarInterpolationForDataSet ( vtkDataSet *  data)
protected

References data.

Referenced by cvIsoSurfaceFilter::clearAllActor().

◆ getInteractor()

vtkRenderWindowInteractor* cvGenericFilter::getInteractor ( )
inline

References m_interactor.

Referenced by cvCutFilter::updateCutWidget().

◆ getInteractorBounds()

virtual void cvGenericFilter::getInteractorBounds ( ccBBox &  bbox)
inlinevirtual

◆ getInteractorInfos()

void cvGenericFilter::getInteractorInfos ( ccBBox &  bbox,
ccGLMatrixd &  trans 
)
virtual

◆ getInteractorTransformation()

virtual void cvGenericFilter::getInteractorTransformation ( ccGLMatrixd &  trans)
inlinevirtual

Reimplemented in cvCutFilter, cvProbeFilter, and cvStreamlineFilter.

Referenced by getInteractorInfos().

◆ getOutput() [1/2]

◆ getOutput() [2/2]

void cvGenericFilter::getOutput ( std::vector< ccHObject * > &  outputSlices,
std::vector< ccPolyline * > &  outputContours 
)
virtual

References getOutput().

◆ initFilter()

◆ initModel()

bool cvGenericFilter::initModel ( )
virtual

◆ isValidDataSet()

◆ isValidPolyData()

◆ modelReady()

◆ onDoubleClick

void cvGenericFilter::onDoubleClick ( int  x,
int  y 
)
protectedslot

References applyDisplayEffect().

Referenced by cvGenericFilter().

◆ removeActor()

void cvGenericFilter::removeActor ( const vtkSmartPointer< vtkProp >  actor)
protected

◆ reset()

void cvGenericFilter::reset ( )
virtual

References dataChanged(), and update().

Referenced by PclFiltersTool::reset().

◆ restoreOrigin()

void cvGenericFilter::restoreOrigin ( )
virtual

References initModel(), m_viewer, and start().

Referenced by PclFiltersTool::restore().

◆ resultData()

vtkSmartPointer< vtkDataObject > cvGenericFilter::resultData ( ) const
protected

References m_resultData.

Referenced by cvIsoSurfaceFilter::getOutput(), and getOutput().

◆ safeOff()

◆ scalarMax()

double cvGenericFilter::scalarMax ( ) const
protected

References m_scalarMax.

Referenced by cvSliceFilter::apply().

◆ scalarMin()

double cvGenericFilter::scalarMin ( ) const
protected

References m_scalarMin.

Referenced by cvSliceFilter::apply().

◆ setDisplayEffect()

◆ setInput()

◆ setInteractor()

void cvGenericFilter::setInteractor ( vtkRenderWindowInteractor *  interactor)

References m_interactor.

Referenced by setUpViewer().

◆ setNegative()

void cvGenericFilter::setNegative ( bool  state)
inline

◆ setOutlineColor()

void cvGenericFilter::setOutlineColor ( const QColor &  clr)
protected

◆ setResultData()

◆ setScalarBarColors()

void cvGenericFilter::setScalarBarColors ( const QColor &  clr1,
const QColor &  clr2 
)
protected

◆ setScalarRange()

void cvGenericFilter::setScalarRange ( double  min,
double  max 
)
protected

◆ setupConfigWidget()

template<class ConfigClass >
void cvGenericFilter::setupConfigWidget ( ConfigClass *  cc)
inlineprotected

◆ setUpViewer()

void cvGenericFilter::setUpViewer ( PclUtils::PCLVis *  viewer)

◆ shift()

virtual void cvGenericFilter::shift ( const CCVector3d &  v)
inlinevirtual

Shifts the current interactor.

Reimplemented in cvCutFilter, cvProbeFilter, and cvStreamlineFilter.

Referenced by PclFiltersTool::shift().

◆ showInteractor()

virtual void cvGenericFilter::showInteractor ( bool  state)
inlinevirtual

◆ showOutline()

void cvGenericFilter::showOutline ( bool  show = true)

◆ showScalarBar()

void cvGenericFilter::showScalarBar ( bool  show = true)
protected

◆ start()

void cvGenericFilter::start ( )
virtual

◆ update()

◆ UpdateScalarRange()

void cvGenericFilter::UpdateScalarRange ( )
protected

◆ updateSize()

void cvGenericFilter::updateSize ( )
protected

◆ updateUi()

virtual void cvGenericFilter::updateUi ( )
inlinevirtual

Reimplemented in cvCutFilter.

Referenced by setInput().

Member Data Documentation

◆ m_color1

QColor cvGenericFilter::m_color1 = Qt::blue
protected

◆ m_color2

QColor cvGenericFilter::m_color2 = Qt::red
protected

◆ m_dataObject

◆ m_displayEffect

DisplayEffect cvGenericFilter::m_displayEffect = Opaque
protected

◆ m_entity

ccHObject* cvGenericFilter::m_entity = nullptr
protected

◆ m_filterActor

◆ m_id

std::string cvGenericFilter::m_id
protected

Referenced by initModel(), and setInput().

◆ m_interactor

vtkRenderWindowInteractor* cvGenericFilter::m_interactor = nullptr
protected

Referenced by getInteractor(), and setInteractor().

◆ m_keepMode

◆ m_meshMode

◆ m_modelActor

◆ m_negative

bool cvGenericFilter::m_negative
protected

◆ m_outlineActor

vtkSmartPointer<vtkActor> cvGenericFilter::m_outlineActor
protected

◆ m_preview

◆ m_resultData

vtkSmartPointer<vtkDataObject> cvGenericFilter::m_resultData
protected

◆ m_scalarBar

◆ m_scalarMax

double cvGenericFilter::m_scalarMax = 1.0
protected

◆ m_scalarMin

double cvGenericFilter::m_scalarMin = 0.0
protected

◆ m_ui

Ui::GenericFilterDlg* cvGenericFilter::m_ui = nullptr
protected

◆ m_viewer

◆ MAX_PREVIEW_NUMBER

const int cvGenericFilter::MAX_PREVIEW_NUMBER = 20e4
staticprotected

Referenced by initModel().


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