 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
19 class GenericProgressCallback;
49 virtual void refreshBB() = 0;
52 virtual unsigned capacity()
const = 0;
55 virtual bool hasMaterials()
const = 0;
61 virtual int getTriangleMtlIndex(
unsigned triangleIndex)
const = 0;
64 virtual bool hasTextures()
const = 0;
70 virtual void getTriangleTexCoordinates(
unsigned triIndex,
74 virtual void getTexCoordinates(
unsigned index,
TexCoords2D*& tx)
const = 0;
77 virtual bool hasPerTriangleTexCoordIndexes()
const = 0;
85 virtual void getTriangleTexCoordinatesIndexes(
unsigned triangleIndex,
91 virtual bool hasTriNormals()
const = 0;
99 virtual void getTriangleNormalIndexes(
unsigned triangleIndex,
107 virtual bool getTriangleNormals(
unsigned triangleIndex,
114 double Nc[3])
const {
120 Eigen::Vector3d& Nc)
const {
128 virtual void computeInterpolationWeights(
unsigned triIndex,
138 virtual bool interpolateNormalsBC(
unsigned triIndex,
160 virtual bool getColorFromMaterial(
unsigned triIndex,
163 bool interpolateColorIfNoTexture) = 0;
173 virtual bool getVertexColorFromMaterial(
unsigned triIndex,
174 unsigned char vertIndex,
176 bool returnColorIfNoTexture) = 0;
182 virtual void showWired(
bool state) { m_showWired = state; }
189 virtual void showPoints(
bool state) { m_showPoints = state; }
212 double samplingParameter,
224 virtual bool trianglePicking(
const CCVector2d& clickPos,
226 int& nearestTriIndex,
227 double& nearestSquareDist,
229 CCVector3d* barycentricCoords =
nullptr)
const;
232 virtual bool trianglePicking(
unsigned triIndex,
236 CCVector3d* barycentricCoords =
nullptr)
const;
240 bool computePointPosition(
unsigned triIndex,
243 bool warningIfOutside =
true)
const;
258 bool updateTextures(
const std::string& texture_file);
259 bool updateTextures(
const std::vector<std::string>& texture_files);
263 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
268 LoadedIDMap& oldToNewIDMap)
override;
276 virtual bool trianglePicking(
unsigned triIndex,
283 CCVector3d* barycentricCoords =
nullptr)
const;
288 static unsigned* GetWireVertexIndexes();
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
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
bool m_stippling
Polygon stippling state.
Definition: ecvGenericMesh.h:313
bool interpolateColors(const ccHObject::Container &selectedEntities, QWidget *parent)
Interpolate colors from on entity and transfer them to another one.
Definition: ecvEntityAction.cpp:292
virtual bool toFile_MeOnly(QFile &out, short dataVersion) const
Save own object data.
Definition: ecvHObject.cpp:1302
virtual short minimumFileVersion_MeOnly() const
Definition: ecvHObject.cpp:1364
virtual void showTriNorms(bool state)
Sets whether to show or not per-triangle normals.
Definition: ecvGenericMesh.h:195
virtual void setGlobalScale(double scale)
Definition: ecvShiftedObject.cpp:33
virtual bool stipplingEnabled() const
Returns whether polygon stippling is enabled or not.
Definition: ecvGenericMesh.h:204
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
Definition: GenericProgressCallback.h:20
OpenGL camera parameters.
Definition: ecvGenericDisplayTools.h:554
virtual bool hasNormals() const
Returns whether normals are enabled or not.
Definition: ecvDrawableObject.h:89
virtual bool isShownAsPoints() const
Returns whether the mesh is displayed as wired or with plain facets.
Definition: ecvGenericMesh.h:185
virtual bool getTriangleNormals(unsigned triangleIndex, Eigen::Vector3d &Na, Eigen::Vector3d &Nb, Eigen::Vector3d &Nc) const
Definition: ecvGenericMesh.h:117
Array of compressed 3D normals (single index)
Definition: ecvAdvancedTypes.h:21
ImGuiContext * context
Definition: Window.cpp:76
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
virtual bool isShownAsWire() const
Returns whether the mesh is displayed as wired or with plain facets.
Definition: ecvGenericMesh.h:179
bool m_triNormsShown
Per-triangle normals display flag.
Definition: ecvGenericMesh.h:301
virtual void showPoints(bool state)
Definition: ecvGenericMesh.h:189
virtual bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap)
Loads own object data.
Definition: ecvHObject.cpp:1371
Generic mesh interface.
Definition: ecvGenericMesh.h:28
Array of 2D texture coordinates.
Definition: ecvAdvancedTypes.h:151
Shifted entity interface.
Definition: ecvShiftedObject.h:18
A generic mesh with index-based vertex access.
Definition: GenericIndexedMesh.h:37
bool m_materialsShown
Texture/material display flag.
Definition: ecvGenericMesh.h:304
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
bool isSerializable() const override
Returns whether object is serializable of not.
Definition: ecvGenericMesh.h:43
virtual void showMaterials(bool state)
Sets whether textures should be displayed or not.
Definition: ecvGenericMesh.h:201
math::float2 uv
Definition: PointCloudBuffers.cpp:51
RGB color structure.
Definition: ecvColorTypes.h:49
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
bool normalsAvailable() const override
Returns whether normals are available.
Definition: ecvGenericMesh.h:256
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
Definition: ecvShiftedObject.h:33
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
virtual bool getTriangleNormals(unsigned triangleIndex, double Na[3], double Nb[3], double Nc[3]) const
Definition: ecvGenericMesh.h:111
bool m_showPoints
points display mode
Definition: ecvGenericMesh.h:310
bool m_showWired
Wireframe display mode.
Definition: ecvGenericMesh.h:307
#define CV_DB_LIB_API
Definition: CV_db.h:15
Display context.
Definition: ecvDrawContext.h:365
virtual bool triNormsShown() const
Returns whether per-triangle normals are shown or not.
Definition: ecvGenericMesh.h:192
virtual void showWired(bool state)
Sets whether mesh should be displayed as a wire or with plain facets.
Definition: ecvGenericMesh.h:182
virtual void drawMeOnly(CC_DRAW_CONTEXT &context)
Draws the entity only (not its children)
Definition: ecvHObject.h:655
void enableStippling(bool state)
Enables polygon stippling.
Definition: ecvGenericMesh.h:207
std::string name
Definition: FileIOFactory.cpp:129