ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvCommandCrossSection.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
11 
12 class QString;
13 class QXmlStreamAttributes;
14 
17 
18  bool process(ccCommandLineInterface& cmd) override;
19 
20 private:
21  bool readVector(const QXmlStreamAttributes& attributes,
22  CCVector3& P,
23  QString element,
24  const ccCommandLineInterface& cmd);
25 };
s_xmlCloudCompare
static const QString s_xmlCloudCompare("CloudCompare")
COMMAND_CROSS_SECTION
constexpr char COMMAND_CROSS_SECTION[]
Definition: ecvCommandCrossSection.cpp:21
filename
std::string filename
Definition: PointCloudIO.cpp:47
ecvCropTool.h
cloudViewer::BoundingBoxTpl::getCenter
Vector3Tpl< T > getCenter() const
Returns center.
Definition: BoundingBox.h:164
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
ccMesh::size
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMesh.cpp:2143
s_xmlACloudViewer
static const QString s_xmlACloudViewer("ACloudViewer")
ccCommandLineInterface::clouds
virtual std::vector< CLCloudDesc > & clouds()
Currently opened point clouds and their filename.
Definition: ecvCommandLineInterface.cpp:133
ccCommandLineInterface::error
virtual bool error(const QString &message) const =0
ccBBox
Bounding box structure.
Definition: ecvBBox.h:25
cloudViewer::PointCloudTpl::size
unsigned size() const override
Definition: PointCloudTpl.h:38
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
ccHObject::Container
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
CCVector3
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
ccCommandLineInterface::meshes
virtual std::vector< CLMeshDesc > & meshes()
Currently opened meshes and their filename.
Definition: ecvCommandLineInterface.cpp:139
result
core::Tensor result
Definition: VtkUtils.cpp:76
ecvCommandLineInterface.h
size
int size
Definition: FileIOFactory.cpp:130
CommandLoad::process
bool process(ccCommandLineInterface &cmd) override
Main process.
Definition: ecvCommandLineCommands.cpp:544
Vector3Tpl< PointCoordinateType >
CommandCrossSection::process
bool process(ccCommandLineInterface &cmd) override
Main process.
Definition: ecvCommandCrossSection.cpp:26
CommandCrossSection::CommandCrossSection
CommandCrossSection()
Definition: ecvCommandCrossSection.cpp:23
CommandLoad
Definition: ecvCommandLineCommands.h:39
cloudViewer::BoundingBoxTpl::isValid
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
ccCommandLineInterface::removeClouds
virtual void removeClouds(bool onlyLast=false)=0
Removes all clouds (or only the last one ;)
ccCropTool::Crop
static ccHObject * Crop(ccHObject *entity, const ccBBox &box, bool inside=true, const ccGLMatrix *meshRotation=0)
Crops the input entity.
Definition: ecvCropTool.cpp:23
ecvMesh.h
ccCommandLineInterface::Command
Generic command interface.
Definition: ecvCommandLineInterface.h:130
ccCommandLineInterface::arguments
virtual QStringList & arguments()=0
Returns the list of arguments.
ccCommandLineInterface::print
virtual void print(const QString &message) const =0
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
ccCommandLineInterface::removeMeshes
virtual void removeMeshes(bool onlyLast=false)=0
Removes all meshes (or only the last one ;)
ccCommandLineInterface
Command line interface.
Definition: ecvCommandLineInterface.h:112
ecvHObjectCaster.h
CLCloudDesc
Loaded cloud description.
Definition: ecvCommandLineInterface.h:68
count
int count
Definition: FileIOFactory.cpp:132
ccMesh
Triangular mesh.
Definition: ecvMesh.h:35
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
ccHObject::getOwnBB
virtual ccBBox getOwnBB(bool withGLFeatures=false)
Returns the entity's own bounding-box.
Definition: ecvHObject.cpp:757
cloudViewer::BoundingBoxTpl::maxCorner
const Vector3Tpl< T > & maxCorner() const
Returns max corner (const)
Definition: BoundingBox.h:156
CLMeshDesc
Loaded mesh description.
Definition: ecvCommandLineInterface.h:90
CommandCrossSection
Definition: ecvCommandCrossSection.h:15
PointCoordinateType
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Tuple3Tpl::u
Type u[3]
Definition: CVGeom.h:139
ecvCommandCrossSection.h
cloudViewer::LessThanEpsilon
bool LessThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:23
ccCommandLineInterface::exportEntity
virtual QString exportEntity(CLEntityDesc &entityDesc, const QString &suffix=QString(), QString *outputFilename=nullptr, ccCommandLineInterface::ExportOptions options=ExportOption::NoOptions)=0
Exports a cloud or a mesh.
ccCommandLineInterface::warning
virtual void warning(const QString &message) const =0
ecvCommandLineCommands.h
cloudViewer::utility::ceil
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
cloudViewer::BoundingBoxTpl::minCorner
const Vector3Tpl< T > & minCorner() const
Returns min corner (const)
Definition: BoundingBox.h:154
name
std::string name
Definition: FileIOFactory.cpp:129