ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::PointCloudTpl< T > Class Template Reference

#include <PointCloudTpl.h>

Inheritance diagram for cloudViewer::PointCloudTpl< T >:
[legend]
Collaboration diagram for cloudViewer::PointCloudTpl< T >:
[legend]

Public Member Functions

 PointCloudTpl ()
 Default constructor. More...
 
virtual ~PointCloudTpl ()
 Default destructor. More...
 
unsigned size () const override
 
void forEach (GenericCloud::genericPointAction action) override
 
void getBoundingBox (CCVector3 &bbMin, CCVector3 &bbMax) override
 
void placeIteratorAtBeginning () override
 
const CCVector3 * getNextPoint () override
 
bool enableScalarField () override
 
bool isScalarFieldEnabled () const override
 
void setPointScalarValue (unsigned pointIndex, ScalarType value) override
 
ScalarType getPointScalarValue (unsigned pointIndex) const override
 
const CCVector3 * getPoint (unsigned index) const override
 
CCVector3 * getPointPtr (size_t index)
 
std::vector< CCVector3 > & getPoints ()
 
const std::vector< CCVector3 > & getPoints () const
 
void getPoint (unsigned index, CCVector3 &P) const override
 
void getPoint (unsigned index, double P[3]) const override
 
const CCVector3 * getPointPersistentPtr (unsigned index) override
 
const CCVector3 * getPointPersistentPtr (unsigned index) const
 
virtual bool resize (unsigned newCount)
 Resizes the point database. More...
 
virtual bool reserve (unsigned newCapacity)
 Reserves memory for the point database. More...
 
void reset ()
 Clears the cloud database. More...
 
void addPoint (const CCVector3 &P)
 Adds a 3D point to the database. More...
 
void setPoint (size_t index, const CCVector3 &P)
 
void setEigenPoint (size_t index, const Eigen::Vector3d &point)
 
void addEigenPoint (const Eigen::Vector3d &point)
 
void addPoint (double x, double y, double z)
 
void addPoint (double xyz[3])
 
void addPoints (const std::vector< CCVector3 > &points)
 
void addPoints (const std::vector< Eigen::Vector3d > &points)
 
Eigen::Vector3d getEigenPoint (size_t index) const
 
std::vector< Eigen::Vector3d > getEigenPoints () const
 
void setEigenPoints (const std::vector< Eigen::Vector3d > &points)
 
virtual void invalidateBoundingBox ()
 Invalidates bounding box. More...
 
unsigned getNumberOfScalarFields () const
 Returns the number of associated (and active) scalar fields. More...
 
ScalarField * getScalarField (int index) const
 Returns a pointer to a specific scalar field. More...
 
const char * getScalarFieldName (int index) const
 Returns the name of a specific scalar field. More...
 
int getScalarFieldIndexByName (const char *name) const
 Returns the index of a scalar field represented by its name. More...
 
ScalarField * getCurrentInScalarField () const
 Returns the scalar field currently associated to the cloud input. More...
 
ScalarField * getCurrentOutScalarField () const
 Returns the scalar field currently associated to the cloud output. More...
 
void setCurrentInScalarField (int index)
 Sets the INPUT scalar field. More...
 
int getCurrentInScalarFieldIndex ()
 Returns current INPUT scalar field index (or -1 if none) More...
 
void setCurrentOutScalarField (int index)
 Sets the OUTPUT scalar field. More...
 
int getCurrentOutScalarFieldIndex ()
 Returns current OUTPUT scalar field index (or -1 if none) More...
 
void setCurrentScalarField (int index)
 Sets both the INPUT & OUTPUT scalar field. More...
 
virtual int addScalarField (const char *uniqueName)
 Creates a new scalar field and registers it. More...
 
bool renameScalarField (int index, const char *newName)
 Renames a specific scalar field. More...
 
virtual void deleteScalarField (int index)
 Deletes a specific scalar field. More...
 
virtual void deleteAllScalarFields ()
 Deletes all scalar fields associated to this cloud. More...
 
unsigned capacity () const
 Returns cloud capacity (i.e. reserved size) More...
 

Protected Member Functions

virtual void swapPoints (unsigned firstIndex, unsigned secondIndex)
 Swaps two points (and their associated scalar values!) More...
 
CCVector3 * point (unsigned index)
 Returns non const access to a given point. More...
 
const CCVector3 * point (unsigned index) const
 Returns const access to a given point. More...
 

Protected Attributes

std::vector< CCVector3 > m_points
 3D Points database More...
 
BoundingBox m_bbox
 Bounding-box. More...
 
unsigned m_currentPointIndex
 'Iterator' on the points db More...
 
std::vector< ScalarField * > m_scalarFields
 Associated scalar fields. More...
 
int m_currentInScalarFieldIndex
 Index of current scalar field used for input. More...
 
int m_currentOutScalarFieldIndex
 Index of current scalar field used for output. More...
 

Detailed Description

template<class T>
class cloudViewer::PointCloudTpl< T >

A storage-efficient point cloud structure that can also handle an unlimited number of scalar fields

Constructor & Destructor Documentation

◆ PointCloudTpl()

template<class T >
cloudViewer::PointCloudTpl< T >::PointCloudTpl ( )
inline

Default constructor.

◆ ~PointCloudTpl()

template<class T >
virtual cloudViewer::PointCloudTpl< T >::~PointCloudTpl ( )
inlinevirtual

Default destructor.

Member Function Documentation

◆ addEigenPoint()

◆ addPoint() [1/3]

template<class T >
void cloudViewer::PointCloudTpl< T >::addPoint ( const CCVector3 &  P)
inline

Adds a 3D point to the database.

To assure the best efficiency, the database memory must have already been reserved (with PointCloud::reserve). Otherwise nothing happens.

Parameters
Pa 3D point

Referenced by ccPolyline::add(), ccPointPairRegistrationDlg::addAlignedPoint(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::addEigenPoint(), qCanupo2DViewDialog::addOrSelectPoint(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::addPoint(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::addPoints(), ccGraphicalSegmentationTool::addPointToPolyline(), ccPointPairRegistrationDlg::addReferencePoint(), MeshWrapper< Real >::addVertex(), AddVertex(), cloudViewer::PointProjectionTools::applyTransformation(), ccExtru::buildUp(), ccSphere::buildUp(), ccDisc::buildUp(), ccDish::buildUp(), ccTorus::buildUp(), ccQuadric::buildUp(), ccCone::buildUp(), ccPlane::buildUp(), cloudViewer::visualization::Visualizer::CaptureDepthPointCloud(), ccTracePolylineTool::ccTracePolylineTool(), ccPolyline::Circle(), cloudViewer::geometry::Qhull::ComputeConvexHull(), ccGBLSensor::computeDepthBuffer(), ccCameraSensor::computeFrustumCorners(), ccEntityAction::computeNormals(), cloudViewer::DistanceComputationTools::computePoint2MeshDistancesWithOctree(), ccTopologyRelation::constructGraphic(), contourPoly(), contourPoly2(), DistanceMapGenerationTool::ConvertConicalMapToMesh(), DistanceMapGenerationTool::ConvertMapToCloud(), DistanceMapGenerationTool::ConvertProfileToMesh(), ccRasterGrid::convertToCloud(), vtk2cc::ConvertToMultiPolylines(), ccPolyline::createNewPolylinesFromSelection(), cloudViewer::PointProjectionTools::developCloudOnCone(), cloudViewer::PointProjectionTools::developCloudOnCylinder(), ccGraphicalSegmentationTool::doActionUseExistingPolyline(), ccAlignDlg::estimateDelta(), ccCompass::estimateP21(), ccCompass::estimateStructureNormals(), GrainsAsEllipsoids::exportResultsAsCloud(), ccPointListPickingDlg::exportToNewCloud(), ccPointListPickingDlg::exportToNewPolyline(), ccContourExtractor::ExtractConcaveHull2D(), ccContourExtractor::ExtractFlatContour(), cloudViewer::FPCSRegistrationTools::FilterCandidates(), cloudViewer::FPCSRegistrationTools::FindCongruentBases(), ccQuadric::Fit(), ccPointCloud::From(), FromFbxMesh(), ccRasterizeTool::generateContours(), GetConeProfile(), getDensity(), getMortarMaps(), cvDistanceTool::getOutput(), cvProtractorTool::getOutput(), ccGBLSensor::getOwnBB(), ccCameraSensor::getOwnBB(), ImportSourceVertices(), STEPFilter::importStepFile(), InitializeOutputCloud(), ProfileLoader::Load(), STLFilter::loadASCIIFile(), STLFilter::loadBinaryFile(), LoadCloud(), AsciiFilter::loadCloudFromFormatedAsciiStream(), PTXFilter::loadFile(), VTKFilter::loadFile(), SinusxFilter::loadFile(), SoiFilter::loadFile(), LASFilter::loadFile(), ObjFilter::loadFile(), CSVMatrixFilter::loadFile(), SalomeHydroFilter::loadFile(), OFFFilter::loadFile(), LASFWFFilter::loadFile(), RDBFilter::loadFile(), DistanceMapGenerationDlg::loadOverlaySymbols(), LoadScan(), MergeOldTriangles(), QVTKWidgetCustom::mouseMoveEvent(), ccTracePolylineTool::onItemPicked(), MainWindow::onItemPicked(), ccGenericPrimitive::operator+=(), ccCameraSensor::orthoRectifyAsCloud(), PCLCloudToCCCloud(), masc::ContextBasedFeature::prepare(), CommandCrop2D::process(), cloudViewer::visualization::MessageProcessor::ProcessMessage(), ccMesh::pushSubdivide(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::CloudSamplingTools::resampleCellAtLevel(), qCanupo2DViewDialog::resetBoundary(), rotY(), ccPolyline::samplePoints(), cloudViewer::MeshSamplingTools::samplePointsOnMesh(), ccMesh::SelectByIndex(), ccPolyline::smoothChaikin(), DistanceMapGenerationDlg::toggleOverlayGrid(), Cloth::toMesh(), qCanupoTools::TrainClassifier(), cloudViewer::Neighbourhood::triangulateFromQuadric(), cloudViewer::Neighbourhood::triangulateOnPlane(), ccMesh::TriangulateTwoPolylines(), and vertex_cb().

◆ addPoint() [2/3]

template<class T >
void cloudViewer::PointCloudTpl< T >::addPoint ( double  x,
double  y,
double  z 
)
inline

◆ addPoint() [3/3]

template<class T >
void cloudViewer::PointCloudTpl< T >::addPoint ( double  xyz[3])
inline

◆ addPoints() [1/2]

◆ addPoints() [2/2]

template<class T >
void cloudViewer::PointCloudTpl< T >::addPoints ( const std::vector< Eigen::Vector3d > &  points)
inline

◆ addScalarField()

template<class T >
virtual int cloudViewer::PointCloudTpl< T >::addScalarField ( const char *  uniqueName)
inlinevirtual

Creates a new scalar field and registers it.

Warnings:

  • the name must be unique (the method will fail if a SF with the same name already exists)
  • this method DOES resize the scalar field to match the current cloud size
    Parameters
    uniqueNamescalar field name (must be unique)
    Returns
    index of this new scalar field (or -1 if an error occurred)

Reimplemented in ccPointCloud.

Referenced by cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::enableScalarField().

◆ capacity()

◆ deleteAllScalarFields()

template<class T >
virtual void cloudViewer::PointCloudTpl< T >::deleteAllScalarFields ( )
inlinevirtual

◆ deleteScalarField()

template<class T >
virtual void cloudViewer::PointCloudTpl< T >::deleteScalarField ( int  index)
inlinevirtual

Deletes a specific scalar field.

WARNING: this operation may modify the scalar fields order (especially if the deleted SF is not the last one). However current IN & OUT scalar fields will stay up-to-date (while their index may change).

Parameters
indexindex of scalar field to be deleted

Reimplemented in ccPointCloud.

◆ enableScalarField()

◆ forEach()

template<class T >
void cloudViewer::PointCloudTpl< T >::forEach ( GenericCloud::genericPointAction  action)
inlineoverride

◆ getBoundingBox()

template<class T >
void cloudViewer::PointCloudTpl< T >::getBoundingBox ( CCVector3 &  bbMin,
CCVector3 &  bbMax 
)
inlineoverride

◆ getCurrentInScalarField()

◆ getCurrentInScalarFieldIndex()

template<class T >
int cloudViewer::PointCloudTpl< T >::getCurrentInScalarFieldIndex ( )
inline

Returns current INPUT scalar field index (or -1 if none)

Referenced by GetScalarFieldIndex(), and ccRegistrationTools::ICP().

◆ getCurrentOutScalarField()

template<class T >
ScalarField* cloudViewer::PointCloudTpl< T >::getCurrentOutScalarField ( ) const
inline

◆ getCurrentOutScalarFieldIndex()

template<class T >
int cloudViewer::PointCloudTpl< T >::getCurrentOutScalarFieldIndex ( )
inline

Returns current OUTPUT scalar field index (or -1 if none)

Referenced by CommandSFConvertToRGB::process().

◆ getEigenPoint()

template<class T >
Eigen::Vector3d cloudViewer::PointCloudTpl< T >::getEigenPoint ( size_t  index) const
inline

Referenced by cloudViewer::pipelines::registration::AdvancedMatching(), BallPivoting::BallPivoting(), cloudViewer::pipelines::registration::CorrespondenceCheckerBasedOnEdgeLength::Check(), cloudViewer::pipelines::registration::CorrespondenceCheckerBasedOnDistance::Check(), cloudViewer::utility::ComputeFPFHFeature(), cloudViewer::pipelines::registration::TransformationEstimationForColoredICP::ComputeRMSE(), cloudViewer::pipelines::registration::TransformationEstimationForGeneralizedICP::ComputeRMSE(), cloudViewer::pipelines::registration::TransformationEstimationPointToPoint::ComputeRMSE(), cloudViewer::pipelines::registration::TransformationEstimationPointToPlane::ComputeRMSE(), cloudViewer::utility::ComputeSPFHFeature(), cloudViewer::pipelines::registration::TransformationEstimationForColoredICP::ComputeTransformation(), cloudViewer::pipelines::registration::TransformationEstimationForGeneralizedICP::ComputeTransformation(), cloudViewer::pipelines::registration::TransformationEstimationPointToPoint::ComputeTransformation(), cloudViewer::pipelines::registration::TransformationEstimationPointToPlane::ComputeTransformation(), cloudViewer::visualization::rendering::PointCloudBuffersBuilder::ConstructBuffers(), cloudViewer::geometry::Octree::ConvertFromPointCloud(), cloudViewer::geometry::LineSet::CreateFromPointCloudCorrespondences(), cloudViewer::geometry::VoxelGrid::CreateFromPointCloudWithinBounds(), cloudViewer::pipelines::registration::EvaluateRANSACBasedOnCorrespondence(), cloudViewer::pipelines::registration::GetInformationMatrixFromPointClouds(), cloudViewer::pipelines::registration::GetRegistrationResultAndCorrespondences(), ccMesh::getVertice(), cloudViewer::pipelines::registration::OptimizePairwiseRegistration(), ccMesh::SimplifyQuadricDecimation(), ccMesh::SimplifyVertexClustering(), ccMesh::SubdivideLoop(), ccMesh::SubdivideMidpoint(), cloudViewer::io::WritePointCloudInMemoryToXYZ(), cloudViewer::io::WritePointCloudToPLY(), cloudViewer::io::WritePointCloudToPTS(), cloudViewer::io::WritePointCloudToXYZ(), cloudViewer::io::WritePointCloudToXYZN(), and cloudViewer::io::WritePointCloudToXYZRGB().

◆ getEigenPoints()

◆ getNextPoint()

template<class T >
const CCVector3* cloudViewer::PointCloudTpl< T >::getNextPoint ( )
inlineoverride

◆ getNumberOfScalarFields()

template<class T >
unsigned cloudViewer::PointCloudTpl< T >::getNumberOfScalarFields ( ) const
inline

Returns the number of associated (and active) scalar fields.

Returns
the number of active scalar fields

Referenced by ccPointCloud::append(), ccCloudLayersHelper::apply(), ccScalarFieldArithmeticsDlg::Apply(), CCCloudToDraco(), ccColorFromScalarDlg::ccColorFromScalarDlg(), ccRasterizeTool::ccRasterizeTool(), ccScalarFieldArithmeticsDlg::ccScalarFieldArithmeticsDlg(), masc::PointFeature::checkValidity(), qCanupoProcess::Classify(), ccRasterizeTool::convertGridToCloud(), ccRasterGrid::convertToCloud(), copyScalarFields(), ccPropertiesTreeDelegate::createEditor(), ccCropTool::Crop(), ccEntityAction::enhanceRGBWithIntensities(), ccPropertiesTreeDelegate::fillSFWithPointCloud(), ccRasterGrid::fillWith(), ccPointCloud::From(), ccDBRoot::gatherRecursiveInformation(), cc2smReader::getAsSM(), LasField::GetLASFields(), GetScalarFieldIndex(), ccCloudLayersHelper::getScalarFields(), BasePclModule::getSelectedAvailableScalarFields(), ccCompass::importFoliations(), ccCompass::importLineations(), ccPointCloudInterpolator::InterpolateScalarFieldsFrom(), ccEntityAction::interpolateSFs(), LasSaveDialog::LasSaveDialog(), VTKFilter::loadFile(), PlyFilter::loadFile(), PopulatePMFields(), PopulateSFCombo(), prepareCloud(), CommandSFConvertToRGB::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandRemoveSF::removeSF(), masc::PointFeature::retrieveField(), masc::Tools::RetrieveSF(), ccColorScaleEditorDialog::saveCurrentScale(), VTKFilter::saveToFile(), LASFilter::saveToFile(), SimpleBinFilter::saveToFile(), LASFWFFilter::saveToFile(), AsciiFilter::saveToFile(), and PclUtils::PCLVis::syncAllScalarFieldsToVTK().

◆ getPoint() [1/3]

template<class T >
const CCVector3* cloudViewer::PointCloudTpl< T >::getPoint ( unsigned  index) const
inlineoverride

Referenced by ccPolyline::add(), ccPointPairRegistrationDlg::addAlignedPoint(), ccPointPairRegistrationDlg::addReferencePoint(), ccPointCloud::append(), ccTrace::calculateOptimumSearchRadius(), ccPointPairRegistrationDlg::callHornRegistration(), qCanupoProcess::Classify(), G3Point::G3PointAction::cleanLabels(), cloud2binary(), G3Point::G3PointAction::cluster(), qVoxFallProcess::Compute(), ccCameraSensor::computeFrustumCorners(), ccCameraSensor::computeGlobalPlaneCoefficients(), ComputeM3C2DistForPoint(), DistanceMapGenerationTool::ComputeMinAndMaxLatitude_rad(), ccMesh::computePerVertexNormals(), DistanceMapGenerationTool::ComputeRadialDist(), DistanceMapGenerationTool::ComputeSurfacesAndVolumes(), contourPoly(), contourPoly2(), ConverFromTo(), DistanceMapGenerationTool::ConvertCloudToConical(), DistanceMapGenerationTool::ConvertCloudToCylindrical(), ccRasterGrid::convertToCloud(), vtk2cc::ConvertToPolyline(), DistanceMapGenerationTool::CreateMap(), ccCropTool::Crop(), ccGriddedTools::DetectParameters(), qCSF::doAction(), qHoughNormals::doAction(), ccGraphicalSegmentationTool::doActionUseExistingPolyline(), ccGraphicalSegmentationTool::doExportSegmentationPolyline(), ccTrace::drawMeOnly(), ccCameraSensor::drawMeOnly(), ccCompass::estimateP21(), ccCompass::estimateStrain(), ccCompass::estimateStructureNormals(), ccRasterizeTool::exportContourLines(), FastMarchingForFacetExtraction::ExtractPlanarFacets(), ccPointCloudLODThread::fillNode(), ccPointCloudLODThread::fillNode_flat(), cloudViewer::FPCSRegistrationTools::FindCongruentBases(), ccQuadric::Fit(), GrainsAsEllipsoids::fitEllipsoidToGrain(), colmap::mvs::GenerateCandidate(), get_subset(), cc2smReader::getAsPointNormal(), getCommonPtsIdx(), getDensity(), getMortarMaps(), cc2smReader::getOneOf(), ccCameraSensor::getOwnBB(), cc2smReader::getPclCloud2(), PointCloudWrapper< Real >::getPoint(), cc2smReader::getRawXYZ(), ccTrace::getSegmentCostGrad(), cc2smReader::getVtkPolyDataFromMeshCloud(), cc2smReader::getXYZ2(), GrainsAsEllipsoids::GrainsAsEllipsoids(), qM3C2Tools::GuessBestParams(), ccCompassImport::importFoliations(), ccCompass::importFoliations(), ccCompass::importLineations(), ccCompassImport::importLineations(), ccTrace::insertWaypoint(), G3Point::G3PointAction::CloudAdaptor::kdtree_get_pt(), ObjFilter::loadFile(), MainWindow::onItemPicked(), ccTrace::optimizeSegment(), optRotY(), ccFastMarchingForNormsDirection::OrientNormals(), DimScalarFieldWrapper::pointValue(), ccTracePolylineTool::polylineOverSampling(), masc::ContextBasedFeature::prepare(), CommandCSF::process(), ccPointListPickingDlg::processPickedPoint(), ccMesh::pushSubdivide(), RefinePointClassif(), ccPointPairRegistrationDlg::removeAlignedPoint(), ccPointPairRegistrationDlg::removeRefPoint(), ccMesh::RemoveVerticesByMask(), ResolveNormalsWithMST(), rotY(), ccGenericMesh::samplePoints(), LasSaver::saveNextPoint(), DxfFilter::saveToFile(), SimpleBinFilter::saveToFile(), LASFWFFilter::saveToFile(), G3Point::G3PointAction::segment(), ccMesh::SimplifyQuadricDecimation(), ccMesh::SubdivideLoop(), toTranslatedVector(), ccTracePolylineTool::updatePolyLineTip(), and G3Point::G3PointAction::wolman().

◆ getPoint() [2/3]

template<class T >
void cloudViewer::PointCloudTpl< T >::getPoint ( unsigned  index,
CCVector3 &  P 
) const
inlineoverride

◆ getPoint() [3/3]

template<class T >
void cloudViewer::PointCloudTpl< T >::getPoint ( unsigned  index,
double  P[3] 
) const
inlineoverride

◆ getPointPersistentPtr() [1/2]

template<class T >
const CCVector3* cloudViewer::PointCloudTpl< T >::getPointPersistentPtr ( unsigned  index) const
inline

◆ getPointPersistentPtr() [2/2]

◆ getPointPtr()

◆ getPoints() [1/2]

◆ getPoints() [2/2]

template<class T >
const std::vector<CCVector3>& cloudViewer::PointCloudTpl< T >::getPoints ( ) const
inline

◆ getPointScalarValue()

◆ getScalarField()

template<class T >
ScalarField* cloudViewer::PointCloudTpl< T >::getScalarField ( int  index) const
inline

Returns a pointer to a specific scalar field.

Parameters
indexa scalar field index
Returns
a pointer to a ScalarField structure, or 0 if the index is invalid.

Referenced by PclUtils::PCLVis::addScalarFieldToVTK(), ccPointCloud::append(), ccCloudLayersHelper::apply(), ccScalarFieldArithmeticsDlg::Apply(), ccTrace::buildCurvatureCost(), ccTrace::buildGradientCost(), CCCloudToDraco(), ccRasterizeTool::ccRasterizeTool(), ccCloudLayersHelper::changeCode(), qCanupoProcess::Classify(), masc::Classifier::classify(), qM3C2Process::Compute(), DistanceMapGenerationTool::ComputeRadialDist(), ccKdTree::convertCellIndexToSF(), ccVolumeCalcTool::ConvertGridToCloud(), ccVolumeCalcTool::convertGridToCloud(), ccRasterizeTool::convertGridToCloud(), ccEntityAction::convertNormalsTo(), ccRasterGrid::convertToCloud(), copyScalarFields(), ccCropTool::Crop(), ccComparisonDlg::determineBestOctreeLevel(), qPCV::doAction(), qSRA::doProjectCloudDistsInGrid(), ccEntityAction::enhanceRGBWithIntensities(), ccCompass::estimateStructureNormals(), masc::Classifier::evaluate(), GrainsAsEllipsoids::exportResultsAsCloud(), qFacets::extractFacets(), LasSaveDialog::fieldsToSave(), LasExtraScalarFieldCard::fillField(), ccRasterGrid::fillWith(), TreeIso::Final_seg_pcd(), G3Point::G3PointAction::fit(), ccPointCloud::From(), ccRasterizeTool::generateHillshade(), cc2smReader::getAsSM(), masc::Tools::GetClassificationSF(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::getCurrentInScalarField(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::getCurrentOutScalarField(), cc2smReader::getFloatScalarField(), LasField::GetLASFields(), getMortarMaps(), GetScalarField(), ccTrace::getSegmentCostCurve(), ccTrace::getSegmentCostGrad(), GetSource(), cc2smReader::getvtkScalars(), LasSaveDialog::handleComboBoxChange(), ccCompassImport::importFoliations(), ccCompass::importFoliations(), ccCompass::importLineations(), ccCompassImport::importLineations(), ccEntityAction::importToSF(), TreeIso::Init_seg_pcd(), TreeIso::Intermediate_seg_pcd(), ccPointCloudInterpolator::InterpolateScalarFieldsFrom(), PlyFilter::loadFile(), LasExtraScalarField::MatchExtraBytesToScalarFields(), ccCloudLayersHelper::mouseMove(), ccCloudLayersHelper::moveItem(), ccTrace::optimizePath(), ccGenericPointCloud::pointPicking(), masc::Feature::PrepareSF(), PCVCommand::Process(), CommandSFRename::process(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::renameScalarField(), ResolveNormalsWithMST(), ccCloudLayersHelper::restoreState(), masc::PointFeature::retrieveField(), masc::Tools::RetrieveSF(), ccColorScaleEditorDialog::saveCurrentScale(), SaveScan(), ccCloudLayersHelper::saveState(), SimpleBinFilter::saveToFile(), VTKFilter::saveToFile(), LASFilter::saveToFile(), LASFWFFilter::saveToFile(), AsciiFilter::saveToFile(), LasDetails::SelectBestVersion(), ccEntityAction::sfAddIdField(), ccColorFromScalarDlg::updateChannel(), ccColorFromScalarDlg::updateSpinBoxLimits(), and G3Point::G3PointAction::wolman().

◆ getScalarFieldIndexByName()

template<class T >
int cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName ( const char *  name) const
inline

Returns the index of a scalar field represented by its name.

Parameters
namea scalar field name
Returns
an index (-1 if the scalar field couldn't be found)

Referenced by ccRasterizeTool::activeLayerChanged(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::addScalarField(), ccScalarFieldArithmeticsDlg::Apply(), ccComparisonDlg::applyAndExit(), ccLibAlgorithms::ApplyCCLibAlgorithm(), ccComparisonDlg::cancelAndExit(), cc2smReader::checkIfFieldExists(), masc::Feature::CheckSFExistence(), masc::PointFeature::checkValidity(), qCanupoProcess::Classify(), masc::Classifier::classify(), qVoxFallProcess::Compute(), ccComparisonDlg::computeApproxDistances(), ccComparisonDlg::computeDistances(), ccLibAlgorithms::ComputeGeomCharacteristic(), DistanceMapGenerationTool::ComputeRadialDist(), ccKdTree::convertCellIndexToSF(), ccRasterizeTool::convertGridToCloud(), ccEntityAction::convertNormalsTo(), ccRasterGrid::convertToCloud(), pcl2cc::CopyScalarField(), copyScalarFields(), ccMeasurementDevice::deleteScalarFieldFromCloud(), ccComparisonDlg::determineBestOctreeLevel(), qPCV::doAction(), qSRA::doProjectCloudDistsInGrid(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::enableScalarField(), ccEntityAction::enhanceRGBWithIntensities(), ccCompass::estimateStrain(), masc::Classifier::evaluate(), qFacets::extractFacets(), LasSaveDialog::fieldsToSave(), LasExtraScalarFieldCard::fillField(), TreeIso::Final_seg_pcd(), G3Point::G3PointAction::fit(), ccPointCloud::From(), ccRasterizeTool::generateHillshade(), masc::Tools::GetClassificationSF(), ccEntityAction::GetFirstAvailableSFName(), cc2smReader::getFloatScalarField(), G3Point::G3PointAction::GetG3PointAction(), getMortarMaps(), GetScalarFieldIndex(), ccTrace::getSegmentCostCurve(), ccTrace::getSegmentCostGrad(), GetSource(), LasSaveDialog::handleComboBoxChange(), BasePclModule::hasSelectedScalarField(), ccRegistrationTools::ICP(), ccCompass::importFoliations(), ccCompass::importLineations(), ccEntityAction::importToSF(), TreeIso::Init_seg_pcd(), TreeIso::Intermediate_seg_pcd(), ccPointCloudInterpolator::InterpolateScalarFieldsFrom(), ccTrace::isCurvaturePrecomputed(), ccTrace::isGradientPrecomputed(), VTKFilter::loadFile(), LoadScan(), LasExtraScalarField::MatchExtraBytesToScalarFields(), ccTrace::optimizePath(), ccFastMarchingForNormsDirection::OrientNormals(), ccGenericPointCloud::pointPicking(), masc::ContextBasedFeature::prepare(), masc::Feature::PrepareSF(), PCVCommand::Process(), CommandExtractCCs::process(), CommandStatTest::process(), CommandSFRename::process(), SFCollector::releaseSFs(), RemoveScalarField(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::renameScalarField(), ResolveNormalsWithMST(), masc::Tools::RetrieveSF(), ccEntityAction::rgbGaussianFilter(), SaveScan(), LASFWFFilter::saveToFile(), LasDetails::SelectBestVersion(), ccEntityAction::sfAddIdField(), ccEntityAction::sfGaussianFilter(), ccEntityAction::statisticalTest(), and G3Point::G3PointAction::wolman().

◆ getScalarFieldName()

◆ invalidateBoundingBox()

template<class T >
virtual void cloudViewer::PointCloudTpl< T >::invalidateBoundingBox ( )
inlinevirtual

Invalidates bounding box.

Bounding box will be recomputed next time a request is made to 'getBoundingBox'.

Reimplemented in ccPointCloud.

Referenced by cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::reset().

◆ isScalarFieldEnabled()

template<class T >
bool cloudViewer::PointCloudTpl< T >::isScalarFieldEnabled ( ) const
inlineoverride

◆ placeIteratorAtBeginning()

template<class T >
void cloudViewer::PointCloudTpl< T >::placeIteratorAtBeginning ( )
inlineoverride

◆ point() [1/2]

◆ point() [2/2]

template<class T >
const CCVector3* cloudViewer::PointCloudTpl< T >::point ( unsigned  index) const
inlineprotected

Returns const access to a given point.

WARNING: index must be valid

Parameters
indexpoint index
Returns
pointer on point stored data

◆ renameScalarField()

template<class T >
bool cloudViewer::PointCloudTpl< T >::renameScalarField ( int  index,
const char *  newName 
)
inline

Renames a specific scalar field.

Warning: name must not be already given to another SF!

Parameters
indexscalar field index
newNamenew name
Returns
success

Referenced by ccComparisonDlg::applyAndExit().

◆ reserve()

◆ reset()

template<class T >
void cloudViewer::PointCloudTpl< T >::reset ( )
inline

◆ resize()

template<class T >
virtual bool cloudViewer::PointCloudTpl< T >::resize ( unsigned  newCount)
inlinevirtual

Resizes the point database.

The cloud database is resized with the specified size. If the new size is smaller, the overflooding points will be deleted. If its greater, the database is filled with blank points (warning, the PointCloud::addPoint method will insert points after those ones).

Parameters
newNumberOfPointsthe new number of points
Returns
true if the method succeeds, false otherwise

Reimplemented in ccPointCloud, ccSymbolCloud, and cloudViewer::PointCloud.

Referenced by ccPointCloud::shrinkToFit().

◆ setCurrentInScalarField()

◆ setCurrentOutScalarField()

◆ setCurrentScalarField()

◆ setEigenPoint()

template<class T >
void cloudViewer::PointCloudTpl< T >::setEigenPoint ( size_t  index,
const Eigen::Vector3d &  point 
)
inline

◆ setEigenPoints()

template<class T >
void cloudViewer::PointCloudTpl< T >::setEigenPoints ( const std::vector< Eigen::Vector3d > &  points)
inline

◆ setPoint()

◆ setPointScalarValue()

◆ size()

template<class T >
unsigned cloudViewer::PointCloudTpl< T >::size ( ) const
inlineoverride

Referenced by ccPolyline::add(), ccPointPairRegistrationDlg::addAlignedPoint(), ccMesh::addEigenVertices(), qCanupo2DViewDialog::addOrSelectPoint(), ecvTools::AddPointCloud(), ccGraphicalSegmentationTool::addPointToPolyline(), ccPointPairRegistrationDlg::addReferencePoint(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::addScalarField(), PclUtils::PCLVis::addScalarFieldToVTK(), AddVertex(), ccPointCloud::append(), cloudViewer::io::AutoReadEntity(), ccTrace::bakePathToScalarField(), BallPivoting::BallPivoting(), ccTrace::buildCurvatureCost(), ccTrace::buildGradientCost(), G3Point::G3PointAction::buildStacksFromG3PointLabelSF(), ccTrace::calculateOptimumSearchRadius(), ccPointPairRegistrationDlg::callHornRegistration(), cc2smReader::cc2smReader(), ccWaveDialog::ccWaveDialog(), cc2smReader::checkIfFieldExists(), masc::ContextBasedFeature::checkValidity(), MeshWrapper< Real >::checkVertexCapacity(), qCanupoProcess::Classify(), masc::Classifier::classify(), cloud2binary(), qM3C2Process::Compute(), cloudViewer::geometry::Qhull::ComputeConvexHull(), ccComparisonDlg::computeDistances(), ComputeFeatures(), cloudViewer::utility::ComputeFPFHFeature(), ccCameraSensor::computeGlobalPlaneCoefficients(), ComputeKmeansClustering(), DistanceMapGenerationTool::ComputeMinAndMaxLatitude_rad(), DistanceMapGenerationTool::ComputeRadialDist(), cloudViewer::utility::ComputeSPFHFeature(), ccEntityAction::computeStatParams(), DistanceMapGenerationTool::ComputeSurfacesAndVolumes(), cloudViewer::visualization::rendering::PointCloudBuffersBuilder::ConstructBuffers(), contourPoly(), ConverFromTo(), convert(), DistanceMapGenerationTool::ConvertCloudToConical(), DistanceMapGenerationTool::ConvertCloudToCylindrical(), cloudViewer::geometry::Octree::ConvertFromPointCloud(), ccRasterizeTool::convertGridToCloud(), DistanceMapGenerationTool::ConvertMapToCloud(), ccRasterGrid::convertToCloud(), vtk2cc::ConvertToMultiPolylines(), vtk2cc::ConvertToPolyline(), copyRGBColors(), copyScalarFields(), cloudViewer::geometry::TetraMesh::CreateFromPointCloud(), cloudViewer::geometry::LineSet::CreateFromPointCloudCorrespondences(), cloudViewer::geometry::VoxelGrid::CreateFromPointCloudWithinBounds(), DistanceMapGenerationTool::CreateMap(), ccPolyline::createNewPolylinesFromSelection(), ccCropTool::Crop(), qCSF::doAction(), qPoissonRecon::doAction(), qHoughNormals::doAction(), qCanupoPlugin::doTrainAction(), ccCameraSensor::drawMeOnly(), ccAlignDlg::estimateDelta(), ccCompass::estimateP21(), ccCompass::estimateStrain(), ccCompass::estimateStructureNormals(), masc::Classifier::evaluate(), ccRasterizeTool::exportContourLines(), GrainsAsEllipsoids::exportResultsAsCloud(), cvSelectionExporter::exportToPointCloud(), qFacets::extractFacets(), FastMarchingForFacetExtraction::ExtractPlanarFacets(), cloudViewer::pipelines::integration::UniformTSDFVolume::ExtractTriangleMesh(), cloudViewer::pipelines::integration::ScalableTSDFVolume::ExtractTriangleMesh(), cloudViewer::pipelines::registration::FastGlobalRegistrationBasedOnFeatureMatching(), ccMesh::FilterSharpen(), ccMesh::FilterSmoothLaplacian(), ccMesh::FilterSmoothLaplacianHelper(), ccMesh::FilterSmoothSimple(), ccMesh::FilterSmoothTaubin(), TreeIso::Final_seg_pcd(), cloudViewer::FPCSRegistrationTools::FindCongruentBases(), GrainsAsEllipsoids::fitEllipsoidToGrain(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::forEach(), ccDBRoot::gatherRecursiveInformation(), ccRasterizeTool::generateHillshade(), cc2smReader::getAsPointNormal(), cc2smReader::getAsSM(), G3Point::G3PointAction::getBorders(), ecvTools::GetClousterGroup(), PointCloudWrapper< Real >::getColor(), cc2smReader::getColors(), getCommonPtsIdx(), cc2smReader::getFloatScalarField(), GetKeyCluster(), getMortarMaps(), PointCloudWrapper< Real >::getNormal(), cc2smReader::getNormals(), cc2smReader::getOneOf(), cvDistanceTool::getOutput(), cvProtractorTool::getOutput(), ccCameraSensor::getOwnBB(), PointCloudWrapper< Real >::getPoint(), ecvTools::GetPolylines(), cc2smReader::getRawXYZ(), cloudViewer::pipelines::registration::GetRegistrationResultAndCorrespondences(), cvViewSelectionManager::getSourcePointCloud(), cc2smReader::getvisibilityNum(), cc2smReader::getvtkScalars(), cc2smReader::getXYZ2(), qM3C2Tools::GuessBestParams(), LasWaveformSaver::handlePoint(), LasScalarFieldLoader::handleRGBValue(), ccCommandLineParser::importFile(), ccCompassImport::importFoliations(), ccCompass::importFoliations(), ccCompass::importLineations(), ccCompassImport::importLineations(), ImportSourceVertices(), STEPFilter::importStepFile(), ccEntityAction::importToSF(), StereogramWidget::init(), ccGenericPrimitive::init(), TreeIso::Init_seg_pcd(), TreeIso::Intermediate_seg_pcd(), ccPointCloudInterpolator::InterpolateScalarFieldsFrom(), G3Point::G3PointAction::CloudAdaptor::kdtree_get_point_count(), cloudViewer::t::geometry::LegacySelectByIndex(), AsciiFilter::loadCloudFromFormatedAsciiStream(), SinusxFilter::loadFile(), DRCFilter::loadFile(), LASFilter::loadFile(), VTKFilter::loadFile(), ObjFilter::loadFile(), PTXFilter::loadFile(), CSVMatrixFilter::loadFile(), SalomeHydroFilter::loadFile(), STLFilter::loadFile(), LASFWFFilter::loadFile(), RDBFilter::loadFile(), DistanceMapGenerationDlg::loadOverlaySymbols(), LasWaveformLoader::loadWaveform(), main(), G3Point::G3PointAction::merge(), MergeOldTriangles(), ccCloudLayersHelper::mouseMove(), ccColorFromScalarDlg::onApply(), ccTracePolylineTool::onItemPicked(), MainWindow::onItemPicked(), ccPointPairRegistrationDlg::onPointCountChanged(), ccGenericPrimitive::operator+=(), ccTrace::optimizeSegment(), optRotY(), ccMinimumSpanningTreeForNormsDirection::OrientNormals(), ccFastMarchingForNormsDirection::OrientNormals(), ccGraphicalSegmentationTool::pauseSegmentationMode(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::point(), ccTracePolylineTool::polylineOverSampling(), masc::CorePoints::prepare(), masc::ContextBasedFeature::prepare(), masc::Feature::PrepareSF(), CommandCrossSection::process(), CommandCSF::process(), CommandFilterBySFValue::process(), CommandSampleMesh::process(), ccCloudLayersHelper::projectCloud(), ccMesh::pushSubdivide(), masc::Tools::RandomSubset(), cloudViewer::io::ReadPointCloud(), cloudViewer::io::ReadTriangleMeshFromOBJ(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::pipelines::registration::RegistrationRANSACBasedOnFeatureMatching(), ccPointPairRegistrationDlg::removeAlignedPoint(), ccPointPairRegistrationDlg::removeRefPoint(), ccMesh::RemoveVerticesByMask(), ResolveNormalsWithMST(), ccCloudLayersHelper::restoreState(), masc::PointFeature::retrieveField(), rotY(), ccPointCloudLODThread::run(), ccGenericMesh::samplePoints(), LasSaver::saveNextPoint(), SaveScan(), ccCloudLayersHelper::saveState(), DxfFilter::saveToFile(), SimpleBinFilter::saveToFile(), PcdFilter::saveToFile(), LASFWFFilter::saveToFile(), G3Point::G3PointAction::segment(), cloudViewer::ModelViewerWidget::SelectObject(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::setEigenPoint(), ecvFilterByLabelDlg::setInputEntity(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::setPoint(), ccCloudLayersHelper::setVisible(), ccEntityAction::sfAddIdField(), ccEntityAction::sfConvertToRandomRGB(), ccComparisonDlg::showHisto(), ccPointCloud::shrinkToFit(), ccMesh::SimplifyQuadricDecimation(), ccMesh::SimplifyVertexClustering(), PointCloudWrapper< Real >::size(), masc::CorePoints::size(), NormDipAndDipDirFieldWrapper::size(), DimScalarFieldWrapper::size(), ColorScalarFieldWrapper::size(), ccPolyline::smoothChaikin(), ecvPoissonReconDlg::start(), ecvFilterByLabelDlg::start(), ccMesh::SubdivideLoop(), ccMesh::SubdivideMidpoint(), colmap::mvs::MvsTexturing::TextureMesh(), toTranslatedVector(), masc::Classifier::train(), ccMesh::TriangulateTwoPolylines(), ccPointPairRegistrationDlg::unstackAligned(), ccPointPairRegistrationDlg::unstackRef(), ccPointPairRegistrationDlg::updateAlignInfo(), StereogramDialog::updateFacetsFilter(), cloudViewer::visualization::VisualizerWithVertexSelection::UpdateGeometry(), GrainsAsEllipsoids::updateMeshAndLineSet(), ccGraphicalSegmentationTool::updatePolyLine(), ccTracePolylineTool::updatePolyLineTip(), DistanceMapGenerationDlg::updateZoom(), G3Point::G3PointAction::wolman(), cloudViewer::io::WritePointCloud(), cloudViewer::io::WritePointCloudInMemoryToXYZ(), cloudViewer::io::WritePointCloudToPLY(), cloudViewer::io::WritePointCloudToPTS(), cloudViewer::io::WritePointCloudToXYZ(), cloudViewer::io::WritePointCloudToXYZN(), and cloudViewer::io::WritePointCloudToXYZRGB().

◆ swapPoints()

template<class T >
virtual void cloudViewer::PointCloudTpl< T >::swapPoints ( unsigned  firstIndex,
unsigned  secondIndex 
)
inlineprotectedvirtual

Swaps two points (and their associated scalar values!)

Reimplemented in ccPointCloud.

Member Data Documentation

◆ m_bbox

◆ m_currentInScalarFieldIndex

◆ m_currentOutScalarFieldIndex

◆ m_currentPointIndex

◆ m_points

◆ m_scalarFields


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