MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
fssr::SampleIO Class Reference

Reads samples from a PLY file. More...

#include <sample_io.h>

Classes

struct  Options
 

Public Member Functions

 SampleIO (Options const &opts)
 Default constructor setting options.
 
bool next_sample (Sample *sample)
 Reads one sample, returns false if there are no more samples.
 
void open_file (std::string const &filename)
 Opens the input file for stream reading.
 
void read_file (std::string const &filename, SampleList *samples)
 Reads all input samples in memory.
 

Detailed Description

Reads samples from a PLY file.

Two input types are supported: Reading the whole file at once using the MVE PLY file reader, and a streaming reader which reads one sample at at time.

Definition at line 27 of file sample_io.h.

Constructor & Destructor Documentation

◆ SampleIO()

fssr::SampleIO::SampleIO ( Options const &  opts)
inline

Default constructor setting options.

Definition at line 99 of file sample_io.h.

Member Function Documentation

◆ next_sample()

bool fssr::SampleIO::next_sample ( Sample sample)

Reads one sample, returns false if there are no more samples.

Definition at line 248 of file sample_io.cc.

◆ open_file()

void fssr::SampleIO::open_file ( std::string const &  filename)

Opens the input file for stream reading.

Definition at line 72 of file sample_io.cc.

◆ read_file()

void fssr::SampleIO::read_file ( std::string const &  filename,
SampleList samples 
)

Reads all input samples in memory.

Definition at line 22 of file sample_io.cc.


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