 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
28 static ccMesh* Convert(PCLTextureMesh::ConstPtr textureMesh);
30 bool ignoreScalars =
false,
31 bool ignoreRgb =
false);
33 const std::vector<pcl::Vertices>& polygons,
34 bool ignoreScalars =
false,
35 bool ignoreRgb =
false);
38 static bool CopyXYZ(
const PCLCloud& pclCloud,
40 uint8_t coordinateType);
43 static bool CopyScalarField(
const PCLCloud& pclCloud,
44 const std::string& sfName,
46 bool overwriteIfExist =
true);
48 static void FromPCLMaterial(
const PCLMaterial& inMaterial,
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
void deleteScalarField(int index) override
Deletes a specific scalar field.
Definition: ecvPointCloud.cpp:3237
#define FROM_PCL_CLOUD
Definition: PCLConv.h:11
2D texture coordinates
Definition: ecvAdvancedTypes.h:138
static bool CopyRGB(const PCLCloud &pclCloud, ccPointCloud &ccCloud)
Definition: sm2cc.cpp:150
void showNormals(bool state) override
Sets normals visibility.
Definition: ecvGenericMesh.cpp:44
QSharedPointer< ccMaterial > Shared
Shared type.
Definition: ecvMaterial.h:33
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
normal_z x
Definition: my_point_types.h:165
void computeMinAndMax() override
Determines the min and max values.
Definition: ecvScalarField.cpp:145
Type x
Definition: CVGeom.h:137
static void FromPCLMaterial(const PCLMaterial &inMaterial, ccMaterial::Shared &outMaterial)
Definition: sm2cc.cpp:311
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMesh.cpp:2143
T x
Definition: sm2cc.cpp:44
void PCLCloudToCCCloud(const PCLCloud &pclCloud, ccPointCloud &ccCloud)
Definition: sm2cc.cpp:76
pcl::TexMaterial PCLMaterial
Definition: PCLCloud.h:32
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
bool reservePerTriangleTexCoordIndexes()
Reserves memory to store per-triangle triplets of tex coords indexes.
Definition: ecvMesh.cpp:3659
void setMaterialSet(ccMaterialSet *materialSet, bool autoReleaseOldMaterialSet=true)
Sets associated material set (may be shared)
Definition: ecvMesh.cpp:492
virtual void setLocked(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:117
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
void addElement(ScalarType value)
Definition: ScalarField.h:99
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
bool reserve(std::size_t n)
Reserves the memory to store the vertex indexes (3 per triangle)
Definition: ecvMesh.cpp:2475
ccGenericPointCloud * getAssociatedCloud() const override
Returns the vertices cloud.
Definition: ecvMesh.h:143
static bool CopyNormals(const PCLCloud &pclCloud, ccPointCloud &ccCloud)
Definition: sm2cc.cpp:124
void shrinkToFit()
Removes unused capacity.
Definition: ecvMesh.h:302
pcl::PCLPointCloud2 PCLCloud
Definition: PCLCloud.h:34
virtual bool hasNormals() const
Returns whether normals are enabled or not.
Definition: ecvDrawableObject.h:89
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
T y
Definition: sm2cc.cpp:45
double normals[3]
Definition: TriangleMeshIO.cpp:54
Array of compressed 3D normals (single index)
Definition: ecvAdvancedTypes.h:21
bool reservePerTriangleMtlIndexes()
Reserves memory to store per-triangle material index.
Definition: ecvMesh.cpp:3734
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
void addTriangle(unsigned i1, unsigned i2, unsigned i3)
Adds a triangle to the mesh.
Definition: ecvMesh.cpp:2428
normal_z y
Definition: my_point_types.h:168
Mesh (triangle) material.
Definition: ecvMaterial.h:28
bool reserveSafe(std::size_t count)
Reserves memory (no exception thrown)
Definition: ScalarField.cpp:71
static ccMesh * Convert(PCLTextureMesh::ConstPtr textureMesh)
Converts a PCL point cloud to a ccPointCloud.
bool reserveTheNormsTable()
Reserves memory to store the compressed normals.
Definition: ecvPointCloud.cpp:1253
void addNorm(const CCVector3 &N)
Pushes a normal vector on stack (shortcut)
Definition: ecvPointCloud.cpp:1754
normal_z scalar
Definition: my_point_types.h:169
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
static bool CopyXYZ(const PCLCloud &pclCloud, ccPointCloud &ccCloud, uint8_t coordinateType)
Definition: sm2cc.cpp:88
bool isAllocated() const
Returns whether some memory has been allocated or not.
Definition: ecvArray.h:67
virtual void release()
Decrease counter and deletes object when 0.
Definition: CVShareable.cpp:35
bool ExistField(const PCLCloud &pclCloud, std::string name)
Definition: sm2cc.cpp:68
void addElement(const Type &value)
Definition: ecvArray.h:105
Array of 2D texture coordinates.
Definition: ecvAdvancedTypes.h:151
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
void setTexCoordinatesTable(TextureCoordsContainer *texCoordsTable, bool autoReleaseOldTable=true)
Sets per-triangle texture coordinates array (may be shared)
Definition: ecvMesh.cpp:3598
std::string GetFileParentDirectory(const std::string &filename)
Definition: FileSystem.cpp:314
std::vector< PCLPointField > fields
Definition: FileIOFactory.cpp:141
void addRGBColor(const ecvColor::Rgb &C)
Pushes an RGB color on stack.
Definition: ecvPointCloud.cpp:1712
Type z
Definition: CVGeom.h:137
int addMaterial(ccMaterial::CShared mat, bool allowDuplicateNames=false)
Adds a material.
Definition: ecvMaterialSet.cpp:60
T data[3]
Definition: sm2cc.cpp:42
virtual void showMaterials(bool state)
Sets whether textures should be displayed or not.
Definition: ecvGenericMesh.h:201
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
constexpr Rgbaf night(0.00f, 0.00f, 0.00f, 1.00F)
NormsIndexesTableType * getTriNormsTable() const override
Returns per-triangle normals shared array.
Definition: ecvMesh.h:344
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
static bool CopyScalarField(const PCLCloud &pclCloud, const std::string &sfName, ccPointCloud &ccCloud, bool overwriteIfExist=true)
Definition: sm2cc.cpp:170
RGB color structure.
Definition: ecvColorTypes.h:49
Triangular mesh.
Definition: ecvMesh.h:35
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
Type y
Definition: CVGeom.h:137
bool hasColors() const override
Returns whether colors are enabled or not.
Definition: ecvMesh.cpp:221
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
bool computeNormals(bool perVertex)
Computes normals.
Definition: ecvMesh.cpp:242
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
normal_z z
Definition: my_point_types.h:165
Type u[3]
Definition: CVGeom.h:139
void shrinkToFit()
Removes unused capacity.
Definition: ecvPointCloud.h:357
unsigned char ColorCompType
Default color components type (R,G and B)
Definition: ecvColorTypes.h:29
PCL to CC cloud converter.
Definition: sm2cc.h:25
void addTriangleMtlIndex(int mtlIndex)
Adds triangle material index for next triangle.
Definition: ecvMesh.cpp:3751
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
POINT_CLOUD_REGISTER_POINT_STRUCT(PointXYZTpl< std::int32_t >,(std::int32_t, x, x)(std::int32_t, y, y)(std::int32_t, z, z)) POINT_CLOUD_REGISTER_POINT_STRUCT(PointXYZTpl< std
Definition: sm2cc.cpp:51
pcl::PCLPointField PCLScalarField
Definition: sm2cc.cpp:36
T z
Definition: sm2cc.cpp:46
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
bool reserveTheRGBTable()
Reserves memory to store the RGB colors.
Definition: ecvPointCloud.cpp:1200
RGBA color structure.
Definition: ecvColorTypes.h:145
std::string name
Definition: FileIOFactory.cpp:129