Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-04 08:33:20

0001 // Created on: 2008-05-29
0002 // Created by: Sergey ZARITCHNY
0003 // Copyright (c) 2008-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _TDataXtd_HeaderFile
0017 #define _TDataXtd_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <TDF_IDList.hxx>
0024 #include <Standard_OStream.hxx>
0025 #include <TDataXtd_GeometryEnum.hxx>
0026 #include <TDataXtd_ConstraintEnum.hxx>
0027 
0028 //! This  package  defines  extension of standard attributes for
0029 //! modelling  (mainly for work with geometry).
0030 class TDataXtd
0031 {
0032 public:
0033   DEFINE_STANDARD_ALLOC
0034 
0035   //! Appends to <anIDList> the list of the attributes
0036   //! IDs of this package. CAUTION: <anIDList> is NOT
0037   //! cleared before use.
0038   //! Print of TDataExt enumeration
0039   //! =============================
0040   Standard_EXPORT static void IDList(TDF_IDList& anIDList);
0041 
0042   //! Prints the name of the geometry dimension <GEO> as a String on
0043   //! the Stream <S> and returns <S>.
0044   Standard_EXPORT static Standard_OStream& Print(const TDataXtd_GeometryEnum GEO,
0045                                                  Standard_OStream&           S);
0046 
0047   //! Prints the name of the constraint <CTR> as a String on
0048   //! the Stream <S> and returns <S>.
0049   Standard_EXPORT static Standard_OStream& Print(const TDataXtd_ConstraintEnum CTR,
0050                                                  Standard_OStream&             S);
0051 
0052 protected:
0053 private:
0054   friend class TDataXtd_Position;
0055   friend class TDataXtd_Constraint;
0056   friend class TDataXtd_Placement;
0057   friend class TDataXtd_Geometry;
0058   friend class TDataXtd_Point;
0059   friend class TDataXtd_Axis;
0060   friend class TDataXtd_Plane;
0061   friend class TDataXtd_Pattern;
0062   friend class TDataXtd_PatternStd;
0063   friend class TDataXtd_Shape;
0064   friend class TDataXtd_Triangulation;
0065 };
0066 
0067 #endif // _TDataXtd_HeaderFile