![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <cvProbeFilter.h>


Public Member Functions | |
| cvProbeFilter (QWidget *parent=nullptr) | |
| virtual void | apply () override |
| virtual ccHObject * | getOutput () override |
| virtual void | clearAllActor () override |
| virtual void | showInteractor (bool state) override |
| virtual void | getInteractorBounds (ccBBox &bbox) override |
| virtual void | getInteractorTransformation (ccGLMatrixd &trans) override |
| virtual void | shift (const CCVector3d &v) override |
| Shifts the current interactor. More... | |
Public Member Functions inherited from cvGenericFilter | |
| cvGenericFilter (QWidget *parent=nullptr) | |
| virtual | ~cvGenericFilter () |
| virtual void | start () |
| virtual void | update () |
| virtual void | reset () |
| virtual void | restoreOrigin () |
| virtual void | getOutput (std::vector< ccHObject * > &outputSlices, std::vector< ccPolyline * > &outputContours) |
| virtual bool | initModel () |
| virtual bool | setInput (ccHObject *obj) |
| virtual void | updateUi () |
| virtual void | getInteractorInfos (ccBBox &bbox, ccGLMatrixd &trans) |
| void | setUpViewer (PclUtils::PCLVis *viewer) |
| void | showOutline (bool show=true) |
| void | setNegative (bool state) |
| void | setInteractor (vtkRenderWindowInteractor *interactor) |
| vtkRenderWindowInteractor * | getInteractor () |
Protected Types | |
| enum | WidgetType { WT_Line , WT_Sphere , WT_Box , WT_ImplicitPlane } |
Protected Types inherited from cvGenericFilter | |
| enum | DisplayEffect { Opaque , Transparent , Points , Wireframe } |
Protected Member Functions | |
| virtual void | modelReady () override |
| virtual void | createUi () override |
| virtual void | initFilter () override |
| virtual void | dataChanged () override |
Protected Member Functions inherited from cvGenericFilter | |
| virtual void | colorsChanged () |
| void | setDisplayEffect (DisplayEffect effect) |
| DisplayEffect | displayEffect () const |
| void | safeOff (vtk3DWidget *widget) |
| 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 |
Additional Inherited Members | |
Protected Slots inherited from cvGenericFilter | |
| void | onDoubleClick (int x, int y) |
Static Protected Attributes inherited from cvGenericFilter | |
| static const int | MAX_PREVIEW_NUMBER = 20e4 |
Definition at line 23 of file cvProbeFilter.h.
|
protected |
| Enumerator | |
|---|---|
| WT_Line | |
| WT_Sphere | |
| WT_Box | |
| WT_ImplicitPlane | |
Definition at line 60 of file cvProbeFilter.h.
|
explicit |
Definition at line 50 of file cvProbeFilter.cpp.
References createUi().
|
overridevirtual |
Implements cvGenericFilter.
Definition at line 81 of file cvProbeFilter.cpp.
References QCustomPlot::addGraph(), QtCompatRegExpOption::CaseInsensitive, QCustomPlot::clearGraphs(), Utils::ColorSeries::Cool, QCustomPlot::graph(), cvGenericFilter::m_dataObject, m_linePoint1, m_linePoint2, m_planeNormal, m_planeOrigin, m_plotWidget, m_probe, m_sphereCenter, m_widgetType, Utils::ColorSeries::nextColor(), QCustomPlot::replot(), QCPGraph::rescaleAxes(), QCPGraph::setData(), QCPAbstractPlottable::setName(), QCPAbstractPlottable::setPen(), Utils::ColorSeries::setScheme(), cvGenericFilter::update(), VTK_CREATE, VtkUtils::vtkInitOnce(), WT_Box, WT_ImplicitPlane, WT_Line, WT_Sphere, x, and y.
Referenced by dataChanged(), and shift().
|
overridevirtual |
Reimplemented from cvGenericFilter.
Definition at line 299 of file cvProbeFilter.cpp.
References cvGenericFilter::clearAllActor(), m_boxWidget, m_configUi, m_implicitPlaneWidget, m_lineWidget, m_plotWidget, m_sphereWidget, and cvGenericFilter::safeOff().
|
overrideprotectedvirtual |
Reimplemented from cvGenericFilter.
Definition at line 55 of file cvProbeFilter.cpp.
References QCustomPlot::clearGraphs(), cvGenericFilter::createUi(), QCP::iRangeDrag, QCP::iRangeZoom, QCP::iSelectPlottables, QCustomPlot::legend, m_configUi, m_plotWidget, QCPLegend::setFont(), QCustomPlot::setInteractions(), QCPAxis::setTickLabels(), cvGenericFilter::setupConfigWidget(), QCPLayerable::setVisible(), QCustomPlot::xAxis, QCustomPlot::xAxis2, QCustomPlot::yAxis, and QCustomPlot::yAxis2.
Referenced by cvProbeFilter().
|
overrideprotectedvirtual |
Reimplemented from cvGenericFilter.
Definition at line 323 of file cvProbeFilter.cpp.
References apply().
|
overridevirtual |
Reimplemented from cvGenericFilter.
Definition at line 188 of file cvProbeFilter.cpp.
References m_boxWidget, m_implicitPlaneWidget, m_lineWidget, m_sphereWidget, m_widgetType, cloudViewer::BoundingBoxTpl< T >::maxCorner(), cloudViewer::BoundingBoxTpl< T >::minCorner(), and cloudViewer::BoundingBoxTpl< T >::setValidity().
|
overridevirtual |
Reimplemented from cvGenericFilter.
Definition at line 232 of file cvProbeFilter.cpp.
References ccGLMatrixTpl< T >::data(), m_boxWidget, m_implicitPlaneWidget, m_lineWidget, m_sphereWidget, and m_widgetType.
|
overridevirtual |
Reimplemented from cvGenericFilter.
Definition at line 325 of file cvProbeFilter.cpp.
References QtCompatRegExpOption::CaseInsensitive, ecvFileUtils::defaultDocPath(), ecvDisplayTools::GetCurrentScreen(), m_plotWidget, m_probe, CVLog::Print(), result, QCustomPlot::saveBmp(), QCustomPlot::savePdf(), QCustomPlot::savePng(), and CVLog::Warning().
|
overrideprotectedvirtual |
Reimplemented from cvGenericFilter.
Definition at line 318 of file cvProbeFilter.cpp.
References cvGenericFilter::initFilter(), and cvGenericFilter::setDisplayEffect().
|
overrideprotectedvirtual |
Reimplemented from cvGenericFilter.
Definition at line 480 of file cvProbeFilter.cpp.
References cvGenericFilter::modelReady().
|
overridevirtual |
Shifts the current interactor.
Reimplemented from cvGenericFilter.
Definition at line 259 of file cvProbeFilter.cpp.
References apply(), m_boxWidget, m_implicitPlaneWidget, m_linePoint1, m_linePoint2, m_lineWidget, m_sphereCenter, m_sphereWidget, m_widgetType, Tuple3Tpl< Type >::u, Vector3Tpl< double >::vadd(), and VTK_CREATE.
|
overridevirtual |
Reimplemented from cvGenericFilter.
Definition at line 160 of file cvProbeFilter.cpp.
References m_boxWidget, m_implicitPlaneWidget, m_lineWidget, m_sphereWidget, m_widgetType, and cvGenericFilter::safeOff().
|
protected |
Definition at line 67 of file cvProbeFilter.h.
Referenced by clearAllActor(), getInteractorBounds(), getInteractorTransformation(), shift(), and showInteractor().
|
protected |
Definition at line 62 of file cvProbeFilter.h.
Referenced by clearAllActor(), and createUi().
|
protected |
Definition at line 68 of file cvProbeFilter.h.
Referenced by clearAllActor(), getInteractorBounds(), getInteractorTransformation(), shift(), and showInteractor().
|
protected |
Definition at line 74 of file cvProbeFilter.h.
|
protected |
Definition at line 75 of file cvProbeFilter.h.
|
protected |
Definition at line 65 of file cvProbeFilter.h.
Referenced by clearAllActor(), getInteractorBounds(), getInteractorTransformation(), shift(), and showInteractor().
|
protected |
Definition at line 81 of file cvProbeFilter.h.
Referenced by apply().
|
protected |
Definition at line 80 of file cvProbeFilter.h.
Referenced by apply().
|
protected |
Definition at line 72 of file cvProbeFilter.h.
Referenced by apply(), clearAllActor(), createUi(), and getOutput().
|
protected |
Definition at line 70 of file cvProbeFilter.h.
Referenced by apply(), and getOutput().
|
protected |
Definition at line 77 of file cvProbeFilter.h.
|
protected |
Definition at line 78 of file cvProbeFilter.h.
|
protected |
Definition at line 66 of file cvProbeFilter.h.
Referenced by clearAllActor(), getInteractorBounds(), getInteractorTransformation(), shift(), and showInteractor().
|
protected |
Definition at line 64 of file cvProbeFilter.h.
Referenced by apply(), getInteractorBounds(), getInteractorTransformation(), shift(), and showInteractor().