 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
static bool SaveScan(ccPointCloud *cloud, e57::StructureNode &scanNode, e57::ImageFile &imf, e57::VectorNode &data3D, QString &guidStr, ecvProgressDialog *progressDlg=nullptr)
Definition: E57Filter.cpp:128
bool hasColors() const override
Returns whether colors are enabled or not.
Definition: ecvPointCloud.cpp:1689
static bool GetPoseInformation(const e57::StructureNode &node, ccGLMatrixd &poseMat)
Definition: E57Filter.cpp:1426
@ 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
std::string filename
Definition: PointCloudIO.cpp:47
@ GREY
Definition: ecvColorScalesManager.h:32
static void DecodePrototype(const e57::StructureNode &scan, const e57::StructureNode &proto, E57ScanHeader &header)
Definition: E57Filter.cpp:1057
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
@ CC_FERR_CANCELED_BY_USER
Definition: FileIOFilter.h:30
void normalize()
Sets vector norm to unity.
Definition: CVGeom.h:428
bool oneStep()
Increments total progress value of a single unit.
Definition: NormalizedProgress.cpp:99
double normRangeMinimum
Definition: E57Header.h:59
bool rowIndexField
Definition: E57Header.h:89
void computeMinAndMax() override
Determines the min and max values.
Definition: ecvScalarField.cpp:145
const ecvColor::Rgb & getPointColor(unsigned pointIndex) const override
Returns color corresponding to a given point.
Definition: ecvPointCloud.cpp:1535
Type x
Definition: CVGeom.h:137
ccGLMatrixTpl< T > inverse() const
Returns inverse transformation.
Definition: ecvGLMatrixTpl.h:1325
uint32_t columnIndexMaximum
Definition: E57Header.h:96
int offset
Definition: FileIOFactory.cpp:135
void setAspectRatio(float ar)
Manually sets aspect ratio.
Definition: ecvImage.h:63
@ CC_FERR_WRITING
Definition: FileIOFilter.h:25
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
bool cartesianZField
Definition: E57Header.h:22
int arrayHeight
Definition: ecvCameraSensor.h:44
CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters ¶meters) override
Saves an entity (or a group of) to a file.
Definition: E57Filter.cpp:718
bool isIntensityInvalidField
Definition: E57Header.h:119
void setMetaData(const QString &key, const QVariant &data)
Sets a meta-data element.
Definition: ecvObject.cpp:216
T getDiagNorm() const
Returns diagonal length.
Definition: BoundingBox.h:172
static ccHObject * LoadImage(const e57::Node &node, QString &associatedData3DGuid)
Definition: E57Filter.cpp:2024
double normRangeMaximum
Definition: E57Header.h:64
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
bool sphericalInvalidStateField
Definition: E57Header.h:33
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
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
const CCVector3 & getPointNormal(unsigned pointIndex) const override
Returns normal corresponding to a given point.
Definition: ecvPointCloud.cpp:1555
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Definition: ecvGLMatrixTpl.h:836
int arrayWidth
Definition: ecvCameraSensor.h:43
@ POINT_CLOUD
Definition: CVTypes.h:104
double principalPointY
Definition: E57Header.h:253
bool columnIndexField
Definition: E57Header.h:94
bool isInvalidData(double value)
Definition: qcustomplot.h:274
QVariant getMetaData(const QString &key) const
Returns a given associated meta data.
Definition: ecvObject.cpp:208
static ccHObject * LoadScan(const e57::Node &node, QString &guidStr, ecvProgressDialog *progressDlg=nullptr)
Definition: E57Filter.cpp:1460
unsigned size() const override
Definition: PointCloudTpl.h:38
Definition: E57Header.h:229
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
void setSaturationStop(ScalarType val)
Sets the value at which to stop color gradient.
Definition: ecvScalarField.cpp:275
double pixelWidth
Definition: E57Header.h:233
void setSaturationStart(ScalarType val)
Sets the value at which to start color gradient.
Definition: ecvScalarField.cpp:266
Type r
Definition: ecvColorTypes.h:54
bool colorRedField
Definition: E57Header.h:127
bool cartesianXField
Definition: E57Header.h:18
bool intensityField
Definition: E57Header.h:117
const CCVector3 * getPointPersistentPtr(unsigned index) override
Definition: PointCloudTpl.h:160
bool sphericalElevationField
Definition: E57Header.h:31
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
double intensityMinimum
Definition: E57Header.h:143
Generic loading parameters.
Definition: FileIOFilter.h:51
void setAssociatedSensor(ccCameraSensor *sensor)
Sets associated sensor.
Definition: ecvImage.cpp:130
double colorFieldType
Definition: E57Filter.cpp:36
@ CALIBRATED_IMAGE
Definition: CVTypes.h:115
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
Generic file I/O filter.
Definition: FileIOFilter.h:46
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
void initFromQuaternion(const float q[])
Creates a rotation matrix from a quaternion (float version)
Definition: SquareMatrix.h:480
bool returnCountField
Definition: E57Header.h:103
Interface for E57 camera representation.
Definition: E57Header.h:204
core::Tensor result
Definition: VtkUtils.cpp:76
double focalLength
Definition: E57Header.h:247
bool timeStampField
Definition: E57Header.h:109
static FileIOFilter::LoadParameters s_loadParameters
Definition: PlyFilter.cpp:532
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
static float ComputeFovRadFromFocalMm(float focal_mm, float ccdSize_mm)
Helper: deduces camera f.o.v. (in radians) from focal (in mm)
Definition: ecvCameraSensor.cpp:1680
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
double pointRangeMaximum
Definition: E57Header.h:42
uint32_t rowIndexMaximum
Definition: E57Header.h:91
bool isTimeStampInvalidField
Definition: E57Header.h:111
double principalPointX
Definition: E57Header.h:249
bool sphericalAzimuthField
Definition: E57Header.h:29
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
int size
Definition: FileIOFactory.cpp:130
Vector3Tpl< T > getTranslationAsVec3D() const
Returns a copy of the translation as a CCVector3.
Definition: ecvGLMatrixTpl.h:830
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
Intrinsic parameters of the camera sensor.
Definition: ecvCameraSensor.h:27
E57Filter()
Definition: E57Filter.cpp:83
double angleMinimum
Definition: E57Header.h:74
bool resizeSafe(std::size_t count, bool initNewElements=false, ScalarType valueForNewElements=0)
Resizes memory (no exception thrown)
Definition: ScalarField.cpp:81
double colorRedMaximum
Definition: E57Header.h:157
double principalPointY
Definition: E57Header.h:268
bool toQuaternion(double q[])
Converts rotation matrix to quaternion.
Definition: SquareMatrix.h:525
double intensityScaledInteger
Definition: E57Header.h:121
double pixelHeight
Definition: E57Header.h:235
void setData(const QImage &image)
Sets image data.
Definition: ecvImage.cpp:62
bool reserveTheNormsTable()
Reserves memory to store the compressed normals.
Definition: ecvPointCloud.cpp:1253
static bool ValidValue(ScalarType value)
Returns whether a scalar value is valid or not.
Definition: ScalarField.h:61
void setGraphicScale(PointCoordinateType scale)
Sets the sensor graphic representation scale.
Definition: ecvSensor.h:125
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
static QString createdBy()
Definition: FileIO.cpp:38
bool cartesianInvalidStateField
Definition: E57Header.h:24
const double * e
Definition: essential_matrix_poly.h:10
static bool ChildNodeToConsole(const e57::Node &node, const char *childName)
Definition: E57Filter.cpp:1017
void addNorm(const CCVector3 &N)
Pushes a normal vector on stack (shortcut)
Definition: ecvPointCloud.cpp:1754
uint8_t returnMaximum
Definition: E57Header.h:105
int32_t imageWidth
image width (in pixels). Shall be positive
Definition: E57Header.h:221
float getAspectRatio() const
Returns aspect ratio.
Definition: ecvImage.h:66
Type g
Definition: ecvColorTypes.h:54
void applyGLTransformation_recursive(const ccGLMatrix *trans=nullptr)
Applies the active OpenGL transformation to the entity (recursive)
Definition: ecvHObject.cpp:948
CC_FILE_ERROR
Typical I/O filter errors.
Definition: FileIOFilter.h:20
int32_t imageHeight
image height (in pixels). Shall be positive
Definition: E57Header.h:222
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
bool returnIndexField
Definition: E57Header.h:101
Definition: E57Header.h:261
bool getOwnGlobalBB(CCVector3d &minCorner, CCVector3d &maxCorner) override
Definition: ecvShiftedObject.cpp:64
virtual void release()
Decrease counter and deletes object when 0.
Definition: CVShareable.cpp:35
bool colorGreenField
Definition: E57Header.h:129
bool isColorInvalidField
Definition: E57Header.h:133
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
double angleMaximum
Definition: E57Header.h:79
ScalarType getMax() const
Returns the maximum value.
Definition: ScalarField.h:74
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
double radius
Definition: E57Header.h:265
Ground-based Laser sensor.
Definition: ecvGBLSensor.h:26
FBXCommand()
Definition: FBXCommand.cpp:15
double colorBlueMaximum
Definition: E57Header.h:165
Definition: E57Header.h:214
double timeMaximum
Definition: E57Header.h:113
double colorBlueMinimum
Definition: E57Header.h:163
Definition: E57Header.h:243
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
Generic command interface.
Definition: ecvCommandLineInterface.h:130
void flagValueAsInvalid(std::size_t index)
Sets the value as 'invalid' (i.e. NAN_VALUE)
Definition: ScalarField.h:66
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
@ CC_FERR_THIRD_PARTY_LIB_EXCEPTION
Definition: FileIOFilter.h:37
double pointRangeMinimum
Definition: E57Header.h:36
QVector< FileIOFilter::Shared > FilterList
Definition: ecvIOPluginInterface.h:22
~FBXCommand() override=default
void toGlMatrix(float M16f[]) const
Converts a 3*3 or 4*4 matrix to an OpenGL-style float matrix (float[16])
Definition: SquareMatrix.h:601
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
double colorGreenMaximum
Definition: E57Header.h:161
int points
Definition: FileIOFactory.cpp:144
void SaveImage(const ccImage *image, const QString &scanGUID, e57::ImageFile &imf, e57::VectorNode &images2D)
Definition: E57Filter.cpp:607
double pointRangeScaledInteger
Definition: E57Header.h:47
void addRGBColor(const ecvColor::Rgb &C)
Pushes an RGB color on stack.
Definition: ecvPointCloud.cpp:1712
Type z
Definition: CVGeom.h:137
Camera (projective) sensor.
Definition: ecvCameraSensor.h:24
virtual void setRigidTransformation(const ccGLMatrix &mat)
Definition: ecvSensor.h:99
void setColorScale(ccColorScale::Shared scale)
Sets associated color scale.
Definition: ecvScalarField.cpp:108
bool normYField
Definition: E57Header.h:55
Type b
Definition: ecvColorTypes.h:54
static bool NodeStructureToTree(ccHObject *currentTreeNode, const e57::Node ¤tE57Node)
Definition: E57Filter.cpp:908
bool normXField
Definition: E57Header.h:53
bool resize(unsigned numberOfPoints) override
Resizes all the active features arrays.
Definition: ecvPointCloud.cpp:1476
double angleScaledInteger
Definition: E57Header.h:84
bool sphericalRangeField
Definition: E57Header.h:27
QWidget * parentWidget
Parent widget (if any)
Definition: FileIOFilter.h:78
bool colorBlueField
Definition: E57Header.h:131
@ Import
Definition: FileIOFilter.h:302
static void SavePoseInformation(e57::StructureNode &parentNode, const e57::ImageFile &imf, const ccGLMatrixd &poseMat)
Definition: E57Filter.cpp:101
Command line interface.
Definition: ecvCommandLineInterface.h:112
T * getTranslation()
Retruns a pointer to internal translation.
Definition: ecvGLMatrixTpl.h:819
double colorGreenMinimum
Definition: E57Header.h:159
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
bool getActiveAbsoluteTransformation(ccIndexedTransformation &trans) const
Gets currently active absolute transformation.
Definition: ecvSensor.cpp:90
QSharedPointer< FileIOFilter > Shared
Shared type.
Definition: FileIOFilter.h:97
QWidget * parentWidget
Parent widget (if any)
Definition: FileIOFilter.h:93
int getCurrentDisplayedScalarFieldIndex() const
Returns the currently displayed scalar field index (or -1 if none)
Definition: ecvPointCloud.cpp:3223
const char * getScalarFieldName(int index) const
Returns the name of a specific scalar field.
Definition: PointCloudTpl.h:365
float principal_point[2]
Definition: ecvCameraSensor.h:45
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
Generic saving parameters.
Definition: FileIOFilter.h:84
@ CC_FERR_MALFORMED_FILE
Definition: FileIOFilter.h:32
@ CC_FERR_READING
Definition: FileIOFilter.h:26
float pixelSize_mm[2]
Definition: ecvCameraSensor.h:37
RGB color structure.
Definition: ecvColorTypes.h:49
double normRangeScaledInteger
Definition: E57Header.h:69
ccScalarField * getCurrentDisplayedScalarField() const
Returns the currently displayed scalar (or 0 if none)
Definition: ecvPointCloud.cpp:3218
bool process(ccCommandLineInterface &cmd) override
Main process.
Definition: FBXCommand.cpp:17
virtual void resetGLTransformationHistory_recursive()
Definition: ecvHObject.h:550
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
bool normZField
Definition: E57Header.h:57
static void NodeToConsole(const e57::Node &node)
Definition: E57Filter.cpp:971
double norm2d() const
Returns vector square norm (forces double precision output)
Definition: CVGeom.h:419
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
Definition: ecvShiftedObject.h:33
float vFOV_rad
Definition: ecvCameraSensor.h:40
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
virtual void registerCommands(ccCommandLineInterface *cmd)
Optional: registers commands (for the command line mode)
Definition: ecvPluginInterface.h:121
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
T * data()
Returns a pointer to internal data.
Definition: ecvGLMatrixTpl.h:810
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
bool cartesianYField
Definition: E57Header.h:20
Eigen::Matrix3d rotation
Definition: VoxelGridIO.cpp:27
double colorRedMinimum
Definition: E57Header.h:155
Definition: GenericProgressCallback.h:78
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Image2DType imageType
image type.
Definition: E57Header.h:218
virtual const ccGLMatrix & getGLTransformationHistory() const
Returns the transformation 'history' matrix.
Definition: ecvHObject.h:631
Type u[3]
Definition: CVGeom.h:139
int64_t imageSize
size of image data in BlobNode.
Definition: E57Header.h:219
static float ConvertFocalMMToPix(float focal_mm, float ccdPixelSize_mm)
Helper: converts camera focal from mm to pixels.
Definition: ecvCameraSensor.cpp:1658
unsigned char ColorCompType
Default color components type (R,G and B)
Definition: ecvColorTypes.h:29
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: E57Filter.cpp:89
Generic image.
Definition: ecvImage.h:19
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
@ CC_FERR_NO_ERROR
Definition: FileIOFilter.h:21
Definition: FBXCommand.h:29
E57 filter (relies on E57format lib)
Definition: E57Filter.h:14
CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters ¶meters) override
Loads one or more entities from a file.
Definition: E57Filter.cpp:2302
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
double intensityMaximum
Definition: E57Header.h:145
virtual Image2DProjection getType()
Definition: E57Header.h:207
static ccGLMatrixTpl< double > FromString(const QString &matText, bool &success)
Converts a 'text' matrix to a ccGLMatrix.
Definition: ecvGLMatrixTpl.h:477
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
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
char type
Definition: FileIOFactory.cpp:131
unsigned currentSize() const
Definition: ScalarField.h:100
I/O filter plugin interface.
Definition: ecvIOPluginInterface.h:20
float vertFocal_pix
Definition: ecvCameraSensor.h:35
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
@ CC_FERR_NO_SAVE
Definition: FileIOFilter.h:27
@ ABS_NORM_GREY
Definition: ecvColorScalesManager.h:36
bool reserveTheRGBTable()
Reserves memory to store the RGB colors.
Definition: ecvPointCloud.cpp:1200
std::string name
Definition: FileIOFactory.cpp:129
QString toString(int precision=12, QChar separator=' ') const
Returns matrix as a string.
Definition: ecvGLMatrixTpl.h:502
int64_t imageMaskSize
size of image mask data in BlobNode (if any).
Definition: E57Header.h:220