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 (FILE *fp)
 
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)
 
FILE * _fp
 
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
 
static FILE * openFileForReading (const QString &filename)
 

Detailed Description

read an Altimetry from a PLY file.

Definition at line 39 of file altimetry_file_reader_impl.h.

Member Enumeration Documentation

◆ face_properties

Enumerator
VertexIndices 
MaterialIndex 
NUM_face_properties 

Definition at line 49 of file altimetry_file_reader_impl.h.

◆ material_properties

Enumerator
MaterialID 
NUM_material_properties 

Definition at line 55 of file altimetry_file_reader_impl.h.

◆ vertex_properties

Enumerator
NUM_vertex_properties 

Definition at line 42 of file altimetry_file_reader_impl.h.

Constructor & Destructor Documentation

◆ AltimetryPLYReader()

tympan::AltimetryPLYReader::AltimetryPLYReader ( FILE *  fp)

Definition at line 62 of file altimetry_file_reader.cpp.

Here is the call graph for this function:

◆ ~AltimetryPLYReader()

tympan::AltimetryPLYReader::~AltimetryPLYReader ( )
virtual

Definition at line 75 of file altimetry_file_reader.cpp.

Member Function Documentation

◆ build_material_by_face()

void tympan::AltimetryPLYReader::build_material_by_face ( )

Definition at line 116 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 217 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 154 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 70 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 105 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 193 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 74 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 95 of file altimetry_file_reader_impl.h.

◆ nvertices()

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

Accessors

Definition at line 91 of file altimetry_file_reader_impl.h.

◆ openFileForReading()

static FILE* tympan::AltimetryPLYReader::openFileForReading ( const QString &  filename)
inlinestatic

Definition at line 115 of file altimetry_file_reader_impl.h.

Here is the caller graph for this function:

◆ points()

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

Implements interface IMeshReader

Implements tympan::IMeshReader.

Definition at line 66 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 80 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 110 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 88 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 133 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 126 of file altimetry_file_reader_impl.h.

◆ _fp

FILE* tympan::AltimetryPLYReader::_fp

Data attributes

Definition at line 114 of file altimetry_file_reader_impl.h.

◆ _material_by_face

materials_array_t tympan::AltimetryPLYReader::_material_by_face
protected

Definition at line 129 of file altimetry_file_reader_impl.h.

◆ _material_indices

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

Definition at line 127 of file altimetry_file_reader_impl.h.

◆ _materials

materials_array_t tympan::AltimetryPLYReader::_materials
protected

Definition at line 128 of file altimetry_file_reader_impl.h.

◆ _nfaces

long tympan::AltimetryPLYReader::_nfaces
protected

Definition at line 133 of file altimetry_file_reader_impl.h.

◆ _nmaterials

long tympan::AltimetryPLYReader::_nmaterials
protected

Definition at line 134 of file altimetry_file_reader_impl.h.

◆ _nvertices

long tympan::AltimetryPLYReader::_nvertices
protected

Definition at line 132 of file altimetry_file_reader_impl.h.

◆ _ply

p_ply tympan::AltimetryPLYReader::_ply
protected

Definition at line 131 of file altimetry_file_reader_impl.h.

◆ _points

points_array_t tympan::AltimetryPLYReader::_points
protected

Definition at line 125 of file altimetry_file_reader_impl.h.


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