#include <load.hh>

Public Types | |
| typedef Object< void > | category |
| typedef bin_2complex_image3df::domain_t | domain |
| Type of the domain. | |
| typedef bin_off_loader | exact_t |
| typedef off_loader < bin_2complex_image3df, bin_off_loader > | self |
| typedef metal::vec< D+1, std::vector< typename bin_2complex_image3df::value > > | values |
| Type of the set of values. | |
Public Member Functions | |
| void | assign (values &vs, const domain &s) |
| Assign values to image. | |
| void | operator() (bin_2complex_image3df &ima, const std::string &filename) |
| Load an image from filename into ima. | |
| void | reserve (unsigned nvertices, unsigned nedges, unsigned nfaces) |
| Pre-allocate data. | |
| void | read_face_data (std::istream &istr) |
| Read face data. | |
Static Public Member Functions | |
| static std::istream & | eat_comment (std::istream &istr) |
| A stream manipulator eating comments starting with a `#' and ending at an end of line. | |
Static Public Attributes | |
| static const unsigned | D |
| Dimension of the built complex. | |
typedef Object<void> mln::Object< bin_off_loader >::category [inherited] |
typedef bin_2complex_image3df ::domain_t mln::io::off::internal::off_loader< bin_2complex_image3df , bin_off_loader >::domain [inherited] |
Type of the domain.
typedef bin_off_loader mln::Object< bin_off_loader >::exact_t [inherited] |
typedef off_loader<bin_2complex_image3df , bin_off_loader > mln::io::off::internal::off_loader< bin_2complex_image3df , bin_off_loader >::self [inherited] |
typedef metal::vec<D + 1, std::vector< typename bin_2complex_image3df ::value > > mln::io::off::internal::off_loader< bin_2complex_image3df , bin_off_loader >::values [inherited] |
Type of the set of values.
Assign values to image.
References mln::p_complex< D, G >::cplx(), and mln::io::off::internal::off_loader< bin_2complex_image3df, bin_off_loader >::D.
| static std::istream& mln::io::off::internal::off_loader< bin_2complex_image3df , bin_off_loader >::eat_comment | ( | std::istream & | istr | ) | [static, inherited] |
A stream manipulator eating comments starting with a `#' and ending at an end of line.
| void mln::io::off::internal::off_loader< bin_2complex_image3df , bin_off_loader >::operator() | ( | bin_2complex_image3df & | ima, | |
| const std::string & | filename | |||
| ) | [inherited] |
Load an image from filename into ima.
| void mln::io::off::internal::bin_off_loader::read_face_data | ( | std::istream & | istr | ) |
Read face data.
Reading values.
Dummy, does nothings (but required by the super class).
From https://people.scs.fsu.edu/~burkardt/html/off_format.html:
``Following these [coordinates] are the face descriptions, typically written with one line per face. Each has the form
N Vert1 Vert2 ... VertN [color]
Here N is the number of vertices on this face, and Vert1 through VertN are indices into the list of vertices (in the range 0..NVertices-1).
The optional color may take several forms. Line breaks are significant here: the color description begins after VertN and ends with the end of the line (or the next # comment). A color may be:
nothing the default color one integer index into "the" colormap; see below three or four integers RGB and possibly alpha values in the range 0..255 three or four floating-point numbers RGB and possibly alpha values in the range 0..1
For the one-integer case, the colormap is currently read from the file `cmap.fmap' in Geomview's `data' directory. Some better mechanism for supplying a colormap is likely someday.
The meaning of "default color" varies. If no face of the object has a color, all inherit the environment's default material color. If some but not all faces have colors, the default is gray (R,G,B,A=.666).''
| void mln::io::off::internal::bin_off_loader::reserve | ( | unsigned | nvertices, | |
| unsigned | nedges, | |||
| unsigned | nfaces | |||
| ) |
Pre-allocate data.
Dummy, does nothings (but required by the super class).
const unsigned mln::io::off::internal::off_loader< bin_2complex_image3df , bin_off_loader >::D [static, inherited] |
Dimension of the built complex.
Referenced by assign().
1.7.1