|
||||
File indexing completed on 2025-01-18 10:03:58
0001 // Created on: 1992-04-07 0002 // Created by: Christian CAILLET 0003 // Copyright (c) 1992-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_UndefinedEntity_HeaderFile 0018 #define _IGESData_UndefinedEntity_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <Standard_Integer.hxx> 0024 #include <IGESData_IGESEntity.hxx> 0025 #include <IGESData_DefType.hxx> 0026 #include <IGESData_DefList.hxx> 0027 class Interface_UndefinedContent; 0028 class IGESData_IGESReaderData; 0029 class IGESData_DirPart; 0030 class Interface_Check; 0031 class IGESData_ParamReader; 0032 class IGESData_IGESWriter; 0033 0034 0035 class IGESData_UndefinedEntity; 0036 DEFINE_STANDARD_HANDLE(IGESData_UndefinedEntity, IGESData_IGESEntity) 0037 0038 //! undefined (unknown or error) entity specific of IGES 0039 //! DirPart can be correct or not : if it is not, a flag indicates 0040 //! it, and each corrupted field has an associated error flag 0041 class IGESData_UndefinedEntity : public IGESData_IGESEntity 0042 { 0043 0044 public: 0045 0046 0047 //! creates an unknown entity 0048 Standard_EXPORT IGESData_UndefinedEntity(); 0049 0050 //! Returns own data as an UndefinedContent 0051 Standard_EXPORT Handle(Interface_UndefinedContent) UndefinedContent() const; 0052 0053 //! Returns own data as an UndefinedContent, in order to touch it 0054 Standard_EXPORT Handle(Interface_UndefinedContent) ChangeableContent(); 0055 0056 //! Redefines a completely new UndefinedContent 0057 //! Used by a Copy which begins by ShallowCopy, for instance 0058 Standard_EXPORT void SetNewContent (const Handle(Interface_UndefinedContent)& cont); 0059 0060 //! says if DirPart is OK or not (if not, it is erroneous) 0061 //! Note that if it is not, Def* methods can return Error status 0062 Standard_EXPORT Standard_Boolean IsOKDirPart() const; 0063 0064 //! returns Directory Error Status (used for Copy) 0065 Standard_EXPORT Standard_Integer DirStatus() const; 0066 0067 //! Erases the Directory Error Status 0068 //! Warning : Be sure that data are consistent to call this method ... 0069 Standard_EXPORT void SetOKDirPart(); 0070 0071 //! returns Error status if necessary, else calls original method 0072 Standard_EXPORT virtual IGESData_DefType DefLineFont() const Standard_OVERRIDE; 0073 0074 //! returns Error status if necessary, else calls original method 0075 Standard_EXPORT virtual IGESData_DefList DefLevel() const Standard_OVERRIDE; 0076 0077 //! returns Error status if necessary, else calls original method 0078 Standard_EXPORT virtual IGESData_DefList DefView() const Standard_OVERRIDE; 0079 0080 //! returns Error status if necessary, else calls original method 0081 Standard_EXPORT virtual IGESData_DefType DefColor() const Standard_OVERRIDE; 0082 0083 //! returns Error status if necessary, else calls original method 0084 //! (that is, if SubScript field is not blank or positive integer) 0085 Standard_EXPORT virtual Standard_Boolean HasSubScriptNumber() const Standard_OVERRIDE; 0086 0087 //! Computes the Directory Error Status, to be called before 0088 //! standard ReadDir from IGESReaderTool 0089 //! Returns True if OK (hence, Directory can be loaded), 0090 //! Else returns False and the DirPart <DP> is modified 0091 //! (hence, Directory Error Status is non null; and standard Read 0092 //! will work with an acceptable DirectoryPart) 0093 Standard_EXPORT virtual Standard_Boolean ReadDir (const Handle(IGESData_IGESReaderData)& IR, IGESData_DirPart& DP, Handle(Interface_Check)& ach); 0094 0095 //! reads own parameters from file; PR gives access to them, IR 0096 //! detains parameter types and values 0097 //! Here, reads all parameters, integers are considered as entity 0098 //! reference unless they cannot be; no list interpretation 0099 //! No property or associativity list is managed 0100 Standard_EXPORT virtual void ReadOwnParams (const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR); 0101 0102 //! writes parameters to IGESWriter, taken from UndefinedContent 0103 Standard_EXPORT virtual void WriteOwnParams (IGESData_IGESWriter& IW) const; 0104 0105 0106 0107 0108 DEFINE_STANDARD_RTTIEXT(IGESData_UndefinedEntity,IGESData_IGESEntity) 0109 0110 protected: 0111 0112 0113 0114 0115 private: 0116 0117 0118 Standard_Integer thedstat; 0119 Handle(Interface_UndefinedContent) thecont; 0120 0121 0122 }; 0123 0124 0125 0126 0127 0128 0129 0130 #endif // _IGESData_UndefinedEntity_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |