PLYwoot
Header-only C++17 library for parsing and writing PLY files
Loading...
Searching...
No Matches
types.hpp File Reference
#include <algorithm>
#include <cstdint>
#include <optional>
#include <ostream>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  plywoot::PlyProperty
 
struct  plywoot::PlyElement
 
struct  plywoot::Comment
 

Typedefs

using plywoot::PlyPropertyConstIterator = std::vector< PlyProperty >::const_iterator
 

Enumerations

enum class  plywoot::PlyDataType {
  Char , UChar , Short , UShort ,
  Int , UInt , Float , Double
}
 Enumeration of data types supported by the PLY format. More...
 
enum class  plywoot::PlyFormat { Ascii , BinaryBigEndian , BinaryLittleEndian }
 

Functions

std::ostream & plywoot::operator<< (std::ostream &os, PlyDataType type)
 

Typedef Documentation

◆ PlyPropertyConstIterator

using plywoot::PlyPropertyConstIterator = typedef std::vector<PlyProperty>::const_iterator

Convenience type alias for a const vector iterator pointing to a PlyProperty.

Definition at line 145 of file types.hpp.

Enumeration Type Documentation

◆ PlyDataType

enum class plywoot::PlyDataType
strong

Enumeration of data types supported by the PLY format.

Definition at line 36 of file types.hpp.

◆ PlyFormat

enum class plywoot::PlyFormat
strong

Enumeration of all formats supported by the PLY format. This represents the format of the data stored in the PLY file, the header is always human-readable ASCII text.

Definition at line 72 of file types.hpp.

Function Documentation

◆ operator<<()

std::ostream & plywoot::operator<< ( std::ostream &  os,
PlyDataType  type 
)
inline

Outputs a textual representation of the given PLY data type type.

Parameters
osoutput stream to output the textual representation of type to
typePLY data type enumeration value to output a textual representation for
Returns
the output stream os

Definition at line 44 of file types.hpp.