Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:57

0001 // Created on: 1993-09-06
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IGESData_IGESDumper_HeaderFile
0018 #define _IGESData_IGESDumper_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IGESData_SpecificLib.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <Standard_OStream.hxx>
0027 
0028 class IGESData_IGESModel;
0029 class IGESData_Protocol;
0030 class IGESData_IGESEntity;
0031 
0032 //! Provides a way to obtain a clear Dump of an IGESEntity
0033 //! (distinct from normalized output). It works with tools
0034 //! attached to Entities, as for normalized Reade and Write
0035 //!
0036 //! For each Entity, displaying data is split in own data
0037 //! (specific to each type) and other attached data, which are
0038 //! defined for all IGES Types (either from "Directory Entry" or
0039 //! from Lists of Associativities and Properties)
0040 class IGESData_IGESDumper 
0041 {
0042 public:
0043 
0044   DEFINE_STANDARD_ALLOC
0045 
0046   
0047   //! Returns an IGESDumper ready to work.
0048   //! The IGESModel provides the numbering of Entities:
0049   //! as for any InterfaceModel, it gives each Entity a number;
0050   //! but for IGESEntities, the "Number of Directory Entry"
0051   //! according to the definition of IGES Files, is also useful.
0052   Standard_EXPORT IGESData_IGESDumper(const Handle(IGESData_IGESModel)& model, const Handle(IGESData_Protocol)& protocol);
0053   
0054   //! Prints onto an output, the "Number of Directory Entry" which
0055   //! corresponds to an IGESEntity in the IGESModel, under the form
0056   //! "D#nnn" (a Null Handle gives D#0)
0057   Standard_EXPORT void PrintDNum (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const;
0058   
0059   //! Prints onto an output, the "Number of Directory Entry" (see
0060   //! PrintDNum) plus IGES Type and Form Numbers, which gives
0061   //! "D#nnn  Type nnn  Form nnn"
0062   Standard_EXPORT void PrintShort (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const;
0063   
0064   Standard_EXPORT void Dump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own, const Standard_Integer attached = -1) const;
0065   
0066   //! Specific Dump for each IGES Entity, call by Dump (just above)
0067   //! <own> is the parameter <own> from Dump
0068   Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own) const;
0069 
0070 private:
0071 
0072   Handle(IGESData_IGESModel) themodel;
0073   IGESData_SpecificLib thelib;
0074 
0075 };
0076 
0077 #endif // _IGESData_IGESDumper_HeaderFile