| 38 | { |
| 39 | |
| 40 | class STLReader : public Reader |
| 41 | { |
| 42 | public: |
| 43 | STLReader() : Reader("STLReader") { }; |
| 44 | |
| 45 | G4bool Read(G4String filepath); |
| 46 | G4bool CanRead(Type file_type); |
| 47 | |
| 48 | protected: |
| 49 | // Lexer. |
| 50 | CADMeshLexerStateDefinition(StartSolid); |
| 51 | CADMeshLexerStateDefinition(EndSolid); |
| 52 | |
| 53 | CADMeshLexerStateDefinition(StartFacet); |
| 54 | CADMeshLexerStateDefinition(EndFacet); |
| 55 | |
| 56 | CADMeshLexerStateDefinition(StartVertices); |
| 57 | CADMeshLexerStateDefinition(EndVertices); |
| 58 | |
| 59 | CADMeshLexerStateDefinition(Vertex); |
| 60 | |
| 61 | CADMeshLexerStateDefinition(ThreeVector); |
| 62 | |
| 63 | // Parser. |
| 64 | std::shared_ptr<Mesh> ParseMesh(Items items); |
| 65 | G4TriangularFacet* ParseFacet(Items items); |
| 66 | G4TriangularFacet* ParseVertices(Items items); |
| 67 | G4ThreeVector ParseThreeVector(Items items); |
| 68 | }; |
| 69 | |
| 70 | } // File namespace |
| 71 |
nothing calls this directly
no outgoing calls
no test coverage detected