Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-19 09:52:26

0001 // Created on: 1995-12-07
0002 // Created by: EXPRESS->CDL V0.2 Translator
0003 // Copyright (c) 1995-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 _StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext_HeaderFile
0018 #define _StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <StepRepr_RepresentationContext.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <StepBasic_NamedUnit.hxx>
0026 #include <NCollection_Array1.hxx>
0027 #include <NCollection_HArray1.hxx>
0028 class StepGeom_GeometricRepresentationContext;
0029 class StepRepr_GlobalUnitAssignedContext;
0030 class TCollection_HAsciiString;
0031 class StepBasic_NamedUnit;
0032 
0033 class StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext
0034     : public StepRepr_RepresentationContext
0035 {
0036 
0037 public:
0038   //! Returns a GeometricRepresentationContextAndGlobalUnitAssignedContext
0039   Standard_EXPORT StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext();
0040 
0041   Standard_EXPORT void Init(
0042     const occ::handle<TCollection_HAsciiString>&                aContextIdentifier,
0043     const occ::handle<TCollection_HAsciiString>&                aContextType,
0044     const occ::handle<StepGeom_GeometricRepresentationContext>& aGeometricRepresentationContext,
0045     const occ::handle<StepRepr_GlobalUnitAssignedContext>&      aGlobalUnitAssignedContext);
0046 
0047   Standard_EXPORT void Init(
0048     const occ::handle<TCollection_HAsciiString>& aContextIdentifier,
0049     const occ::handle<TCollection_HAsciiString>& aContextType,
0050     const int                                    aCoordinateSpaceDimension,
0051     const occ::handle<NCollection_HArray1<occ::handle<StepBasic_NamedUnit>>>& aUnits);
0052 
0053   Standard_EXPORT void SetGeometricRepresentationContext(
0054     const occ::handle<StepGeom_GeometricRepresentationContext>& aGeometricRepresentationContext);
0055 
0056   Standard_EXPORT occ::handle<StepGeom_GeometricRepresentationContext>
0057                   GeometricRepresentationContext() const;
0058 
0059   Standard_EXPORT void SetGlobalUnitAssignedContext(
0060     const occ::handle<StepRepr_GlobalUnitAssignedContext>& aGlobalUnitAssignedContext);
0061 
0062   Standard_EXPORT occ::handle<StepRepr_GlobalUnitAssignedContext> GlobalUnitAssignedContext() const;
0063 
0064   Standard_EXPORT void SetCoordinateSpaceDimension(const int aCoordinateSpaceDimension);
0065 
0066   Standard_EXPORT int CoordinateSpaceDimension() const;
0067 
0068   Standard_EXPORT void SetUnits(
0069     const occ::handle<NCollection_HArray1<occ::handle<StepBasic_NamedUnit>>>& aUnits);
0070 
0071   Standard_EXPORT occ::handle<NCollection_HArray1<occ::handle<StepBasic_NamedUnit>>> Units() const;
0072 
0073   Standard_EXPORT occ::handle<StepBasic_NamedUnit> UnitsValue(const int num) const;
0074 
0075   Standard_EXPORT int NbUnits() const;
0076 
0077   DEFINE_STANDARD_RTTIEXT(StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext,
0078                           StepRepr_RepresentationContext)
0079 
0080 private:
0081   occ::handle<StepGeom_GeometricRepresentationContext> geometricRepresentationContext;
0082   occ::handle<StepRepr_GlobalUnitAssignedContext>      globalUnitAssignedContext;
0083 };
0084 
0085 #endif // _StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext_HeaderFile