WCSim
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CADMesh::File::PLYReader Class Reference

#include <CADMesh.hh>

Inheritance diagram for CADMesh::File::PLYReader:
Inheritance graph
Collaboration diagram for CADMesh::File::PLYReader:
Collaboration graph

Public Member Functions

 PLYReader ()
 
G4bool Read (G4String filepath)
 
G4bool CanRead (Type file_type)
 
- Public Member Functions inherited from CADMesh::File::Reader
 Reader (G4String reader_name)
 
 ~Reader ()
 
G4String GetName ()
 
std::shared_ptr< MeshGetMesh ()
 
std::shared_ptr< MeshGetMesh (size_t index)
 
std::shared_ptr< MeshGetMesh (G4String name, G4bool exact=true)
 
size_t GetNumberOfMeshes ()
 
Meshes GetMeshes ()
 

Protected Member Functions

 CADMeshLexerStateDefinition (StartHeader)
 
 CADMeshLexerStateDefinition (EndHeader)
 
 CADMeshLexerStateDefinition (Element)
 
 CADMeshLexerStateDefinition (Property)
 
 CADMeshLexerStateDefinition (Ignore)
 
 CADMeshLexerStateDefinition (Vertex)
 
 CADMeshLexerStateDefinition (Facet)
 
void ParseHeader (Items items)
 
std::shared_ptr< MeshParseMesh (Items vertex_items, Items face_items)
 
G4ThreeVector ParseVertex (Items items)
 
G4TriangularFacet * ParseFacet (Items items, Points vertices)
 
- Protected Member Functions inherited from CADMesh::File::Reader
size_t AddMesh (std::shared_ptr< Mesh > mesh)
 
void SetMeshes (Meshes meshs)
 

Protected Attributes

size_t vertex_count_ = 0
 
size_t facet_count_ = 0
 
size_t x_index_ = 0
 
size_t y_index_ = 0
 
size_t z_index_ = 0
 
size_t facet_index_ = 0
 

Detailed Description

Definition at line 1619 of file CADMesh.hh.

Constructor & Destructor Documentation

◆ PLYReader()

CADMesh::File::PLYReader::PLYReader ( )
inline

Definition at line 1621 of file CADMesh.hh.

Member Function Documentation

◆ CADMeshLexerStateDefinition() [1/7]

CADMesh::File::PLYReader::CADMeshLexerStateDefinition ( StartHeader  )
protected

◆ CADMeshLexerStateDefinition() [2/7]

CADMesh::File::PLYReader::CADMeshLexerStateDefinition ( EndHeader  )
protected

◆ CADMeshLexerStateDefinition() [3/7]

CADMesh::File::PLYReader::CADMeshLexerStateDefinition ( Element  )
protected

◆ CADMeshLexerStateDefinition() [4/7]

CADMesh::File::PLYReader::CADMeshLexerStateDefinition ( Property  )
protected

◆ CADMeshLexerStateDefinition() [5/7]

CADMesh::File::PLYReader::CADMeshLexerStateDefinition ( Ignore  )
protected

◆ CADMeshLexerStateDefinition() [6/7]

CADMesh::File::PLYReader::CADMeshLexerStateDefinition ( Vertex  )
protected

◆ CADMeshLexerStateDefinition() [7/7]

CADMesh::File::PLYReader::CADMeshLexerStateDefinition ( Facet  )
protected

◆ CanRead()

G4bool CADMesh::File::PLYReader::CanRead ( Type  file_type)
virtual

Implements CADMesh::File::Reader.

Definition at line 2426 of file CADMesh.hh.

◆ ParseFacet()

G4TriangularFacet * CADMesh::File::PLYReader::ParseFacet ( Items  items,
Points  vertices 
)
protected

Definition at line 2573 of file CADMesh.hh.

◆ ParseHeader()

void CADMesh::File::PLYReader::ParseHeader ( Items  items)
protected

Definition at line 2428 of file CADMesh.hh.

◆ ParseMesh()

std::shared_ptr< Mesh > CADMesh::File::PLYReader::ParseMesh ( Items  vertex_items,
Items  face_items 
)
protected

Definition at line 2516 of file CADMesh.hh.

◆ ParseVertex()

G4ThreeVector CADMesh::File::PLYReader::ParseVertex ( Items  items)
protected

Definition at line 2552 of file CADMesh.hh.

◆ Read()

G4bool CADMesh::File::PLYReader::Read ( G4String  filepath)
virtual

Implements CADMesh::File::Reader.

Definition at line 2381 of file CADMesh.hh.

Member Data Documentation

◆ facet_count_

size_t CADMesh::File::PLYReader::facet_count_ = 0
protected

Definition at line 1644 of file CADMesh.hh.

◆ facet_index_

size_t CADMesh::File::PLYReader::facet_index_ = 0
protected

Definition at line 1650 of file CADMesh.hh.

◆ vertex_count_

size_t CADMesh::File::PLYReader::vertex_count_ = 0
protected

Definition at line 1643 of file CADMesh.hh.

◆ x_index_

size_t CADMesh::File::PLYReader::x_index_ = 0
protected

Definition at line 1646 of file CADMesh.hh.

◆ y_index_

size_t CADMesh::File::PLYReader::y_index_ = 0
protected

Definition at line 1647 of file CADMesh.hh.

◆ z_index_

size_t CADMesh::File::PLYReader::z_index_ = 0
protected

Definition at line 1648 of file CADMesh.hh.


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