|
||||
File indexing completed on 2024-11-15 09:48:30
0001 // Copyright (c) 2022 OPEN CASCADE SAS 0002 // 0003 // This file is part of Open CASCADE Technology software library. 0004 // 0005 // This library is free software; you can redistribute it and/or modify it under 0006 // the terms of the GNU Lesser General Public License version 2.1 as published 0007 // by the Free Software Foundation, with special exception defined in the file 0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0009 // distribution for complete text of the license and disclaimer of any warranty. 0010 // 0011 // Alternatively, this file may be used under the terms of Open CASCADE 0012 // commercial license or contractual agreement. 0013 0014 #ifndef _RWStl_ConfigurationNode_HeaderFile 0015 #define _RWStl_ConfigurationNode_HeaderFile 0016 0017 #include <DE_ConfigurationNode.hxx> 0018 0019 //! The purpose of this class is to configure the transfer process for STL format 0020 //! Stores the necessary settings for RWStl_Provider. 0021 //! Configures and creates special provider to transfer STL files. 0022 //! 0023 //! Nodes grouped by Vendor name and Format type. 0024 //! The Vendor name is "OCC" 0025 //! The Format type is "STL" 0026 //! The supported CAD extension is ".stl" 0027 //! The import process is supported. 0028 //! The export process is supported. 0029 class RWStl_ConfigurationNode : public DE_ConfigurationNode 0030 { 0031 DEFINE_STANDARD_RTTIEXT(RWStl_ConfigurationNode, DE_ConfigurationNode) 0032 public: 0033 0034 //! Initializes all field by default 0035 Standard_EXPORT RWStl_ConfigurationNode(); 0036 0037 //! Copies values of all fields 0038 //! @param[in] theNode object to copy 0039 Standard_EXPORT RWStl_ConfigurationNode(const Handle(RWStl_ConfigurationNode)& theNode); 0040 0041 //! Updates values according the resource 0042 //! @param[in] theResource input resource to use 0043 //! @return true if theResource loading has ended correctly 0044 Standard_EXPORT virtual bool Load(const Handle(DE_ConfigurationContext)& theResource) Standard_OVERRIDE; 0045 0046 //! Writes configuration to the string 0047 //! @return result resource string 0048 Standard_EXPORT virtual TCollection_AsciiString Save() const Standard_OVERRIDE; 0049 0050 //! Copies values of all fields 0051 //! @return new object with the same field values 0052 Standard_EXPORT virtual Handle(DE_ConfigurationNode) Copy() const Standard_OVERRIDE; 0053 0054 0055 //! Creates new provider for the own format 0056 //! @return new created provider 0057 Standard_EXPORT virtual Handle(DE_Provider) BuildProvider() Standard_OVERRIDE; 0058 0059 public: 0060 0061 //! Checks the import supporting 0062 //! @return true if import is supported 0063 Standard_EXPORT virtual bool IsImportSupported() const Standard_OVERRIDE; 0064 0065 //! Checks the export supporting 0066 //! @return true if export is supported 0067 Standard_EXPORT virtual bool IsExportSupported() const Standard_OVERRIDE; 0068 0069 //! Gets CAD format name of associated provider 0070 //! @return provider CAD format 0071 Standard_EXPORT virtual TCollection_AsciiString GetFormat() const Standard_OVERRIDE; 0072 0073 //! Gets provider's vendor name of associated provider 0074 //! @return provider's vendor name 0075 Standard_EXPORT virtual TCollection_AsciiString GetVendor() const Standard_OVERRIDE; 0076 0077 //! Gets list of supported file extensions 0078 //! @return list of extensions 0079 Standard_EXPORT virtual TColStd_ListOfAsciiString GetExtensions() const Standard_OVERRIDE; 0080 0081 //! Checks the file content to verify a format 0082 //! @param[in] theBuffer read stream buffer to check content 0083 //! @return Standard_True if file is supported by a current provider 0084 Standard_EXPORT virtual bool CheckContent(const Handle(NCollection_Buffer)& theBuffer) const Standard_OVERRIDE; 0085 0086 public: 0087 struct RWStl_InternalSection 0088 { 0089 // Read 0090 double ReadMergeAngle = 90.; //!< Input merge angle value 0091 bool ReadBRep = false; //!< Setting up Boundary Representation flag 0092 0093 // Write 0094 bool WriteAscii = true; //!< Setting up writing mode (Ascii or Binary) 0095 0096 } InternalParameters; 0097 }; 0098 0099 #endif // _RWStl_ConfigurationNode_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |