#include <import_off.h>
Public Types | |
| typedef MESH_TYPE::CoordType | CoordType |
| typedef MESH_TYPE::FaceIterator | FaceIterator |
| typedef MESH_TYPE::FacePointer | FacePointer |
| typedef MESH_TYPE::FaceType | FaceType |
| enum | OFFCodes { NoError = 0, CantOpen, InvalidFile, InvalidFile_MissingOFF, UnsupportedFormat, ErrorNotTriangularFace, ErrorHighDimension, ErrorDegenerateFace } |
| typedef MESH_TYPE::ScalarType | ScalarType |
| typedef MESH_TYPE::VertexIterator | VertexIterator |
| typedef MESH_TYPE::VertexPointer | VertexPointer |
| typedef MESH_TYPE::VertexType | VertexType |
Static Public Member Functions | |
| static const char * | ErrorMsg (int message_code) |
| static bool | LoadMask (const char *filename, int &loadmask) |
| static int | Open (MESH_TYPE &mesh, const char *filename, CallBackPos *cb=0) |
| static int | Open (MESH_TYPE &mesh, const char *filename, int &loadmask, CallBackPos *cb=0) |
| static int | OpenMem (MESH_TYPE &mesh, const char *mem, size_t sz, int &loadmask, CallBackPos *cb=0) |
| static int | OpenStream (MESH_TYPE &mesh, std::istream &stream, int &loadmask, CallBackPos *cb=0) |
Static Protected Member Functions | |
| static const vcg::Color4f | ColorMap (int i) |
| static void | TokenizeNextLine (std::istream &stream, std::vector< std::string > &tokens) |
This class encapsulate a filter for importing OFF meshes. A basic description of the OFF file format can be found at http://www.geomview.org/docs/html/geomview_41.html
Definition at line 42 of file import_off.h.
| typedef MESH_TYPE::CoordType vcg::tri::io::ImporterOFF< MESH_TYPE >::CoordType |
Definition at line 52 of file import_off.h.
| typedef MESH_TYPE::FaceIterator vcg::tri::io::ImporterOFF< MESH_TYPE >::FaceIterator |
Definition at line 50 of file import_off.h.
| typedef MESH_TYPE::FacePointer vcg::tri::io::ImporterOFF< MESH_TYPE >::FacePointer |
Definition at line 51 of file import_off.h.
| typedef MESH_TYPE::FaceType vcg::tri::io::ImporterOFF< MESH_TYPE >::FaceType |
Definition at line 49 of file import_off.h.
| typedef MESH_TYPE::ScalarType vcg::tri::io::ImporterOFF< MESH_TYPE >::ScalarType |
Definition at line 53 of file import_off.h.
| typedef MESH_TYPE::VertexIterator vcg::tri::io::ImporterOFF< MESH_TYPE >::VertexIterator |
Definition at line 47 of file import_off.h.
| typedef MESH_TYPE::VertexPointer vcg::tri::io::ImporterOFF< MESH_TYPE >::VertexPointer |
Definition at line 48 of file import_off.h.
| typedef MESH_TYPE::VertexType vcg::tri::io::ImporterOFF< MESH_TYPE >::VertexType |
Definition at line 46 of file import_off.h.
| enum vcg::tri::io::ImporterOFF::OFFCodes |
| NoError | |
| CantOpen | |
| InvalidFile | |
| InvalidFile_MissingOFF | |
| UnsupportedFormat | |
| ErrorNotTriangularFace | |
| ErrorHighDimension | |
| ErrorDegenerateFace |
Definition at line 56 of file import_off.h.
| static const vcg::Color4f vcg::tri::io::ImporterOFF< MESH_TYPE >::ColorMap | ( | int | i | ) | [inline, static, protected] |
Provide the int->color mapping, according to the Geomview's `cmap.fmap' file.
| i | the color index |
vcg::Color4f color Definition at line 642 of file import_off.h.
| static const char* vcg::tri::io::ImporterOFF< MESH_TYPE >::ErrorMsg | ( | int | message_code | ) | [inline, static] |
Standard call for knowing the meaning of an error code
| message_code | The code returned by Open |
Definition at line 65 of file import_off.h.
| static bool vcg::tri::io::ImporterOFF< MESH_TYPE >::LoadMask | ( | const char * | filename, |
| int & | loadmask | ||
| ) | [inline, static] |
Load only the properties of the 3D objects.
| filename | the name of the file to read from |
| loadmask | the mask which encodes the properties |
Definition at line 86 of file import_off.h.
| static int vcg::tri::io::ImporterOFF< MESH_TYPE >::Open | ( | MESH_TYPE & | mesh, |
| const char * | filename, | ||
| CallBackPos * | cb = 0 |
||
| ) | [inline, static] |
Definition at line 95 of file import_off.h.
| static int vcg::tri::io::ImporterOFF< MESH_TYPE >::Open | ( | MESH_TYPE & | mesh, |
| const char * | filename, | ||
| int & | loadmask, | ||
| CallBackPos * | cb = 0 |
||
| ) | [inline, static] |
Standard call for reading a mesh.
| mesh | the destination mesh |
| filename | the name of the file to read from |
Definition at line 117 of file import_off.h.
| static int vcg::tri::io::ImporterOFF< MESH_TYPE >::OpenMem | ( | MESH_TYPE & | mesh, |
| const char * | mem, | ||
| size_t | sz, | ||
| int & | loadmask, | ||
| CallBackPos * | cb = 0 |
||
| ) | [inline, static] |
Definition at line 101 of file import_off.h.
| static int vcg::tri::io::ImporterOFF< MESH_TYPE >::OpenStream | ( | MESH_TYPE & | mesh, |
| std::istream & | stream, | ||
| int & | loadmask, | ||
| CallBackPos * | cb = 0 |
||
| ) | [inline, static] |
Definition at line 126 of file import_off.h.
| static void vcg::tri::io::ImporterOFF< MESH_TYPE >::TokenizeNextLine | ( | std::istream & | stream, |
| std::vector< std::string > & | tokens | ||
| ) | [inline, static, protected] |
Read the next valid line and parses it into "tokens", allowing the tokens to be read one at a time.
| stream | The object providing the input stream |
| tokens | The "tokens" in the next line |
Definition at line 610 of file import_off.h.