Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Types | Public Member Functions | List of all members
tympan::AltimetryPLYReader Class Reference

read an Altimetry from a PLY file. More...

#include <altimetry_file_reader_impl.h>

Inheritance diagram for tympan::AltimetryPLYReader:
Inheritance graph
[legend]
Collaboration diagram for tympan::AltimetryPLYReader:
Collaboration graph
[legend]

Public Types

enum  vertex_properties { X , Y , Z , NUM_vertex_properties }
 
enum  face_properties { VertexIndices , MaterialIndex , NUM_face_properties }
 
enum  material_properties { MaterialID , NUM_material_properties }
 
- Public Types inherited from tympan::IMeshReader
typedef std::deque< OPoint3Dpoints_array_t
 Type of the points array returned. More...
 
typedef std::deque< OTrianglefaces_array_t
 Type of the faces array returned. More...
 
typedef std::deque< std::string > materials_array_t
 Type of the material array returned. More...
 

Public Member Functions

 AltimetryPLYReader (const std::string filename)
 
virtual ~AltimetryPLYReader ()
 
virtual const points_array_tpoints () const
 
virtual const faces_array_tfaces () const
 Getter for the faces read. More...
 
virtual const materials_array_tmaterials () const
 Getter for the faces read. More...
 
virtual void read ()
 read the file whose name was given at reader's construction time More...
 
void setup_callbacks ()
 
void init_data ()
 
void read_data ()
 
void build_material_by_face ()
 
long nvertices () const
 
long nfaces () const
 
bool vertex_cb (vertex_properties property, unsigned vertex_index, double value)
 
bool face_cb (face_properties property, unsigned face_index, unsigned nproperties, int property_index, double value)
 
bool material_cb (material_properties property, unsigned material_index, unsigned nproperties, int property_index, double value)
 
void error_cb (p_ply ply, const char *message)
 
const std::string _filename
 
points_array_t _points
 
faces_array_t _faces
 
std::vector< unsigned > _material_indices
 
materials_array_t _materials
 
materials_array_t _material_by_face
 
p_ply _ply
 
long _nvertices
 
long _nfaces
 
long _nmaterials
 

Detailed Description

read an Altimetry from a PLY file.

Definition at line 23 of file altimetry_file_reader_impl.h.

Member Enumeration Documentation

◆ face_properties

Enumerator
VertexIndices 
MaterialIndex 
NUM_face_properties 

Definition at line 33 of file altimetry_file_reader_impl.h.

◆ material_properties

Enumerator
MaterialID 
NUM_material_properties 

Definition at line 39 of file altimetry_file_reader_impl.h.

◆ vertex_properties

Enumerator
NUM_vertex_properties 

Definition at line 26 of file altimetry_file_reader_impl.h.

Constructor & Destructor Documentation

◆ AltimetryPLYReader()

tympan::AltimetryPLYReader::AltimetryPLYReader ( const std::string  filename)

Definition at line 43 of file altimetry_file_reader.cpp.

Here is the call graph for this function:

◆ ~AltimetryPLYReader()

tympan::AltimetryPLYReader::~AltimetryPLYReader ( )
virtual

Definition at line 56 of file altimetry_file_reader.cpp.

Member Function Documentation

◆ build_material_by_face()

void tympan::AltimetryPLYReader::build_material_by_face ( )

Definition at line 98 of file altimetry_file_reader.cpp.

Here is the caller graph for this function:

◆ error_cb()

void tympan::AltimetryPLYReader::error_cb ( p_ply  ply,
const char *  message 
)

Definition at line 200 of file altimetry_file_reader.cpp.

Here is the caller graph for this function:

◆ face_cb()

bool tympan::AltimetryPLYReader::face_cb ( face_properties  property,
unsigned  face_index,
unsigned  nproperties,
int  property_index,
double  value 
)

Definition at line 137 of file altimetry_file_reader.cpp.

Here is the caller graph for this function:

◆ faces()

virtual const faces_array_t& tympan::AltimetryPLYReader::faces ( ) const
inlinevirtual

Getter for the faces read.

Implements tympan::IMeshReader.

Definition at line 54 of file altimetry_file_reader_impl.h.

Here is the caller graph for this function:

◆ init_data()

void tympan::AltimetryPLYReader::init_data ( )

Definition at line 86 of file altimetry_file_reader.cpp.

Here is the caller graph for this function:

◆ material_cb()

bool tympan::AltimetryPLYReader::material_cb ( material_properties  property,
unsigned  material_index,
unsigned  nproperties,
int  property_index,
double  value 
)

Definition at line 176 of file altimetry_file_reader.cpp.

Here is the caller graph for this function:

◆ materials()

virtual const materials_array_t& tympan::AltimetryPLYReader::materials ( ) const
inlinevirtual

Getter for the faces read.

Implements tympan::IMeshReader.

Definition at line 58 of file altimetry_file_reader_impl.h.

Here is the caller graph for this function:

◆ nfaces()

long tympan::AltimetryPLYReader::nfaces ( ) const
inline

Definition at line 79 of file altimetry_file_reader_impl.h.

◆ nvertices()

long tympan::AltimetryPLYReader::nvertices ( ) const
inline

Accessors

Definition at line 75 of file altimetry_file_reader_impl.h.

◆ points()

virtual const points_array_t& tympan::AltimetryPLYReader::points ( ) const
inlinevirtual

Implements interface IMeshReader

Implements tympan::IMeshReader.

Definition at line 50 of file altimetry_file_reader_impl.h.

Here is the caller graph for this function:

◆ read()

void tympan::AltimetryPLYReader::read ( )
virtual

read the file whose name was given at reader's construction time

Implements tympan::IMeshReader.

Definition at line 61 of file altimetry_file_reader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_data()

void tympan::AltimetryPLYReader::read_data ( )

Definition at line 91 of file altimetry_file_reader.cpp.

Here is the caller graph for this function:

◆ setup_callbacks()

void tympan::AltimetryPLYReader::setup_callbacks ( )

Internals methods for steps of the processing

Definition at line 69 of file altimetry_file_reader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vertex_cb()

bool tympan::AltimetryPLYReader::vertex_cb ( vertex_properties  property,
unsigned  vertex_index,
double  value 
)

Methods redirected to by the callbacks

Definition at line 116 of file altimetry_file_reader.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _faces

faces_array_t tympan::AltimetryPLYReader::_faces
protected

Definition at line 102 of file altimetry_file_reader_impl.h.

◆ _filename

const std::string tympan::AltimetryPLYReader::_filename

Data attributes

Definition at line 98 of file altimetry_file_reader_impl.h.

◆ _material_by_face

materials_array_t tympan::AltimetryPLYReader::_material_by_face
protected

Definition at line 105 of file altimetry_file_reader_impl.h.

◆ _material_indices

std::vector<unsigned> tympan::AltimetryPLYReader::_material_indices
protected

Definition at line 103 of file altimetry_file_reader_impl.h.

◆ _materials

materials_array_t tympan::AltimetryPLYReader::_materials
protected

Definition at line 104 of file altimetry_file_reader_impl.h.

◆ _nfaces

long tympan::AltimetryPLYReader::_nfaces
protected

Definition at line 109 of file altimetry_file_reader_impl.h.

◆ _nmaterials

long tympan::AltimetryPLYReader::_nmaterials
protected

Definition at line 110 of file altimetry_file_reader_impl.h.

◆ _nvertices

long tympan::AltimetryPLYReader::_nvertices
protected

Definition at line 108 of file altimetry_file_reader_impl.h.

◆ _ply

p_ply tympan::AltimetryPLYReader::_ply
protected

Definition at line 107 of file altimetry_file_reader_impl.h.

◆ _points

points_array_t tympan::AltimetryPLYReader::_points
protected

Definition at line 101 of file altimetry_file_reader_impl.h.


The documentation for this class was generated from the following files: