Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::PlyFile Class Referencefinal

#include <PlyFile.h>

Public Member Functions

 PlyFile ()
 
 PlyFile (const Path &plyFilePath)
 Load file with default config.
 
 PlyFile (const Path &plyFilePath, const PlyIOConfig &config)
 Load file with specified config.
 
PlyElementfindElement (std::string_view name)
 
std::size_t numElements () const
 
EPlyDataFormat getInputFormat () const
 
void setInputFormat (EPlyDataFormat format)
 
EPlyDataFormat getOutputFormat () const
 
void setOutputFormat (EPlyDataFormat format)
 
void loadFile (const Path &plyFilePath, const PlyIOConfig &config)
 Load and append file content to existing data.
 
void clearBuffer ()
 Clear all data storages for the elements.
 
SemanticVersion getVersion () const
 
std::size_t numComments () const
 Access to comments in the file. There will be no comments if PlyIOConfig::bIgnoreComments is set.
 
std::string_view getComment (std::size_t commentIndex) const
 

Constructor & Destructor Documentation

◆ PlyFile() [1/3]

ph::PlyFile::PlyFile ( )

◆ PlyFile() [2/3]

ph::PlyFile::PlyFile ( const Path & plyFilePath)
explicit

Load file with default config.

◆ PlyFile() [3/3]

ph::PlyFile::PlyFile ( const Path & plyFilePath,
const PlyIOConfig & config )

Load file with specified config.

Exceptions
FileIOErrorIf any loading and parsing process failed.

Member Function Documentation

◆ clearBuffer()

void ph::PlyFile::clearBuffer ( )

Clear all data storages for the elements.

◆ findElement()

PlyElement * ph::PlyFile::findElement ( std::string_view name)

◆ getComment()

std::string_view ph::PlyFile::getComment ( std::size_t commentIndex) const

◆ getInputFormat()

EPlyDataFormat ph::PlyFile::getInputFormat ( ) const

◆ getOutputFormat()

EPlyDataFormat ph::PlyFile::getOutputFormat ( ) const

◆ getVersion()

SemanticVersion ph::PlyFile::getVersion ( ) const

◆ loadFile()

void ph::PlyFile::loadFile ( const Path & plyFilePath,
const PlyIOConfig & config )

Load and append file content to existing data.

◆ numComments()

std::size_t ph::PlyFile::numComments ( ) const

Access to comments in the file. There will be no comments if PlyIOConfig::bIgnoreComments is set.

◆ numElements()

std::size_t ph::PlyFile::numElements ( ) const

◆ setInputFormat()

void ph::PlyFile::setInputFormat ( EPlyDataFormat format)

◆ setOutputFormat()

void ph::PlyFile::setOutputFormat ( EPlyDataFormat format)

The documentation for this class was generated from the following files: