PLYwoot
Header-only C++17 library for parsing and writing PLY files
|
#include <reflect.hpp>
Public Member Functions | |
Layout ()=default | |
Constructor for an empty layout (no data will be read/written). | |
template<typename T > | |
Layout (const std::vector< T > &v) | |
const std::uint8_t * | data () const |
std::size_t | size () const |
std::size_t | alignment () const |
Used to define the layout of some structure that is either read from or written to by the PLY I/O functions. Note that it is important that the order of data types specified in the layout matches the order of the data types in the data type that is read from or written to. This will automatically take default C/C++ padding into account. In case not all properties in some layout structure are written, use reflect::Stride
to skip properties. Properties at the end of the structure that are not read from or written do not need to be specified and will automatically be skipped.
Definition at line 94 of file reflect.hpp.
|
inline |
Constructs a layout representation of some element, and specifies a target list of elements that will be read from by the PLY writer.
v | list of elements to be read from by the PLY writer |
Definition at line 105 of file reflect.hpp.
|
inline |
Alignment requirements of this structure.
Definition at line 129 of file reflect.hpp.
|
inline |
Returns a pointer to the read-only memory area storing instances of type T
associated with this layout.
T
associated with this layout. Definition at line 117 of file reflect.hpp.
|
inline |
Returns the number of elements that are or may be stored in the memory block pointer to by the associated data block.
Definition at line 124 of file reflect.hpp.