Auxiliary low-level tool writing PLY file.
More...
#include <RWPly_PlyWriterContext.hxx>
|
| RWPly_PlyWriterContext () |
| Empty constructor. More...
|
|
| ~RWPly_PlyWriterContext () |
| Destructor, will emit error message if file was not closed. More...
|
|
|
bool | IsDoublePrecision () const |
| Return TRUE if vertex position should be stored with double floating point precision; FALSE by default. More...
|
|
void | SetDoublePrecision (bool theDoublePrec) |
| Set if vertex position should be stored with double floating point precision. More...
|
|
bool | HasNormals () const |
| Return TRUE if normals should be written as vertex attribute; FALSE by default. More...
|
|
void | SetNormals (const bool theHasNormals) |
| Set if normals should be written. More...
|
|
bool | HasTexCoords () const |
| Return TRUE if UV / texture coordinates should be written as vertex attribute; FALSE by default. More...
|
|
void | SetTexCoords (const bool theHasTexCoords) |
| Set if UV / texture coordinates should be written. More...
|
|
bool | HasColors () const |
| Return TRUE if point colors should be written as vertex attribute; FALSE by default. More...
|
|
void | SetColors (bool theToWrite) |
| Set if point colors should be written. More...
|
|
|
bool | HasSurfaceId () const |
| Return TRUE if surface Id should be written as element attribute; FALSE by default. More...
|
|
void | SetSurfaceId (bool theSurfId) |
| Set if surface Id should be written as element attribute; FALSE by default. More...
|
|
Auxiliary low-level tool writing PLY file.
◆ RWPly_PlyWriterContext()
RWPly_PlyWriterContext::RWPly_PlyWriterContext |
( |
| ) |
|
◆ ~RWPly_PlyWriterContext()
RWPly_PlyWriterContext::~RWPly_PlyWriterContext |
( |
| ) |
|
Destructor, will emit error message if file was not closed.
◆ Close()
bool RWPly_PlyWriterContext::Close |
( |
bool |
theIsAborted = false | ) |
|
Correctly close the file.
- Returns
- FALSE in case of writing error
◆ HasColors()
bool RWPly_PlyWriterContext::HasColors |
( |
| ) |
const |
|
inline |
Return TRUE if point colors should be written as vertex attribute; FALSE by default.
◆ HasNormals()
bool RWPly_PlyWriterContext::HasNormals |
( |
| ) |
const |
|
inline |
Return TRUE if normals should be written as vertex attribute; FALSE by default.
◆ HasSurfaceId()
bool RWPly_PlyWriterContext::HasSurfaceId |
( |
| ) |
const |
|
inline |
Return TRUE if surface Id should be written as element attribute; FALSE by default.
◆ HasTexCoords()
bool RWPly_PlyWriterContext::HasTexCoords |
( |
| ) |
const |
|
inline |
Return TRUE if UV / texture coordinates should be written as vertex attribute; FALSE by default.
◆ IsDoublePrecision()
bool RWPly_PlyWriterContext::IsDoublePrecision |
( |
| ) |
const |
|
inline |
Return TRUE if vertex position should be stored with double floating point precision; FALSE by default.
◆ IsOpened()
bool RWPly_PlyWriterContext::IsOpened |
( |
| ) |
const |
|
inline |
Return TRUE if file has been opened.
◆ NbWrittenElements()
Return number of written elements.
◆ NbWrittenVertices()
Return number of written vertices.
◆ Open()
bool RWPly_PlyWriterContext::Open |
( |
const TCollection_AsciiString & |
theName, |
|
|
const std::shared_ptr< std::ostream > & |
theStream = std::shared_ptr< std::ostream >() |
|
) |
| |
◆ SetColors()
void RWPly_PlyWriterContext::SetColors |
( |
bool |
theToWrite | ) |
|
|
inline |
Set if point colors should be written.
◆ SetDoublePrecision()
void RWPly_PlyWriterContext::SetDoublePrecision |
( |
bool |
theDoublePrec | ) |
|
|
inline |
Set if vertex position should be stored with double floating point precision.
◆ SetNormals()
void RWPly_PlyWriterContext::SetNormals |
( |
const bool |
theHasNormals | ) |
|
|
inline |
Set if normals should be written.
◆ SetSurfaceId() [1/2]
void RWPly_PlyWriterContext::SetSurfaceId |
( |
bool |
theSurfId | ) |
|
|
inline |
Set if surface Id should be written as element attribute; FALSE by default.
◆ SetSurfaceId() [2/2]
Set surface id to write with element.
◆ SetTexCoords()
void RWPly_PlyWriterContext::SetTexCoords |
( |
const bool |
theHasTexCoords | ) |
|
|
inline |
Set if UV / texture coordinates should be written.
◆ SetVertexOffset()
Set vertex offset to be applied to element indices.
◆ SurfaceId()
Return surface id to write with element; 0 by default.
◆ VertexOffset()
Return vertex offset to be applied to element indices; 0 by default.
◆ WriteHeader()
Write the header.
- Parameters
-
[in] | theNbNodes | number of vertex nodes |
[in] | theNbElems | number of mesh elements |
[in] | theFileInfo | optional comments |
◆ WriteQuad()
◆ WriteTriangle()
bool RWPly_PlyWriterContext::WriteTriangle |
( |
const Graphic3d_Vec3i & |
theTri | ) |
|
◆ WriteVertex()
Write single point with all attributes.
- Parameters
-
[in] | thePoint | 3D point coordinates |
[in] | theNorm | surface normal direction at the point |
[in] | theUV | surface/texture UV coordinates |
[in] | theColor | RGB color values |
The documentation for this class was generated from the following file: