 |
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
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
virtual bool materialsShown() const
Sets whether textures/material should be displayed or not.
Definition: ecvGenericMesh.h:198
2D texture coordinates
Definition: ecvAdvancedTypes.h:138
void showNormals(bool state) override
Sets normals visibility.
Definition: ecvGenericMesh.cpp:44
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
QSharedPointer< ccMaterial > Shared
Shared type.
Definition: ecvMaterial.h:33
bool computePerVertexNormals()
Computes per-vertex normals.
Definition: ecvMesh.cpp:246
unsigned currentSize() const
Definition: ecvArray.h:112
Type x
Definition: CVGeom.h:137
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
ccGLMatrixTpl< T > inverse() const
Returns inverse transformation.
Definition: ecvGLMatrixTpl.h:1325
unsigned i2
Definition: GenericIndexedMesh.h:19
ccMaterialSet * clone() const
Clones materials set.
Definition: ecvMaterialSet.cpp:655
virtual bool normalsShown() const
Returns whether normals are shown or not.
Definition: ecvDrawableObject.h:91
virtual bool hasTriNormals() const =0
Returns whether the mesh has per-triangle normals.
virtual int getTriangleMtlIndex(unsigned triangleIndex) const =0
Returns a given triangle material indexes.
virtual void computeInterpolationWeights(unsigned triIndex, const CCVector3 &P, CCVector3d &weights) const
Returns the (barycentric) interpolation weights for a given triangle.
Definition: ecvGenericMesh.cpp:476
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
cloudViewer::ReferenceCloud * crop(const ccBBox &box, bool inside=true) override
Crops the cloud inside (or outside) a bounding box.
Definition: ecvPointCloud.cpp:4900
virtual bool hasPerTriangleTexCoordIndexes() const =0
Returns whether this mesh as per-triangle triplets of tex coords indexes.
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
virtual const ccMaterialSet * getMaterialSet() const =0
@ MESH
Definition: CVTypes.h:105
virtual void setGLTransformation(const ccGLMatrix &trans)
Associates entity with a GL transformation (rotation + translation)
Definition: ecvDrawableObject.cpp:54
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
void unallocateColors()
Erases the cloud colors.
Definition: ecvPointCloud.cpp:1171
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
Bounding box structure.
Definition: ecvBBox.h:25
unsigned getNumberOfScalarFields() const
Returns the number of associated (and active) scalar fields.
Definition: PointCloudTpl.h:345
void setMaterialSet(ccMaterialSet *materialSet, bool autoReleaseOldMaterialSet=true)
Sets associated material set (may be shared)
Definition: ecvMesh.cpp:492
@ POINT_CLOUD
Definition: CVTypes.h:104
virtual ccGenericPointCloud * getAssociatedCloud() const =0
Returns the vertices cloud.
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
void importParametersFrom(const ccGenericMesh *mesh)
Imports the parameters from another mesh.
Definition: ecvGenericMesh.cpp:452
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
bool resizeTheRGBTable(bool fillWithWhite=false)
Resizes the RGB colors array.
Definition: ecvPointCloud.cpp:1226
virtual void getTriangleTexCoordinates(unsigned triIndex, TexCoords2D *&tx1, TexCoords2D *&tx2, TexCoords2D *&tx3) const =0
Returns per-triangle texture coordinates (pointer to)
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
static ccPointCloud * From(const cloudViewer::GenericIndexedCloud *cloud, const ccGenericPointCloud *sourceCloud=nullptr)
Creates a new point cloud object from a GenericIndexedCloud.
Definition: ecvPointCloud.cpp:114
virtual ScalarType getPointScalarValue(unsigned pointIndex) const =0
Returns the ith point associated scalar value.
virtual bool hasMaterials() const =0
virtual bool hasScalarFields() const
Returns whether one or more scalar fields are instantiated.
Definition: ecvDrawableObject.h:105
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
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
void importParametersFrom(const ccGenericPointCloud *cloud)
Imports the parameters from another cloud.
Definition: ecvGenericPointCloud.cpp:228
bool reservePerTriangleMtlIndexes()
Reserves memory to store per-triangle material index.
Definition: ecvMesh.cpp:3734
void fill(ScalarType fillValue=0)
Fills the array with a particular value.
Definition: ScalarField.h:77
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
int size
Definition: FileIOFactory.cpp:130
Rgb at(size_t color_id)
Definition: ecvColorTypes.cpp:77
int getTriangleMtlIndex(unsigned triangleIndex) const override
Returns a given triangle material indexes.
Definition: ecvMesh.cpp:3761
bool reserveSafe(size_t count)
Reserves memory (no exception thrown)
Definition: ecvArray.h:56
Mesh (triangle) material.
Definition: ecvMaterial.h:28
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
float tx
Definition: ecvAdvancedTypes.h:144
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
const GenericIndexedCloud * vertices() const
Returns the vertices.
Definition: SimpleMesh.h:67
void applyGLTransformation_recursive(const ccGLMatrix *trans=nullptr)
Applies the active OpenGL transformation to the entity (recursive)
Definition: ecvHObject.cpp:948
unsigned i3
Definition: GenericIndexedMesh.h:19
unsigned i[3]
Definition: GenericIndexedMesh.h:21
void addElement(const Type &value)
Definition: ecvArray.h:105
Generic mesh interface.
Definition: ecvGenericMesh.h:28
virtual bool colorsShown() const
Returns whether colors are shown or not.
Definition: ecvDrawableObject.h:82
Array of 2D texture coordinates.
Definition: ecvAdvancedTypes.h:151
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
void setTexCoordinatesTable(TextureCoordsContainer *texCoordsTable, bool autoReleaseOldTable=true)
Sets per-triangle texture coordinates array (may be shared)
Definition: ecvMesh.cpp:3598
virtual bool interpolateColors(unsigned triIndex, const CCVector3 &P, ecvColor::Rgb &C)=0
Interpolates RGB colors inside a given triangle.
Type z
Definition: CVGeom.h:137
bool computePerTriangleNormals()
Computes per-triangle normals.
Definition: ecvMesh.cpp:331
float ty
Definition: ecvAdvancedTypes.h:144
virtual VerticesIndexes * getTriangleVertIndexes(unsigned triangleIndex)=0
Returns the indexes of the vertices of a given triangle.
Type dot(const Vector3Tpl &v) const
Dot product.
Definition: CVGeom.h:408
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
void setTriangleMtlIndex(unsigned triangleIndex, int mtlIndex)
Sets triangle material indexes.
Definition: ecvMesh.cpp:3756
void deleteAllScalarFields() override
Deletes all scalar fields associated to this cloud.
Definition: ecvPointCloud.cpp:3253
virtual bool sfShown() const
Returns whether active scalar field is visible.
Definition: ecvDrawableObject.h:117
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
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
RGB color structure.
Definition: ecvColorTypes.h:49
Triangular mesh.
Definition: ecvMesh.h:35
constexpr ScalarType NAN_VALUE
NaN as a ScalarType value.
Definition: CVConst.h:76
virtual bool hasColors() const
Returns whether colors are enabled or not.
Definition: ecvDrawableObject.h:80
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
const Vector3Tpl< T > & maxCorner() const
Returns max corner (const)
Definition: BoundingBox.h:156
A simple mesh structure, with index-based vertex access.
Definition: SimpleMesh.h:26
Type u[3]
Definition: CVGeom.h:139
void importParametersFrom(const ccScalarField *sf)
Imports the parameters from another scalar field.
Definition: ecvScalarField.cpp:633
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
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 Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
unsigned i1
Definition: GenericIndexedMesh.h:19
const Vector3Tpl< T > & minCorner() const
Returns min corner (const)
Definition: BoundingBox.h:154