Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/DEPLY_Provider.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 _DEPLY_Provider_HeaderFile
0015 #define _DEPLY_Provider_HeaderFile
0016 
0017 #include <DE_Provider.hxx>
0018 
0019 //! The class to transfer PLY files.
0020 //! Writes any PLY files from OCCT.
0021 //! Each operation needs configuration node.
0022 //!
0023 //! Providers grouped by Vendor name and Format type.
0024 //! The Vendor name is "OCC"
0025 //! The Format type is "PLY"
0026 //! The import process isn't supported.
0027 //! The export process is supported.
0028 class DEPLY_Provider : public DE_Provider
0029 {
0030 public:
0031   DEFINE_STANDARD_RTTIEXT(DEPLY_Provider, DE_Provider)
0032 
0033 public:
0034   //! Default constructor
0035   //! Configure translation process with global configuration
0036   Standard_EXPORT DEPLY_Provider();
0037 
0038   //! Configure translation process
0039   //! @param[in] theNode object to copy
0040   Standard_EXPORT DEPLY_Provider(const Handle(DE_ConfigurationNode)& theNode);
0041 
0042 public:
0043   //! Writes a CAD file, according internal configuration
0044   //! @param[in] thePath path to the export CAD file
0045   //! @param[out] theDocument document to export
0046   //! @param[in] theWS current work session
0047   //! @param[in] theProgress progress indicator
0048   //! @return true if Write operation has ended correctly
0049   Standard_EXPORT virtual bool Write(
0050     const TCollection_AsciiString&  thePath,
0051     const Handle(TDocStd_Document)& theDocument,
0052     Handle(XSControl_WorkSession)&  theWS,
0053     const Message_ProgressRange&    theProgress = Message_ProgressRange()) Standard_OVERRIDE;
0054 
0055   //! Writes a CAD file, according internal configuration
0056   //! @param[in] thePath path to the export CAD file
0057   //! @param[out] theDocument document to export
0058   //! @param[in] theProgress progress indicator
0059   //! @return true if Write operation has ended correctly
0060   Standard_EXPORT virtual bool Write(
0061     const TCollection_AsciiString&  thePath,
0062     const Handle(TDocStd_Document)& theDocument,
0063     const Message_ProgressRange&    theProgress = Message_ProgressRange()) Standard_OVERRIDE;
0064 
0065   //! Writes a CAD file, according internal configuration
0066   //! @param[in] thePath path to the export CAD file
0067   //! @param[out] theShape shape to export
0068   //! @param[in] theWS current work session
0069   //! @param[in] theProgress progress indicator
0070   //! @return true if Write operation has ended correctly
0071   Standard_EXPORT virtual bool Write(
0072     const TCollection_AsciiString& thePath,
0073     const TopoDS_Shape&            theShape,
0074     Handle(XSControl_WorkSession)& theWS,
0075     const Message_ProgressRange&   theProgress = Message_ProgressRange()) Standard_OVERRIDE;
0076 
0077   //! Writes a CAD file, according internal configuration
0078   //! @param[in] thePath path to the export CAD file
0079   //! @param[out] theShape shape to export
0080   //! @param[in] theProgress progress indicator
0081   //! @return true if Write operation has ended correctly
0082   Standard_EXPORT virtual bool Write(
0083     const TCollection_AsciiString& thePath,
0084     const TopoDS_Shape&            theShape,
0085     const Message_ProgressRange&   theProgress = Message_ProgressRange()) Standard_OVERRIDE;
0086 
0087 public:
0088   //! Gets CAD format name of associated provider
0089   //! @return provider CAD format
0090   Standard_EXPORT virtual TCollection_AsciiString GetFormat() const Standard_OVERRIDE;
0091 
0092   //! Gets provider's vendor name of associated provider
0093   //! @return provider's vendor name
0094   Standard_EXPORT virtual TCollection_AsciiString GetVendor() const Standard_OVERRIDE;
0095 };
0096 
0097 #endif // _DEPLY_Provider_HeaderFile