Patate Lib  0.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Vitelotte::MVGWithCurvesReader< _Mesh > Class Template Reference

Inherits Vitelotte::MVGReader< _Mesh >.

Public Types

typedef Vitelotte::MVGReader
< _Mesh > 
Base
 
typedef _Mesh Mesh
 
typedef Mesh::Vector Vector
 
typedef Mesh::Value Value
 
typedef Mesh::ValueFunction ValueFunction
 
typedef Mesh::Vertex Vertex
 
typedef Mesh::Halfedge Halfedge
 
typedef Mesh::PointConstraint PointConstraint
 
typedef Mesh::Curve Curve
 
- Public Types inherited from Vitelotte::MVGReader< _Mesh >
enum  { NO_WARN_UNKNOWN = 0x01 }
 
typedef _Mesh Mesh
 
typedef
PatateCommon::OBJBaseReader
< Mesh > 
Base
 
typedef Mesh::Vector Vector
 
typedef Mesh::Vertex Vertex
 
typedef Mesh::Value Value
 
typedef Mesh::Gradient Gradient
 
- Public Types inherited from PatateCommon::OBJBaseReader< _Mesh >
typedef _Mesh Mesh
 
typedef Mesh::Vector Vector
 
typedef bool(* ErrorCallback )(const std::string &msg, unsigned line, void *ptr)
 

Protected Types

enum  { CONS_LEFT = 1, CONS_RIGHT = 2, TEAR = 4 }
 

Protected Member Functions

virtual bool parseDefinition (const std::string &spec, std::istream &def, Mesh &mesh)
 
- Protected Member Functions inherited from Vitelotte::MVGReader< _Mesh >
virtual void parseHeader (std::istream &in, Mesh &mesh)
 
void parseValue (std::istream &in)
 
void parseValueWithVoid (std::istream &in, Mesh &mesh)
 
void parseGradient (std::istream &in)
 
- Protected Member Functions inherited from PatateCommon::OBJBaseReader< _Mesh >
bool readLine (std::istream &in)
 
void parseVector (std::istream &in)
 
void parseIndicesList (const std::string &_list, std::vector< unsigned > &_indices)
 
void error (const std::string &msg)
 
void warning (const std::string &msg)
 

Protected Attributes

std::string m_part
 
std::string m_token
 
std::istringstream m_in
 
- Protected Attributes inherited from Vitelotte::MVGReader< _Mesh >
unsigned m_flags
 
std::vector< Vertex > m_fVertices
 
std::string m_tmp
 
Value m_value
 
Gradient m_gradient
 
std::vector< unsigned > m_faceIndices
 
std::vector< unsigned > m_nodesIndices
 
- Protected Attributes inherited from PatateCommon::OBJBaseReader< _Mesh >
unsigned m_lineNb
 
bool m_error
 
std::string m_line
 
std::istringstream m_lineStream
 
std::istringstream m_indicesStream
 
Vector m_vector
 
ErrorCallback m_errorCallback
 
ErrorCallback m_warningCallback
 
void * m_errorCallbackPtr
 

Additional Inherited Members

- Public Member Functions inherited from Vitelotte::MVGReader< _Mesh >
 MVGReader (unsigned flags=0)
 Default constructor.
 
- Public Member Functions inherited from PatateCommon::OBJBaseReader< _Mesh >
bool read (std::istream &in, Mesh &mesh)
 
void setErrorCallback (ErrorCallback error, ErrorCallback warning, void *ptr)