#include <save.hh>
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. |
typedef Object<void> mln::Object< bin_off_saver >::category [inherited] |
typedef bin_off_saver mln::Object< bin_off_saver >::exact_t [inherited] |
typedef bin_2complex_image3df ::value mln::io::off::internal::off_saver< bin_2complex_image3df , bin_off_saver >::value [inherited] |
Type of the values.
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).''
const unsigned mln::io::off::internal::off_saver< bin_2complex_image3df , bin_off_saver >::D [static, inherited] |
Dimension of the built complex.