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