Public Types | Public Member Functions | Static Public Attributes

mln::io::off::internal::bin_off_saver Struct Reference

#include <save.hh>

Inheritance diagram for mln::io::off::internal::bin_off_saver:
Inheritance graph

List of all members.

Public Types

typedef Object< void > category
typedef bin_off_saver exact_t
typedef
bin_2complex_image3df::value 
value
 Type of the values.

Public Member Functions

void operator() (const bin_2complex_image3df &ima, const std::string &filename) const
 Load an image from filename into ima.

void write_face_data (std::ostream &ostr, const value &v) const
 Save face data.

Static Public Attributes

static const unsigned D
 Dimension of the built complex.

Detailed Description

Definition at line 119 of file off/save.hh.


Member Typedef Documentation

typedef Object<void> mln::Object< bin_off_saver >::category [inherited]

Definition at line 174 of file object.hh.

Definition at line 173 of file object.hh.

Type of the values.

Definition at line 106 of file off/save.hh.


Member Function Documentation

void mln::io::off::internal::off_saver< bin_2complex_image3df , bin_off_saver >::operator() ( const bin_2complex_image3df ima,
const std::string &  filename 
) const [inherited]

Load an image from filename into ima.

void mln::io::off::internal::bin_off_saver::write_face_data ( std::ostream &  ostr,
const value v 
) const

Save face data.

Writing 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).''

Definition at line 384 of file off/save.hh.


Member Data Documentation

const unsigned mln::io::off::internal::off_saver< bin_2complex_image3df , bin_off_saver >::D [static, inherited]

Dimension of the built complex.

Definition at line 109 of file off/save.hh.