![]() |
FlowEngine 8.011
Photogrammetry Software Development Kit
|
#include <StereoTexturedMeshInterface.h>
Public Member Functions | |
virtual FLE_DLL Result | copyFrom (const StereoTexturedMeshInterface &inStereoTexturedMesh)=0 |
virtual FLE_DLL Result | extractStereoMesh (StereoMeshInterface &outStereoMesh, bool unifyDuplicatedVertices=true) const =0 |
virtual FLE_DLL Result | extractStereoMesh (StereoMeshInterface &outStereoMesh, Buffer< Index > inOutTextureToMeshVertexMapping) const =0 |
virtual FLE_DLL Result | getInputMeshIndexes (Buffer< Index > outIndexes) const =0 |
virtual FLE_DLL Index | getPointCount () const =0 |
virtual FLE_DLL Result | getPointPosition (Index idx, Point3 &outPosition) const =0 |
virtual FLE_DLL Result | getPointTexCoordData (Buffer< TexCoords > outTexCoordData, bool flipV=false) const =0 |
virtual FLE_DLL Result | getPointTexCoords (Index idx, TexCoords &outTexCoord) const =0 |
virtual FLE_DLL Index | getTextureCount () const =0 |
virtual FLE_DLL Result | getTextureData (Index texIdx, Buffer< PointColor32 > outData) const =0 |
virtual FLE_DLL Result | getTextureDimensions (Index texIdx, int &outWidth, int &outHeight) const =0 |
virtual FLE_DLL Result | getTriangle (Index idx, Triangle &outTriangle) const =0 |
virtual FLE_DLL Index | getTriangleCount () const =0 |
virtual FLE_DLL Result | loadFromObj (ConstStringBuffer filePath, bool loadTextures)=0 |
virtual FLE_DLL Result | removePoint (Index index)=0 |
virtual FLE_DLL Result | removePoints (ConstBuffer< Index > indexes)=0 |
virtual FLE_DLL Result | saveTextureToFile (Index texIdx, ConstStringBuffer filePath, Size textureSize=0, Size channelBitDepth=0) const =0 |
virtual FLE_DLL Result | saveToObj (ConstStringBuffer filePath, bool saveTextures=true, ConstStringBuffer textureFileFormat="png") const =0 |
virtual FLE_DLL Result | setPointPosition (Index idx, const Point3 &position)=0 |
virtual FLE_DLL Result | setPointTexCoords (Index idx, const TexCoords &texCoords)=0 |
virtual FLE_DLL Result | setTriangle (Index idx, const Triangle &triangle)=0 |
virtual FLE_DLL Result | transform (ConstBuffer< double > transform)=0 |
virtual FLE_DLL | ~StereoTexturedMeshInterface ()=default |
![]() | |
virtual FLE_DLL Result | getName (StringBuffer outName) const =0 |
virtual FLE_DLL Size | getNameLength () const =0 |
virtual FLE_DLL Result | setName (ConstStringBuffer name)=0 |
virtual FLE_DLL | ~NamedObjectInterface ()=default |
Stores a simple textured mesh object for the FlowEngine interface.
Nothing needed in input. Everything will be filled by FlowEngine during MVS Computation.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Copy data from another Stereo Textured Mesh.
[in] | inStereoTexturedMesh | the stereo textured mesh in input |
|
pure virtual |
Extract a stereo mesh from this stereo textured mesh.
[in] | outStereoMesh | a stereo mesh object that will be filled with the requested data |
[in] | unifyDuplicatedVertices | when set to true, the procedure will merge duplicated vertices and discard non-manifold triangles |
|
pure virtual |
Extract a stereo mesh from this stereo textured mesh. Always unify duplicated vertices and discard non manifold triangles.
[in] | outStereoMesh | a stereo mesh object that will be filled with the requested data |
[in,out] | inOutTextureToMeshVertexMapping | a buffer that will receive data to map this textured mesh vertex indices to the mesh ones. Must be at least 'getPointCount()' big. |
inOutTextureToMeshVertexMapping
is not a valid buffer.inOutTextureToMeshVertexMapping
is not big enough to receive all data.
|
pure virtual |
Return the indexes of each textured point, related to the input mesh used.
[out] | outIndexes | a buffer of Indexes, at least getPointCount() big.
|
|
pure virtual |
|
pure virtual |
Returns the position of the point at index idx
.
[in] | idx | the index of the position to retrieve. Must be in the range [0, getPointCount()) |
[out] | outPosition | the point position. |
outPosition
was filled with the point position data.idx
is not in the valid range.
|
pure virtual |
Returns the texture coordinates of all points.
[out] | outTexCoordData | a buffer of TexCoords, at least getPointCount() big. |
[in] | flipV | (optional) when true, this will return texture coordinates with the vertical coordinate flipped. |
outTexCoordData
is filled with the texture coordinates information queried.outTexCoordData
is not a valid Buffer.outTexCoordData
is not big enough to receive all texture coordinates.
|
pure virtual |
Returns the texture coordinates of the point at index idx
.
[in] | idx | the index of the point. Must be in the range [0, getPointCount()) |
[out] | outTexCoord | the retrieved point texture coordinate |
outTexCoord
was filled with the point texture coordinates data.idx
is not in the valid range.
|
pure virtual |
|
pure virtual |
Copy texture data. This function is not available in the free version of the SDK.
[in] | texIdx | the index of the texture. Must be in the range [0, getTextureCount()) |
[out] | outData | a buffer of PackedColor elements big enough to store the entire texture data |
|
pure virtual |
Returns a texture dimensions
[in] | texIdx | the index of the texture. Must be in the range [0, getTextureCount()) |
[out] | outWidth | the width of the texture in pixels |
[out] | outHeight | the height of the texture in pixels |
|
pure virtual |
Returns the triangle at index idx
.
[in] | idx | the index of the triangle to retrieve Must be in the range [0, getTriangleCount()) |
[out] | outTriangle | the triangle at specified index |
outTriangle
was filled with the triangle data.idx
is not in the valid range.
|
pure virtual |
|
pure virtual |
Load the textured mesh from a OBJ file
[in] | filePath | a string buffer containing the UTF-8 encoded path to the OBJ file. |
[in] | loadTextures | when set to true, the method will try to load also the texture images. |
filePath
is not a valid string buffer.filePath
does not point to an existing file.filePath
does not point to a valid OBJ file or if there was a generic IO error.
|
pure virtual |
Removes one point from this stereo textured mesh. Triangles will be updated automatically.
[in] | index | the index of the point to be removed. Must be in the range [0, getPointCount()). |
index
is not in the valid range.
|
pure virtual |
Removes one or more points from this stereo textured mesh. Triangles will be updated automatically.
[in] | indexes | a buffer of point indexes to be removed. Each index must be in the range [0, getPointCount()). |
indexes
is not a valid buffer.indexes
is not in the valid range.
|
pure virtual |
Saves a texture in this textured mesh to a specified file. Supports any format available in your system installation (8, 16 or 32 bit).
[in] | texIdx | the index of the texture. Must be in the range [0, getTextureCount()) |
[in] | filePath | string buffer that contains the UTF-8 file path where the mesh will be saved to. |
[in] | textureSize | the output texture size. If set to 0, the texture image will keep the original dimensions. |
[in] | channelBitDepth | (optional) the output image bitdepth. When left to default (zero), it will be automatically choosen from the format. |
texIdx
is not in the valid range.filePath
is not a valid string buffer.
|
pure virtual |
Saves this textured mesh to a file in OBJ+Materials+Textures format.
[in] | filePath | string buffer that contains the UTF-8 file path where the mesh will be saved to. |
[in] | saveTextures | (default=true)specify to save or not also the texture image files. |
[in] | textureFileFormat | (default="png") when saveTextures is true, specifies the texture file format. |
filePath
is not a valid string buffer.textureFileFormat
is not a valid string buffer (when saveTextures
is true).filePath
's parent path (i.e. the containing directory) does not exist.
|
pure virtual |
Change the position of a point
[in] | idx | the point index. Must be in the range [0, getPointCount()) |
[in] | position | the new point position |
|
pure virtual |
Change the uv tex coords of a point
[in] | idx | the point index. Must be in the range [0, getPointCount()) |
[in] | texCoords | the new point texture coordinates |
|
pure virtual |
Change the triangle indexes of a triangle
[in] | idx | the triangle index. Must be in the range [0, getTriangleCount()) |
[in] | triangle | the triangle indexes. Indexes must be in range [0, getPointCount()) |
|
pure virtual |
Transforms every vertex in the textured mesh with a SRT matrix.
[in] | transform | a buffer of doubles representing the 4x4 transform matrix that will be applied to every point. |
transform
is not a valid buffer or is not 16 doubles long.