25 #ifndef TYMPAN__ALTIMETRYREADERIMPL_H__INCLUDED
26 #define TYMPAN__ALTIMETRYREADERIMPL_H__INCLUDED
107 int property_index,
double value);
118 return _wfopen(
reinterpret_cast<const wchar_t*
>(filename.utf16()), L
"rb");
120 return fopen(filename.toUtf8().constData(),
"rb");
Provides for reading back an altimetry written in a file.
read an Altimetry from a PLY file.
virtual const points_array_t & points() const
std::vector< unsigned > _material_indices
@ NUM_material_properties
bool vertex_cb(vertex_properties property, unsigned vertex_index, double value)
virtual void read()
read the file whose name was given at reader's construction time
bool face_cb(face_properties property, unsigned face_index, unsigned nproperties, int property_index, double value)
virtual const materials_array_t & materials() const
Getter for the faces read.
materials_array_t _materials
void error_cb(p_ply ply, const char *message)
materials_array_t _material_by_face
virtual const faces_array_t & faces() const
Getter for the faces read.
static FILE * openFileForReading(const QString &filename)
virtual ~AltimetryPLYReader()
bool material_cb(material_properties property, unsigned material_index, unsigned nproperties, int property_index, double value)
void build_material_by_face()
AltimetryPLYReader(FILE *fp)
std::deque< std::string > materials_array_t
Type of the material array returned.
std::deque< OPoint3D > points_array_t
Type of the points array returned.
std::deque< OTriangle > faces_array_t
Type of the faces array returned.