![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Command line interface. More...
#include <ecvCommandLineInterface.h>


Classes | |
| struct | CLLoadParameters |
| struct | Command |
| Generic command interface. More... | |
| struct | GlobalShiftOptions |
| Global Shift options. More... | |
Public Types | |
| enum class | ExportOption { NoOptions = 0x0 , ForceCloud = 0x1 , ForceMesh = 0x2 , ForceHierarchy = 0x4 , ForceNoTimestamp = 0x8 } |
Public Member Functions | |
| ccCommandLineInterface () | |
| Default constructor. More... | |
| virtual | ~ccCommandLineInterface ()=default |
| virtual bool | registerCommand (Command::Shared command)=0 |
| Registers a new command. More... | |
| virtual QString | getExportFilename (const CLEntityDesc &entityDesc, QString extension=QString(), QString suffix=QString(), QString *baseOutputFilename=nullptr, bool forceNoTimestamp=false) const =0 |
| Returns the name of a to-be-exported entity. More... | |
| virtual QString | exportEntity (CLEntityDesc &entityDesc, const QString &suffix=QString(), QString *outputFilename=nullptr, ccCommandLineInterface::ExportOptions options=ExportOption::NoOptions)=0 |
| Exports a cloud or a mesh. More... | |
| virtual bool | saveClouds (QString suffix=QString(), bool allAtOnce=false, const QString *allAtOnceFileName=nullptr)=0 |
| Saves all clouds. More... | |
| virtual bool | saveMeshes (QString suffix=QString(), bool allAtOnce=false, const QString *allAtOnceFileName=nullptr)=0 |
| Saves all meshes. More... | |
| virtual void | removeClouds (bool onlyLast=false)=0 |
| Removes all clouds (or only the last one ;) More... | |
| virtual void | removeMeshes (bool onlyLast=false)=0 |
| Removes all meshes (or only the last one ;) More... | |
| virtual QStringList & | arguments ()=0 |
| Returns the list of arguments. More... | |
| virtual const QStringList & | arguments () const =0 |
| Returns the list of arguments (const version) More... | |
| virtual ecvProgressDialog * | progressDialog () |
| Returns a (shared) progress dialog (if any is available) More... | |
| virtual QDialog * | widgetParent () |
| Returns a (widget) parent (if any is available) More... | |
| virtual CLLoadParameters & | fileLoadingParams () |
| File loading parameters. More... | |
| virtual bool | importFile (QString filename, const GlobalShiftOptions &globalShiftOptions, FileIOFilter::Shared filter=FileIOFilter::Shared(nullptr))=0 |
| Loads a file with a specific filter. More... | |
| virtual QString | cloudExportFormat () const =0 |
| Returns the current cloud(s) export format. More... | |
| virtual QString | cloudExportExt () const =0 |
| Returns the current cloud(s) export extension (warning: can be anything) More... | |
| virtual QString | meshExportFormat () const =0 |
| Returns the current mesh(es) export format. More... | |
| virtual QString | meshExportExt () const =0 |
| Returns the current mesh(es) export extension (warning: can be anything) More... | |
| virtual QString | hierarchyExportFormat () const =0 |
| Returns the current hierarchy(ies) export format. More... | |
| virtual QString | hierarchyExportExt () const =0 |
| virtual void | setCloudExportFormat (QString format, QString ext)=0 |
| Sets the current cloud(s) export format and extension. More... | |
| virtual void | setMeshExportFormat (QString format, QString ext)=0 |
| Sets the current mesh(es) export format and extension. More... | |
| virtual void | setHierarchyExportFormat (QString format, QString ext)=0 |
| Sets the current hierarchy(ies) export format and extension. More... | |
| virtual void | print (const QString &message) const =0 |
| virtual void | warning (const QString &message) const =0 |
| virtual bool | error (const QString &message) const =0 |
| virtual std::vector< CLCloudDesc > & | clouds () |
| Currently opened point clouds and their filename. More... | |
| virtual const std::vector< CLCloudDesc > & | clouds () const |
| Currently opened point clouds and their filename (const version) More... | |
| virtual std::vector< CLMeshDesc > & | meshes () |
| Currently opened meshes and their filename. More... | |
| virtual const std::vector< CLMeshDesc > & | meshes () const |
| Currently opened meshes and their filename (const version) More... | |
| void | toggleSilentMode (bool state) |
| Toggles silent mode. More... | |
| bool | silentMode () const |
| Returns the silent mode. More... | |
| void | toggleAutoSaveMode (bool state) |
| bool | autoSaveMode () const |
| void | toggleAddTimestamp (bool state) |
| bool | addTimestamp () const |
| void | setNumericalPrecision (int p) |
| Sets the numerical precision. More... | |
| int | numericalPrecision () const |
| Returns the numerical precision. More... | |
| bool | nextCommandIsGlobalShift () const |
| Returns whether the nex command is the '-GLOBAL_SHIFT' option. More... | |
| bool | processGlobalShiftCommand (GlobalShiftOptions &options) |
Static Public Member Functions | |
| static bool | IsCommand (const QString &token, const char *command) |
| Test whether a command line token is a valid command keyword or not. More... | |
Protected Attributes | |
| std::vector< CLCloudDesc > | m_clouds |
| Currently opened point clouds and their filename. More... | |
| std::vector< CLMeshDesc > | m_meshes |
| Currently opened meshes and their filename. More... | |
| bool | m_silentMode |
| Silent mode. More... | |
| bool | m_autoSaveMode |
| Whether files should be automatically saved (after each process) or not. More... | |
| bool | m_addTimestamp |
| Whether a timestamp should be automatically added to output files or not. More... | |
| int | m_precision |
| Default numerical precision for ASCII output. More... | |
| CLLoadParameters | m_loadingParameters |
| File loading parameters. More... | |
Command line interface.
Definition at line 112 of file ecvCommandLineInterface.h.
|
strong |
| Enumerator | |
|---|---|
| NoOptions | |
| ForceCloud | |
| ForceMesh | |
| ForceHierarchy | |
| ForceNoTimestamp | |
Definition at line 119 of file ecvCommandLineInterface.h.
| ccCommandLineInterface::ccCommandLineInterface | ( | ) |
Default constructor.
Definition at line 113 of file ecvCommandLineInterface.cpp.
|
virtualdefault |
| bool ccCommandLineInterface::addTimestamp | ( | ) | const |
Returns whether a timestamp should be automatically added to output files or not
Definition at line 161 of file ecvCommandLineInterface.cpp.
References m_addTimestamp.
Referenced by CommandMatchBestFitPlane::process(), CommandICP::process(), CommandSaveClouds::process(), CommandSaveMeshes::process(), CommandRasterize::process(), and CommandVolume25D::process().
|
pure virtual |
Returns the list of arguments (const version)
Implemented in ccCommandLineParser.
|
pure virtual |
Returns the list of arguments.
Implemented in ccCommandLineParser.
Referenced by CommandChangeOutputFormat::getFileFormatFilter(), GetSFIndexOrName(), CommandRANSAC::makePathIfPossible(), nextCommandIsGlobalShift(), CommandSave::ParseFileNames(), PythonPluginCommand::Args::parseFrom(), CommandCrossSection::process(), CommandChangeCloudOutputFormat::process(), CommandChangeMeshOutputFormat::process(), CommandChangeHierarchyOutputFormat::process(), CommandLoad::process(), CommandOctreeNormal::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandCurvature::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandSFGradient::process(), CommandRoughness::process(), CommandApplyTransformation::process(), CommandSFColorScale::process(), CommandSFConvertToRGB::process(), CommandFilterBySFValue::process(), CommandComputeMeshVolume::process(), CommandSetActiveSF::process(), CommandRemoveSF::process(), CommandMatchBestFitPlane::process(), CommandOrientNormalsMST::process(), CommandSORFilter::process(), CommandSampleMesh::process(), CommandCrop::process(), CommandCoordToSF::process(), CommandCrop2D::process(), CommandColorBanding::process(), CommandDist::process(), CommandStatTest::process(), CommandDelaunayTri::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandChangePLYExportFormat::process(), CommandSaveClouds::process(), CommandSaveMeshes::process(), CommandAutoSave::process(), CommandLogFile::process(), CommandMoment::process(), CommandFeature::process(), CommandRasterize::process(), CommandVolume25D::process(), BundlerCommand::process(), FBXCommand::process(), CommandLoadLASFWF::process(), CommandSaveLASFWF::process(), Command3DMASCClassif::process(), CommandCanupoClassif::process(), CommandCSF::process(), CommandM3C2::process(), PCDCommand::process(), PCVCommand::process(), CommandRANSAC::process(), CommandTreeIso::process(), processGlobalShiftCommand(), and ReadDensityType().
| bool ccCommandLineInterface::autoSaveMode | ( | ) | const |
Returns whether files should be automatically saved (after each process) or not
Definition at line 155 of file ecvCommandLineInterface.cpp.
References m_autoSaveMode.
Referenced by CommandOctreeNormal::process(), CommandInvertNormal::process(), CommandConvertNormalsToDipAndDipDir::process(), CommandConvertNormalsToSFs::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandCurvature::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandSFGradient::process(), CommandRoughness::process(), CommandApplyTransformation::process(), CommandSFColorScale::process(), CommandSFConvertToRGB::process(), CommandFilterBySFValue::process(), CommandMergeMeshes::process(), CommandMergeClouds::process(), CommandMatchBBCenters::process(), CommandMatchBestFitPlane::process(), CommandOrientNormalsMST::process(), CommandSORFilter::process(), CommandExtractVertices::process(), CommandSampleMesh::process(), CommandCrop::process(), CommandCoordToSF::process(), CommandCrop2D::process(), CommandColorBanding::process(), CommandDist::process(), CommandStatTest::process(), CommandDelaunayTri::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandMoment::process(), CommandFeature::process(), CommandRasterize::process(), CommandVolume25D::process(), Command3DMASCClassif::process(), CommandCanupoClassif::process(), CommandM3C2::process(), PCVCommand::process(), and CommandRANSAC::process().
|
pure virtual |
Returns the current cloud(s) export extension (warning: can be anything)
Implemented in ccCommandLineParser.
Referenced by CommandChangeCloudOutputFormat::process(), CommandSaveClouds::process(), and CommandSaveLASFWF::process().
|
pure virtual |
Returns the current cloud(s) export format.
Implemented in ccCommandLineParser.
Referenced by CommandChangeCloudOutputFormat::process(), CommandSaveClouds::process(), and CommandSaveLASFWF::process().
|
virtual |
Currently opened point clouds and their filename.
Definition at line 133 of file ecvCommandLineInterface.cpp.
References m_clouds.
Referenced by define_ccCommandLine(), ccCommandLineParser::importFile(), CommandCrossSection::process(), CommandClearNormals::process(), CommandOctreeNormal::process(), CommandInvertNormal::process(), CommandConvertNormalsToDipAndDipDir::process(), CommandConvertNormalsToSFs::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandCurvature::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandSFGradient::process(), CommandRoughness::process(), CommandApplyTransformation::process(), CommandDropGlobalShift::process(), CommandSFColorScale::process(), CommandSFConvertToRGB::process(), CommandFilterBySFValue::process(), CommandMergeClouds::process(), CommandSetActiveSF::process(), CommandRemoveAllSFs::process(), CommandRemoveSF::process(), CommandRemoveRGB::process(), CommandRemoveNormals::process(), CommandRemoveScanGrids::process(), CommandMatchBBCenters::process(), CommandMatchBestFitPlane::process(), CommandOrientNormalsMST::process(), CommandSORFilter::process(), CommandExtractVertices::process(), CommandSampleMesh::process(), CommandCrop::process(), CommandCoordToSF::process(), CommandCrop2D::process(), CommandColorBanding::process(), CommandDist::process(), CommandCPS::process(), CommandStatTest::process(), CommandDelaunayTri::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandSaveClouds::process(), CommandMoment::process(), CommandFeature::process(), CommandRasterize::process(), CommandVolume25D::process(), Command3DMASCClassif::process(), CommandCanupoClassif::process(), CommandCSF::process(), CommandM3C2::process(), PCVCommand::process(), CommandRANSAC::process(), and CommandTreeIso::process().
|
virtual |
Currently opened point clouds and their filename (const version)
Definition at line 135 of file ecvCommandLineInterface.cpp.
References m_clouds.
|
pure virtual |
Implemented in ccCommandLineParser.
Referenced by CommandChangeOutputFormat::getFileFormatFilter(), CommandRANSAC::makePathIfPossible(), CommandSave::ParseFileNames(), PythonPluginCommand::Args::parseFrom(), CommandCrossSection::process(), CommandChangeCloudOutputFormat::process(), CommandChangeMeshOutputFormat::process(), CommandChangeHierarchyOutputFormat::process(), CommandLoad::process(), CommandClearNormals::process(), CommandOctreeNormal::process(), CommandInvertNormal::process(), CommandConvertNormalsToDipAndDipDir::process(), CommandConvertNormalsToSFs::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandCurvature::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandSFGradient::process(), CommandRoughness::process(), CommandApplyTransformation::process(), CommandDropGlobalShift::process(), CommandSFColorScale::process(), CommandSFConvertToRGB::process(), CommandFilterBySFValue::process(), CommandComputeMeshVolume::process(), CommandMergeMeshes::process(), CommandMergeClouds::process(), CommandSetActiveSF::process(), CommandRemoveSF::process(), CommandMatchBBCenters::process(), CommandMatchBestFitPlane::process(), CommandOrientNormalsMST::process(), CommandSORFilter::process(), CommandExtractVertices::process(), CommandSampleMesh::process(), CommandCrop::process(), CommandCoordToSF::process(), CommandCrop2D::process(), CommandColorBanding::process(), CommandDist::process(), CommandCPS::process(), CommandStatTest::process(), CommandDelaunayTri::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandChangePLYExportFormat::process(), CommandSaveClouds::process(), CommandSaveMeshes::process(), CommandAutoSave::process(), CommandLogFile::process(), CommandMoment::process(), CommandFeature::process(), CommandRasterize::process(), CommandVolume25D::process(), BundlerCommand::process(), FBXCommand::process(), CommandLoadLASFWF::process(), Command3DMASCClassif::process(), CommandCanupoClassif::process(), CommandCSF::process(), CommandM3C2::process(), PCDCommand::process(), PCVCommand::process(), PythonPluginCommand::process(), CommandRANSAC::process(), CommandTreeIso::process(), processGlobalShiftCommand(), and ReadDensityType().
|
pure virtual |
Exports a cloud or a mesh.
Implemented in ccCommandLineParser.
Referenced by define_ccCommandLine(), CommandCrossSection::process(), CommandOctreeNormal::process(), CommandInvertNormal::process(), CommandConvertNormalsToDipAndDipDir::process(), CommandConvertNormalsToSFs::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandFilterBySFValue::process(), CommandMergeMeshes::process(), CommandMergeClouds::process(), CommandMatchBBCenters::process(), CommandMatchBestFitPlane::process(), CommandOrientNormalsMST::process(), CommandSORFilter::process(), CommandExtractVertices::process(), CommandSampleMesh::process(), CommandCrop::process(), CommandCoordToSF::process(), CommandCrop2D::process(), CommandDist::process(), CommandCPS::process(), CommandStatTest::process(), CommandDelaunayTri::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandRasterize::process(), CommandVolume25D::process(), Command3DMASCClassif::process(), CommandCanupoClassif::process(), CommandCSF::process(), CommandM3C2::process(), PCVCommand::process(), and CommandRANSAC::process().
|
virtual |
File loading parameters.
Definition at line 129 of file ecvCommandLineInterface.cpp.
References m_loadingParameters.
Referenced by CommandForceNormalsComputation::process().
|
pure virtual |
Returns the name of a to-be-exported entity.
Implemented in ccCommandLineParser.
Referenced by define_ccCommandLine(), and CommandRasterize::process().
|
pure virtual |
Returns the current hierarchy(ies) export extension (warning: can be anything)
Implemented in ccCommandLineParser.
Referenced by CommandChangeHierarchyOutputFormat::process().
|
pure virtual |
Returns the current hierarchy(ies) export format.
Implemented in ccCommandLineParser.
Referenced by CommandChangeHierarchyOutputFormat::process().
|
pure virtual |
Loads a file with a specific filter.
Automatically dispatches the entities between the clouds and meshes sets.
Implemented in ccCommandLineParser.
Referenced by CommandLoad::process(), and CommandLoadLASFWF::process().
|
static |
Test whether a command line token is a valid command keyword or not.
Definition at line 119 of file ecvCommandLineInterface.cpp.
Referenced by nextCommandIsGlobalShift(), ccCommandLineParser::Parse(), CommandChangeCloudOutputFormat::process(), CommandChangeMeshOutputFormat::process(), CommandChangeHierarchyOutputFormat::process(), CommandLoad::process(), CommandOctreeNormal::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandComputeMeshVolume::process(), CommandMatchBestFitPlane::process(), CommandCrop::process(), CommandCrop2D::process(), CommandDist::process(), CommandDelaunayTri::process(), CommandICP::process(), CommandRasterize::process(), CommandVolume25D::process(), BundlerCommand::process(), FBXCommand::process(), Command3DMASCClassif::process(), CommandCanupoClassif::process(), CommandCSF::process(), PCVCommand::process(), and CommandTreeIso::process().
|
virtual |
Currently opened meshes and their filename.
Definition at line 139 of file ecvCommandLineInterface.cpp.
References m_meshes.
Referenced by define_ccCommandLine(), ccCommandLineParser::importFile(), CommandCrossSection::process(), CommandClearNormals::process(), CommandInvertNormal::process(), CommandApplyTransformation::process(), CommandDropGlobalShift::process(), CommandComputeMeshVolume::process(), CommandMergeMeshes::process(), CommandRemoveAllSFs::process(), CommandRemoveSF::process(), CommandRemoveRGB::process(), CommandRemoveNormals::process(), CommandRemoveScanGrids::process(), CommandMatchBBCenters::process(), CommandMatchBestFitPlane::process(), CommandExtractVertices::process(), CommandSampleMesh::process(), CommandCrop::process(), CommandColorBanding::process(), CommandDist::process(), CommandDelaunayTri::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandSaveMeshes::process(), CommandRasterize::process(), CommandVolume25D::process(), PCVCommand::process(), and CommandRANSAC::process().
|
virtual |
Currently opened meshes and their filename (const version)
Definition at line 141 of file ecvCommandLineInterface.cpp.
References m_meshes.
|
pure virtual |
Returns the current mesh(es) export extension (warning: can be anything)
Implemented in ccCommandLineParser.
Referenced by CommandChangeMeshOutputFormat::process(), and CommandSaveMeshes::process().
|
pure virtual |
Returns the current mesh(es) export format.
Implemented in ccCommandLineParser.
Referenced by CommandChangeMeshOutputFormat::process(), and CommandSaveMeshes::process().
| bool ccCommandLineInterface::nextCommandIsGlobalShift | ( | ) | const |
Returns whether the nex command is the '-GLOBAL_SHIFT' option.
Definition at line 167 of file ecvCommandLineInterface.cpp.
References arguments(), and IsCommand().
Referenced by CommandLoad::process(), and CommandLoadLASFWF::process().
| int ccCommandLineInterface::numericalPrecision | ( | ) | const |
Returns the numerical precision.
Definition at line 165 of file ecvCommandLineInterface.cpp.
References m_precision.
Referenced by CommandChangeCloudOutputFormat::process(), CommandMatchBestFitPlane::process(), and CommandICP::process().
|
pure virtual |
Implemented in ccCommandLineParser.
Referenced by GetSFIndexOrName(), CommandRANSAC::makePathIfPossible(), CommandCrossSection::process(), CommandChangeCloudOutputFormat::process(), CommandChangeMeshOutputFormat::process(), CommandChangeHierarchyOutputFormat::process(), CommandLoad::process(), CommandClearNormals::process(), CommandOctreeNormal::process(), CommandInvertNormal::process(), CommandConvertNormalsToDipAndDipDir::process(), CommandConvertNormalsToSFs::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandCurvature::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandSFGradient::process(), CommandRoughness::process(), CommandApplyTransformation::process(), CommandDropGlobalShift::process(), CommandSFColorScale::process(), CommandSFConvertToRGB::process(), CommandFilterBySFValue::process(), CommandComputeMeshVolume::process(), CommandMergeMeshes::process(), CommandMergeClouds::process(), CommandSetActiveSF::process(), CommandRemoveSF::process(), CommandMatchBBCenters::process(), CommandMatchBestFitPlane::process(), CommandOrientNormalsMST::process(), CommandSORFilter::process(), CommandExtractVertices::process(), CommandSampleMesh::process(), CommandCrop::process(), CommandCoordToSF::process(), CommandCrop2D::process(), CommandColorBanding::process(), CommandDist::process(), CommandCPS::process(), CommandStatTest::process(), CommandDelaunayTri::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandAutoSave::process(), CommandMoment::process(), CommandFeature::process(), CommandRasterize::process(), CommandVolume25D::process(), BundlerCommand::process(), FBXCommand::process(), CommandLoadLASFWF::process(), Command3DMASCClassif::process(), CommandCanupoClassif::process(), CommandCSF::process(), CommandM3C2::process(), PCDCommand::process(), PCVCommand::process(), PythonPluginCommand::process(), CommandRANSAC::process(), and CommandTreeIso::process().
| bool ccCommandLineInterface::processGlobalShiftCommand | ( | GlobalShiftOptions & | options | ) |
Check the current command line argument stack against the 'COMMAND_OPEN_SHIFT_ON_LOAD' keyword and process the following commands if necessary
Definition at line 172 of file ecvCommandLineInterface.cpp.
References arguments(), ccCommandLineInterface::GlobalShiftOptions::AUTO_GLOBAL_SHIFT, ccCommandLineInterface::GlobalShiftOptions::CUSTOM_GLOBAL_SHIFT, ccCommandLineInterface::GlobalShiftOptions::customGlobalShift, error(), ccCommandLineInterface::GlobalShiftOptions::FIRST_GLOBAL_SHIFT, ccCommandLineInterface::GlobalShiftOptions::mode, ccCommandLineInterface::GlobalShiftOptions::NO_GLOBAL_SHIFT, size, Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by CommandLoad::process(), and CommandLoadLASFWF::process().
|
virtual |
Returns a (shared) progress dialog (if any is available)
Definition at line 124 of file ecvCommandLineInterface.cpp.
Referenced by CommandSubsample::process().
|
pure virtual |
Registers a new command.
Referenced by q3DMASCPlugin::registerCommands(), qCSF::registerCommands(), qPCV::registerCommands(), and PythonPlugin::registerCommands().
|
pure virtual |
Removes all clouds (or only the last one ;)
Implemented in ccCommandLineParser.
Referenced by CommandCrossSection::process(), CommandClear::process(), CommandClearClouds::process(), CommandPopClouds::process(), and CommandCSF::process().
|
pure virtual |
Removes all meshes (or only the last one ;)
Implemented in ccCommandLineParser.
Referenced by CommandCrossSection::process(), CommandMergeMeshes::process(), CommandExtractVertices::process(), CommandClear::process(), CommandClearMeshes::process(), and CommandPopMeshes::process().
|
pure virtual |
Saves all clouds.
| suffix | optional suffix |
| allAtOnce | whether to save all clouds in the same file or one cloud per file |
Implemented in ccCommandLineParser.
Referenced by define_ccCommandLine(), CommandCurvature::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandSFGradient::process(), CommandRoughness::process(), CommandApplyTransformation::process(), CommandSFColorScale::process(), CommandSFConvertToRGB::process(), CommandColorBanding::process(), CommandSaveClouds::process(), CommandMoment::process(), CommandFeature::process(), and CommandSaveLASFWF::process().
|
pure virtual |
Saves all meshes.
| suffix | optional suffix |
| allAtOnce | whether to save all meshes in the same file or one mesh per file |
Implemented in ccCommandLineParser.
Referenced by define_ccCommandLine(), CommandApplyTransformation::process(), CommandColorBanding::process(), and CommandSaveMeshes::process().
|
pure virtual |
Sets the current cloud(s) export format and extension.
Implemented in ccCommandLineParser.
Referenced by CommandChangeCloudOutputFormat::process(), CommandSaveClouds::process(), and CommandSaveLASFWF::process().
|
pure virtual |
Sets the current hierarchy(ies) export format and extension.
Implemented in ccCommandLineParser.
Referenced by CommandChangeHierarchyOutputFormat::process().
|
pure virtual |
Sets the current mesh(es) export format and extension.
Implemented in ccCommandLineParser.
Referenced by CommandChangeMeshOutputFormat::process(), and CommandSaveMeshes::process().
| void ccCommandLineInterface::setNumericalPrecision | ( | int | p | ) |
Sets the numerical precision.
Definition at line 163 of file ecvCommandLineInterface.cpp.
References m_precision.
| bool ccCommandLineInterface::silentMode | ( | ) | const |
Returns the silent mode.
Definition at line 149 of file ecvCommandLineInterface.cpp.
References m_silentMode.
Referenced by ccCommandLineParser::exportEntity(), CommandOctreeNormal::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandOrientNormalsMST::process(), CommandSORFilter::process(), CommandSampleMesh::process(), CommandStatTest::process(), CommandLogFile::process(), CommandRasterize::process(), CommandVolume25D::process(), Command3DMASCClassif::process(), CommandCanupoClassif::process(), CommandM3C2::process(), and CommandRANSAC::process().
| void ccCommandLineInterface::toggleAddTimestamp | ( | bool | state | ) |
Sets whether a timestamp should be automatically added to output files or not
Definition at line 157 of file ecvCommandLineInterface.cpp.
References m_addTimestamp.
Referenced by CommandSaveClouds::process(), CommandSaveMeshes::process(), and CommandSetNoTimestamp::process().
| void ccCommandLineInterface::toggleAutoSaveMode | ( | bool | state | ) |
Sets whether files should be automatically saved (after each process) or not
Definition at line 151 of file ecvCommandLineInterface.cpp.
References m_autoSaveMode.
Referenced by CommandAutoSave::process().
| void ccCommandLineInterface::toggleSilentMode | ( | bool | state | ) |
Toggles silent mode.
Must be called BEFORE calling start.
Definition at line 145 of file ecvCommandLineInterface.cpp.
References m_silentMode.
|
pure virtual |
Implemented in ccCommandLineParser.
Referenced by GetEmptyCellFillingStrategy(), GetProjectionType(), GetSFIndexOrName(), CommandCrossSection::process(), CommandChangeCloudOutputFormat::process(), CommandInvertNormal::process(), CommandConvertNormalsToDipAndDipDir::process(), CommandConvertNormalsToSFs::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandSFGradient::process(), CommandSFConvertToRGB::process(), CommandComputeMeshVolume::process(), CommandMergeMeshes::process(), CommandMergeClouds::process(), CommandSetActiveSF::process(), CommandRemoveSF::process(), CommandMatchBBCenters::process(), CommandMatchBestFitPlane::process(), CommandOrientNormalsMST::process(), CommandExtractVertices::process(), CommandCrop2D::process(), CommandColorBanding::process(), CommandDist::process(), CommandCPS::process(), CommandDelaunayTri::process(), CommandRasterize::process(), CommandVolume25D::process(), and CommandRANSAC::process().
|
virtual |
Returns a (widget) parent (if any is available)
Reimplemented in ccCommandLineParser.
Definition at line 126 of file ecvCommandLineInterface.cpp.
Referenced by CommandOctreeNormal::process(), CommandConvertNormalsToSFs::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandCurvature::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandSFGradient::process(), CommandRoughness::process(), CommandOrientNormalsMST::process(), CommandSORFilter::process(), CommandSampleMesh::process(), CommandDist::process(), CommandStatTest::process(), CommandICP::process(), CommandMoment::process(), CommandFeature::process(), CommandRasterize::process(), CommandVolume25D::process(), Command3DMASCClassif::process(), CommandCSF::process(), and CommandM3C2::process().
|
protected |
Whether a timestamp should be automatically added to output files or not.
Definition at line 334 of file ecvCommandLineInterface.h.
Referenced by addTimestamp(), ccCommandLineParser::getExportFilename(), and toggleAddTimestamp().
|
protected |
Whether files should be automatically saved (after each process) or not.
Definition at line 331 of file ecvCommandLineInterface.h.
Referenced by autoSaveMode(), and toggleAutoSaveMode().
|
protected |
Currently opened point clouds and their filename.
Definition at line 322 of file ecvCommandLineInterface.h.
Referenced by clouds(), ccCommandLineParser::importFile(), ccCommandLineParser::removeClouds(), and ccCommandLineParser::saveClouds().
|
protected |
File loading parameters.
Definition at line 340 of file ecvCommandLineInterface.h.
Referenced by fileLoadingParams(), and ccCommandLineParser::importFile().
|
protected |
Currently opened meshes and their filename.
Definition at line 325 of file ecvCommandLineInterface.h.
Referenced by ccCommandLineParser::importFile(), meshes(), ccCommandLineParser::removeMeshes(), and ccCommandLineParser::saveMeshes().
|
protected |
Default numerical precision for ASCII output.
Definition at line 337 of file ecvCommandLineInterface.h.
Referenced by numericalPrecision(), and setNumericalPrecision().
|
protected |
Silent mode.
Definition at line 328 of file ecvCommandLineInterface.h.
Referenced by silentMode(), and toggleSilentMode().