 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
19 #include <QSharedPointer>
21 #include <QStringList>
43 int _indexInFile = -1);
48 virtual const ccHObject* getEntity()
const = 0;
57 const QString& basename,
58 const QString&
path = QString());
78 const QString& basename,
100 const QString& basename,
123 ForceHierarchy = 0x4,
124 ForceNoTimestamp = 0x8
126 Q_DECLARE_FLAGS(ExportOptions, ExportOption)
135 Command(
const QString&
name,
const QString& keyword);
149 static bool IsCommand(
const QString& token,
const char* command);
158 virtual QString getExportFilename(
const CLEntityDesc& entityDesc,
159 QString extension = QString(),
160 QString suffix = QString(),
161 QString* baseOutputFilename =
nullptr,
162 bool forceNoTimestamp =
false)
const = 0;
168 const QString& suffix = QString(),
169 QString* outputFilename =
nullptr,
170 ccCommandLineInterface::ExportOptions options =
171 ExportOption::NoOptions) = 0;
178 virtual bool saveClouds(QString suffix = QString(),
179 bool allAtOnce =
false,
180 const QString* allAtOnceFileName =
nullptr) = 0;
187 virtual bool saveMeshes(QString suffix = QString(),
188 bool allAtOnce =
false,
189 const QString* allAtOnceFileName =
nullptr) = 0;
192 virtual void removeClouds(
bool onlyLast =
false) = 0;
195 virtual void removeMeshes(
bool onlyLast =
false) = 0;
198 virtual QStringList& arguments() = 0;
200 virtual const QStringList& arguments()
const = 0;
205 virtual QDialog* widgetParent();
237 virtual bool importFile(
243 virtual QString cloudExportFormat()
const = 0;
245 virtual QString cloudExportExt()
const = 0;
248 virtual QString meshExportFormat()
const = 0;
250 virtual QString meshExportExt()
const = 0;
253 virtual QString hierarchyExportFormat()
const = 0;
256 virtual QString hierarchyExportExt()
const = 0;
259 virtual void setCloudExportFormat(QString
format, QString ext) = 0;
261 virtual void setMeshExportFormat(QString
format, QString ext) = 0;
263 virtual void setHierarchyExportFormat(QString
format, QString ext) = 0;
267 virtual void print(
const QString& message)
const = 0;
268 virtual void warning(
const QString& message)
const = 0;
270 const QString& message)
const = 0;
274 virtual std::vector<CLCloudDesc>& clouds();
276 virtual const std::vector<CLCloudDesc>& clouds()
const;
279 virtual std::vector<CLMeshDesc>& meshes();
281 virtual const std::vector<CLMeshDesc>& meshes()
const;
285 void toggleSilentMode(
bool state);
287 bool silentMode()
const;
291 void toggleAutoSaveMode(
bool state);
294 bool autoSaveMode()
const;
298 void toggleAddTimestamp(
bool state);
301 bool addTimestamp()
const;
304 void setNumericalPrecision(
int p);
306 int numericalPrecision()
const;
310 bool nextCommandIsGlobalShift()
const;
@ FIRST_GLOBAL_SHIFT
Definition: ecvCommandLineInterface.h:225
std::string filename
Definition: PointCloudIO.cpp:47
CCVector3d customGlobalShift
Definition: ecvCommandLineInterface.h:230
#define CVPLUGIN_LIB_API
Definition: CVPluginAPI.h:15
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
CLLoadParameters m_loadingParameters
File loading parameters.
Definition: ecvCommandLineInterface.h:340
ExportOption
Definition: ecvCommandLineInterface.h:119
CL_ENTITY_TYPE
Definition: ecvCommandLineInterface.h:31
ccPointCloud * pc
Definition: ecvCommandLineInterface.h:69
QString basename
Definition: ecvCommandLineInterface.h:35
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
Generic loading parameters.
Definition: FileIOFilter.h:51
Global Shift options.
Definition: ecvCommandLineInterface.h:221
QString m_keyword
Command keyword.
Definition: ecvCommandLineInterface.h:145
static const std::string path
Definition: PointCloud.cpp:59
QSharedPointer< Command > Shared
Shared type.
Definition: ecvCommandLineInterface.h:132
QString path
Definition: ecvCommandLineInterface.h:36
QString m_name
Command name.
Definition: ecvCommandLineInterface.h:143
bool m_coordinatesShiftEnabled
Definition: ecvCommandLineInterface.h:213
bool m_autoSaveMode
Whether files should be automatically saved (after each process) or not.
Definition: ecvCommandLineInterface.h:331
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
Loaded entity description.
Definition: ecvCommandLineInterface.h:34
bool m_addTimestamp
Whether a timestamp should be automatically added to output files or not.
Definition: ecvCommandLineInterface.h:334
Generic mesh interface.
Definition: ecvGenericMesh.h:28
int indexInFile
Definition: ecvCommandLineInterface.h:37
Generic command interface.
Definition: ecvCommandLineInterface.h:130
@ AUTO_GLOBAL_SHIFT
Definition: ecvCommandLineInterface.h:224
@ NO_GLOBAL_SHIFT
Definition: ecvCommandLineInterface.h:223
virtual CL_ENTITY_TYPE getCLEntityType() const =0
CCVector3d m_coordinatesShift
Definition: ecvCommandLineInterface.h:214
Command line interface.
Definition: ecvCommandLineInterface.h:112
int m_precision
Default numerical precision for ASCII output.
Definition: ecvCommandLineInterface.h:337
Loaded cloud description.
Definition: ecvCommandLineInterface.h:68
Definition: ecvCommandLineInterface.h:209
QSharedPointer< FileIOFilter > Shared
Shared type.
Definition: FileIOFilter.h:97
Mode
Definition: ecvCommandLineInterface.h:222
ccGenericMesh * mesh
Definition: ecvCommandLineInterface.h:91
Loaded group description.
Definition: ecvCommandLineInterface.h:53
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Loaded mesh description.
Definition: ecvCommandLineInterface.h:90
std::vector< CLCloudDesc > m_clouds
Currently opened point clouds and their filename.
Definition: ecvCommandLineInterface.h:322
virtual ccHObject * getEntity()=0
std::vector< CLMeshDesc > m_meshes
Currently opened meshes and their filename.
Definition: ecvCommandLineInterface.h:325
ccHObject * groupEntity
Definition: ecvCommandLineInterface.h:54
std::string name
Definition: FileIOFactory.cpp:129
bool m_silentMode
Silent mode.
Definition: ecvCommandLineInterface.h:328