 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
25 static ccPointCloud* ConvertToPointCloud(vtkPolyData* polydata,
27 static ccMesh* ConvertToMesh(vtkPolyData* polydata,
bool silent =
false);
28 static ccPolyline* ConvertToPolyline(vtkPolyData* polydata,
32 static std::vector<ccHObject*> ConvertToMultiPolylines(
33 vtkPolyData* polydata,
34 QString baseName =
"Slice",
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
double colors[3]
Definition: TriangleMeshIO.cpp:53
virtual bool reserve(unsigned n)
Reserves some memory for hosting the point references.
Definition: ReferenceCloud.cpp:51
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
void computeMinAndMax() override
Determines the min and max values.
Definition: ecvScalarField.cpp:145
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
static std::vector< ccHObject * > ConvertToMultiPolylines(vtkPolyData *polydata, QString baseName="Slice", const ecvColor::Rgb &color=ecvColor::green)
Definition: vtk2cc.cpp:460
double normal[3]
Definition: FileIOFactory.cpp:53
CC to PCL cloud converter.
Definition: vtk2cc.h:23
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
@ POINT_CLOUD
Definition: CVTypes.h:104
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
virtual void setLocked(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:117
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
Definition: WidgetMap.h:20
math::float4 color
Definition: LineSetBuffers.cpp:46
bool reserve(std::size_t n)
Reserves the memory to store the vertex indexes (3 per triangle)
Definition: ecvMesh.cpp:2475
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
void shrinkToFit()
Removes unused capacity.
Definition: ecvMesh.h:302
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
double normals[3]
Definition: TriangleMeshIO.cpp:54
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
Array of compressed 3D normals (single index)
Definition: ecvAdvancedTypes.h:21
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
Definition: ReferenceCloud.cpp:84
void setPoint(size_t index, const CCVector3 &P)
Definition: PointCloudTpl.h:259
void addTriangle(unsigned i1, unsigned i2, unsigned i3)
Adds a triangle to the mesh.
Definition: ecvMesh.cpp:2428
void setPointSize(unsigned size=0)
Sets point size.
Definition: ecvGenericPointCloud.h:275
bool resizeSafe(std::size_t count, bool initNewElements=false, ScalarType valueForNewElements=0)
Resizes memory (no exception thrown)
Definition: ScalarField.cpp:81
bool reserveSafe(std::size_t count)
Reserves memory (no exception thrown)
Definition: ScalarField.cpp:71
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
constexpr Rgb green(0, MAX, 0)
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
virtual void release()
Decrease counter and deletes object when 0.
Definition: CVShareable.cpp:35
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
void addRGBColor(const ecvColor::Rgb &C)
Pushes an RGB color on stack.
Definition: ecvPointCloud.cpp:1712
void setClosed(bool state)
Sets whether the polyline is closed or not.
Definition: Polyline.h:29
bool resize(unsigned numberOfPoints) override
Resizes all the active features arrays.
Definition: ecvPointCloud.cpp:1476
bool hasScalarFields() const override
Returns whether one or more scalar fields are instantiated.
Definition: ecvPointCloud.cpp:1697
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
NormsIndexesTableType * getTriNormsTable() const override
Returns per-triangle normals shared array.
Definition: ecvMesh.h:344
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
RGB color structure.
Definition: ecvColorTypes.h:49
Triangular mesh.
Definition: ecvMesh.h:35
static ccPolyline * ConvertToPolyline(vtkPolyData *polydata, bool silent=false)
Definition: vtk2cc.cpp:392
static ccPointCloud * ConvertToPointCloud(vtkPolyData *polydata, bool silent=false)
Definition: vtk2cc.cpp:53
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
virtual void setTempColor(const ecvColor::Rgb &col, bool autoActivate=true)
Sets current temporary (unique)
Definition: ecvDrawableObject.cpp:74
void set2DMode(bool state)
Defines if the polyline is considered as 2D or 3D.
Definition: ecvPolyline.cpp:144
constexpr Rgb red(MAX, 0, 0)
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
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
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
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
static ccMesh * ConvertToMesh(vtkPolyData *polydata, bool silent=false)
Definition: vtk2cc.cpp:290
bool reserveTheRGBTable()
Reserves memory to store the RGB colors.
Definition: ecvPointCloud.cpp:1200
std::string name
Definition: FileIOFactory.cpp:129
Colored polyline.
Definition: ecvPolyline.h:23