10 #ifndef TYMPAN__ALTIMETRYREADERIMPL_H__INCLUDED
11 #define TYMPAN__ALTIMETRYREADERIMPL_H__INCLUDED
91 int property_index,
double value);
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.
AltimetryPLYReader(const std::string filename)
materials_array_t _materials
void error_cb(p_ply ply, const char *message)
materials_array_t _material_by_face
const std::string _filename
virtual const faces_array_t & faces() const
Getter for the faces read.
virtual ~AltimetryPLYReader()
bool material_cb(material_properties property, unsigned material_index, unsigned nproperties, int property_index, double value)
void build_material_by_face()
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.