ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cc3DMouseManager.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 
10 // ##########################################################################
11 // # #
12 // # CLOUDVIEWER #
13 // # #
14 // # This program is free software; you can redistribute it and/or modify #
15 // # it under the terms of the GNU General Public License as published by #
16 // # the Free Software Foundation; version 2 or later of the License. #
17 // # #
18 // # This program is distributed in the hope that it will be useful, #
19 // # but WITHOUT ANY WARRANTY; without even the implied warranty of #
20 // # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
21 // # GNU General Public License for more details. #
22 // # #
23 // # COPYRIGHT: ACloudViewer project #
24 // # #
25 // ##########################################################################
26 
27 #include <QObject>
28 
29 #include "CVAppCommon.h"
30 
31 class QAction;
32 class QMenu;
33 
35 class Mouse3DInput;
36 
37 class CVAPPCOMMON_LIB_API cc3DMouseManager : public QObject {
38  Q_OBJECT
39 
40 public:
41  cc3DMouseManager(ecvMainAppInterface *appInterface, QObject *parent);
43 
45  QMenu *menu() { return m_menu; }
46 
47 private:
48  void enableDevice(bool state, bool silent);
49  void releaseDevice();
50 
51  void setupMenu();
52 
53  void on3DMouseKeyUp(int key);
54  void on3DMouseCMDKeyUp(int cmd);
55  void on3DMouseKeyDown(int key);
56  void on3DMouseCMDKeyDown(int cmd);
57  void on3DMouseMove(std::vector<float> &vec);
58  void on3DMouseReleased();
59 
60  ecvMainAppInterface *m_appInterface;
61 
62  Mouse3DInput *m3dMouseInput;
63 
64  QMenu *m_menu;
65  QAction *m_actionEnable;
66 };
CouldBeX
static bool CouldBeX(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:198
cloudViewer::Polyline::isClosed
bool isClosed() const
Returns whether the polyline is closed or not.
Definition: Polyline.h:26
s_lastSavedFileBinVersion
static short s_lastSavedFileBinVersion
Last saved file version.
Definition: BinFilter.cpp:49
FileIOFilter::SaveToFile
static CC_FILE_ERROR SaveToFile(ccHObject *entities, const QString &filename, const SaveParameters &parameters, Shared filter)
Definition: FileIOFilter.cpp:377
ecvColor::white
constexpr Rgb white(MAX, MAX, MAX)
CC_TOP_VIEW
@ CC_TOP_VIEW
Definition: CVConst.h:103
ImageFileFilter::GetSaveFilename
static QString GetSaveFilename(const QString &dialogTitle, const QString &baseName, const QString &imageSavePath, QWidget *parentWidget=nullptr)
Helper: select an output image filename.
Definition: ImageFileFilter.cpp:74
cc2DLabel::addPickedPoint
bool addPickedPoint(ccGenericPointCloud *cloud, unsigned pointIndex, bool entityCenter=false)
Adds a point to this label.
Definition: ecv2DLabel.cpp:400
ecvChunk.h
ccHObjectCaster::ToImage
static ccImage * ToImage(ccHObject *obj)
Definition: ecvHObjectCaster.cpp:257
ImageFileFilter.h
CleanMatrix
void CleanMatrix(ccGLMatrixd &mat)
Definition: PTXFilter.cpp:40
ecvFacet.h
cloudViewer::geometry::VoxelGrid::Clear
VoxelGrid & Clear()
Definition: VoxelGrid.cpp:39
ccPointCloud::addScalarField
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
CC_BOTTOM_VIEW
@ CC_BOTTOM_VIEW
Definition: CVConst.h:104
cc3DMouseManager::menu
QMenu * menu()
Gets the menu associated with the 3D mouse.
Definition: cc3DMouseManager.h:45
AsciiSaveDlg.h
FileIOFilter::IncreaseSesionCounter
static unsigned IncreaseSesionCounter()
Definition: FileIOFilter.cpp:142
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
ccPointCloud::deleteScalarField
void deleteScalarField(int index) override
Deletes a specific scalar field.
Definition: ecvPointCloud.cpp:3237
AsciiFilter::SetDefaultSkippedLineCount
static void SetDefaultSkippedLineCount(int count)
Sets the default number of skipped lines (at loading time)
Definition: AsciiFilter.cpp:43
color_num
long color_num
Definition: LineSetIO.cpp:31
ecvMaterial.h
CouldBeA
static bool CouldBeA(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:231
ccPointCloud::hasColors
bool hasColors() const override
Returns whether colors are enabled or not.
Definition: ecvPointCloud.cpp:1689
ecvShiftAndScaleCloudDlg::m_ui
Ui_GlobalShiftAndScaleDlg * m_ui
Associated UI.
Definition: ecvShiftAndScaleCloudDlg.h:163
facetElement::updatePointIndex
bool updatePointIndex(int maxIndex)
Updates point index to a global index starting from 0!
Definition: ObjFilter.cpp:401
ccFacet::setContour
void setContour(ccPolyline *poly)
Sets contour polyline.
Definition: ecvFacet.h:107
ccGenericMesh::materialsShown
virtual bool materialsShown() const
Sets whether textures/material should be displayed or not.
Definition: ecvGenericMesh.h:198
s_triIsQuad
std::vector< bool > s_triIsQuad
Definition: PlyFilter.cpp:536
TexCoords2D
2D texture coordinates
Definition: ecvAdvancedTypes.h:138
FileIOFilter::UnregisterAll
static void UnregisterAll()
Unregisters all filters.
Definition: FileIOFilter.cpp:204
ccMesh::removePerTriangleNormalIndexes
void removePerTriangleNormalIndexes()
Removes any per-triangle triplets of normal indexes.
Definition: ecvMesh.cpp:3323
cloudViewer::io::ReadPinholeCameraTrajectoryFromTUM
bool ReadPinholeCameraTrajectoryFromTUM(const std::string &filename, camera::PinholeCameraTrajectory &trajectory)
Definition: PinholeCameraTrajectoryIO.cpp:104
M_PI
constexpr double M_PI
Pi.
Definition: CVConst.h:19
ecvColor::RgbaTpl::g
Type g
Definition: ecvColorTypes.h:150
QtCompat::endl
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718
FileIO::applicationName
static QString applicationName()
Definition: FileIO.cpp:34
color_index
long color_index
Definition: VoxelGridIO.cpp:31
PlyOpenDlg::restoreContext
bool restoreContext(PlyLoadingContext *context, int &unassignedProps, int &mismatchProps)
Restore a previously saved configuration (for internal use)
Definition: PlyOpenDlg.cpp:224
ccSubMesh
A sub-mesh.
Definition: ecvSubMesh.h:19
CV_TYPES::IMAGE
@ IMAGE
Definition: CVTypes.h:114
ccHObject::filterChildren
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
Mouse3DInput::V3DK_PANZOOM
@ V3DK_PANZOOM
Definition: Mouse3DInput.h:87
ccHObject::detachChild
void detachChild(ccHObject *child)
Detaches a specific child.
Definition: ecvHObject.cpp:988
cloudAttributesDescriptor
Definition: AsciiFilter.cpp:467
ccMesh::hasTriNormals
bool hasTriNormals() const override
Returns whether the mesh has per-triangle normals.
Definition: ecvMesh.cpp:3589
filename
std::string filename
Definition: PointCloudIO.cpp:47
PTXFilter.h
ccGenericMesh::showNormals
void showNormals(bool state) override
Sets normals visibility.
Definition: ecvGenericMesh.cpp:44
ccArray::setValue
void setValue(size_t index, const Type &value)
Definition: ecvArray.h:102
AsciiHeaderColumns::A
static QString A()
Definition: AsciiOpenDlg.h:59
CouldBeNz
static bool CouldBeNz(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:243
AsciiSaveDlg::sfPrecision
int sfPrecision() const
Returns SF precision.
Definition: AsciiSaveDlg.cpp:100
VTKFilter::VTKFilter
VTKFilter()
Definition: VTKFilter.cpp:27
cloudViewer::io::ReadIJsonConvertibleFromJSON
bool ReadIJsonConvertibleFromJSON(const std::string &filename, cloudViewer::utility::IJsonConvertible &object)
Definition: IJsonConvertibleIO.cpp:78
cloudViewer::ReferenceCloud::reserve
virtual bool reserve(unsigned n)
Reserves some memory for hosting the point references.
Definition: ReferenceCloud.cpp:51
ccColorScalesManager::GREY
@ GREY
Definition: ecvColorScalesManager.h:32
ccObject::isKindOf
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
AsciiSaveDlg::m_ui
Ui_AsciiSaveDialog * m_ui
Associated UI.
Definition: AsciiSaveDlg.h:90
ccMaterial::Shared
QSharedPointer< ccMaterial > Shared
Shared type.
Definition: ecvMaterial.h:33
AsciiOpenDlg::UNKNOWN
@ UNKNOWN
Definition: AsciiOpenDlg.h:212
AsciiOpenDlg::CheckOpenSequence
static bool CheckOpenSequence(const Sequence &sequence, QString &errorMessage)
Checks the "opening" sequence as set by the user.
Definition: AsciiOpenDlg.cpp:1012
AsciiOpenDlg::setInput
void setInput(const QString &filename, QTextStream *stream=nullptr)
Sets the input filename or text stream.
Definition: AsciiOpenDlg.cpp:147
CouldBeScal
static bool CouldBeScal(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:257
scalar_cb
static int scalar_cb(p_ply_argument argument)
Definition: PlyFilter.cpp:713
cloudViewer::Delaunay2dMesh::TesselateContour
static Delaunay2dMesh * TesselateContour(const std::vector< CCVector2 > &contourPoints)
Definition: Delaunay2dMesh.cpp:397
rgb
normal_z rgb
Definition: my_point_types.h:168
CC_ISO_VIEW_1
@ CC_ISO_VIEW_1
Definition: CVConst.h:109
STLFilter::loadBinaryFile
CC_FILE_ERROR loadBinaryFile(QFile &fp, ccMesh *mesh, ccPointCloud *vertices, LoadParameters &parameters)
Custom load method for binary files.
Definition: STLFilter.cpp:682
ccDrawableObject::showNormals
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
cc2DLabel::setDisplayedIn2D
void setDisplayedIn2D(bool state)
Whether to display the label in 2D.
Definition: ecv2DLabel.h:114
CC_FERR_CANCELED_BY_USER
@ CC_FERR_CANCELED_BY_USER
Definition: FileIOFilter.h:30
ccSerializableObject::LoadedIDMap
QMultiMap< unsigned, unsigned > LoadedIDMap
Map of loaded unique IDs (old ID --> new ID)
Definition: ecvSerializableObject.h:61
CV_TYPES::CAMERA_SENSOR
@ CAMERA_SENSOR
Definition: CVTypes.h:118
cloudViewer::io::file_extension_to_trajectory_write_function
static const std::unordered_map< std::string, std::function< bool(const std::string &, const camera::PinholeCameraTrajectory &)> > file_extension_to_trajectory_write_function
Definition: PinholeCameraTrajectoryIO.cpp:47
ProgressReporters.h
cloudAttributesDescriptor::xCoordIndex
int xCoordIndex
Definition: AsciiFilter.cpp:472
ccPointCloud::invalidateBoundingBox
void invalidateBoundingBox() override
Invalidates bounding box.
Definition: ecvPointCloud.cpp:1706
FileSystem.h
AsciiOpenDlg
Dialog for configuration of ASCII files opening sequence.
Definition: AsciiOpenDlg.h:100
AsciiSaveDlg::enableSwapColorAndSF
void enableSwapColorAndSF(bool state)
Sets whether SF(s) and color should be swapped.
Definition: AsciiSaveDlg.cpp:112
cloudAttributesDescriptor::hasNorms
bool hasNorms
Definition: AsciiFilter.cpp:491
Vector3Tpl::normalize
void normalize()
Sets vector norm to unity.
Definition: CVGeom.h:428
FileIOFilter::setExportFileFilterStrings
void setExportFileFilterStrings(const QStringList &filterStrings)
Definition: FileIOFilter.cpp:90
ccArray::currentSize
unsigned currentSize() const
Definition: ecvArray.h:112
cloudViewer::NormalizedProgress::oneStep
bool oneStep()
Increments total progress value of a single unit.
Definition: NormalizedProgress.cpp:99
ecvColor::black
constexpr Rgb black(0, 0, 0)
QtCompat.h
ImageFileFilter::loadFile
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: ImageFileFilter.cpp:171
ccGenericMesh::getTriangleTexCoordinatesIndexes
virtual void getTriangleTexCoordinatesIndexes(unsigned triangleIndex, int &i1, int &i2, int &i3) const =0
Returns the triplet of tex coords indexes for a given triangle.
cloudAttributesDescriptor::cloudAttributesDescriptor
cloudAttributesDescriptor()
Definition: AsciiFilter.cpp:495
cloudViewer::geometry::VoxelGrid
VoxelGrid is a collection of voxels which are aligned in grid.
Definition: VoxelGrid.h:64
cloudViewer::io::ReadIJsonConvertible
bool ReadIJsonConvertible(const std::string &filename, cloudViewer::utility::IJsonConvertible &object)
Definition: IJsonConvertibleIO.cpp:122
AsciiHeaderColumns::Gf
static QString Gf()
Definition: AsciiOpenDlg.h:61
Mouse3DInput::V3DK_ROTATE
@ V3DK_ROTATE
Definition: Mouse3DInput.h:86
Mouse3DInput::V3DK_MENU
@ V3DK_MENU
Definition: Mouse3DInput.h:60
FileIOFilter::setImportExtensions
void setImportExtensions(const QStringList &extensions)
Definition: FileIOFilter.cpp:81
cloudViewer::io::WritePointCloudOption::print_progress
bool print_progress
Definition: FileIO.h:131
PlyOpenDlg::setSingleComboItems
void setSingleComboItems(const QStringList &singlePropsText)
Definition: PlyOpenDlg.cpp:100
x
normal_z x
Definition: my_point_types.h:165
cloudViewer::io::WriteOctree
bool WriteOctree(const std::string &filename, const geometry::Octree &octree)
Definition: OctreeIO.cpp:66
ccScalarField::computeMinAndMax
void computeMinAndMax() override
Determines the min and max values.
Definition: ecvScalarField.cpp:145
ccSubMesh::size
unsigned size() const override
Returns the number of triangles.
Definition: ecvSubMesh.h:85
ccPointCloud::getPointColor
const ecvColor::Rgb & getPointColor(unsigned pointIndex) const override
Returns color corresponding to a given point.
Definition: ecvPointCloud.cpp:1535
ccGBLSensor::getPitchStep
PointCoordinateType getPitchStep() const
Returns the lateral pitch step (in radians)
Definition: ecvGBLSensor.h:105
AsciiFilter::SetOutputSFPrecision
static void SetOutputSFPrecision(int prec)
Sets the default output scalar values precision (as saving time)
Definition: AsciiFilter.cpp:51
VTKFilter.h
CouldBeNy
static bool CouldBeNy(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:239
plyElement::elem
p_ply_element elem
Definition: PlyFilter.h:37
cloudViewer::io::file_extension_to_octree_read_function
static const std::unordered_map< std::string, std::function< bool(const std::string &, geometry::Octree &)> > file_extension_to_octree_read_function
Definition: OctreeIO.cpp:22
PlyOpenDlg::m_standardCombos
std::vector< QComboBox * > m_standardCombos
Standard comboboxes.
Definition: PlyOpenDlg.h:35
PlyLoadingContext::allProperties
QStringList allProperties
Definition: PlyOpenDlg.cpp:26
AsciiOpenDlg::ResetApplyAll
static void ResetApplyAll()
Resets the "apply all" flag (if set)
Definition: AsciiOpenDlg.cpp:1068
ccPlane::SetQuadTexture
static bool SetQuadTexture(ccMesh *quadMesh, QImage image, QString imageFilename=QString())
Sets an image as texture for a quad mesh.
Definition: ecvPlane.cpp:227
cloudViewer::io::ReadFeature
bool ReadFeature(const std::string &filename, utility::Feature &feature)
Definition: FeatureIO.cpp:57
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
AsciiHeaderColumns::Bf
static QString Bf()
Definition: AsciiOpenDlg.h:62
cloudViewer::ReferenceCloud::size
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
CV_TYPES::TEX_COORDS_ARRAY
@ TEX_COORDS_ARRAY
Definition: CVTypes.h:139
AsciiFilter::loadStream
CC_FILE_ERROR loadStream(QTextStream &stream, QString filenameOrTitle, qint64 dataSize, ccHObject &container, LoadParameters &parameters)
Loads an ASCII stream.
Definition: AsciiFilter.cpp:402
ccDepthBuffer::zBuff
std::vector< PointCoordinateType > zBuff
Z-Buffer grid.
Definition: ecvDepthBuffer.h:33
Mouse3DInput::sigOn3dmouseCMDKeyUp
void sigOn3dmouseCMDKeyUp(int virtualCMDCode)
cloudViewer::GenericMesh::size
virtual unsigned size() const =0
Returns the number of triangles.
ccGLMatrixTpl::inverse
ccGLMatrixTpl< T > inverse() const
Returns inverse transformation.
Definition: ecvGLMatrixTpl.h:1325
cloudViewer::VerticesIndexes::i2
unsigned i2
Definition: GenericIndexedMesh.h:19
FileIOFilter::FilterInfo::defaultExtension
QString defaultExtension
The default file extension (for export)
Definition: FileIOFilter.h:330
cloudViewer::GenericCloud::size
virtual unsigned size() const =0
Returns the number of points.
s_defaultGlobalShiftListFilename
static QString s_defaultGlobalShiftListFilename("global_shift_list.txt")
cloudViewer::io::WritePinholeCameraTrajectoryToJSON
bool WritePinholeCameraTrajectoryToJSON(const std::string &filename, const camera::PinholeCameraTrajectory &trajectory)
Definition: PinholeCameraTrajectoryIO.cpp:27
texCoords_cb
static int texCoords_cb(p_ply_argument argument)
Definition: PlyFilter.cpp:814
ccSerializableObject::DF_POINT_COORDS_64_BITS
@ DF_POINT_COORDS_64_BITS
Definition: ecvSerializableObject.h:52
ccFlags::reset
void reset()
Sets all bits to 0.
Definition: ecvFlags.h:17
Mouse3DInput::V3DK_BACK
@ V3DK_BACK
Definition: Mouse3DInput.h:67
EnabledBits
static int EnabledBits(unsigned bitField)
Definition: AsciiOpenDlg.cpp:277
plyElement::elementInstances
long elementInstances
Definition: PlyFilter.h:39
cloudViewer::ScalarField::computeMinAndMax
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
cc2DLabel::displayPointLegend
void displayPointLegend(bool state)
Whether to display the point(s) legend (title only)
Definition: ecv2DLabel.h:108
cloudViewer::utility::Feature
Class to store featrues for registration.
Definition: ecvFeature.h:29
CC_FERR_BAD_ARGUMENT
@ CC_FERR_BAD_ARGUMENT
Definition: FileIOFilter.h:22
AsciiHeaderColumns::X
static QString X()
Definition: AsciiOpenDlg.h:50
FileIOFilter::FilterInfo::features
FilterFeatures features
Supported features.
Definition: FileIOFilter.h:339
ASCII_OPEN_DLG_Y
@ ASCII_OPEN_DLG_Y
Definition: AsciiOpenDlg.h:25
knncpp::Vector2i
Eigen::Matrix< Index, 2, 1 > Vector2i
Definition: knncpp.h:29
ccGBLSensor::getYawStep
PointCoordinateType getYawStep() const
Returns the yaw step (in radians)
Definition: ecvGBLSensor.h:130
ASCII_OPEN_DLG_TYPES_COUNT
const unsigned ASCII_OPEN_DLG_TYPES_COUNT
Definition: AsciiOpenDlg.h:20
ccGenericMesh::hasTriNormals
virtual bool hasTriNormals() const =0
Returns whether the mesh has per-triangle normals.
ASCII_OPEN_DLG_None
@ ASCII_OPEN_DLG_None
Definition: AsciiOpenDlg.h:23
AsciiOpenDlg::VALID
@ VALID
Definition: AsciiOpenDlg.h:212
cloudViewer::io::ReadPointCloudOption::print_progress
bool print_progress
Definition: FileIO.h:68
ccGenericMesh::getTriangleMtlIndex
virtual int getTriangleMtlIndex(unsigned triangleIndex) const =0
Returns a given triangle material indexes.
STLFilter::saveToASCIIFile
CC_FILE_ERROR saveToASCIIFile(ccGenericMesh *mesh, FILE *theFile, QWidget *parentWidget=0)
Custom save method.
Definition: STLFilter.cpp:193
ecvShiftAndScaleCloudDlg::keepGlobalPos
bool keepGlobalPos() const
Returns whether the global position should be preserved or not.
Definition: ecvShiftAndScaleCloudDlg.cpp:373
DISPLAYED_LINES
static const unsigned DISPLAYED_LINES
Definition: AsciiOpenDlg.cpp:268
cloudAttributesDescriptor::hasFloatRGBColors
bool hasFloatRGBColors[4]
Definition: AsciiFilter.cpp:493
ccGenericMesh::showTriNorms
virtual void showTriNorms(bool state)
Sets whether to show or not per-triangle normals.
Definition: ecvGenericMesh.h:195
ccHObject::getParent
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
BinFilter::LoadFileV2
static CC_FILE_ERROR LoadFileV2(QFile &in, ccHObject &container, int flags, bool parallel, QWidget *parentWidget=nullptr)
new style BIN loading
Definition: BinFilter.cpp:413
AsciiFilter::canSave
bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: AsciiFilter.cpp:75
ASCII_OPEN_DLG_Af
@ ASCII_OPEN_DLG_Af
Definition: AsciiOpenDlg.h:37
AsciiHeaderColumns::Y
static QString Y()
Definition: AsciiOpenDlg.h:51
ecvGriddedTools.h
cloudViewer::VerticesIndexes
Triangle described by the indexes of its 3 vertices.
Definition: GenericIndexedMesh.h:16
ccMesh::size
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMesh.cpp:2143
CV_TYPES::RGB_COLOR_ARRAY
@ RGB_COLOR_ARRAY
Definition: CVTypes.h:137
ccMesh::merge
bool merge(const ccMesh *mesh, bool createSubMesh)
Merges another mesh into this one.
Definition: ecvMesh.cpp:1788
NULL
#define NULL
Definition: UVUnwrapping.cpp:40
BinFilter::LoadFileV1
static CC_FILE_ERROR LoadFileV1(QFile &in, ccHObject &container, unsigned nbScansTotal, const LoadParameters &parameters)
old style BIN loading
Definition: BinFilter.cpp:1124
cloudViewer::utility::filesystem::GetFileExtensionInLowerCase
std::string GetFileExtensionInLowerCase(const std::string &filename)
Definition: FileSystem.cpp:281
CC_FERR_WRITING
@ CC_FERR_WRITING
Definition: FileIOFilter.h:25
Mouse3DInput::V3DCMD_VIEW_BOTTOM
@ V3DCMD_VIEW_BOTTOM
Definition: Mouse3DInput.h:101
ccGenericMesh::hasPerTriangleTexCoordIndexes
virtual bool hasPerTriangleTexCoordIndexes() const =0
Returns whether this mesh as per-triangle triplets of tex coords indexes.
ccHObjectCaster::ToPolyline
static ccPolyline * ToPolyline(ccHObject *obj)
Converts current object to ccPolyline (if possible)
Definition: ecvHObjectCaster.cpp:141
cloudViewer::ScalarField::getValue
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
CV_TYPES::GBL_SENSOR
@ GBL_SENSOR
Definition: CVTypes.h:117
FileIOFilter::GetFilters
static const FilterContainer & GetFilters()
Returns the set of all registered filters.
Definition: FileIOFilter.cpp:224
Mouse3DInput::sigOn3dmouseKeyUp
void sigOn3dmouseKeyUp(int virtualKeyCode)
ecvShiftAndScaleCloudDlg::m_localPoint
CCVector3d m_localPoint
Local coordinate system point (reversed mode only)
Definition: ecvShiftAndScaleCloudDlg.h:180
cloudViewer::io::file_extension_to_octree_write_function
static const std::unordered_map< std::string, std::function< bool(const std::string &, const geometry::Octree &)> > file_extension_to_octree_write_function
Definition: OctreeIO.cpp:29
ccGLMatrixTpl::getColumn
T * getColumn(unsigned index)
Returns a pointer to a given column.
Definition: ecvGLMatrixTpl.h:904
format
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
CouldBeGrey
static bool CouldBeGrey(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:248
errorCallback
static void errorCallback(p_ply _ply, const char *message)
Definition: PlyFilter.cpp:70
data
GraphType data
Definition: graph_cut.cc:138
CouldBeRGBi
static bool CouldBeRGBi(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:251
cc2DLabel::PickedPoint::uv
CCVector2d uv
Barycentric coordinates (for triangles)
Definition: ecv2DLabel.h:136
PlyFilter::PlyFilter
PlyFilter()
Definition: PlyFilter.cpp:50
ecvShiftAndScaleCloudDlg::m_cancel
bool m_cancel
Whether the user has clicked on Cancel or not.
Definition: ecvShiftAndScaleCloudDlg.h:168
AsciiHeaderColumns::Nz
static QString Nz()
Definition: AsciiOpenDlg.h:55
ecvDisc.h
plyElement::propertiesCount
int propertiesCount
Definition: PlyFilter.h:41
ccGenericMesh::getTexCoordinatesTable
virtual TextureCoordsContainer * getTexCoordinatesTable() const =0
Returns per-triangle texture coordinates array.
ecvGlobalShiftManager::Handle
static bool Handle(const CCVector3d &P, double diagonal, Mode mode, bool useInputCoordinatesShiftIfPossible, CCVector3d &coordinatesShift, bool *preserveCoordinateShift, double *coordinatesScale, bool *applyAll=0)
Definition: ecvGlobalShiftManager.cpp:82
ccHObject::fromFileNoChildren
bool fromFileNoChildren(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap)
Custom version of ccSerializableObject::fromFile.
Definition: ecvHObject.cpp:1288
s_NormalCount
static int s_NormalCount
Definition: PlyFilter.cpp:525
ecvMainAppInterface::setGlobalZoom
virtual void setGlobalZoom()=0
ecvGlobalShiftManager::NeedRescale
static bool NeedRescale(double d)
Returns whether a particular dimension (e.g. diagonal) is too big or not.
Definition: ecvGlobalShiftManager.cpp:78
cc2DLabel::clear
void clear(bool ignoreDependencies=false, bool ignoreCaption=true)
Clears label.
Definition: ecv2DLabel.cpp:240
FileIOFilter::FindBestFilterForExtension
static Shared FindBestFilterForExtension(const QString &ext)
Returns the best filter (presumably) to open a given file extension.
Definition: FileIOFilter.cpp:228
cloudViewer::geometry::LineSet::clear
LineSet & clear()
Definition: LineSet.cpp:19
ccIndexedTransformationBuffer
Indexed Transformation buffer.
Definition: ecvIndexedTransformationBuffer.h:19
cloudAttributesDescriptor::alphaIndex
int alphaIndex
Definition: AsciiFilter.cpp:481
ccGenericMesh::getMaterialSet
virtual const ccMaterialSet * getMaterialSet() const =0
ccObject::setMetaData
void setMetaData(const QString &key, const QVariant &data)
Sets a meta-data element.
Definition: ecvObject.cpp:216
ccHObjectCaster::ToPointCloud
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
ELEM_POS_0
#define ELEM_POS_0
Definition: PlyFilter.cpp:516
CV_TYPES::MESH
@ MESH
Definition: CVTypes.h:105
ccGriddedTools::ComputeBestSensor
static ccGBLSensor * ComputeBestSensor(ccPointCloud *cloud, ccPointCloud::Grid::Shared grid, ccGLMatrix *cloudToSensorTrans=0)
Definition: ecvGriddedTools.cpp:310
ecvShiftAndScaleCloudDlg::m_defaultInfos
std::vector< ecvGlobalShiftManager::ShiftInfo > m_defaultInfos
Default infos (typically loaded from the global_shift_list.txt' file)
Definition: ecvShiftAndScaleCloudDlg.h:171
ccHObject::removeChild
void removeChild(ccHObject *child)
Definition: ecvHObject.cpp:1056
DepthMapFileFilter.h
string.h
version
std::string version
Definition: FileIOFactory.cpp:140
ccDepthBuffer::height
unsigned height
Buffer height.
Definition: ecvDepthBuffer.h:41
s_sessionCounter
static unsigned s_sessionCounter
Definition: FileIOFilter.cpp:45
ccGLMatrixd
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
CVLog::PrintVerbose
static bool PrintVerbose(const char *format,...)
Prints out a verbose formatted message in console.
Definition: CVLog.cpp:103
nProgress
cloudViewer::NormalizedProgress * nProgress
Definition: qCanupoTools.cpp:42
DepthMapFileFilter
Depth map I/O filter.
Definition: DepthMapFileFilter.h:15
ecvShiftAndScaleCloudDlg
Dialog for selection of cloud center.
Definition: ecvShiftAndScaleCloudDlg.h:24
cloudAttributesDescriptor::c_attribCount
static const unsigned c_attribCount
Definition: AsciiFilter.cpp:469
ecvMainAppInterface::getMainWindow
virtual QMainWindow * getMainWindow()=0
Returns main window.
ccMesh::getTriangleVertIndexes
cloudViewer::VerticesIndexes * getTriangleVertIndexes(unsigned triangleIndex) override
Returns the indexes of the vertices of a given triangle.
Definition: ecvMesh.cpp:2599
ccMesh::addTriangleTexCoordIndexes
void addTriangleTexCoordIndexes(int i1, int i2, int i3)
Adds a triplet of tex coords indexes for next triangle.
Definition: ecvMesh.cpp:3678
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
ecvShiftAndScaleCloudDlg::setShiftFieldsPrecision
void setShiftFieldsPrecision(int precision)
Sets the Shift fields (X, Y and Z) precision (default should be 2)
Definition: ecvShiftAndScaleCloudDlg.cpp:95
ccObject::hasMetaData
bool hasMetaData(const QString &key) const
Returns whether a meta-data element with the given key exists or not.
Definition: ecvObject.cpp:230
cloudViewer::utility::ColorToUint8
Eigen::Vector3uint8 ColorToUint8(const Eigen::Vector3d &color)
Definition: Eigen.cpp:269
DxfFilter::DxfFilter
DxfFilter()
Definition: DxfFilter.cpp:31
CC_ISO_VIEW_2
@ CC_ISO_VIEW_2
Definition: CVConst.h:110
Mouse3DInput::V3DCMD_VIEW_ISO2
@ V3DCMD_VIEW_ISO2
Definition: Mouse3DInput.h:106
Mouse3DInput::V3DK_ALT
@ V3DK_ALT
Definition: Mouse3DInput.h:83
ccGBLSensor::ColorGrid
std::vector< ecvColor::Rgb > ColorGrid
2D grid of colors
Definition: ecvGBLSensor.h:195
ccColorScalesManager::GetDefaultScale
static ccColorScale::Shared GetDefaultScale(DEFAULT_SCALES scale=BGYR)
Returns a pre-defined color scale (static shortcut)
Definition: ecvColorScalesManager.h:61
ccObject::isA
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
cloudViewer::io::ReadLineSet
bool ReadLineSet(const std::string &filename, geometry::LineSet &lineset, const std::string &format="auto", bool print_progress=false)
Definition: LineSetIO.cpp:120
ccShiftedObject::isShifted
bool isShifted() const
Returns whether the cloud is shifted or not.
Definition: ecvShiftedObject.h:56
ImageFileFilter::canSave
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: ImageFileFilter.cpp:133
cloudViewer::PointCloudTpl::getNumberOfScalarFields
unsigned getNumberOfScalarFields() const
Returns the number of associated (and active) scalar fields.
Definition: PointCloudTpl.h:345
qtCompatSplitRegex
QStringList qtCompatSplitRegex(const QString &str, const QString &pattern, Qt::SplitBehavior behavior=Qt::KeepEmptyParts)
Definition: QtCompat.h:308
FileIOFilter::DEFAULT_PRIORITY
static constexpr float DEFAULT_PRIORITY
Definition: FileIOFilter.h:313
ccPointCloud::getPointNormal
const CCVector3 & getPointNormal(unsigned pointIndex) const override
Returns normal corresponding to a given point.
Definition: ecvPointCloud.cpp:1555
ccDepthBuffer
Sensor "depth map".
Definition: ecvDepthBuffer.h:25
ccMesh::reservePerTriangleTexCoordIndexes
bool reservePerTriangleTexCoordIndexes()
Reserves memory to store per-triangle triplets of tex coords indexes.
Definition: ecvMesh.cpp:3659
ccHObjectCaster::ToFacet
static ccFacet * ToFacet(ccHObject *obj)
Converts current object to ccFacet (if possible)
Definition: ecvHObjectCaster.cpp:151
Delaunay2dMesh.h
ccMesh::setMaterialSet
void setMaterialSet(ccMaterialSet *materialSet, bool autoReleaseOldMaterialSet=true)
Sets associated material set (may be shared)
Definition: ecvMesh.cpp:492
DepthMapFileFilter::GetFileFilter
static QString GetFileFilter()
Definition: DepthMapFileFilter.h:20
CVLog::Print
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
plyProperty::elemIndex
int elemIndex
Definition: PlyFilter.h:32
ccGLMatrixTpl::setTranslation
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Definition: ecvGLMatrixTpl.h:836
FileIO::setWriterInfo
static void setWriterInfo(const QString &applicationName, const QString &version)
Definition: FileIO.cpp:17
XYZ_BITS
static unsigned XYZ_BITS
Definition: AsciiOpenDlg.cpp:274
CV_TYPES::POINT_CLOUD
@ POINT_CLOUD
Definition: CVTypes.h:104
cloudViewer::io::CreateLineSetFromFile
std::shared_ptr< geometry::LineSet > CreateLineSetFromFile(const std::string &filename, const std::string &format="auto", bool print_progress=false)
Definition: LineSetIO.cpp:111
FileIOFilter::DynamicInfo
@ DynamicInfo
Definition: FileIOFilter.h:307
VoxelGridIO.h
cloudAttributesDescriptor::greyIndex
int greyIndex
Definition: AsciiFilter.cpp:484
Mouse3DInput::V3DCMD_VIEW_ISO1
@ V3DCMD_VIEW_ISO1
Definition: Mouse3DInput.h:105
VTKFilter::canSave
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: VTKFilter.cpp:35
s_saveColumnsNamesHeader
static bool s_saveColumnsNamesHeader
Definition: AsciiFilter.cpp:40
AlmostEq
bool AlmostEq(double a, double b)
Definition: ecvShiftAndScaleCloudDlg.cpp:233
ecvGlobalShiftManager::ShiftInfo::shift
CCVector3d shift
Definition: ecvGlobalShiftManager.h:82
ccGenericMesh::getAssociatedCloud
virtual ccGenericPointCloud * getAssociatedCloud() const =0
Returns the vertices cloud.
cloudViewer::PointCloudTpl::getPoint
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
CV_TYPES::FACET
@ FACET
Definition: CVTypes.h:109
AsciiFilter::loadFile
CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: AsciiFilter.cpp:377
ccHObject::toFile
bool toFile(QFile &out, short dataVersion) const override
Saves data to binary stream.
Definition: ecvHObject.cpp:1117
ccObject::ReadClassIDFromFile
static CV_CLASS_ENUM ReadClassIDFromFile(QFile &in, short dataVersion)
Helper: reads out class ID from a binary stream.
Definition: ecvObject.cpp:189
s_texCoordCount
static unsigned s_texCoordCount
Definition: PlyFilter.cpp:812
ELEM_EOL
#define ELEM_EOL
Definition: PlyFilter.cpp:520
cloudViewer::io::AutoWriteMesh
bool AutoWriteMesh(const std::string &filename, const ccMesh &mesh, bool write_ascii=false, bool compressed=false, bool write_vertex_normals=true, bool write_vertex_colors=true, bool write_triangle_uvs=true, bool print_progress=false)
Definition: AutoIO.cpp:314
Vector3Tpl::toPC
Vector3Tpl< PointCoordinateType > toPC() const
Definition: CVGeom.h:263
ccObject::setLocked
virtual void setLocked(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:117
ccMaterialSet::ParseMTL
static bool ParseMTL(QString path, const QString &filename, ccMaterialSet &materials, QStringList &errors)
MTL (material) file parser.
Definition: ecvMaterialSet.cpp:107
e_ply_type_names
static const char e_ply_type_names[][12]
PLY format types.
Definition: PlyFilter.h:15
ccObject::getMetaData
QVariant getMetaData(const QString &key) const
Returns a given associated meta data.
Definition: ecvObject.cpp:208
ccObject::setBaseName
void setBaseName(const QString &baseName)
Definition: ecvObject.h:186
XYZW_BITS
static unsigned XYZW_BITS
Definition: AsciiOpenDlg.cpp:275
s_asciiOpenContext
static AsciiOpenContext s_asciiOpenContext
Semi-persistent loading context.
Definition: AsciiOpenDlg.cpp:97
ecvShiftAndScaleCloudDlg::showScaleItems
void showScaleItems(bool state)
Whether to show dialog items related to scale.
Definition: ecvShiftAndScaleCloudDlg.cpp:327
cloudViewer::ReferenceCloud::getPoint
const CCVector3 * getPoint(unsigned index) const override
Returns the ith point.
Definition: ReferenceCloud.h:79
AsciiSaveDlg::saveColumnsNamesHeader
bool saveColumnsNamesHeader() const
Returns whether columns names should be be saved in header.
Definition: AsciiSaveDlg.cpp:35
ScalarField.h
PlyOpenDlg::m_listCombos
std::vector< QComboBox * > m_listCombos
List-related comboboxes (faces, etc.)
Definition: PlyOpenDlg.h:37
AsciiOpenContext::skipLines
int skipLines
Definition: AsciiOpenDlg.cpp:91
s_maxLabelCount
static unsigned s_maxLabelCount
Definition: AsciiOpenDlg.cpp:47
AsciiSaveDlg::getSeparatorIndex
int getSeparatorIndex() const
Returns separator index.
Definition: AsciiSaveDlg.cpp:88
cloudViewer::io::WriteVoxelGrid
bool WriteVoxelGrid(const std::string &filename, const geometry::VoxelGrid &voxelgrid, bool write_ascii=false, bool compressed=false, bool print_progress=false)
Definition: VoxelGridIO.cpp:169
AsciiOpenDlg::getMaxCloudSize
unsigned getMaxCloudSize() const
Returns the max number of points per cloud.
Definition: AsciiOpenDlg.cpp:1335
AsciiFilter::SaveColumnsNamesHeader
static void SaveColumnsNamesHeader(bool state)
Definition: AsciiFilter.cpp:59
cloudViewer::io::AutoReadMesh
bool AutoReadMesh(const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions &params={})
Definition: AutoIO.cpp:306
ASCII_OPEN_DLG_Scalar
@ ASCII_OPEN_DLG_Scalar
Definition: AsciiOpenDlg.h:42
ccNormalVectors::GetNormal
static const CCVector3 & GetNormal(unsigned normIndex)
Static access to ccNormalVectors::getNormal.
Definition: ecvNormalVectors.h:37
ecvShiftAndScaleCloudDlg::ecvShiftAndScaleCloudDlg
ecvShiftAndScaleCloudDlg(const CCVector3d &Pg, double Dg=0, QWidget *parent=0)
Default constructor.
Definition: ecvShiftAndScaleCloudDlg.cpp:38
ccSensor::setPositions
void setPositions(ccIndexedTransformationBuffer *positions)
Sets associated positions.
Definition: ecvSensor.h:66
ccFlags::fromByte
void fromByte(unsigned char byte)
Converts a byte to this structure.
Definition: ecvFlags.h:20
ccPointCloud::reserveThePointsTable
bool reserveThePointsTable(unsigned _numberOfPoints)
Reserves memory to store the points coordinates.
Definition: ecvPointCloud.cpp:1191
cc2DLabel::PickedPoint::mesh
ccGenericMesh * mesh
Mesh.
Definition: ecv2DLabel.h:126
AsciiFilter
ASCII point cloud I/O filter.
Definition: AsciiFilter.h:21
AsciiOpenDlg::m_columnType
std::vector< ColumnType > m_columnType
Identifies columns with numbers only [mandatory].
Definition: AsciiOpenDlg.h:215
ecvCircle.h
CouldBeY
static bool CouldBeY(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:201
HeaderFlags::scalarField
bool scalarField
Definition: BinFilter.cpp:97
ecvShiftAndScaleCloudDlg::updateLocalSystem
void updateLocalSystem()
Updates info on the local coordinate system.
Definition: ecvShiftAndScaleCloudDlg.cpp:267
CVLog.h
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
AsciiFilter::loadCloudFromFormatedAsciiStream
CC_FILE_ERROR loadCloudFromFormatedAsciiStream(QTextStream &stream, QString filenameOrTitle, ccHObject &container, const AsciiOpenDlg::Sequence &openSequence, char separator, bool commaAsDecimal, unsigned approximateNumberOfLines, qint64 fileSize, unsigned maxCloudSize, unsigned skipLines, LoadParameters &parameters, bool showLabelsIn2D=false)
Loads an ASCII stream with a predefined format.
Definition: AsciiFilter.cpp:704
CC_FERR_WRONG_FILE_TYPE
@ CC_FERR_WRONG_FILE_TYPE
Definition: FileIOFilter.h:24
Mouse3DInput::V3DCMD_VIEW_RIGHT
@ V3DCMD_VIEW_RIGHT
Definition: Mouse3DInput.h:99
ccScalarField::setSaturationStop
void setSaturationStop(ScalarType val)
Sets the value at which to stop color gradient.
Definition: ecvScalarField.cpp:275
BinFilter
CLOUDVIEWER dedicated binary point cloud I/O filter.
Definition: BinFilter.h:15
ecvShiftAndScaleCloudDlg::displayMoreInfo
void displayMoreInfo()
Displays more info about global shift mechanism.
Definition: ecvShiftAndScaleCloudDlg.cpp:137
ecvGlobalShiftManager::NO_DIALOG_AUTO_SHIFT
@ NO_DIALOG_AUTO_SHIFT
Definition: ecvGlobalShiftManager.h:31
AsciiOpenDlg::m_skippedLines
unsigned m_skippedLines
Definition: AsciiOpenDlg.h:205
ccGenericMesh::getTriangleTexCoordinates
virtual void getTriangleTexCoordinates(unsigned triIndex, TexCoords2D *&tx1, TexCoords2D *&tx2, TexCoords2D *&tx3) const =0
Returns per-triangle texture coordinates (pointer to)
AsciiSaveDlg::~AsciiSaveDlg
virtual ~AsciiSaveDlg()
Destructor.
Definition: AsciiSaveDlg.cpp:31
BinFilter::BinFilter
BinFilter()
Definition: BinFilter.cpp:53
ccMesh::removePerTriangleMtlIndexes
void removePerTriangleMtlIndexes()
Removes any per-triangle material indexes.
Definition: ecvMesh.cpp:3746
cc2DLabel
2D label (typically attached to points)
Definition: ecv2DLabel.h:22
ccArray::resizeSafe
bool resizeSafe(size_t count, bool initNewElements=false, const Type *valueForNewElements=nullptr)
Resizes memory (no exception thrown)
Definition: ecvArray.h:70
ccScalarField::setSaturationStart
void setSaturationStart(ScalarType val)
Sets the value at which to start color gradient.
Definition: ecvScalarField.cpp:266
cloudViewer::GenericTriangle::_getA
virtual const CCVector3 * _getA() const =0
Returns the first vertex (A)
ccMaterial::CShared
QSharedPointer< const ccMaterial > CShared
Const + Shared type.
Definition: ecvMaterial.h:31
cloudViewer::ScalarField
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
plyElement
PLY file nuclear element.
Definition: PlyFilter.h:36
ecvShiftAndScaleCloudDlg::showApplyAllButton
void showApplyAllButton(bool state)
Whether to show the 'Apply all' button or not.
Definition: ecvShiftAndScaleCloudDlg.cpp:333
ccHObjectCaster::To2DLabel
static cc2DLabel * To2DLabel(ccHObject *obj)
Converts current object to cc2DLabel (if possible)
Definition: ecvHObjectCaster.cpp:262
cloudViewer::io::WriteLineSetToPLY
bool WriteLineSetToPLY(const std::string &filename, const geometry::LineSet &lineset, bool write_ascii=false, bool compressed=false, bool print_progress=false)
Definition: LineSetIO.cpp:242
ecvColor::RgbTpl::r
Type r
Definition: ecvColorTypes.h:54
CVLog::PrintDebug
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
Definition: CVLog.cpp:153
cloudViewer::io::WritePinholeCameraTrajectoryToLOG
bool WritePinholeCameraTrajectoryToLOG(const std::string &filename, const camera::PinholeCameraTrajectory &trajectory)
Definition: PinholeCameraTrajectoryIO.cpp:242
ecvMainAppInterface.h
cloudViewer::io::ReadTriangleMeshOptions::print_progress
bool print_progress
Definition: AutoIO.h:30
ASCII_OPEN_DLG_B
@ ASCII_OPEN_DLG_B
Definition: AsciiOpenDlg.h:32
ecvNormalVectors.h
FileIOFilter::LoadParameters::coordinatesShift
CCVector3d * coordinatesShift
If applicable, applied shift on load (optional)
Definition: FileIOFilter.h:71
PlyFilter
Stanford PLY file I/O filter.
Definition: PlyFilter.h:46
s_ColorCount
static int s_ColorCount
Definition: PlyFilter.cpp:526
color
math::float4 color
Definition: LineSetBuffers.cpp:46
cloudViewer::io::AutoWriteEntity
bool AutoWriteEntity(const std::string &filename, const ccHObject &entity, const WritePointCloudOption &params)
Definition: AutoIO.cpp:238
Mouse3DInput::V3DCMD_VIEW_SPINCW
@ V3DCMD_VIEW_SPINCW
Definition: Mouse3DInput.h:128
IsFloat
static bool IsFloat(e_ply_type type)
Definition: PlyFilter.cpp:45
s_outputSeparatorIndex
static int s_outputSeparatorIndex
Definition: AsciiFilter.cpp:38
cloudViewer::ScalarField::addElement
void addElement(ScalarType value)
Definition: ScalarField.h:99
DxfFilter.h
PlyOpenDlg::m_sfCombos
std::vector< QComboBox * > m_sfCombos
SF comboboxes.
Definition: PlyOpenDlg.h:41
ecvShiftAndScaleCloudDlg::showApplyButton
void showApplyButton(bool state)
Whether to show the 'Apply' button or not.
Definition: ecvShiftAndScaleCloudDlg.cpp:337
s_defaultSkippedLineCount
static int s_defaultSkippedLineCount
Definition: AsciiFilter.cpp:35
AsciiSaveDlg::getSeparator
unsigned char getSeparator() const
Returns separator.
Definition: AsciiSaveDlg.cpp:67
cc2DLabel::getPickedPoint
const PickedPoint & getPickedPoint(unsigned index) const
Returns a given point.
Definition: ecv2DLabel.h:194
cloudViewer::GenericCloud::getPointScalarValue
virtual ScalarType getPointScalarValue(unsigned pointIndex) const =0
Returns the ith point associated scalar value.
plyElement::isFace
bool isFace
Definition: PlyFilter.h:42
AsciiOpenDlg::m_headerLine
QString m_headerLine
Definition: AsciiOpenDlg.h:210
clearStructure
void clearStructure(cloudAttributesDescriptor &cloudDesc)
Definition: AsciiFilter.cpp:520
cloudViewer::ReferenceCloud::getPointGlobalIndex
virtual unsigned getPointGlobalIndex(unsigned localIndex) const
Definition: ReferenceCloud.h:103
s_Pshift
static CCVector3d s_Pshift(0, 0, 0)
FileIOFilter::importSupported
bool importSupported() const
Returns whether this I/O filter can import files.
Definition: FileIOFilter.cpp:61
plyElement::properties
std::vector< plyProperty > properties
Definition: PlyFilter.h:40
ASCII_OPEN_DLG_R
@ ASCII_OPEN_DLG_R
Definition: AsciiOpenDlg.h:30
AsciiHeaderColumns::R
static QString R()
Definition: AsciiOpenDlg.h:56
ccNormalVectors::GetNormIndex
static CompressedNormType GetNormIndex(const PointCoordinateType N[])
Returns the compressed index corresponding to a normal vector.
Definition: ecvNormalVectors.cpp:53
AsciiSaveDlg::acceptAndSaveSettings
void acceptAndSaveSettings()
Saves dialog state to persistent settings.
Definition: AsciiSaveDlg.cpp:163
CouldBeG
static bool CouldBeG(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:223
ASCII_OPEN_DLG_G
@ ASCII_OPEN_DLG_G
Definition: AsciiOpenDlg.h:31
FileIOFilter::ImportFilterList
static QStringList ImportFilterList()
Definition: FileIOFilter.cpp:241
cloudViewer::PointCloudTpl::getScalarFieldIndexByName
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
voxel_index
long voxel_index
Definition: VoxelGridIO.cpp:29
AsciiOpenDlg::showLabelsIn2D
bool showLabelsIn2D() const
Whether labels should be visible in 2D.
Definition: AsciiOpenDlg.cpp:1340
STLFilter.h
AsciiSaveDlg::setSaveAlphaChannel
void setSaveAlphaChannel(bool state)
Sets whether to save the alpha (transparency) channel.
Definition: AsciiSaveDlg.cpp:59
ecvGlobalShiftManager::ALWAYS_DISPLAY_DIALOG
@ ALWAYS_DISPLAY_DIALOG
Definition: ecvGlobalShiftManager.h:33
ASCII_OPEN_DLG_Gf
@ ASCII_OPEN_DLG_Gf
Definition: AsciiOpenDlg.h:35
FileIO.h
FileIOFilter::LoadParameters
Generic loading parameters.
Definition: FileIOFilter.h:51
AsciiOpenContext::extractSFNameFrom1stLine
bool extractSFNameFrom1stLine
Definition: AsciiOpenDlg.cpp:89
cloudViewer::geometry::Voxel::grid_index_
Eigen::Vector3i grid_index_
Grid coordinate index of the voxel.
Definition: VoxelGrid.h:56
ecvSensor.h
AsciiOpenDlg::AsciiOpenDlg
AsciiOpenDlg(QWidget *parent=nullptr)
Default constructor.
Definition: AsciiOpenDlg.cpp:99
FileIOFilter::getFileFilters
const QStringList & getFileFilters(bool onImport) const
Returns the file filter(s) for this I/O filter.
Definition: FileIOFilter.cpp:69
ccGenericMesh::hasMaterials
virtual bool hasMaterials() const =0
plyProperty
PLY file properties.
Definition: PlyFilter.h:26
AsciiHeaderColumns::RGB32f
static QString RGB32f()
Definition: AsciiOpenDlg.h:68
HeaderFlags::normals
bool normals
Definition: BinFilter.cpp:96
PlyOpenDlg::m_singleCombos
std::vector< QComboBox * > m_singleCombos
Single-related comboboxes (texture index, etc.)
Definition: PlyOpenDlg.h:39
ObjFilter.h
ccMesh::reserve
bool reserve(std::size_t n)
Reserves the memory to store the vertex indexes (3 per triangle)
Definition: ecvMesh.cpp:2475
ccMesh::hasMaterials
bool hasMaterials() const override
Definition: ecvMesh.cpp:3713
ecvPlane.h
Mouse3DInput::sigOn3dmouseKeyDown
void sigOn3dmouseKeyDown(int virtualKeyCode)
PlyLoadingContext::PlyLoadingContext
PlyLoadingContext()
Definition: PlyOpenDlg.cpp:24
ccHObject::Container
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
PlyOpenDlg::isValid
bool isValid(bool displayErrors=true) const
Returns whether the current configuration is valid or not.
Definition: PlyOpenDlg.cpp:365
ccMesh::getAssociatedCloud
ccGenericPointCloud * getAssociatedCloud() const override
Returns the vertices cloud.
Definition: ecvMesh.h:143
ecvMainAppInterface::setView
virtual void setView(CC_VIEW_ORIENTATION view)=0
FileIOFilter::LoadParameters::alwaysDisplayLoadDialog
bool alwaysDisplayLoadDialog
Definition: FileIOFilter.h:67
CCVector3
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
cloudViewer::io::ReadPointCloudOption
Optional parameters to ReadPointCloud.
Definition: FileIO.h:39
ccMesh::shrinkToFit
void shrinkToFit()
Removes unused capacity.
Definition: ecvMesh.h:302
ccHObjectCaster::ToMesh
static ccMesh * ToMesh(ccHObject *obj)
Converts current object to ccMesh (if possible)
Definition: ecvHObjectCaster.cpp:129
PlyLoadingContext::listCombosProperties
std::vector< QString > listCombosProperties
Definition: PlyOpenDlg.cpp:29
Mouse3DInput::V3DCMD_VIEW_LEFT
@ V3DCMD_VIEW_LEFT
Definition: Mouse3DInput.h:98
ecvGenericMesh.h
cloudViewer::io::CreateOctreeFromFile
std::shared_ptr< geometry::Octree > CreateOctreeFromFile(const std::string &filename, const std::string &format="auto")
Definition: OctreeIO.cpp:33
ccDrawableObject::hasScalarFields
virtual bool hasScalarFields() const
Returns whether one or more scalar fields are instantiated.
Definition: ecvDrawableObject.h:105
ASCII_OPEN_DLG_Rf
@ ASCII_OPEN_DLG_Rf
Definition: AsciiOpenDlg.h:34
cloudViewer::geometry::LineSet::points_
std::vector< Eigen::Vector3d > points_
Points coordinates.
Definition: LineSet.h:156
ASCII_OPEN_DLG_TYPES_NAMES
const char ASCII_OPEN_DLG_TYPES_NAMES[ASCII_OPEN_DLG_TYPES_COUNT][20]
Definition: AsciiOpenDlg.h:72
Mouse3DInput::V3DK_CTRL
@ V3DK_CTRL
Definition: Mouse3DInput.h:85
STLFilter::STLFilter
STLFilter()
Definition: STLFilter.cpp:35
CCVector3d
Vector3Tpl< double > CCVector3d
Double 3D Vector.
Definition: CVGeom.h:804
ccGBLSensor::getSensorRange
PointCoordinateType getSensorRange() const
Returns the sensor max. range.
Definition: ecvGBLSensor.h:137
ccDrawableObject::hasNormals
virtual bool hasNormals() const
Returns whether normals are enabled or not.
Definition: ecvDrawableObject.h:89
CV_TYPES::SENSOR
@ SENSOR
Definition: CVTypes.h:116
ccPointCloud::setCurrentDisplayedScalarField
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
FileIOFilter
Generic file I/O filter.
Definition: FileIOFilter.h:46
HeaderFlags::bit1
bool bit1
Definition: BinFilter.cpp:94
face
std::vector< unsigned int > face
Definition: TriangleMeshIO.cpp:50
cloudViewer::PointCloudTpl::getScalarField
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
AsciiHeaderColumns::Z
static QString Z()
Definition: AsciiOpenDlg.h:52
CouldBeNx
static bool CouldBeNx(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:235
ccChunk::SIZE
static const size_t SIZE
Definition: ecvChunk.h:17
normals
double normals[3]
Definition: TriangleMeshIO.cpp:54
cloudViewer::Delaunay2dMesh::getTriangleVertIndexesArray
int * getTriangleVertIndexesArray()
Returns triangles indexes array (pointer to)
Definition: Delaunay2dMesh.h:102
CC_FERR_BROKEN_DEPENDENCY_ERROR
@ CC_FERR_BROKEN_DEPENDENCY_ERROR
Definition: FileIOFilter.h:34
ASCII_OPEN_DLG_NY
@ ASCII_OPEN_DLG_NY
Definition: AsciiOpenDlg.h:28
AsciiSaveDlg::setSeparatorIndex
void setSeparatorIndex(int index)
Set separator (index)
Definition: AsciiSaveDlg.cpp:84
CouldBeR
static bool CouldBeR(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:219
result
core::Tensor result
Definition: VtkUtils.cpp:76
Mouse3DInput::V3DCMD_VIEW_TOP
@ V3DCMD_VIEW_TOP
Definition: Mouse3DInput.h:97
HeaderFlags::colors
bool colors
Definition: BinFilter.cpp:95
CV_TYPES::POINT_OCTREE
@ POINT_OCTREE
Definition: CVTypes.h:110
cloudAttributesDescriptor::reset
void reset()
Definition: AsciiFilter.cpp:497
cloudViewer::PointCloudTpl::enableScalarField
bool enableScalarField() override
Definition: PointCloudTpl.h:77
AsciiOpenContext::applyAll
bool applyAll
Definition: AsciiOpenDlg.cpp:92
ecvColor::RgbTpl::rgb
Type rgb[3]
Definition: ecvColorTypes.h:56
ccMesh::removePerTriangleTexCoordIndexes
void removePerTriangleTexCoordIndexes()
Remove per-triangle tex coords indexes.
Definition: ecvMesh.cpp:3671
AsciiOpenDlg::updateTable
void updateTable()
Forces the table to update itself.
Definition: AsciiOpenDlg.cpp:317
CC_FERR_UNKNOWN_FILE
@ CC_FERR_UNKNOWN_FILE
Definition: FileIOFilter.h:23
ccPointCloud::computeNormalsWithGrids
bool computeNormalsWithGrids(double minTriangleAngle_deg=1.0, ecvProgressDialog *pDlg=nullptr)
Compute the normals with the associated grid structure(s)
Definition: ecvPointCloud.cpp:5158
width
int width
Definition: FileIOFactory.cpp:142
color_index
long color_index
Definition: LineSetIO.cpp:30
QtCompatRegExpOption::CaseInsensitive
constexpr QRegularExpression::PatternOption CaseInsensitive
Definition: QtCompat.h:174
cc2DLabel::PickedPoint::entityCenterPoint
bool entityCenterPoint
Entity center mode (index will be invalid)
Definition: ecv2DLabel.h:138
AsciiOpenDlg::m_filename
QString m_filename
Definition: AsciiOpenDlg.h:208
facetElement::vIndex
int vIndex
Definition: ObjFilter.cpp:390
AsciiSaveDlg::setCoordsPrecision
void setCoordsPrecision(int prec)
Sets coordinates precision.
Definition: AsciiSaveDlg.cpp:96
s_loadParameters
static FileIOFilter::LoadParameters s_loadParameters
Definition: PlyFilter.cpp:532
ecvGlobalShiftManager::ShiftInfo
Shift and scale info.
Definition: ecvGlobalShiftManager.h:81
CouldBeRGBf
static bool CouldBeRGBf(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:254
ccHObject::getClassID
CV_CLASS_ENUM getClassID() const override
Returns class ID.
Definition: ecvHObject.h:232
CV_TYPES::MATERIAL_SET
@ MATERIAL_SET
Definition: CVTypes.h:132
BinFilter::SaveFileV2
static CC_FILE_ERROR SaveFileV2(QFile &out, ccHObject *object)
new style BIN saving
Definition: BinFilter.cpp:174
ecvShiftAndScaleCloudDlg::m_reversedMode
bool m_reversedMode
Whether the reverse mode is active or not.
Definition: ecvShiftAndScaleCloudDlg.h:185
CVLog::Error
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
cloudAttributesDescriptor::yCoordIndex
int yCoordIndex
Definition: AsciiFilter.cpp:473
Mouse3DInput::V3DK_FRONT
@ V3DK_FRONT
Definition: Mouse3DInput.h:65
NormsIndexesTableType
Array of compressed 3D normals (single index)
Definition: ecvAdvancedTypes.h:21
CV_CLASS_ENUM
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
Vector2Tpl< double >
ecvSubMesh.h
ecvColor::FromRgbaToRgb
Rgb FromRgbaToRgb(const Rgba &color)
Conversion from Rgba to Rgb.
Definition: ecvColorTypes.h:374
Mouse3DInput::V3DK_SHIFT
@ V3DK_SHIFT
Definition: Mouse3DInput.h:84
AsciiOpenDlg::getAverageLineSize
double getAverageLineSize() const
Returns roughly estimated average line size (in bytes)
Definition: AsciiOpenDlg.h:152
PTXFilter::loadFile
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: PTXFilter.cpp:80
DepthMapFileFilter::saveToFile
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: DepthMapFileFilter.cpp:44
context
ImGuiContext * context
Definition: Window.cpp:76
AutoIO.h
AsciiOpenDlg::apply
bool apply()
Definition: AsciiOpenDlg.cpp:1046
cloudViewer::geometry::LineSet::colors_
std::vector< Eigen::Vector3d > colors_
RGB colors of lines.
Definition: LineSet.h:160
ecvGlobalShiftManager::MaxBoundgBoxDiagonal
static double MaxBoundgBoxDiagonal()
Returns max bounding-box diagonal.
Definition: ecvGlobalShiftManager.h:68
cloudViewer::utility::IJsonConvertible
Definition: IJsonConvertible.h:41
ccMesh::reservePerTriangleMtlIndexes
bool reservePerTriangleMtlIndexes()
Reserves memory to store per-triangle material index.
Definition: ecvMesh.cpp:3734
cloudAttributesDescriptor::hasRGBColors
bool hasRGBColors
Definition: AsciiFilter.cpp:492
cloudAttributesDescriptor::scalarFields
std::vector< cloudViewer::ScalarField * > scalarFields
Definition: AsciiFilter.cpp:490
ccDrawableObject::showColors
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
PlyOpenDlg
Dialog for configuration of PLY files opening sequence.
Definition: PlyOpenDlg.h:24
cloudViewer::camera::PinholeCameraIntrinsicParameters::PrimeSenseDefault
@ PrimeSenseDefault
Default settings for PrimeSense camera sensor.
cloudViewer::ReferenceCloud::addPointIndex
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
Definition: ReferenceCloud.cpp:84
cc2DLabel::getRawName
QString getRawName() const
Returns 'raw' name (no replacement of default keywords)
Definition: ecv2DLabel.h:36
FileIOFilter::FilterInfo::id
QString id
ID used to uniquely identify the filter (not user-visible)
Definition: FileIOFilter.h:317
HeaderFlags::HeaderFlags
HeaderFlags()
Default constructor.
Definition: BinFilter.cpp:106
cloudViewer::GenericCloud::isScalarFieldEnabled
virtual bool isScalarFieldEnabled() const =0
Returns true if the scalar field is enabled, false otherwise.
CV_TYPES::MESH_GROUP
@ MESH_GROUP
Definition: CVTypes.h:107
ccMaterialSet::saveAsMTL
bool saveAsMTL(QString path, const QString &baseFilename, QStringList &errors) const
Saves to an MTL file (+ associated texture images)
Definition: ecvMaterialSet.cpp:420
ccMesh::resize
bool resize(size_t n)
Resizes the array of vertex indexes (3 per triangle)
Definition: ecvMesh.cpp:2488
PlyOpenDlg::setListComboItems
void setListComboItems(const QStringList &listPropsText)
Definition: PlyOpenDlg.cpp:89
size
int size
Definition: FileIOFactory.cpp:130
cloudViewer::io::WritePointCloudOption::compressed
Compressed compressed
Definition: FileIO.h:127
ecvShiftAndScaleCloudDlg::setPreserveShiftOnSave
void setPreserveShiftOnSave(bool state)
Sets whether the global shift should be preserved or not.
Definition: ecvShiftAndScaleCloudDlg.cpp:369
cloudViewer::io::ReadOctree
bool ReadOctree(const std::string &filename, geometry::Octree &octree, const std::string &format="auto")
Definition: OctreeIO.cpp:40
ccGLMatrixTpl::getTranslationAsVec3D
Vector3Tpl< T > getTranslationAsVec3D() const
Returns a copy of the translation as a CCVector3.
Definition: ecvGLMatrixTpl.h:830
ccArray
Shareable array that can be properly inserted in the DB tree.
Definition: ecvArray.h:21
cloudViewer::camera::PinholeCameraParameters
Contains both intrinsic and extrinsic pinhole camera parameters.
Definition: PinholeCameraParameters.h:22
AsciiSaveDlg::initFromPersistentSettings
void initFromPersistentSettings()
Inits dialog state from persistent settings.
Definition: AsciiSaveDlg.cpp:116
height
int height
Definition: FileIOFactory.cpp:143
cloudViewer::PointCloudTpl::getCurrentInScalarFieldIndex
int getCurrentInScalarFieldIndex()
Returns current INPUT scalar field index (or -1 if none)
Definition: PointCloudTpl.h:413
CC_FRONT_VIEW
@ CC_FRONT_VIEW
Definition: CVConst.h:105
ecvShiftAndScaleCloudDlg::init
void init()
Initialization routine.
Definition: ecvShiftAndScaleCloudDlg.cpp:101
PlyLoadingContext::applyAll
bool applyAll
Definition: PlyOpenDlg.cpp:33
OFFFilter::saveToFile
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: OFFFilter.cpp:46
BinFilter::GetFileFilter
static QString GetFileFilter()
Definition: BinFilter.h:20
STLFilter
StereoLithography file I/O filter.
Definition: STLFilter.h:19
FileIOFilter::getDefaultExtension
QString getDefaultExtension() const
Returns the default file extension.
Definition: FileIOFilter.cpp:77
STLFilter::loadFile
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: STLFilter.cpp:264
Mouse3DInput::V3DK_ISO1
@ V3DK_ISO1
Definition: Mouse3DInput.h:70
ImageFileFilter::GetLoadFilename
static QString GetLoadFilename(const QString &dialogTitle, const QString &imageLoadPath, QWidget *parentWidget=nullptr)
Helper: select an input image filename.
Definition: ImageFileFilter.cpp:117
AsciiOpenDlg::m_stream
QTextStream * m_stream
Definition: AsciiOpenDlg.h:209
ccMesh::addTriangle
void addTriangle(unsigned i1, unsigned i2, unsigned i3)
Adds a triangle to the mesh.
Definition: ecvMesh.cpp:2428
FileIOFilter::LoadParameters::autoComputeNormals
bool autoComputeNormals
Definition: FileIOFilter.h:76
CVAppCommon.h
ccShiftedObject::getGlobalShift
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
cloudViewer::ScalarField::getMin
ScalarType getMin() const
Returns the minimum value.
Definition: ScalarField.h:72
facetElement
OBJ facet ('f') element.
Definition: ObjFilter.cpp:386
texIndexes_cb
static int texIndexes_cb(p_ply_argument argument)
Definition: PlyFilter.cpp:860
AsciiFilter::SetOutputCoordsPrecision
static void SetOutputCoordsPrecision(int prec)
Sets the default output coords precision (as saving time)
Definition: AsciiFilter.cpp:47
FileIOFilter::LoadParameters::sessionStart
bool sessionStart
Session start (whether the load action is the first of a session)
Definition: FileIOFilter.h:80
y
normal_z y
Definition: my_point_types.h:168
DxfFilter::saveToFile
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: DxfFilter.cpp:589
ccGBLSensor::getMaxYaw
PointCoordinateType getMaxYaw() const
Returns the maximal yaw limit (in radians)
Definition: ecvGBLSensor.h:122
ecvMainAppInterface
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
ecvShiftAndScaleCloudDlg::showCancelButton
void showCancelButton(bool state)
Whether to show the 'Cancel' button or not.
Definition: ecvShiftAndScaleCloudDlg.cpp:345
ccGBLSensor::getMinYaw
PointCoordinateType getMinYaw() const
Returns the minimal yaw limit (in radians)
Definition: ecvGBLSensor.h:119
ccMesh::hasNormals
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvMesh.cpp:225
CC_FERR_BAD_ENTITY_TYPE
@ CC_FERR_BAD_ENTITY_TYPE
Definition: FileIOFilter.h:29
Vector3Tpl::cross
Vector3Tpl cross(const Vector3Tpl &v) const
Cross product.
Definition: CVGeom.h:412
MeshSamplingTools.h
AsciiOpenDlg::checkSelectedColumnsValidity
void checkSelectedColumnsValidity()
Definition: AsciiOpenDlg.cpp:986
cloudViewer::ScalarField::resizeSafe
bool resizeSafe(std::size_t count, bool initNewElements=false, ScalarType valueForNewElements=0)
Resizes memory (no exception thrown)
Definition: ScalarField.cpp:81
write_ascii
IsAscii write_ascii
Definition: PointCloudIO.cpp:48
s_savePointCountHeader
static bool s_savePointCountHeader
Definition: AsciiFilter.cpp:41
PlyOpenDlg::apply
void apply()
Definition: PlyOpenDlg.cpp:349
CV_TYPES::CLIPPING_BOX
@ CLIPPING_BOX
Definition: CVTypes.h:143
ccArray::reserveSafe
bool reserveSafe(size_t count)
Reserves memory (no exception thrown)
Definition: ecvArray.h:56
ccSubMesh::reserve
bool reserve(size_t n)
Reserves some memory for hosting the triangle references.
Definition: ecvSubMesh.cpp:542
ccHObjectCaster::ToSensor
static ccSensor * ToSensor(ccHObject *obj)
Converts current object to ccSensor (if possible)
Definition: ecvHObjectCaster.cpp:240
ccMaterial
Mesh (triangle) material.
Definition: ecvMaterial.h:28
ecvShiftAndScaleCloudDlg::showTitle
void showTitle(bool state)
Whether to show or not the title.
Definition: ecvShiftAndScaleCloudDlg.cpp:353
CouldBeLabel
static bool CouldBeLabel(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:260
ASCII_OPEN_DLG_Bf
@ ASCII_OPEN_DLG_Bf
Definition: AsciiOpenDlg.h:36
ccPointCloud::Grid
Grid structure.
Definition: ecvPointCloud.h:383
ecvShiftAndScaleCloudDlg::applyAll
bool applyAll() const
Whether shift should be applied to all files.
Definition: ecvShiftAndScaleCloudDlg.h:63
ObjFilter::saveToFile
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: ObjFilter.cpp:59
ccGenericPointCloud
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
ccMesh::capacity
unsigned capacity() const override
Returns max capacity.
Definition: ecvMesh.cpp:2147
DxfFilter
Autocad DXF file I/O filter.
Definition: DxfFilter.h:13
Mouse3DInput::sigOn3dmouseCMDKeyDown
void sigOn3dmouseCMDKeyDown(int virtualCMDCode)
cloudViewer::ScalarField::reserveSafe
bool reserveSafe(std::size_t count)
Reserves memory (no exception thrown)
Definition: ScalarField.cpp:71
FileIOFilter::SaveParameters::alwaysDisplaySaveDialog
bool alwaysDisplaySaveDialog
Definition: FileIOFilter.h:91
cloudViewer::GenericTriangle::_getB
virtual const CCVector3 * _getB() const =0
Returns the second vertex (B)
cloudViewer::io::ReadVoxelGridFromPLY
bool ReadVoxelGridFromPLY(const std::string &filename, geometry::VoxelGrid &voxelgrid, bool print_progress=false)
Definition: VoxelGridIO.cpp:195
ecvShiftAndScaleCloudDlg::onClick
void onClick(QAbstractButton *button)
Analyzes the clicked button.
Definition: ecvShiftAndScaleCloudDlg.cpp:390
ObjFilter::ObjFilter
ObjFilter()
Definition: ObjFilter.cpp:42
FileIOFilter::LoadParameters::preserveShiftOnSave
bool preserveShiftOnSave
If applicable, whether shift should be preserved or not (optional)
Definition: FileIOFilter.h:73
plyProperty::propName
const char * propName
Definition: PlyFilter.h:28
CC_RIGHT_VIEW
@ CC_RIGHT_VIEW
Definition: CVConst.h:108
s_NotEnoughMemory
static bool s_NotEnoughMemory
Definition: PlyFilter.cpp:531
s_PointDataCorrupted
static bool s_PointDataCorrupted
Definition: PlyFilter.cpp:530
ReadEntityHeader
static int ReadEntityHeader(QFile &in, unsigned &numberOfPoints, HeaderFlags &header)
Definition: BinFilter.cpp:113
cloudViewer::io::CreatePinholeCameraTrajectoryFromFile
std::shared_ptr< camera::PinholeCameraTrajectory > CreatePinholeCameraTrajectoryFromFile(const std::string &filename)
Definition: PinholeCameraTrajectoryIO.cpp:55
CC_FERR_NOT_ENOUGH_MEMORY
@ CC_FERR_NOT_ENOUGH_MEMORY
Definition: FileIOFilter.h:31
cloudViewer::io::WritePinholeCameraTrajectory
bool WritePinholeCameraTrajectory(const std::string &filename, const camera::PinholeCameraTrajectory &trajectory)
Definition: PinholeCameraTrajectoryIO.cpp:82
FileIOFilter::CheckForSpecialChars
static bool CheckForSpecialChars(const QString &filename)
Returns whether special characters are present in the input string.
Definition: FileIOFilter.cpp:505
plyElement::elementName
const char * elementName
Definition: PlyFilter.h:38
VTKFilter::saveToFile
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: VTKFilter.cpp:46
CouldBeRf
static bool CouldBeRf(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:207
cc3DMouseManager::cc3DMouseManager
cc3DMouseManager(ecvMainAppInterface *appInterface, QObject *parent)
Definition: cc3DMouseManager.cpp:17
BinFilter::saveToFile
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: BinFilter.cpp:133
Vector3Tpl< PointCoordinateType >
ecvColor::MAX
constexpr ColorCompType MAX
Max value of a single color component (default type)
Definition: ecvColorTypes.h:34
ccPointCloud::reserveTheNormsTable
bool reserveTheNormsTable()
Reserves memory to store the compressed normals.
Definition: ecvPointCloud.cpp:1253
cloudAttributesDescriptor::iRgbaIndex
int iRgbaIndex
Definition: AsciiFilter.cpp:482
s_triCount
static unsigned s_triCount
Definition: PlyFilter.cpp:529
ecvColor::FromQRgba
Rgba FromQRgba(QRgb qColor)
Conversion from QRgb'a'.
Definition: ecvColorTypes.h:418
cloudViewer::GenericIndexedMesh::getNextTriangleVertIndexes
virtual VerticesIndexes * getNextTriangleVertIndexes()=0
cloudViewer::ScalarField::ValidValue
static bool ValidValue(ScalarType value)
Returns whether a scalar value is valid or not.
Definition: ScalarField.h:61
TexCoords2D::tx
float tx
Definition: ecvAdvancedTypes.h:144
Mouse3DInput::V3DK_CCW
@ V3DK_CCW
Definition: Mouse3DInput.h:69
cloudViewer::geometry::LineSet::IsEmpty
virtual bool IsEmpty() const override
Definition: LineSet.h:61
DxfFilter::canSave
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: DxfFilter.cpp:39
compressed
Compressed compressed
Definition: PointCloudIO.cpp:49
cloudViewer::ScalarField::getName
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
cloudViewer::geometry::VoxelGrid::rotation_
Eigen::Matrix3d rotation_
Definition: VoxelGrid.h:269
ccObject::setFullPath
void setFullPath(const QString &fullPaht)
Definition: ecvObject.h:189
Mouse3DInput::V3DCMD_VIEW_FIT
@ V3DCMD_VIEW_FIT
Definition: Mouse3DInput.h:96
ccSensor
Generic sensor interface.
Definition: ecvSensor.h:27
s_defaultOutputFormat
static e_ply_storage_mode s_defaultOutputFormat
Definition: PlyFilter.cpp:68
ecvShiftAndScaleCloudDlg::addShiftInfo
int addShiftInfo(const ecvGlobalShiftManager::ShiftInfo &info)
Adds shift info to the combox.
Definition: ecvShiftAndScaleCloudDlg.cpp:418
ccFacet::getPolygon
ccMesh * getPolygon()
Returns polygon mesh (if any)
Definition: ecvFacet.h:81
AsciiOpenContext::maxPointCountPerCloud
double maxPointCountPerCloud
Definition: AsciiOpenDlg.cpp:90
FileIO::createdBy
static QString createdBy()
Definition: FileIO.cpp:38
cloudViewer::PointCloudTpl::getCurrentOutScalarField
ScalarField * getCurrentOutScalarField() const
Returns the scalar field currently associated to the cloud output.
Definition: PointCloudTpl.h:400
FileIOFilter::LoadFromFile
static ccHObject * LoadFromFile(const QString &filename, LoadParameters &parameters, Shared filter, CC_FILE_ERROR &result)
Loads one or more entities from a file with a known filter.
Definition: FileIOFilter.cpp:253
cloudViewer::t::geometry::path
static const std::string path
Definition: PointCloud.cpp:59
e
const double * e
Definition: essential_matrix_poly.h:10
HeaderFlags
Per-cloud header flags (old style)
Definition: BinFilter.cpp:92
ccPointCloud::addNorm
void addNorm(const CCVector3 &N)
Pushes a normal vector on stack (shortcut)
Definition: ecvPointCloud.cpp:1754
PlyOpenDlg::canBeSkipped
bool canBeSkipped() const
Returns whether the dialog can be 'skipped'.
Definition: PlyOpenDlg.cpp:415
cloudViewer::io::WriteFeature
bool WriteFeature(const std::string &filename, const utility::Feature &feature)
Definition: FeatureIO.cpp:61
AsciiHeaderColumns::Ny
static QString Ny()
Definition: AsciiOpenDlg.h:54
OFFFilter::canSave
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: OFFFilter.cpp:35
AsciiSaveDlg::swapColorAndSF
bool swapColorAndSF() const
Returns whether SF(s) and color should be swapped.
Definition: AsciiSaveDlg.cpp:108
ecv2DLabel.h
ecvGenericPointCloud.h
ccMesh::DefaultMergeDulicateVerticesLevel
static const unsigned char DefaultMergeDulicateVerticesLevel
Default octree level for the 'mergeDuplicatedVertices' algorithm.
Definition: ecvMesh.h:612
CV_TYPES::ARRAY
@ ARRAY
Definition: CVTypes.h:133
ecvGlobalShiftManager::BestScale
static double BestScale(double d)
Definition: ecvGlobalShiftManager.cpp:308
cloudViewer::io::ReadLineSetFromPLY
bool ReadLineSetFromPLY(const std::string &filename, geometry::LineSet &lineset, bool print_progress=false)
Definition: LineSetIO.cpp:173
ASCII_OPEN_DLG_Z
@ ASCII_OPEN_DLG_Z
Definition: AsciiOpenDlg.h:26
ccPointCloud::partialClone
ccPointCloud * partialClone(const cloudViewer::ReferenceCloud *selection, int *warnings=nullptr, bool withChildEntities=true) const
Creates a new point cloud object from a ReferenceCloud (selection)
Definition: ecvPointCloud.cpp:290
HeaderFlags::bit7
bool bit7
Definition: BinFilter.cpp:100
cloudViewer::GenericMesh::_getNextTriangle
virtual GenericTriangle * _getNextTriangle()=0
Returns the next triangle (relatively to the global iterator position)
Ui
Definition: sfEditDlg.h:16
FileIOFilter::FilterInfo::importExtensions
QStringList importExtensions
Definition: FileIOFilter.h:327
cc3DMouseManager.h
ccHObject::find
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
Definition: ecvHObject.cpp:594
ecvColor::RgbTpl::g
Type g
Definition: ecvColorTypes.h:54
AsciiSaveDlg::setSfPrecision
void setSfPrecision(int prec)
Sets SF precision.
Definition: AsciiSaveDlg.cpp:104
e_ply_storage_mode_names
static const char e_ply_storage_mode_names[][24]
PLY format storage modes.
Definition: PlyFilter.h:22
cloudViewer::GenericMesh::placeIteratorAtBeginning
virtual void placeIteratorAtBeginning()=0
Places the mesh iterator at the beginning.
s_hasQuads
bool s_hasQuads
Definition: PlyFilter.cpp:534
CV_TYPES::POLY_LINE
@ POLY_LINE
Definition: CVTypes.h:112
std::swap
void swap(cloudViewer::core::SmallVectorImpl< T > &LHS, cloudViewer::core::SmallVectorImpl< T > &RHS)
Implement std::swap in terms of SmallVector swap.
Definition: SmallVector.h:1370
LogDebug
#define LogDebug(...)
Definition: Logging.h:90
ccHObjectCaster::ToShifted
static ccShiftedObject * ToShifted(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccShiftedObject.
Definition: ecvHObjectCaster.cpp:108
PlyLoadingContext::ignoredProps
int ignoredProps
Definition: PlyOpenDlg.cpp:31
Mouse3DInput::connect
bool connect(QWidget *mainWidget, QString appName)
Attempts to connect with the 3DxWare driver.
Definition: Mouse3DInput.cpp:73
ccHObject::applyGLTransformation_recursive
void applyGLTransformation_recursive(const ccGLMatrix *trans=nullptr)
Applies the active OpenGL transformation to the entity (recursive)
Definition: ecvHObject.cpp:948
s_maxTextureIndex
static int s_maxTextureIndex
Definition: PlyFilter.cpp:859
scalar
normal_z scalar
Definition: my_point_types.h:169
ecvShiftAndScaleCloudDlg::onGlobalPosCheckBoxToggled
void onGlobalPosCheckBoxToggled(bool)
Slot called when the 'Keep global position' checkbox is toggled.
Definition: ecvShiftAndScaleCloudDlg.cpp:381
AsciiOpenContext::load
void load(Ui_AsciiOpenDialog *ui) const
Restores state.
Definition: AsciiOpenDlg.cpp:71
ccMaterialSet::findMaterialByName
int findMaterialByName(QString mtlName) const
Finds material by name.
Definition: ecvMaterialSet.cpp:28
ecvColor::green
constexpr Rgb green(0, MAX, 0)
CV_TYPES::TRANS_BUFFER
@ TRANS_BUFFER
Definition: CVTypes.h:144
vertex_index
long vertex_index
Definition: LineSetIO.cpp:26
CC_FILE_ERROR
CC_FILE_ERROR
Typical I/O filter errors.
Definition: FileIOFilter.h:20
ccFlags
Flags.
Definition: ecvFlags.h:14
cloudViewer::PointCloud
Definition: CVPointCloud.h:18
ccHObject::transferChildren
void transferChildren(ccHObject &newParent, bool forceFatherDependent=false)
Transfer all children to another parent.
Definition: ecvHObject.cpp:664
BinFilter.h
AsciiOpenDlg::~AsciiOpenDlg
~AsciiOpenDlg() override
Default destructor.
Definition: AsciiOpenDlg.cpp:142
FileIO::writerInfo
static QString writerInfo()
Definition: FileIO.cpp:24
ecvImage.h
ccGLMatrixTpl::initFromParameters
void initFromParameters(T alpha_rad, const Vector3Tpl< T > &axis3D, const Vector3Tpl< T > &t3D)
Inits transformation from a rotation axis, an angle and a translation.
Definition: ecvGLMatrixTpl.h:648
cloudViewer::BoundingBoxTpl::isValid
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
cloudViewer::PointCloudTpl::capacity
unsigned capacity() const
Returns cloud capacity (i.e. reserved size)
Definition: PointCloudTpl.h:540
ShpDBFFields.h
ccPointCloud::reserve
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
CCShareable::link
virtual void link()
Increase counter.
Definition: CVShareable.cpp:33
cloudViewer::ReferenceCloud::setAssociatedCloud
virtual void setAssociatedCloud(GenericIndexedCloudPersist *cloud)
Sets the associated (source) cloud.
Definition: ReferenceCloud.cpp:161
s_saveSFBeforeColor
static bool s_saveSFBeforeColor
Definition: AsciiFilter.cpp:39
ccShiftedObject::getOwnGlobalBB
bool getOwnGlobalBB(CCVector3d &minCorner, CCVector3d &maxCorner) override
Definition: ecvShiftedObject.cpp:64
ObjFilter::canSave
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: ObjFilter.cpp:48
voxelgrid_ptr
std::vector< geometry::Voxel > * voxelgrid_ptr
Definition: VoxelGridIO.cpp:25
CV_TYPES::CUSTOM_H_OBJECT
@ CUSTOM_H_OBJECT
Definition: CVTypes.h:179
CC_BACK_VIEW
@ CC_BACK_VIEW
Definition: CVConst.h:106
cloudViewer::VerticesIndexes::i3
unsigned i3
Definition: GenericIndexedMesh.h:19
Mouse3DInput::V3DK_DOMINANT
@ V3DK_DOMINANT
Definition: Mouse3DInput.h:88
AsciiSaveDlg::savePointCountHeader
bool savePointCountHeader() const
Returns whether the number of points should be saved in header.
Definition: AsciiSaveDlg.cpp:43
ecvColor::Rgba
RgbaTpl< ColorCompType > Rgba
4 components, default type
Definition: ecvColorTypes.h:196
ZERO_TOLERANCE_D
constexpr double ZERO_TOLERANCE_D
Definition: CVConst.h:49
ecvColor::RgbaTpl::r
Type r
Definition: ecvColorTypes.h:150
ccPointCloud::Grid::Shared
QSharedPointer< Grid > Shared
Shared type.
Definition: ecvPointCloud.h:385
FileIOFilter::exportSupported
bool exportSupported() const
Returns whether this I/O filter can export files.
Definition: FileIOFilter.cpp:65
CCShareable::release
virtual void release()
Decrease counter and deletes object when 0.
Definition: CVShareable.cpp:35
cloudViewer::io::WriteOctreeToJson
bool WriteOctreeToJson(const std::string &filename, const geometry::Octree &octree)
Definition: OctreeIO.cpp:89
cloudViewer::io::WritePointCloudOption::write_ascii
IsAscii write_ascii
Definition: FileIO.h:123
cloudViewer::geometry::VoxelGrid::voxels_
std::unordered_map< Eigen::Vector3i, Voxel, cloudViewer::utility::hash_eigen< Eigen::Vector3i > > voxels_
Voxels contained in voxel grid.
Definition: VoxelGrid.h:274
Vector2Tpl::x
Type x
Definition: CVGeom.h:36
cc2DLabel::size
unsigned size() const
Returns current size.
Definition: ecv2DLabel.h:74
ccGBLSensor::getMaxPitch
PointCoordinateType getMaxPitch() const
Returns the maximal pitch limit (in radians)
Definition: ecvGBLSensor.h:97
CouldBeBf
static bool CouldBeBf(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:213
cloudViewer::io::AutoReadEntity
bool AutoReadEntity(const std::string &filename, ccHObject &entity, const ReadPointCloudOption &params)
Definition: AutoIO.cpp:68
ecvProgressDialog
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
FileIO::createdDateTime
static QString createdDateTime()
Definition: FileIO.cpp:42
ecvShiftAndScaleCloudDlg.h
CompressedNormType
unsigned int CompressedNormType
Compressed normals type.
Definition: ecvBasicTypes.h:16
PTXFilter
PTX point cloud I/O filter.
Definition: PTXFilter.h:13
cloudViewer::ScalarField::getMax
ScalarType getMax() const
Returns the maximum value.
Definition: ScalarField.h:74
ccGBLSensor::projectColors
ColorGrid * projectColors(cloudViewer::GenericCloud *cloud, const ColorGrid &rgbColors) const
Definition: ecvGBLSensor.cpp:295
ccGBLSensor::getMinPitch
PointCoordinateType getMinPitch() const
Returns the minimal pitch limit (in radians)
Definition: ecvGBLSensor.h:94
CV_TYPES::LABEL_2D
@ LABEL_2D
Definition: CVTypes.h:140
AsciiHeaderColumns::B
static QString B()
Definition: AsciiOpenDlg.h:58
ecvMesh.h
color_num
long color_num
Definition: VoxelGridIO.cpp:32
AsciiOpenDlg::getColumnsCount
unsigned getColumnsCount() const
Returns columns count per line.
Definition: AsciiOpenDlg.h:155
PlyOpenDlg::m_singlePropsText
QStringList m_singlePropsText
Single-related comboboxes elements.
Definition: PlyOpenDlg.h:85
ccPointCloud::hasNormals
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
ccArray::addElement
void addElement(const Type &value)
Definition: ecvArray.h:105
VTKFilter::loadFile
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: VTKFilter.cpp:276
cloudAttributesDescriptor::scalarIndexes
std::vector< int > scalarIndexes
Definition: AsciiFilter.cpp:489
ecvScalarField.h
s_invalidTexCoordinates
static bool s_invalidTexCoordinates
Definition: PlyFilter.cpp:813
ASCII_OPEN_DLG_X
@ ASCII_OPEN_DLG_X
Definition: AsciiOpenDlg.h:24
cloudViewer::PointCloudTpl::reserve
virtual bool reserve(unsigned newCapacity)
Reserves memory for the point database.
Definition: PointCloudTpl.h:213
cloudViewer::camera::PinholeCameraIntrinsic
Contains the pinhole camera intrinsic parameters.
Definition: PinholeCameraIntrinsic.h:34
FileIOFilter::ResetSesionCounter
static void ResetSesionCounter()
Definition: FileIOFilter.cpp:140
FileIOFilter.h
ecvShiftAndScaleCloudDlg::updateGlobalAndLocalSystems
void updateGlobalAndLocalSystems()
Updates info on the global and local coordinate systems.
Definition: ecvShiftAndScaleCloudDlg.cpp:228
AsciiOpenDlg::getSkippedLinesCount
unsigned getSkippedLinesCount() const
Returns number of lines to skip.
Definition: AsciiOpenDlg.h:143
cc3DMouseManager
Definition: cc3DMouseManager.h:37
ccGBLSensor
Ground-based Laser sensor.
Definition: ecvGBLSensor.h:26
GetNextLine
static QString GetNextLine(QTextStream &stream)
Definition: OFFFilter.cpp:107
ecvProgressDialog.h
PlyLoadingContext::sfCombosProperties
std::vector< QString > sfCombosProperties
Definition: PlyOpenDlg.cpp:28
cloudViewer::io::ReadPinholeCameraTrajectory
bool ReadPinholeCameraTrajectory(const std::string &filename, camera::PinholeCameraTrajectory &trajectory)
Definition: PinholeCameraTrajectoryIO.cpp:61
ELEM_POS_1
#define ELEM_POS_1
Definition: PlyFilter.cpp:517
ecvShiftAndScaleCloudDlg::setKeepGlobalPos
void setKeepGlobalPos(bool state)
Sets whether the global position should be preserved or not.
Definition: ecvShiftAndScaleCloudDlg.cpp:377
HeaderFlags::flags
ccFlags flags
Definition: BinFilter.cpp:103
ccFacet::getOriginPoints
ccPointCloud * getOriginPoints()
Returns origin points (if any)
Definition: ecvFacet.h:98
cc2DLabel::PickedPoint::index
unsigned index
Point/triangle index.
Definition: ecv2DLabel.h:128
ccGenericPointCloud::getPointColor
virtual const ecvColor::Rgb & getPointColor(unsigned pointIndex) const =0
Returns color corresponding to a given point.
Mouse3DInput::V3DK_ESC
@ V3DK_ESC
Definition: Mouse3DInput.h:82
Mouse3DInput::V3DCMD_VIEW_BACK
@ V3DCMD_VIEW_BACK
Definition: Mouse3DInput.h:102
cloudViewer::geometry::Voxel
Base Voxel class, containing grid id and color.
Definition: VoxelGrid.h:38
ccGenericMesh
Generic mesh interface.
Definition: ecvGenericMesh.h:28
ccGenericPointCloud::getPointDisplayedDistance
virtual ScalarType getPointDisplayedDistance(unsigned pointIndex) const =0
Returns scalar value associated to a given point.
cloudViewer::io::file_extension_to_entity_write_function
static const std::unordered_map< std::string, std::function< bool(const std::string &, const ccHObject &, const WritePointCloudOption &)> > file_extension_to_entity_write_function
Definition: AutoIO.cpp:56
ccGBLSensor::getDepthBuffer
const ccDepthBuffer & getDepthBuffer() const
Returns the associated depth buffer.
Definition: ecvGBLSensor.h:225
cloudAttributesDescriptor::cloud
ccPointCloud * cloud
Definition: AsciiFilter.cpp:468
PlyOpenDlg::restorePreviousContext
bool restorePreviousContext(bool &hasAPreviousContext)
Restores the previously saved configuration (if any)
Definition: PlyOpenDlg.cpp:113
cloudViewer::utility::filesystem::FOpen
FILE * FOpen(const std::string &filename, const std::string &mode)
Definition: FileSystem.cpp:609
ccGBLSensor::projectNormals
NormalGrid * projectNormals(cloudViewer::GenericCloud *cloud, const NormalGrid &norms, double posIndex=0) const
Projects a set of point cloud normals in the sensor world.
Definition: ecvGBLSensor.cpp:201
plyProperty::value_type
e_ply_type value_type
Definition: PlyFilter.h:31
GetNextNonEmptyLine
static bool GetNextNonEmptyLine(QTextStream &stream, QString &line)
Definition: VTKFilter.cpp:264
AsciiOpenDlg::setSkippedLines
void setSkippedLines(int linesCount)
Sets the number of lines to skip.
Definition: AsciiOpenDlg.cpp:190
AsciiSaveDlg
Dialog for configuration of ASCII files saving sequence.
Definition: AsciiSaveDlg.h:19
ccPointCloud::append
const ccPointCloud & append(ccPointCloud *cloud, unsigned pointCountBefore, bool ignoreChildren=false)
Appends a cloud to this one.
Definition: ecvPointCloud.cpp:631
ecvCameraSensor.h
ASCII_OPEN_DLG_NX
@ ASCII_OPEN_DLG_NX
Definition: AsciiOpenDlg.h:27
TextureCoordsContainer
Array of 2D texture coordinates.
Definition: ecvAdvancedTypes.h:151
AsciiOpenDlg.h
cloudViewer::utility::floor
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
PlyOpenDlg.h
a
a[190]
Definition: essential_matrix_poly.h:19
AsciiOpenDlg::IGNORED
@ IGNORED
Definition: AsciiOpenDlg.h:212
ccSubMesh::setAssociatedMesh
void setAssociatedMesh(ccMesh *mesh, bool unlinkPreviousOne=true)
Sets the associated mesh.
Definition: ecvSubMesh.cpp:36
Mouse3DInput::V3DK_RIGHT
@ V3DK_RIGHT
Definition: Mouse3DInput.h:64
AsciiOpenDlg::setSeparator
void setSeparator(QChar)
Sets the current separator.
Definition: AsciiOpenDlg.cpp:1322
ccDrawableObject::showSF
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
ccShiftedObject
Shifted entity interface.
Definition: ecvShiftedObject.h:18
QtCompat::SkipEmptyParts
constexpr Qt::SplitBehavior SkipEmptyParts
Definition: QtCompat.h:302
ImageFileFilter::ImageFileFilter
ImageFileFilter()
Definition: ImageFileFilter.cpp:27
lineset_ptr
geometry::LineSet * lineset_ptr
Definition: LineSetIO.cpp:25
cloudViewer::geometry::VoxelGrid::voxel_size_
double voxel_size_
Size of the voxel.
Definition: VoxelGrid.h:264
image
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
CC_FERR_THIRD_PARTY_LIB_EXCEPTION
@ CC_FERR_THIRD_PARTY_LIB_EXCEPTION
Definition: FileIOFilter.h:37
AsciiOpenContext
Dialog 'context'.
Definition: AsciiOpenDlg.cpp:50
Mouse3DInput::V3DCMD_VIEW_FRONT
@ V3DCMD_VIEW_FRONT
Definition: Mouse3DInput.h:100
ccMesh::setTriangleMtlIndexesTable
void setTriangleMtlIndexesTable(triangleMaterialIndexesSet *matIndexesTable, bool autoReleaseOldTable=true)
Sets per-triangle material indexes array.
Definition: ecvMesh.cpp:3718
ASCII_OPEN_DLG_NZ
@ ASCII_OPEN_DLG_NZ
Definition: AsciiOpenDlg.h:29
ccPointCloud::hasDisplayedScalarField
bool hasDisplayedScalarField() const override
Returns whether an active scalar field is available or not.
Definition: ecvPointCloud.cpp:1701
CC_FERR_NO_LOAD
@ CC_FERR_NO_LOAD
Definition: FileIOFilter.h:28
PlyOpenDlg::m_listPropsText
QStringList m_listPropsText
List-related comboboxes elements.
Definition: PlyOpenDlg.h:83
ccHObjectCaster::ToTransBuffer
static ccIndexedTransformationBuffer * ToTransBuffer(ccHObject *obj)
Converts current object to ccIndexedTransformationBuffer (if possible)
Definition: ecvHObjectCaster.cpp:279
STLFilter::canSave
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: STLFilter.cpp:41
ecvShiftAndScaleCloudDlg::showKeepGlobalPosCheckbox
void showKeepGlobalPosCheckbox(bool state)
Whether to show or not the 'Keep global position' checkbox.
Definition: ecvShiftAndScaleCloudDlg.cpp:357
ecvColor::bright
constexpr Rgbaf bright(1.00f, 1.00f, 1.00f, 1.00f)
FileIOFilter::DisplayErrorMessage
static void DisplayErrorMessage(CC_FILE_ERROR err, const QString &action, const QString &filename)
Displays (to console) the message corresponding to a given error code.
Definition: FileIOFilter.cpp:425
ccDrawableObject::setVisible
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
AsciiOpenDlg::Sequence
std::vector< SequenceItem > Sequence
ASCII open sequence.
Definition: AsciiOpenDlg.h:137
cloudViewer::io::WriteIJsonConvertibleToJSON
bool WriteIJsonConvertibleToJSON(const std::string &filename, const cloudViewer::utility::IJsonConvertible &object)
Definition: IJsonConvertibleIO.cpp:92
Mouse3DInput.h
ccMesh::setTexCoordinatesTable
void setTexCoordinatesTable(TextureCoordsContainer *texCoordsTable, bool autoReleaseOldTable=true)
Sets per-triangle texture coordinates array (may be shared)
Definition: ecvMesh.cpp:3598
ecvFlags.h
AsciiHeaderColumns::RGB32i
static QString RGB32i()
Definition: AsciiOpenDlg.h:67
cloudViewer::io::WritePointCloudOption::IsAscii
IsAscii
Definition: FileIO.h:78
FileIOFilter::FilterInfo
Definition: FileIOFilter.h:315
facetElement::facetElement
facetElement()
Default constructor.
Definition: ObjFilter.cpp:398
AsciiSaveDlg::enableSavePointCountHeader
void enableSavePointCountHeader(bool state)
Sets whether the number of points should be saved in header.
Definition: AsciiSaveDlg.cpp:47
points
int points
Definition: FileIOFactory.cpp:144
cloudViewer::geometry::Octree
Octree datastructure.
Definition: Octree.h:249
fields
std::vector< PCLPointField > fields
Definition: FileIOFactory.cpp:141
cloudViewer::io::ReadEntity
bool ReadEntity(const std::string &filename, ccHObject &obj, const std::string &format="auto", bool print_progress=false)
Definition: AutoIO.cpp:338
ccPointCloud::addRGBColor
void addRGBColor(const ecvColor::Rgb &C)
Pushes an RGB color on stack.
Definition: ecvPointCloud.cpp:1712
cloudAttributesDescriptor::labelIndex
int labelIndex
Definition: AsciiFilter.cpp:485
CC_LEFT_VIEW
@ CC_LEFT_VIEW
Definition: CVConst.h:107
FileIOFilter::BuiltIn
@ BuiltIn
Definition: FileIOFilter.h:305
Z_BIT
static unsigned Z_BIT
Definition: AsciiOpenDlg.cpp:272
s_PointCount
static int s_PointCount
Definition: PlyFilter.cpp:524
ccScalarField::getGlobalShift
double getGlobalShift() const
Returns the global shift (if any)
Definition: ecvScalarField.h:234
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
ccMesh::reservePerTriangleNormalIndexes
bool reservePerTriangleNormalIndexes()
Reserves memory to store per-triangle triplets of normal indexes.
Definition: ecvMesh.cpp:3328
cloudViewer::Polyline::setClosed
void setClosed(bool state)
Sets whether the polyline is closed or not.
Definition: Polyline.h:29
vertex_cb
static int vertex_cb(p_ply_argument argument)
Definition: PlyFilter.cpp:538
Mouse3DInput::V3DCMD_VIEW_TILTCW
@ V3DCMD_VIEW_TILTCW
Definition: Mouse3DInput.h:130
PlyLoadingContext::singleCombosProperties
std::vector< QString > singleCombosProperties
Definition: PlyOpenDlg.cpp:30
BinFilter::GetLastSavedFileVersion
static short GetLastSavedFileVersion()
Returns the last saved file version.
Definition: BinFilter.cpp:51
ccArray::getValue
Type & getValue(size_t index)
Definition: ecvArray.h:100
ccSensor::setRigidTransformation
virtual void setRigidTransformation(const ccGLMatrix &mat)
Definition: ecvSensor.h:99
ccScalarField::setColorScale
void setColorScale(ccColorScale::Shared scale)
Sets associated color scale.
Definition: ecvScalarField.cpp:108
ecvShiftAndScaleCloudDlg::getInfo
bool getInfo(size_t index, ecvGlobalShiftManager::ShiftInfo &info) const
Returns a given input info.
Definition: ecvShiftAndScaleCloudDlg.cpp:403
ecvColor::RgbTpl::b
Type b
Definition: ecvColorTypes.h:54
ccPolyline::setGlobalShift
virtual void setGlobalShift(const CCVector3d &shift) override
Sets shift applied to original coordinates (information storage only)
Definition: ecvPolyline.cpp:568
Mouse3DInput::V3DCMD_VIEW_TILTCCW
@ V3DCMD_VIEW_TILTCCW
Definition: Mouse3DInput.h:131
UpdatePointIndex
static bool UpdatePointIndex(int &vIndex, int maxIndex)
Updates point index to a global index starting from 0!
Definition: ObjFilter.cpp:379
AsciiOpenDlg::onSeparatorChange
void onSeparatorChange(const QString &separator)
Slot called when separator changes.
Definition: AsciiOpenDlg.cpp:287
FileIOFilter::LoadParameters::shiftHandlingMode
ecvGlobalShiftManager::Mode shiftHandlingMode
How to handle big coordinates.
Definition: FileIOFilter.h:64
FileIOFilter::FileIOFilter
FileIOFilter(const FilterInfo &info)
Definition: FileIOFilter.cpp:52
AsciiFilter::saveToFile
CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: AsciiFilter.cpp:91
AsciiOpenContext::save
void save(Ui_AsciiOpenDialog *ui)
Saves state.
Definition: AsciiOpenDlg.cpp:61
ecvGlobalShiftManager.h
CVTools::FromQString
static std::string FromQString(const QString &qs)
Definition: CVTools.cpp:100
ecvGlobalShiftManager::NO_DIALOG
@ NO_DIALOG
Definition: ecvGlobalShiftManager.h:30
AsciiSaveDlg::saveFloatColors
bool saveFloatColors() const
Definition: AsciiSaveDlg.cpp:55
ccShiftedObject::toGlobal3d
CCVector3d toGlobal3d(const Vector3Tpl< T > &Plocal) const
Returns the point back-projected into the original coordinates system.
Definition: ecvShiftedObject.h:64
ContinueAfterError
static bool ContinueAfterError(bool &forceLoadAfterError, bool couldBeAMemoryIssue=false)
Helper function to ask user whether to continue after an error.
Definition: BinFilter.cpp:388
cloudViewer::utility::Feature::data_
Eigen::MatrixXd data_
Data buffer storing features.
Definition: ecvFeature.h:54
ccFacet::setOriginPoints
void setOriginPoints(ccPointCloud *cloud)
Sets origin points.
Definition: ecvFacet.h:113
AsciiOpenDlg::applyAll
void applyAll()
Definition: AsciiOpenDlg.cpp:1059
Mouse3DInput::V3DK_MINUS
@ V3DK_MINUS
Definition: Mouse3DInput.h:90
AsciiOpenDlg::columnsTypeHasChanged
void columnsTypeHasChanged(int index)
Definition: AsciiOpenDlg.cpp:1221
ccPointCloud::addGreyColor
void addGreyColor(ColorCompType g)
Pushes a grey color on stack (shortcut)
Definition: ecvPointCloud.h:722
origin
Eigen::Vector3d origin
Definition: VoxelGridIO.cpp:26
face_cb
static int face_cb(p_ply_argument argument)
Definition: PlyFilter.cpp:736
ccPointCloud::resize
bool resize(unsigned numberOfPoints) override
Resizes all the active features arrays.
Definition: ecvPointCloud.cpp:1476
STLFilter::loadASCIIFile
CC_FILE_ERROR loadASCIIFile(QFile &fp, ccMesh *mesh, ccPointCloud *vertices, LoadParameters &parameters)
Custom load method for ASCII files.
Definition: STLFilter.cpp:372
ccGBLSensor::NormalGrid
std::vector< CCVector3 > NormalGrid
2D grid of normals
Definition: ecvGBLSensor.h:180
plyProperty::length_type
e_ply_type length_type
Definition: PlyFilter.h:30
ObjFilter
Wavefront meshes file I/O filter.
Definition: ObjFilter.h:13
Vector2Tpl::y
Type y
Definition: CVGeom.h:36
TexCoords2D::ty
float ty
Definition: ecvAdvancedTypes.h:144
CV_TYPES::POINT_KDTREE
@ POINT_KDTREE
Definition: CVTypes.h:111
cloudAttributesDescriptor::fRgbaIndex
int fRgbaIndex
Definition: AsciiFilter.cpp:483
cloudViewer::GenericIndexedCloudPersist
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
cloudViewer::Delaunay2dMesh
A class to compute and handle a Delaunay 2D mesh on a subset of points.
Definition: Delaunay2dMesh.h:24
cloudViewer::DegreesToRadians
float DegreesToRadians(int degrees)
Convert degrees to radians.
Definition: CVMath.h:98
STLFilter::saveToFile
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: STLFilter.cpp:52
ccPointCloud::hasScalarFields
bool hasScalarFields() const override
Returns whether one or more scalar fields are instantiated.
Definition: ecvPointCloud.cpp:1697
FileIOFilter::LoadParameters::parentWidget
QWidget * parentWidget
Parent widget (if any)
Definition: FileIOFilter.h:78
ecvShiftAndScaleCloudDlg::m_originalDiagonal
double m_originalDiagonal
Original coordinate system diagonal.
Definition: ecvShiftAndScaleCloudDlg.h:178
Mouse3DInput::V3DK_TOP
@ V3DK_TOP
Definition: Mouse3DInput.h:62
cloudViewer::io::WritePointCloudOption
Optional parameters to WritePointCloud.
Definition: FileIO.h:77
Mouse3DInput::V3DK_CW
@ V3DK_CW
Definition: Mouse3DInput.h:68
PlyOpenDlg::fullyAccepted
void fullyAccepted()
cloudViewer::GenericIndexedMesh::getTriangleVertIndexes
virtual VerticesIndexes * getTriangleVertIndexes(unsigned triangleIndex)=0
Returns the indexes of the vertices of a given triangle.
ccMesh::triangleMaterialIndexesSet
ccArray< int, 1, int > triangleMaterialIndexesSet
Container of per-triangle material descriptors.
Definition: ecvMesh.h:447
FileIOFilter::Import
@ Import
Definition: FileIOFilter.h:302
cc2DLabel::PickedPoint
Picked point descriptor.
Definition: ecv2DLabel.h:122
ObjFilter::loadFile
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: ObjFilter.cpp:422
ASCII_OPEN_DLG_A
@ ASCII_OPEN_DLG_A
Definition: AsciiOpenDlg.h:33
cloudViewer::utility::ConsoleProgressBar
Definition: Logging.h:309
ccGLMatrixTpl::getTranslation
T * getTranslation()
Retruns a pointer to internal translation.
Definition: ecvGLMatrixTpl.h:819
PlyFilter::loadFile
CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: PlyFilter.cpp:885
AsciiSaveDlg::enableSaveColumnsNamesHeader
void enableSaveColumnsNamesHeader(bool state)
Sets whether columns names should be be saved in header.
Definition: AsciiSaveDlg.cpp:39
ccMesh::getMaterialSet
const ccMaterialSet * getMaterialSet() const override
Definition: ecvMesh.h:412
cloudViewer::io::WriteEntity
bool WriteEntity(const std::string &filename, const ccHObject &obj, bool write_ascii=false, bool compressed=false, bool print_progress=false)
Definition: AutoIO.cpp:373
line_num
long line_num
Definition: LineSetIO.cpp:29
progress_bar
cloudViewer::utility::ConsoleProgressBar * progress_bar
Definition: LineSetIO.cpp:24
ccSubMesh::getAssociatedMesh
ccMesh * getAssociatedMesh()
Returns the associated mesh.
Definition: ecvSubMesh.h:162
CC_FERR_THIRD_PARTY_LIB_FAILURE
@ CC_FERR_THIRD_PARTY_LIB_FAILURE
Definition: FileIOFilter.h:36
OFFFilter.h
cloudViewer::geometry::VoxelGrid::HasColors
bool HasColors() const
Returns true if the voxel grid contains voxel colors.
Definition: VoxelGrid.h:108
ecvHObjectCaster.h
ccMesh::setTriNormsTable
void setTriNormsTable(NormsIndexesTableType *triNormsTable, bool autoReleaseOldTable=true)
Sets per-triangle normals array (may be shared)
Definition: ecvMesh.cpp:470
ccHObject::getChildrenNumber
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
cloudViewer::Delaunay2dMesh::size
virtual unsigned size() const override
Returns the number of triangles.
Definition: Delaunay2dMesh.h:82
HeaderFlags::sfName
bool sfName
Definition: BinFilter.cpp:99
AsciiOpenDlg::TEXT
@ TEXT
Definition: AsciiOpenDlg.h:212
AsciiFilter::GetFileFilter
static QString GetFileFilter()
Definition: AsciiFilter.h:26
PlyOpenDlg::m_stdPropsText
QStringList m_stdPropsText
Standard comboboxes elements.
Definition: PlyOpenDlg.h:81
ccGLMatrix
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
FindRobust
ccHObject * FindRobust(ccHObject *root, ccHObject *source, const ccObject::LoadedIDMap &oldToNewIDMap, unsigned oldUniqueID, CV_CLASS_ENUM expectedType)
Definition: BinFilter.cpp:353
ecvColor::darker
constexpr Rgbaf darker(0.17f, 0.17f, 0.17f, 1.00f)
ecvColor::RgbaTpl::a
Type a
Definition: ecvColorTypes.h:150
ccSerializableObject::DF_SCALAR_VAL_32_BITS
@ DF_SCALAR_VAL_32_BITS
Definition: ecvSerializableObject.h:56
FileIOFilter::FilterInfo::exportFileFilterStrings
QStringList exportFileFilterStrings
List of file filters for export (e.g. "Test (*.txt)", "Foo (*.foo))
Definition: FileIOFilter.h:336
AsciiOpenContext::separator
QChar separator
Definition: AsciiOpenDlg.cpp:88
Mouse3DInput::disconnectDriver
void disconnectDriver()
Disconnects from the 3DxWare driver.
Definition: Mouse3DInput.cpp:145
OFFFilter
OFF file I/O filter.
Definition: OFFFilter.h:15
cc3DMouseManager::~cc3DMouseManager
~cc3DMouseManager()
Definition: cc3DMouseManager.cpp:25
ecvShiftAndScaleCloudDlg::setShift
void setShift(const CCVector3d &shift)
Sets displayed shift.
Definition: ecvShiftAndScaleCloudDlg.cpp:308
cloudViewer::GenericIndexedCloud::getPoint
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
ecvShiftAndScaleCloudDlg::loadInfoFromFile
bool loadInfoFromFile(QString filename)
Tries to load ShiftInfo data from a (text) file.
Definition: ecvShiftAndScaleCloudDlg.cpp:151
ecvGlobalShiftManager::MAX_COORDINATE_ABS_VALUE
static double MAX_COORDINATE_ABS_VALUE
Definition: ecvGlobalShiftManager.h:100
OFFFilter::OFFFilter
OFFFilter()
Definition: OFFFilter.cpp:29
cloudAttributesDescriptor::zCoordIndex
int zCoordIndex
Definition: AsciiFilter.cpp:474
octree
cloudViewer::DgmOctree * octree
Definition: qCanupoTools.cpp:37
AsciiOpenDlg::autoFindBestSeparator
void autoFindBestSeparator()
Tries to guess the best separator automagically.
Definition: AsciiOpenDlg.cpp:160
ccObject::getUniqueID
virtual unsigned getUniqueID() const
Returns object unique ID.
Definition: ecvObject.h:86
ecvShiftAndScaleCloudDlg::preserveShiftOnSave
bool preserveShiftOnSave() const
Returns whether the global shift should be preserved or not.
Definition: ecvShiftAndScaleCloudDlg.cpp:365
cloudViewer::io::WritePointCloudOption::Compressed
Compressed
Definition: FileIO.h:79
plyProperty::prop
p_ply_property prop
Definition: PlyFilter.h:27
AsciiSaveDlg::saveAlphaChannel
bool saveAlphaChannel() const
Returns whether to save the alpha (transparency) channel.
Definition: AsciiSaveDlg.cpp:63
AsciiFilter::loadAsciiData
CC_FILE_ERROR loadAsciiData(const QByteArray &data, QString sourceName, ccHObject &container, LoadParameters &parameters)
Loads a cloud from a QByteArray.
Definition: AsciiFilter.cpp:393
AsciiOpenDlg::commaDecimalCheckBoxToggled
void commaDecimalCheckBoxToggled(bool)
Slot called when the 'comma as decimal' checkbox is toggled.
Definition: AsciiOpenDlg.cpp:313
voxel_num
long voxel_num
Definition: VoxelGridIO.cpp:30
CVAPPCOMMON_LIB_API
#define CVAPPCOMMON_LIB_API
Definition: CVAppCommon.h:15
AsciiFilter::SaveSFBeforeColor
static void SaveSFBeforeColor(bool state)
Sets whether color and SF should be swapped (default is color then SF)
Definition: AsciiFilter.cpp:57
FileIOFilter::Shared
QSharedPointer< FileIOFilter > Shared
Shared type.
Definition: FileIOFilter.h:97
CVTools.h
ccGenericMesh::getTriNormsTable
virtual NormsIndexesTableType * getTriNormsTable() const =0
Returns per-triangle normals shared array.
CV_TYPES::SUB_MESH
@ SUB_MESH
Definition: CVTypes.h:106
prepareCloud
cloudAttributesDescriptor prepareCloud(const AsciiOpenDlg::Sequence &openSequence, unsigned numberOfPoints, int &maxIndex, unsigned step=1)
Definition: AsciiFilter.cpp:526
ccHObject::New
static ccHObject * New(CV_CLASS_ENUM objectType, const char *name=nullptr)
Static factory.
Definition: ecvHObject.cpp:128
AsciiFilter::AsciiFilter
AsciiFilter()
Definition: AsciiFilter.cpp:67
ccMesh::placeIteratorAtBeginning
void placeIteratorAtBeginning() override
Places the mesh iterator at the beginning.
Definition: ecvMesh.cpp:2163
cloudViewer::io::ReadPointCloudOption::format
std::string format
Definition: FileIO.h:56
ccObject::GetCurrentDBVersion
static unsigned GetCurrentDBVersion()
Returns current database version.
Definition: ecvObject.cpp:79
rgb_cb
static int rgb_cb(p_ply_argument argument)
Definition: PlyFilter.cpp:616
ecvGlobalShiftManager::NeedShift
static bool NeedShift(const CCVector3d &P)
Returns whether a particular point (coordinates) is too big or not.
Definition: ecvGlobalShiftManager.cpp:70
ccFacet::getContour
ccPolyline * getContour()
Returns contour polyline (if any)
Definition: ecvFacet.h:86
PlyOpenDlg::applyAll
void applyAll()
Definition: PlyOpenDlg.cpp:357
Mouse3DInput::V3DCMD_VIEW_ROLLCW
@ V3DCMD_VIEW_ROLLCW
Definition: Mouse3DInput.h:103
PlyFilter.h
FileIOFilter::SaveParameters::parentWidget
QWidget * parentWidget
Parent widget (if any)
Definition: FileIOFilter.h:93
STLFilter::saveToBINFile
CC_FILE_ERROR saveToBINFile(ccGenericMesh *mesh, FILE *theFile, QWidget *parentWidget=0)
Definition: STLFilter.cpp:96
cloudViewer::GenericTriangle::_getC
virtual const CCVector3 * _getC() const =0
Returns the third vertex (C)
ccMesh::mergeDuplicatedVertices
bool mergeDuplicatedVertices(unsigned char octreeLevel=DefaultMergeDulicateVerticesLevel, QWidget *parentWidget=nullptr)
Merges duplicated vertices.
Definition: ecvMesh.cpp:661
cloudAttributesDescriptor::greenIndex
int greenIndex
Definition: AsciiFilter.cpp:479
Mouse3DInput::Apply
static void Apply(const std::vector< float > &motionData, ccGLWindow *win)
Applies motion data to a given 3D window.
Definition: Mouse3DInput.cpp:268
ccGenericPointCloud::getPointNormal
virtual const CCVector3 & getPointNormal(unsigned pointIndex) const =0
Returns normal corresponding to a given point.
count
int count
Definition: FileIOFactory.cpp:132
CVTools::ToQString
static QString ToQString(const std::string &s)
Definition: CVTools.cpp:92
CV_TYPES::HIERARCHY_OBJECT
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
ccDrawableObject::sfShown
virtual bool sfShown() const
Returns whether active scalar field is visible.
Definition: ecvDrawableObject.h:117
PlyLoadingContext::valid
bool valid
Definition: PlyOpenDlg.cpp:32
ccGenericMesh::showMaterials
virtual void showMaterials(bool state)
Sets whether textures should be displayed or not.
Definition: ecvGenericMesh.h:201
cloudViewer::geometry::Voxel::color_
Eigen::Vector3d color_
Color of the voxel.
Definition: VoxelGrid.h:58
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
ccPointCloud::setRGBColor
bool setRGBColor(ColorCompType r, ColorCompType g, ColorCompType b)
Set a unique color for the whole cloud (shortcut)
Definition: ecvPointCloud.h:778
ecvShiftAndScaleCloudDlg::updateGlobalSystem
void updateGlobalSystem()
Updates info on the global coordinate system.
Definition: ecvShiftAndScaleCloudDlg.cpp:240
ccMesh::getTriNormsTable
NormsIndexesTableType * getTriNormsTable() const override
Returns per-triangle normals shared array.
Definition: ecvMesh.h:344
ecvMainAppInterface::getSelectedEntities
virtual const ccHObject::Container & getSelectedEntities() const =0
Returns currently selected entities ("read only")
ecvGBLSensor.h
AsciiFilter::SetOutputSeparatorIndex
static void SetOutputSeparatorIndex(int separatorIndex)
Sets the default output separator (as saving time)
Definition: AsciiFilter.cpp:53
ecvGlobalShiftManager::StoreShift
static void StoreShift(const CCVector3d &shift, double scale, bool preserve=true)
Adds a new shift / scale couple.
Definition: ecvGlobalShiftManager.cpp:25
ecvColorScalesManager.h
FileIOFilter::SaveParameters
Generic saving parameters.
Definition: FileIOFilter.h:84
cloudViewer::ReferenceCloud
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
CC_FERR_MALFORMED_FILE
@ CC_FERR_MALFORMED_FILE
Definition: FileIOFilter.h:32
ecvShiftAndScaleCloudDlg::getScale
double getScale() const
Returns scale.
Definition: ecvShiftAndScaleCloudDlg.cpp:323
CC_FERR_READING
@ CC_FERR_READING
Definition: FileIOFilter.h:26
cloudAttributesDescriptor::updateMaxIndex
void updateMaxIndex(int &maxIndex)
Definition: AsciiFilter.cpp:511
ccMesh::addTriangleNormalIndexes
void addTriangleNormalIndexes(int i1, int i2, int i3)
Adds a triplet of normal indexes for next triangle.
Definition: ecvMesh.cpp:3340
VTKFilter
VTK point cloud or mesh I/O filter.
Definition: VTKFilter.h:13
ecvGlobalShiftManager::ShiftInfo::preserve
bool preserve
Definition: ecvGlobalShiftManager.h:85
ecvColor::RgbTpl
RGB color structure.
Definition: ecvColorTypes.h:49
facetElement::nIndex
int nIndex
Definition: ObjFilter.cpp:392
ccMesh::getNextTriangleVertIndexes
cloudViewer::VerticesIndexes * getNextTriangleVertIndexes() override
Definition: ecvMesh.cpp:2618
ccSubMesh::addTriangleIndex
bool addTriangleIndex(unsigned globalIndex)
Triangle global index insertion mechanism.
Definition: ecvSubMesh.cpp:499
ecvMaterialSet.h
ccFacet::setContourVertices
void setContourVertices(ccPointCloud *cloud)
Sets contour vertices.
Definition: ecvFacet.h:109
cloudViewer::utility::ConsoleProgressUpdater
update_progress(double percent) functor for ConsoleProgressBar
Definition: ProgressReporters.h:56
ecvShiftAndScaleCloudDlg::setCurrentProfile
void setCurrentProfile(int index)
Sets the current combo-box entry (profile)
Definition: ecvShiftAndScaleCloudDlg.cpp:412
PlyLoadingContext::standardCombosProperties
std::vector< QString > standardCombosProperties
Definition: PlyOpenDlg.cpp:27
ccMesh::getTexCoordinatesTable
TextureCoordsContainer * getTexCoordinatesTable() const override
Returns per-triangle texture coordinates array.
Definition: ecvMesh.h:476
CC_PTX_INTENSITY_FIELD_NAME
const char CC_PTX_INTENSITY_FIELD_NAME[]
Definition: PTXFilter.cpp:32
s_ioFilters
static FileIOFilter::FilterContainer s_ioFilters
Available filters.
Definition: FileIOFilter.cpp:43
CV_TYPES::NORMALS_ARRAY
@ NORMALS_ARRAY
Definition: CVTypes.h:134
ccMesh
Triangular mesh.
Definition: ecvMesh.h:35
RasterGridFilter.h
cloudAttributesDescriptor::indexes
int indexes[c_attribCount]
Definition: AsciiFilter.cpp:487
cloudViewer::PointCloudTpl::setPointScalarValue
void setPointScalarValue(unsigned pointIndex, ScalarType value) override
Definition: PointCloudTpl.h:120
plyProperty::type
e_ply_type type
Definition: PlyFilter.h:29
CV_TYPES::PRIMITIVE
@ PRIMITIVE
Definition: CVTypes.h:119
ccHObject::getChild
ccHObject * getChild(unsigned childPos) const
Returns the ith child.
Definition: ecvHObject.h:325
ccShiftedObject::getGlobalScale
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
ccDrawableObject::isVisible
virtual bool isVisible() const
Returns whether entity is visible or not.
Definition: ecvDrawableObject.h:38
OFFFilter::loadFile
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: OFFFilter.cpp:119
HeaderFlags::bit8
bool bit8
Definition: BinFilter.cpp:101
DxfFilter::loadFile
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: DxfFilter.cpp:955
AsciiOpenDlg::m_columnsCount
unsigned m_columnsCount
Definition: AsciiOpenDlg.h:217
BinFilter::loadFile
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: BinFilter.cpp:308
NAN_VALUE
constexpr ScalarType NAN_VALUE
NaN as a ScalarType value.
Definition: CVConst.h:76
cloudViewer::utility::Sleep
void Sleep(int milliseconds)
Definition: Helper.cpp:278
s_totalScalarCount
static unsigned s_totalScalarCount
Definition: PlyFilter.cpp:528
cloudViewer::BoundingBoxTpl::getDiagVec
Vector3Tpl< T > getDiagVec() const
Returns diagonal vector.
Definition: BoundingBox.h:169
Vector3Tpl::norm2d
double norm2d() const
Returns vector square norm (forces double precision output)
Definition: CVGeom.h:419
Mouse3DInput::V3DK_ISO2
@ V3DK_ISO2
Definition: Mouse3DInput.h:71
CC_FERR_FILE_WAS_WRITTEN_BY_UNKNOWN_PLUGIN
@ CC_FERR_FILE_WAS_WRITTEN_BY_UNKNOWN_PLUGIN
Definition: FileIOFilter.h:35
ccShiftedObject::setGlobalShift
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
Definition: ecvShiftedObject.h:33
cloudViewer::io::CreateVoxelGridFromFile
std::shared_ptr< geometry::VoxelGrid > CreateVoxelGridFromFile(const std::string &filename, const std::string &format="auto", bool print_progress=false)
Definition: VoxelGridIO.cpp:132
DepthMapFileFilter::DepthMapFileFilter
DepthMapFileFilter()
Definition: DepthMapFileFilter.cpp:27
Mouse3DInput::sigMove3d
void sigMove3d(std::vector< float > &motionData)
ASCII_OPEN_DLG_RGB32f
@ ASCII_OPEN_DLG_RGB32f
Definition: AsciiOpenDlg.h:40
ccDrawableObject::hasColors
virtual bool hasColors() const
Returns whether colors are enabled or not.
Definition: ecvDrawableObject.h:80
vertex_num
long vertex_num
Definition: LineSetIO.cpp:27
ccMaterialSet
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
AsciiHeaderColumns::Nx
static QString Nx()
Definition: AsciiOpenDlg.h:53
Mouse3DInput::V3DCMD_VIEW_SPINCCW
@ V3DCMD_VIEW_SPINCCW
Definition: Mouse3DInput.h:129
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
CV_TYPES::NORMAL_INDEXES_ARRAY
@ NORMAL_INDEXES_ARRAY
Definition: CVTypes.h:135
LogWarning
#define LogWarning(...)
Definition: Logging.h:72
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
normal_cb
static int normal_cb(p_ply_argument argument)
Definition: PlyFilter.cpp:591
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
cloudViewer::utility::ToUpper
std::string ToUpper(const std::string &s)
Convert string to the upper case.
Definition: Helper.cpp:249
cloudViewer::io::WriteVoxelGridToPLY
bool WriteVoxelGridToPLY(const std::string &filename, const geometry::VoxelGrid &voxelgrid, bool write_ascii=false, bool compressed=false, bool print_progress=false)
Definition: VoxelGridIO.cpp:286
s_unsupportedPolygonType
static bool s_unsupportedPolygonType
Definition: PlyFilter.cpp:735
FileIO::version
static QString version()
Definition: FileIO.cpp:36
cloudViewer::io::ReadVoxelGrid
bool ReadVoxelGrid(const std::string &filename, geometry::VoxelGrid &voxelgrid, const std::string &format="auto", bool print_progress=false)
Definition: VoxelGridIO.cpp:141
AsciiOpenDlg::m_ui
Ui_AsciiOpenDialog * m_ui
Definition: AsciiOpenDlg.h:203
ImageFileFilter
Filter to load or save an image (all types supported by Qt)
Definition: ImageFileFilter.h:13
ccMesh::normalsShown
bool normalsShown() const override
Returns whether normals are shown or not.
Definition: ecvMesh.cpp:388
Mouse3DInput::V3DCMD_VIEW_ROLLCCW
@ V3DCMD_VIEW_ROLLCCW
Definition: Mouse3DInput.h:104
s_maxCloudSizeDoubleSpinBoxValue
static double s_maxCloudSizeDoubleSpinBoxValue
Definition: AsciiOpenDlg.cpp:43
cloudViewer::camera::PinholeCameraTrajectory
Definition: PinholeCameraTrajectory.h:22
ecvGlobalShiftManager::Mode
Mode
Strategy to handle coordinates shift/scale.
Definition: ecvGlobalShiftManager.h:29
cloudViewer::BoundingBoxTpl::maxCorner
const Vector3Tpl< T > & maxCorner() const
Returns max corner (const)
Definition: BoundingBox.h:156
ecvPolyline.h
AsciiOpenDlg::ColumnType
ColumnType
Definition: AsciiOpenDlg.h:212
cloudViewer::io::ReadPinholeCameraTrajectoryFromJSON
bool ReadPinholeCameraTrajectoryFromJSON(const std::string &filename, camera::PinholeCameraTrajectory &trajectory)
Definition: PinholeCameraTrajectoryIO.cpp:21
cloudViewer::PointCloudTpl::getCurrentInScalarField
ScalarField * getCurrentInScalarField() const
Returns the scalar field currently associated to the cloud input.
Definition: PointCloudTpl.h:391
cloudViewer::io::ReadOctreeFromJson
bool ReadOctreeFromJson(const std::string &filename, geometry::Octree &octree)
Definition: OctreeIO.cpp:85
cloudViewer::ScalarField::setValue
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
cloudViewer::io::ReadTriangleMeshOptions
Definition: AutoIO.h:24
ccSensor::getPositions
ccIndexedTransformationBuffer * getPositions()
Returns associated positions.
Definition: ecvSensor.h:63
cloudViewer::BoundingBoxTpl
Bounding box structure.
Definition: BoundingBox.h:25
ccGLMatrixTpl::data
T * data()
Returns a pointer to internal data.
Definition: ecvGLMatrixTpl.h:810
ecvGlobalShiftManager::ShiftInfo::scale
double scale
Definition: ecvGlobalShiftManager.h:83
FileIOFilter::Register
static void Register(Shared filter)
Registers a new filter.
Definition: FileIOFilter.cpp:167
cloudViewer::GenericIndexedCloudPersist::getPointPersistentPtr
virtual const CCVector3 * getPointPersistentPtr(unsigned index)=0
Returns the ith point as a persistent pointer.
ccHObjectCaster::ToCameraSensor
static ccCameraSensor * ToCameraSensor(ccHObject *obj)
Definition: ecvHObjectCaster.cpp:251
CouldBeB
static bool CouldBeB(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:227
s_lastContext
static PlyLoadingContext s_lastContext
Last loading context.
Definition: PlyOpenDlg.cpp:36
Eigen::Matrix4d_u
Eigen::Matrix< double, 4, 4, Eigen::DontAlign > Matrix4d_u
Definition: Eigen.h:113
Mouse3DInput
3DxWare driver wrapper for 3D mouse handling
Definition: Mouse3DInput.h:43
FileIOFilter::FilterContainer
std::vector< FileIOFilter::Shared > FilterContainer
Type of a I/O filters container.
Definition: FileIOFilter.h:284
AsciiHeaderColumns::Af
static QString Af()
Definition: AsciiOpenDlg.h:63
ccPolyline::set2DMode
void set2DMode(bool state)
Defines if the polyline is considered as 2D or 3D.
Definition: ecvPolyline.cpp:144
ccHObject::removeAllChildren
void removeAllChildren()
Removes all children.
Definition: ecvHObject.cpp:1096
Vector3Tpl::norm2
Type norm2() const
Returns vector square norm.
Definition: CVGeom.h:417
ccMesh::IsEmpty
virtual bool IsEmpty() const override
Definition: ecvMesh.h:735
cloudViewer::NormalizedProgress::reset
void reset()
Resets progress state.
Definition: NormalizedProgress.cpp:91
ecvGlobalShiftManager::GetLast
static bool GetLast(ShiftInfo &info)
Definition: ecvGlobalShiftManager.cpp:51
cloudViewer::PointCloudTpl::addPoint
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
AsciiOpenDlg::SequenceItem
ASCII open sequence item.
Definition: AsciiOpenDlg.h:124
ecvMainAppInterface::zoomOnSelectedEntities
virtual void zoomOnSelectedEntities()=0
ccGenericMesh::getTriangleNormalIndexes
virtual void getTriangleNormalIndexes(unsigned triangleIndex, int &i1, int &i2, int &i3) const =0
Returns a triplet of normal indexes for a given triangle (if any)
CouldBeZ
static bool CouldBeZ(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:204
cloudViewer::geometry::VoxelGrid::origin_
Eigen::Vector3d origin_
Coorindate of the origin point.
Definition: VoxelGrid.h:266
AsciiOpenDlg::getSeparator
unsigned char getSeparator() const
Returns user selected separator.
Definition: AsciiOpenDlg.h:146
CouldBeGf
static bool CouldBeGf(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:210
cloudViewer::io::file_extension_to_entity_read_function
static const std::unordered_map< std::string, std::function< bool(const std::string &, ccHObject &, const ReadPointCloudOption &)> > file_extension_to_entity_read_function
Definition: AutoIO.cpp:39
rotation
Eigen::Matrix3d rotation
Definition: VoxelGridIO.cpp:27
CouldBeAf
static bool CouldBeAf(const QString &colHeader)
Definition: AsciiOpenDlg.cpp:216
facetElement::updateTexCoordIndex
bool updateTexCoordIndex(int maxIndex)
Updates tex coord index to a global index starting from 0!
Definition: ObjFilter.cpp:406
ecvGlobalShiftManager::MAX_DIAGONAL_LENGTH
static double MAX_DIAGONAL_LENGTH
Definition: ecvGlobalShiftManager.h:103
ecvGlobalShiftManager::BestShift
static CCVector3d BestShift(const CCVector3d &P)
Suggests a shift for a given point expressed in global coordinate space.
Definition: ecvGlobalShiftManager.cpp:291
ecvGlobalShiftManager::ShiftInfo::name
QString name
Definition: ecvGlobalShiftManager.h:84
Value
static vtkPVTrivialProducerStaticInternal Value
Definition: vtkDistributedTrivialProducer.cxx:65
s_lastInfoBuffer
static std::vector< ecvGlobalShiftManager::ShiftInfo > s_lastInfoBuffer
Definition: ecvGlobalShiftManager.cpp:23
ecvGlobalShiftManager
Definition: ecvGlobalShiftManager.h:26
ecvShiftAndScaleCloudDlg::addFileInfo
bool addFileInfo()
Adds information from default file (if any)
Definition: ecvShiftAndScaleCloudDlg.cpp:145
X
void * X
Definition: SmallVector.cpp:45
cloudViewer::geometry::LineSet::lines_
std::vector< Eigen::Vector2i > lines_
Lines denoted by the index of points forming the line.
Definition: LineSet.h:158
cloudViewer::NormalizedProgress
Definition: GenericProgressCallback.h:78
cloudViewer::io::ReadIJsonConvertibleFromJSONString
bool ReadIJsonConvertibleFromJSONString(const std::string &json_string, cloudViewer::utility::IJsonConvertible &object)
Definition: IJsonConvertibleIO.cpp:106
ecvShiftAndScaleCloudDlg::getShift
CCVector3d getShift() const
Returns shift.
Definition: ecvShiftAndScaleCloudDlg.cpp:314
AsciiHeaderColumns::Grey
static QString Grey()
Definition: AsciiOpenDlg.h:65
cloudAttributesDescriptor::xNormIndex
int xNormIndex
Definition: AsciiFilter.cpp:475
cloudViewer::io::ReadPinholeCameraTrajectoryFromLOG
bool ReadPinholeCameraTrajectoryFromLOG(const std::string &filename, camera::PinholeCameraTrajectory &trajectory)
Definition: PinholeCameraTrajectoryIO.cpp:171
cloudViewer::geometry::LineSet::HasColors
bool HasColors() const
Returns true if the objects lines contains colors.
Definition: LineSet.h:85
AsciiHeaderColumns::G
static QString G()
Definition: AsciiOpenDlg.h:57
PlyLoadingContext
Ply dialog loading context.
Definition: PlyOpenDlg.cpp:23
PointCoordinateType
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
z
normal_z z
Definition: my_point_types.h:165
AsciiOpenDlg::useCommaAsDecimal
bool useCommaAsDecimal() const
Returns whether comma should be used as decimal point.
Definition: AsciiOpenDlg.cpp:308
Mouse3DInput::sigReleased
void sigReleased()
cloudViewer::io::WriteIJsonConvertible
bool WriteIJsonConvertible(const std::string &filename, const cloudViewer::utility::IJsonConvertible &object)
Definition: IJsonConvertibleIO.cpp:144
AsciiOpenDlg::getOpenSequence
Sequence getOpenSequence() const
Returns the whole "opening" sequence as set by the user.
Definition: AsciiOpenDlg.cpp:1108
ccGenericMesh::triNormsShown
virtual bool triNormsShown() const
Returns whether per-triangle normals are shown or not.
Definition: ecvGenericMesh.h:192
AsciiOpenContext::AsciiOpenContext
AsciiOpenContext()
Default initializer.
Definition: AsciiOpenDlg.cpp:52
ShpFilter.h
cloudViewer::NormalizedProgress::scale
void scale(unsigned totalSteps, unsigned totalPercentage=100, bool updateCurrentProgress=false)
Definition: NormalizedProgress.cpp:61
ccDepthBuffer::width
unsigned width
Buffer width.
Definition: ecvDepthBuffer.h:39
Mouse3DInput::V3DK_BOTTOM
@ V3DK_BOTTOM
Definition: Mouse3DInput.h:66
PlyOpenDlg::ResetApplyAll
static void ResetApplyAll()
Resets the "apply all" flag (if set)
Definition: PlyOpenDlg.cpp:111
Mouse3DInput::V3DK_LEFT
@ V3DK_LEFT
Definition: Mouse3DInput.h:63
ccHObject::removeDependencyWith
void removeDependencyWith(ccHObject *otherObject)
Removes any dependency flags with a given object.
Definition: ecvHObject.cpp:497
CC_FERR_CONSOLE_ERROR
@ CC_FERR_CONSOLE_ERROR
Definition: FileIOFilter.h:33
PlyFilter::saveToFile
CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: PlyFilter.cpp:78
FileIOFilter::FilterInfo::importFileFilterStrings
QStringList importFileFilterStrings
List of file filters for import (e.g. "Test (*.txt)", "Foo (*.foo))
Definition: FileIOFilter.h:333
facetElement::tcIndex
int tcIndex
Definition: ObjFilter.cpp:391
Tuple3Tpl::u
Type u[3]
Definition: CVGeom.h:139
ccFacet
Facet.
Definition: ecvFacet.h:25
PlyOpenDlg::addSFComboBox
void addSFComboBox(int selectedIndex=0)
Definition: PlyOpenDlg.cpp:419
ccPointCloud::shrinkToFit
void shrinkToFit()
Removes unused capacity.
Definition: ecvPointCloud.h:357
ColorCompType
unsigned char ColorCompType
Default color components type (R,G and B)
Definition: ecvColorTypes.h:29
cc2DLabel::PickedPoint::cloud
ccGenericPointCloud * cloud
Cloud.
Definition: ecv2DLabel.h:124
Mouse3DInput::V3DK_FIT
@ V3DK_FIT
Definition: Mouse3DInput.h:61
ccMesh::addTriangleMtlIndex
void addTriangleMtlIndex(int mtlIndex)
Adds triangle material index for next triangle.
Definition: ecvMesh.cpp:3751
AsciiOpenDlg::restorePreviousContext
bool restorePreviousContext()
Restores the previous context ('Apply all' button)
Definition: AsciiOpenDlg.cpp:1070
POS_MASK
#define POS_MASK
Definition: PlyFilter.cpp:522
cloudViewer::io::WritePinholeCameraTrajectoryToTUM
bool WritePinholeCameraTrajectoryToTUM(const std::string &filename, const camera::PinholeCameraTrajectory &trajectory)
Definition: PinholeCameraTrajectoryIO.cpp:148
cloudViewer::geometry::VoxelGrid::AddVoxel
void AddVoxel(const Voxel &voxel)
Add a voxel with specified grid index and color.
Definition: VoxelGrid.cpp:233
line_index
long line_index
Definition: LineSetIO.cpp:28
ASCII_OPEN_DLG_Grey
@ ASCII_OPEN_DLG_Grey
Definition: AsciiOpenDlg.h:38
AsciiSaveDlg::AsciiSaveDlg
AsciiSaveDlg(QWidget *parent=nullptr)
Default constructor.
Definition: AsciiSaveDlg.cpp:21
ccImage
Generic image.
Definition: ecvImage.h:19
cloudViewer::ScalarField::setName
void setName(const char *name)
Sets scalar field name.
Definition: ScalarField.cpp:22
CC_MAX_NUMBER_OF_POINTS_PER_CLOUD
const unsigned CC_MAX_NUMBER_OF_POINTS_PER_CLOUD
Definition: ecvPointCloud.h:132
PTXFilter::PTXFilter
PTXFilter()
Definition: PTXFilter.cpp:34
PlyFilter::SetDefaultOutputFormat
static void SetDefaultOutputFormat(e_ply_storage_mode format)
Definition: PlyFilter.cpp:74
ccHObject::addChild
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
FileIOFilter::Export
@ Export
Definition: FileIOFilter.h:303
LoadCloud
static CC_FILE_ERROR LoadCloud(ccPointCloud &ccCloud, const draco::PointCloud &dracoCloud, FileIOFilter::LoadParameters &parameters)
Definition: DRCFilter.cpp:339
ccHObjectCaster::ToSubMesh
static ccSubMesh * ToSubMesh(ccHObject *obj)
Converts current object to ccSubMesh (if possible)
Definition: ecvHObjectCaster.cpp:136
CC_FERR_NO_ERROR
@ CC_FERR_NO_ERROR
Definition: FileIOFilter.h:21
ccPolyline::is2DMode
bool is2DMode() const
Returns whether the polyline is considered as 2D or 3D.
Definition: ecvPolyline.h:63
cloudAttributesDescriptor::blueIndex
int blueIndex
Definition: AsciiFilter.cpp:480
ecvColor::RgbaTpl::b
Type b
Definition: ecvColorTypes.h:150
PlyOpenDlg::addAllStdPropsAsSF
void addAllStdPropsAsSF()
Definition: PlyOpenDlg.cpp:437
facetElement::updateNormalIndex
bool updateNormalIndex(int maxIndex)
Updates normal index to a global index starting from 0!
Definition: ObjFilter.cpp:414
DEFAULT_IO_BUFFER_SIZE
#define DEFAULT_IO_BUFFER_SIZE
Definition: Logging.h:31
s_IntensityCount
static int s_IntensityCount
Definition: PlyFilter.cpp:527
ecvShiftAndScaleCloudDlg::m_originalPoint
CCVector3d m_originalPoint
Original coordinate system point.
Definition: ecvShiftAndScaleCloudDlg.h:176
cloudViewer::io::ReadPointCloudOption::update_progress
std::function< bool(double)> update_progress
Definition: FileIO.h:72
s_outputCoordPrecision
static int s_outputCoordPrecision
Definition: AsciiFilter.cpp:36
cloudViewer::ReferenceCloud::getAssociatedCloud
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.
Definition: ReferenceCloud.h:206
CV_TYPES::OBJECT
@ OBJECT
Definition: CVTypes.h:102
AsciiOpenContext::commaDecimal
bool commaDecimal
Definition: AsciiOpenDlg.cpp:93
ccObject::setEnabled
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
ecvHObject.h
cloudViewer::LessThanEpsilon
bool LessThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:23
ccPointCloud::setPointColor
void setPointColor(size_t pointIndex, const ecvColor::Rgb &col)
Sets a particular point color.
Definition: ecvPointCloud.cpp:1649
AsciiFilter::SavePointCountHeader
static void SavePointCountHeader(bool state)
Definition: AsciiFilter.cpp:63
ccHObjectCaster::ToGenericPointCloud
static ccGenericPointCloud * ToGenericPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccGenericPointCloud.
Definition: ecvHObjectCaster.cpp:81
FileIOFilter::HandleGlobalShift
static bool HandleGlobalShift(const CCVector3d &P, CCVector3d &Pshift, bool &preserveCoordinateShift, LoadParameters &loadParameters, bool useInputCoordinatesShiftIfPossible=false)
Shortcut to the ecvGlobalShiftManager mechanism specific for files.
Definition: FileIOFilter.cpp:509
AsciiOpenContext::sequence
AsciiOpenDlg::Sequence sequence
Definition: AsciiOpenDlg.cpp:87
Vector3Tpl< PointCoordinateType >::fromArray
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
CC_ASCII_OPEN_DLG_TYPES
CC_ASCII_OPEN_DLG_TYPES
Definition: AsciiOpenDlg.h:22
PlyOpenDlg::saveContext
void saveContext(PlyLoadingContext *context)
Saves current configuration (for internal use)
Definition: PlyOpenDlg.cpp:131
AsciiSaveDlg::setSaveFloatColors
void setSaveFloatColors(bool state)
Sets whether to save colors as float values (instead of unsigned bytes)
Definition: AsciiSaveDlg.cpp:51
ecvShiftAndScaleCloudDlg::setScale
void setScale(double scale)
Sets displayed scale.
Definition: ecvShiftAndScaleCloudDlg.cpp:319
ecvOctree.h
MAX_COLUMNS
static const unsigned MAX_COLUMNS
Definition: AsciiOpenDlg.cpp:264
AsciiOpenDlg::safeSequence
bool safeSequence() const
Returns whether the current sequence is 'safe'.
Definition: AsciiOpenDlg.cpp:1137
ImageFileFilter::saveToFile
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: ImageFileFilter.cpp:144
cloudViewer::PointCloudTpl::setCurrentScalarField
void setCurrentScalarField(int index)
Sets both the INPUT & OUTPUT scalar field.
Definition: PointCloudTpl.h:435
W_BIT
static unsigned W_BIT
Definition: AsciiOpenDlg.cpp:273
grey_cb
static int grey_cb(p_ply_argument argument)
Definition: PlyFilter.cpp:667
PlyFilter::canSave
bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: PlyFilter.cpp:57
cloudViewer::geometry::LineSet::HasLines
bool HasLines() const
Returns true if the object contains lines.
Definition: LineSet.h:82
type
char type
Definition: FileIOFactory.cpp:131
PlyOpenDlg::PlyOpenDlg
PlyOpenDlg(QWidget *parent=nullptr)
Definition: PlyOpenDlg.cpp:38
FileIOFilter::GetFilter
static Shared GetFilter(const QString &fileFilter, bool onImport)
Returns the filter corresponding to the given 'file filter'.
Definition: FileIOFilter.cpp:212
cloudViewer::geometry::VoxelGrid::IsEmpty
virtual bool IsEmpty() const override
Definition: VoxelGrid.h:82
AsciiSaveDlg::coordsPrecision
int coordsPrecision() const
Returns coordinates precision.
Definition: AsciiSaveDlg.cpp:92
ecvPointCloud.h
cloudAttributesDescriptor::zNormIndex
int zNormIndex
Definition: AsciiFilter.cpp:477
cloudViewer::io::file_extension_to_trajectory_read_function
static const std::unordered_map< std::string, std::function< bool(const std::string &, camera::PinholeCameraTrajectory &)> > file_extension_to_trajectory_read_function
Definition: PinholeCameraTrajectoryIO.cpp:37
cloudViewer::GenericTriangle
A generic triangle interface.
Definition: GenericTriangle.h:18
cloudAttributesDescriptor::yNormIndex
int yNormIndex
Definition: AsciiFilter.cpp:476
cloudViewer::ScalarField::currentSize
unsigned currentSize() const
Definition: ScalarField.h:100
cloudViewer::io::WritePointCloudOption::update_progress
std::function< bool(double)> update_progress
Definition: FileIO.h:135
ecvShiftAndScaleCloudDlg::showNoButton
void showNoButton(bool state)
Whether to show the 'No' button or not.
Definition: ecvShiftAndScaleCloudDlg.cpp:341
Match
bool Match(ccHObject *object, unsigned uniqueID, CV_CLASS_ENUM expectedType)
Definition: BinFilter.cpp:346
AsciiHeaderColumns::Rf
static QString Rf()
Definition: AsciiOpenDlg.h:60
ccFacet::setPolygon
void setPolygon(ccMesh *mesh)
Sets polygon mesh.
Definition: ecvFacet.h:105
cloudViewer::io::WriteLineSet
bool WriteLineSet(const std::string &filename, const geometry::LineSet &lineset, bool write_ascii=false, bool compressed=false, bool print_progress=false)
Definition: LineSetIO.cpp:148
FileIOFilter::setImportFileFilterStrings
void setImportFileFilterStrings(const QStringList &filterStrings)
Definition: FileIOFilter.cpp:85
AsciiOpenDlg::m_averageLineSize
double m_averageLineSize
Definition: AsciiOpenDlg.h:207
ccPolyline::split
bool split(PointCoordinateType maxEdgeLength, std::vector< ccPolyline * > &parts)
Splits the polyline into several parts based on a maximum edge length.
Definition: ecvPolyline.cpp:415
ecvShiftAndScaleCloudDlg::onLoadIndexChanged
void onLoadIndexChanged(int)
Slot called when the 'loadComboBox' index changes.
Definition: ecvShiftAndScaleCloudDlg.cpp:396
cloudViewer::utility::ceil
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
FileIOFilter::LoadParameters::coordinatesShiftEnabled
bool * coordinatesShiftEnabled
Whether shift on load has been applied after loading (optional)
Definition: FileIOFilter.h:69
ecvShiftAndScaleCloudDlg::m_applyAll
bool m_applyAll
Whether shift should be applied to all files.
Definition: ecvShiftAndScaleCloudDlg.h:166
ccMesh::getTriangleMtlIndexesTable
const triangleMaterialIndexesSet * getTriangleMtlIndexesTable() const
Returns the per-triangle material indexes array.
Definition: ecvMesh.h:454
ccHObject::fromFile
bool fromFile(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads data from binary stream.
Definition: ecvHObject.cpp:1177
ccPointCloud::addGrid
bool addGrid(Grid::Shared grid)
Adds an associated grid.
Definition: ecvPointCloud.h:449
X_BIT
static unsigned X_BIT
Definition: AsciiOpenDlg.cpp:270
ELEM_POS_2
#define ELEM_POS_2
Definition: PlyFilter.cpp:518
s_hasMaterials
bool s_hasMaterials
Definition: PlyFilter.cpp:535
ecvShiftAndScaleCloudDlg::infoCount
size_t infoCount() const
Returns the number of info currently stored.
Definition: ecvShiftAndScaleCloudDlg.h:116
ccScalarField
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
cloudViewer::VerticesIndexes::i1
unsigned i1
Definition: GenericIndexedMesh.h:19
ASCII_OPEN_DLG_Label
@ ASCII_OPEN_DLG_Label
Definition: AsciiOpenDlg.h:41
ecvShiftAndScaleCloudDlg::showPreserveShiftOnSave
void showPreserveShiftOnSave(bool state)
Whether to show or not the 'Preserve shift on save' checkbox.
Definition: ecvShiftAndScaleCloudDlg.cpp:361
AsciiOpenDlg::m_separator
QChar m_separator
Definition: AsciiOpenDlg.h:206
ecvColor::magenta
constexpr Rgb magenta(MAX, 0, MAX)
CC_FERR_NO_SAVE
@ CC_FERR_NO_SAVE
Definition: FileIOFilter.h:27
voxel_size
double voxel_size
Definition: VoxelGridIO.cpp:28
facetElement::indexes
int indexes[3]
Definition: ObjFilter.cpp:394
cloudViewer::geometry::LineSet
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...
Definition: LineSet.h:29
PROCESS_EVENTS_FREQ
#define PROCESS_EVENTS_FREQ
Definition: PlyFilter.cpp:514
s_outputSFPrecision
static int s_outputSFPrecision
Definition: AsciiFilter.cpp:37
ccFacet::getContourVertices
ccPointCloud * getContourVertices()
Returns contour vertices (if any)
Definition: ecvFacet.h:91
Y_BIT
static unsigned Y_BIT
Definition: AsciiOpenDlg.cpp:271
BinFilter::canSave
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: BinFilter.cpp:59
ccColorScalesManager::ABS_NORM_GREY
@ ABS_NORM_GREY
Definition: ecvColorScalesManager.h:36
progress_bar
cloudViewer::utility::ConsoleProgressBar * progress_bar
Definition: VoxelGridIO.cpp:24
ccPointCloud::reserveTheRGBTable
bool reserveTheRGBTable()
Reserves memory to store the RGB colors.
Definition: ecvPointCloud.cpp:1200
CC_FERR_NOT_IMPLEMENTED
@ CC_FERR_NOT_IMPLEMENTED
Definition: FileIOFilter.h:38
AsciiOpenDlg::shortcutButtonPressed
void shortcutButtonPressed()
Definition: AsciiOpenDlg.cpp:1299
ecvShiftAndScaleCloudDlg::~ecvShiftAndScaleCloudDlg
virtual ~ecvShiftAndScaleCloudDlg()
Destructor.
Definition: ecvShiftAndScaleCloudDlg.cpp:88
DepthMapFileFilter::canSave
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: DepthMapFileFilter.cpp:33
ecvColor::RgbaTpl
RGBA color structure.
Definition: ecvColorTypes.h:145
ecvShiftAndScaleCloudDlg::m_localDiagonal
double m_localDiagonal
Local coordinate system diagonal (reversed mode only)
Definition: ecvShiftAndScaleCloudDlg.h:182
cloudViewer::io::WriteFeatureToBIN
bool WriteFeatureToBIN(const std::string &filename, const utility::Feature &feature)
Definition: FeatureIO.cpp:79
ecvShiftAndScaleCloudDlg::showWarning
void showWarning(bool state)
Whether to show or not the warning about non pertinent shift information.
Definition: ecvShiftAndScaleCloudDlg.cpp:349
cloudViewer::camera::PinholeCameraTrajectory::parameters_
std::vector< PinholeCameraParameters > parameters_
List of PinholeCameraParameters objects.
Definition: PinholeCameraTrajectory.h:35
ccPolyline::setColor
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
cloudViewer::io::CreateEntityFromFile
std::shared_ptr< ccHObject > CreateEntityFromFile(const std::string &filename, const std::string &format="auto", bool print_progress=false)
Definition: AutoIO.cpp:330
LINES_READ_FOR_STATS
static const unsigned LINES_READ_FOR_STATS
Definition: AsciiOpenDlg.cpp:266
ccMesh::getTriangleNormalIndexes
void getTriangleNormalIndexes(unsigned triangleIndex, int &i1, int &i2, int &i3) const override
Returns a triplet of normal indexes for a given triangle (if any)
Definition: ecvMesh.cpp:3353
Mouse3DInput::V3DK_PLUS
@ V3DK_PLUS
Definition: Mouse3DInput.h:89
ccHObjectCaster::ToGenericMesh
static ccGenericMesh * ToGenericMesh(ccHObject *obj)
Converts current object to ccGenericMesh (if possible)
Definition: ecvHObjectCaster.cpp:123
AsciiOpenDlg::SequenceItem::type
CC_ASCII_OPEN_DLG_TYPES type
Definition: AsciiOpenDlg.h:125
ccMesh::setAssociatedCloud
void setAssociatedCloud(ccGenericPointCloud *cloud)
Sets the associated vertices cloud (warning)
Definition: ecvMesh.cpp:169
cloudViewer::BoundingBoxTpl::minCorner
const Vector3Tpl< T > & minCorner() const
Returns min corner (const)
Definition: BoundingBox.h:154
name
std::string name
Definition: FileIOFactory.cpp:129
AsciiFilter.h
HeaderFlags::name
bool name
Definition: BinFilter.cpp:98
ccPolyline
Colored polyline.
Definition: ecvPolyline.h:23
PlyOpenDlg::setDefaultComboItems
void setDefaultComboItems(const QStringList &stdPropsText)
Definition: PlyOpenDlg.cpp:72
cloudAttributesDescriptor::redIndex
int redIndex
Definition: AsciiFilter.cpp:478
cloudViewer::io::ReadFeatureFromBIN
bool ReadFeatureFromBIN(const std::string &filename, utility::Feature &feature)
Definition: FeatureIO.cpp:66
cloudViewer::io::WriteIJsonConvertibleToJSONString
bool WriteIJsonConvertibleToJSONString(std::string &json_string, const cloudViewer::utility::IJsonConvertible &object)
Definition: IJsonConvertibleIO.cpp:113
ccPointCloud::setNormsTable
void setNormsTable(NormsIndexesTableType *norms)
Sets the (compressed) normals table.
Definition: ecvPointCloud.cpp:1914
ASCII_OPEN_DLG_RGB32i
@ ASCII_OPEN_DLG_RGB32i
Definition: AsciiOpenDlg.h:39