ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::GenericProgressCallback Class Referenceabstract

#include <GenericProgressCallback.h>

Inheritance diagram for cloudViewer::GenericProgressCallback:

Public Member Functions

virtual ~GenericProgressCallback ()=default
 Default destructor. More...
 
virtual void update (float percent)=0
 Notifies the algorithm progress. More...
 
virtual void setMethodTitle (const char *methodTitle)=0
 Notifies the algorithm title. More...
 
virtual void setInfo (const char *infoStr)=0
 Notifies some information about the ongoing process. More...
 
virtual void start ()=0
 
virtual void stop ()=0
 Notifies the fact that the process has ended. More...
 
virtual bool isCancelRequested ()=0
 Checks if the process should be canceled. More...
 
virtual bool textCanBeEdited () const
 Returns whether the dialog title and info can be updated or not. More...
 

Detailed Description

A generic progress indicator interface to notify algorithms progress to the client application

Definition at line 20 of file GenericProgressCallback.h.

Constructor & Destructor Documentation

◆ ~GenericProgressCallback()

virtual cloudViewer::GenericProgressCallback::~GenericProgressCallback ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ isCancelRequested()

virtual bool cloudViewer::GenericProgressCallback::isCancelRequested ( )
pure virtual

Checks if the process should be canceled.

This method is called by some process from time to time to know if it should halt before its normal ending. This is a way for the client application to cancel an ongoing process (but it won't work with all algorithms). Process results may be incomplete/void. The cancel requirement mechanism must be implemented (typically a simple "cancel()" method that will be called by the client application).

Implemented in ecvProgressDialog.

Referenced by define_GenericProgressCallback(), cloudViewer::DgmOctree::executeFunctionForAllCellsStartingAtLevel(), cloudViewer::NormalizedProgress::oneStep(), FastMarchingForFacetExtraction::propagate(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::FPCSRegistrationTools::RegisterClouds(), cloudViewer::NormalizedProgress::steps(), and cloudViewer::StatisticalTestingTools::testCloudWithStatisticalModel().

◆ setInfo()

virtual void cloudViewer::GenericProgressCallback::setInfo ( const char *  infoStr)
pure virtual

Notifies some information about the ongoing process.

The notification is sent by the ongoing algorithm (on the library side).

Parameters
infoStrsome textual information about the ongoing process

Implemented in ecvProgressDialog.

Referenced by cloudViewer::ScalarFieldTools::applyScalarFieldGaussianFilter(), cloudViewer::PointProjectionTools::applyTransformation(), cloudViewer::KDTree::buildFromCloud(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistancesWithOctree(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistanceWithOctree(), qCanupoTools::ComputeCorePointsDescriptors(), qM3C2Normals::ComputeCorePointsNormals(), cloudViewer::ScalarFieldTools::computeKmeans(), define_GenericProgressCallback(), cloudViewer::GeometricalAnalysisTools::DetectSphereRobust(), cloudViewer::PointProjectionTools::developCloudOnCone(), cloudViewer::PointProjectionTools::developCloudOnCylinder(), cloudViewer::DgmOctree::executeFunctionForAllCellsAtLevel(), cloudViewer::DgmOctree::executeFunctionForAllCellsStartingAtLevel(), cloudViewer::DgmOctree::extractCCs(), FastMarchingForFacetExtraction::ExtractPlanarFacets(), cloudViewer::AutoSegmentationTools::frontPropagationBasedSegmentation(), ccKdTreeForFacetExtraction::FuseCells(), cloudViewer::DgmOctree::genericBuild(), FastMarchingForFacetExtraction::init(), InitProgress(), cloudViewer::DistanceComputationTools::intersectMeshWithOctree(), masc::ContextBasedFeature::prepare(), masc::Tools::PrepareFeatures(), cloudViewer::ChamferDistanceTransform::propagateDistance(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::FPCSRegistrationTools::RegisterClouds(), cloudViewer::CloudSamplingTools::resampleCloudSpatially(), cloudViewer::MeshSamplingTools::samplePointsOnMesh(), cloudViewer::SaitoSquaredDistanceTransform::SDT_3D(), cloudViewer::ManualSegmentationTools::segmentMesh(), ecvProgressDialog::setInfo(), cloudViewer::CloudSamplingTools::subsampleCloudRandomly(), and qM3C2Normals::UpdateNormalOrientationsWithCloud().

◆ setMethodTitle()

virtual void cloudViewer::GenericProgressCallback::setMethodTitle ( const char *  methodTitle)
pure virtual

Notifies the algorithm title.

The notification is sent by the ongoing algorithm (on the library side).

Parameters
methodTitlethe algorithm title

Implemented in ecvProgressDialog.

Referenced by cloudViewer::ScalarFieldTools::applyScalarFieldGaussianFilter(), cloudViewer::PointProjectionTools::applyTransformation(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistancesWithOctree(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistanceWithOctree(), qCanupoTools::ComputeCorePointsDescriptors(), qM3C2Normals::ComputeCorePointsNormals(), cloudViewer::ScalarFieldTools::computeKmeans(), define_GenericProgressCallback(), cloudViewer::GeometricalAnalysisTools::DetectCircle(), cloudViewer::GeometricalAnalysisTools::DetectSphereRobust(), cloudViewer::PointProjectionTools::developCloudOnCone(), cloudViewer::PointProjectionTools::developCloudOnCylinder(), cloudViewer::DgmOctree::executeFunctionForAllCellsAtLevel(), cloudViewer::DgmOctree::executeFunctionForAllCellsStartingAtLevel(), cloudViewer::DgmOctree::extractCCs(), FastMarchingForFacetExtraction::ExtractPlanarFacets(), cloudViewer::AutoSegmentationTools::frontPropagationBasedSegmentation(), ccKdTreeForFacetExtraction::FuseCells(), cloudViewer::DgmOctree::genericBuild(), FastMarchingForFacetExtraction::init(), InitProgress(), cloudViewer::DistanceComputationTools::intersectMeshWithOctree(), masc::ContextBasedFeature::prepare(), masc::Tools::PrepareFeatures(), cloudViewer::ChamferDistanceTransform::propagateDistance(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::CloudSamplingTools::resampleCloudSpatially(), cloudViewer::MeshSamplingTools::samplePointsOnMesh(), cloudViewer::SaitoSquaredDistanceTransform::SDT_3D(), cloudViewer::ManualSegmentationTools::segmentMesh(), ecvProgressDialog::setMethodTitle(), and qM3C2Normals::UpdateNormalOrientationsWithCloud().

◆ start()

virtual void cloudViewer::GenericProgressCallback::start ( )
pure virtual

Notifies the fact that every information has been sent and that the process begins Once start() is called, the progress bar and other informations could be displayed (for example).

Implemented in ecvProgressDialog.

Referenced by cloudViewer::PointProjectionTools::applyTransformation(), cloudViewer::KDTree::buildFromCloud(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistancesWithOctree(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistanceWithOctree(), qCanupoTools::ComputeCorePointsDescriptors(), qM3C2Normals::ComputeCorePointsNormals(), cloudViewer::ScalarFieldTools::computeKmeans(), define_GenericProgressCallback(), cloudViewer::GeometricalAnalysisTools::DetectCircle(), cloudViewer::GeometricalAnalysisTools::DetectSphereRobust(), cloudViewer::PointProjectionTools::developCloudOnCone(), cloudViewer::PointProjectionTools::developCloudOnCylinder(), cloudViewer::DgmOctree::executeFunctionForAllCellsAtLevel(), cloudViewer::DgmOctree::executeFunctionForAllCellsStartingAtLevel(), cloudViewer::DgmOctree::extractCCs(), FastMarchingForFacetExtraction::ExtractPlanarFacets(), cloudViewer::AutoSegmentationTools::frontPropagationBasedSegmentation(), ccKdTreeForFacetExtraction::FuseCells(), cloudViewer::DgmOctree::genericBuild(), FastMarchingForFacetExtraction::init(), InitProgress(), cloudViewer::DistanceComputationTools::intersectMeshWithOctree(), masc::Tools::PrepareFeatures(), cloudViewer::ChamferDistanceTransform::propagateDistance(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::CloudSamplingTools::resampleCloudSpatially(), cloudViewer::MeshSamplingTools::samplePointsOnMesh(), cloudViewer::SaitoSquaredDistanceTransform::SDT_3D(), cloudViewer::ManualSegmentationTools::segmentMesh(), cloudViewer::CloudSamplingTools::subsampleCloudRandomly(), and qM3C2Normals::UpdateNormalOrientationsWithCloud().

◆ stop()

◆ textCanBeEdited()

virtual bool cloudViewer::GenericProgressCallback::textCanBeEdited ( ) const
inlinevirtual

Returns whether the dialog title and info can be updated or not.

Definition at line 70 of file GenericProgressCallback.h.

Referenced by cloudViewer::ScalarFieldTools::applyScalarFieldGaussianFilter(), cloudViewer::PointProjectionTools::applyTransformation(), cloudViewer::KDTree::buildFromCloud(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistancesWithOctree(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistanceWithOctree(), qCanupoTools::ComputeCorePointsDescriptors(), qM3C2Normals::ComputeCorePointsNormals(), cloudViewer::ScalarFieldTools::computeKmeans(), define_GenericProgressCallback(), cloudViewer::GeometricalAnalysisTools::DetectCircle(), cloudViewer::GeometricalAnalysisTools::DetectSphereRobust(), cloudViewer::PointProjectionTools::developCloudOnCone(), cloudViewer::PointProjectionTools::developCloudOnCylinder(), cloudViewer::DgmOctree::executeFunctionForAllCellsAtLevel(), cloudViewer::DgmOctree::executeFunctionForAllCellsStartingAtLevel(), cloudViewer::DgmOctree::extractCCs(), FastMarchingForFacetExtraction::ExtractPlanarFacets(), cloudViewer::AutoSegmentationTools::frontPropagationBasedSegmentation(), ccKdTreeForFacetExtraction::FuseCells(), cloudViewer::DgmOctree::genericBuild(), FastMarchingForFacetExtraction::init(), InitProgress(), cloudViewer::DistanceComputationTools::intersectMeshWithOctree(), cloudViewer::ChamferDistanceTransform::propagateDistance(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::FPCSRegistrationTools::RegisterClouds(), cloudViewer::CloudSamplingTools::resampleCloudSpatially(), cloudViewer::MeshSamplingTools::samplePointsOnMesh(), cloudViewer::SaitoSquaredDistanceTransform::SDT_3D(), cloudViewer::ManualSegmentationTools::segmentMesh(), cloudViewer::CloudSamplingTools::subsampleCloudRandomly(), and qM3C2Normals::UpdateNormalOrientationsWithCloud().

◆ update()

virtual void cloudViewer::GenericProgressCallback::update ( float  percent)
pure virtual

Notifies the algorithm progress.

The notification is sent by the running algorithm (on the library side). This virtual method shouldn't be called too often, as the real process behind it is unspecified and may be time consuming. Ideally it shouldn't be called more than a few hundreds time.

Parameters
percentcurrent progress, between 0.0 and 100.0

Implemented in ecvProgressDialog.

Referenced by cloudViewer::ScalarFieldTools::applyScalarFieldGaussianFilter(), cloudViewer::PointProjectionTools::applyTransformation(), cloudViewer::KDTree::buildFromCloud(), cloudViewer::KDTree::buildSubTree(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistancesWithOctree(), cloudViewer::DistanceComputationTools::computeCloud2MeshDistanceWithOctree(), cloudViewer::ScalarFieldTools::computeKmeans(), define_GenericProgressCallback(), cloudViewer::GeometricalAnalysisTools::DetectCircle(), cloudViewer::GeometricalAnalysisTools::DetectSphereRobust(), cloudViewer::PointProjectionTools::developCloudOnCone(), cloudViewer::PointProjectionTools::developCloudOnCylinder(), cloudViewer::DgmOctree::executeFunctionForAllCellsAtLevel(), cloudViewer::DgmOctree::executeFunctionForAllCellsStartingAtLevel(), cloudViewer::DgmOctree::extractCCs(), FastMarchingForFacetExtraction::ExtractPlanarFacets(), cloudViewer::AutoSegmentationTools::frontPropagationBasedSegmentation(), ccKdTreeForFacetExtraction::FuseCells(), cloudViewer::DgmOctree::genericBuild(), FastMarchingForFacetExtraction::init(), cloudViewer::DistanceComputationTools::intersectMeshWithOctree(), cloudViewer::NormalizedProgress::oneStep(), cloudViewer::ChamferDistanceTransform::propagateDistance(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::FPCSRegistrationTools::RegisterClouds(), cloudViewer::CloudSamplingTools::resampleCloudSpatially(), cloudViewer::NormalizedProgress::reset(), cloudViewer::MeshSamplingTools::samplePointsOnMesh(), cloudViewer::SaitoSquaredDistanceTransform::SDT_3D(), cloudViewer::ManualSegmentationTools::segmentMesh(), FastMarchingForFacetExtraction::step(), cloudViewer::NormalizedProgress::steps(), cloudViewer::CloudSamplingTools::subsampleCloudRandomly(), and UpdateProgress().


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