#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, int &loadmask, CallBackPos *cb=0, bool onlyMaskFlag=false) |
| static int | Open (MESH_TYPE &mesh, const char *filename, CallBackPos *cb=0) |
Static Protected Member Functions | |
| static const vcg::Color4f | ColorMap (int i) |
| static const void | TokenizeNextLine (std::ifstream &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 118 of file import_off.h.
| typedef MESH_TYPE::CoordType vcg::tri::io::ImporterOFF< MESH_TYPE >::CoordType |
Definition at line 128 of file import_off.h.
| typedef MESH_TYPE::FaceIterator vcg::tri::io::ImporterOFF< MESH_TYPE >::FaceIterator |
Definition at line 126 of file import_off.h.
| typedef MESH_TYPE::FacePointer vcg::tri::io::ImporterOFF< MESH_TYPE >::FacePointer |
Definition at line 127 of file import_off.h.
| typedef MESH_TYPE::FaceType vcg::tri::io::ImporterOFF< MESH_TYPE >::FaceType |
Definition at line 125 of file import_off.h.
| typedef MESH_TYPE::ScalarType vcg::tri::io::ImporterOFF< MESH_TYPE >::ScalarType |
Definition at line 129 of file import_off.h.
| typedef MESH_TYPE::VertexIterator vcg::tri::io::ImporterOFF< MESH_TYPE >::VertexIterator |
Definition at line 123 of file import_off.h.
| typedef MESH_TYPE::VertexPointer vcg::tri::io::ImporterOFF< MESH_TYPE >::VertexPointer |
Definition at line 124 of file import_off.h.
| typedef MESH_TYPE::VertexType vcg::tri::io::ImporterOFF< MESH_TYPE >::VertexType |
Definition at line 122 of file import_off.h.
| enum vcg::tri::io::ImporterOFF::OFFCodes |
| NoError | |
| CantOpen | |
| InvalidFile | |
| InvalidFile_MissingOFF | |
| UnsupportedFormat | |
| ErrorNotTriangularFace | |
| ErrorHighDimension | |
| ErrorDegenerateFace |
Definition at line 132 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 651 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 141 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 162 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, |
|||
| bool | onlyMaskFlag = false | |||
| ) | [inline, static] |
Standard call for reading a mesh.
| mesh | the destination mesh | |
| filename | the name of the file to read from |
Definition at line 184 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 171 of file import_off.h.
| static const void vcg::tri::io::ImporterOFF< MESH_TYPE >::TokenizeNextLine | ( | std::ifstream & | 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 619 of file import_off.h.