// Copyright (c) 2022 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _VrmlAPI_Reader_HeaderFile #define _VrmlAPI_Reader_HeaderFile #include //! The Vrml mesh reader into XDE document. class VrmlAPI_CafReader : public RWMesh_CafReader { DEFINE_STANDARD_RTTIEXT(VrmlAPI_CafReader, RWMesh_CafReader) protected: //! Read the mesh data from specified file. //! @param theFile file to read //! @param theProgress progress indicator //! @param theToProbe flag for probing file without complete reading. Not supported. //! @return false when theToProbe is set to true or reading has completed with error. Standard_EXPORT virtual Standard_Boolean performMesh(const TCollection_AsciiString& theFile, const Message_ProgressRange& theProgress, const Standard_Boolean theToProbe) Standard_OVERRIDE; }; #endif // _VrmlAPI_Reader_HeaderFile