mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0026371: Implementation of new entities for GD&T
Implement entities: - DatumReferenceCompartment, - DatumReferenceElement, - DatumReferenceModifierWithValue, - DatumSystem, - GeneralDatumReference, - ValueFormatTypeQualifier, - NonUniformZoneDefinition, - ProjectedZoneDefinition, - RunoutZoneDefinition, - RunoutZoneOrientation, - ToleranceZone, - ToleranceZoneDefinition, - ToleranceZoneForm, - ToleranceZoneTarget, - GeometricToleranceWithDefinedAreaUnit, - GeometricToleranceWithDefinedUnit, - GeometricToleranceWithMaximumTolerance, - GeometricToleranceWithModifiers, - UnequallyDisposedGeometricTolerance, - GeometricItemSpecificUsage, - IdAttribute, - IdAttributeSelect, - ItemIdentifiedRepresentationUsage, - ItemIdentifiedRepresentationUsageDefinition, - Apex, - CentreOfSymmetry, - GeometricAlignment, - ParallelOffset, - PerpendicularTo, - Tangent, - AllAroundShapeAspect, - BetweenShapeAspect, - CompositeGroupShapeAspect, - ContinuosShapeAspect, - ReprItemAndLengthMeasureWithUnitAndQRI, - ReprItemAndPlaneAngleMeasureWithUnitAndQRI, - ReprItemAndPlaneAngleMeasureWithUnit, - CompGroupShAspAndCompShAspAndDatumFeatAndShAsp, - CompShAspAndDatumFeatAndShAsp, - GeoTolAndGeoTolWthDatRef, - GeoTolAndGeoTolWthDatRefAndGeoTolWthMod, - GeoTolAndGeoTolWthMod, - GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol, - IntegerRepresentationItem, - ValueRepresentationItem. Modify entities: - GeometricTolerance, - GeometricToleranceWithDatumReference, - ShapeDimensionRepresentation. fix compilation error fix compilation warning
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
StepDimTol_AngularityTolerance.cxx
|
||||
StepDimTol_AngularityTolerance.hxx
|
||||
StepDimTol_AreaUnitType.hxx
|
||||
StepDimTol_Array1OfDatumReference.hxx
|
||||
StepDimTol_Array1OfDatumReferenceCompartment.hxx
|
||||
StepDimTol_Array1OfDatumReferenceElement.hxx
|
||||
StepDimTol_Array1OfDatumReferenceModifier.hxx
|
||||
StepDimTol_Array1OfDatumSystemOrReference.hxx
|
||||
StepDimTol_Array1OfGeometricToleranceModifier.hxx
|
||||
StepDimTol_Array1OfToleranceZoneTarget.hxx
|
||||
StepDimTol_CircularRunoutTolerance.cxx
|
||||
StepDimTol_CircularRunoutTolerance.hxx
|
||||
StepDimTol_CoaxialityTolerance.cxx
|
||||
@@ -15,26 +22,71 @@ StepDimTol_Datum.cxx
|
||||
StepDimTol_Datum.hxx
|
||||
StepDimTol_DatumFeature.cxx
|
||||
StepDimTol_DatumFeature.hxx
|
||||
StepDimTol_DatumOrCommonDatum.cxx
|
||||
StepDimTol_DatumOrCommonDatum.hxx
|
||||
StepDimTol_DatumReference.cxx
|
||||
StepDimTol_DatumReference.hxx
|
||||
StepDimTol_DatumReferenceCompartment.cxx
|
||||
StepDimTol_DatumReferenceCompartment.hxx
|
||||
StepDimTol_DatumReferenceElement.cxx
|
||||
StepDimTol_DatumReferenceElement.hxx
|
||||
StepDimTol_DatumReferenceModifier.cxx
|
||||
StepDimTol_DatumReferenceModifier.hxx
|
||||
StepDimTol_DatumReferenceModifierWithValue.cxx
|
||||
StepDimTol_DatumReferenceModifierWithValue.hxx
|
||||
StepDimTol_DatumReferenceModifierType.hxx
|
||||
StepDimTol_DatumSystem.cxx
|
||||
StepDimTol_DatumSystem.hxx
|
||||
StepDimTol_DatumSystemOrReference.cxx
|
||||
StepDimTol_DatumSystemOrReference.hxx
|
||||
StepDimTol_DatumTarget.cxx
|
||||
StepDimTol_DatumTarget.hxx
|
||||
StepDimTol_FlatnessTolerance.cxx
|
||||
StepDimTol_FlatnessTolerance.hxx
|
||||
StepDimTol_GeneralDatumReference.cxx
|
||||
StepDimTol_GeneralDatumReference.hxx
|
||||
StepDimTol_GeometricTolerance.cxx
|
||||
StepDimTol_GeometricTolerance.hxx
|
||||
StepDimTol_GeometricToleranceModifier.hxx
|
||||
StepDimTol_GeometricToleranceRelationship.cxx
|
||||
StepDimTol_GeometricToleranceRelationship.hxx
|
||||
StepDimTol_GeometricToleranceTarget.cxx
|
||||
StepDimTol_GeometricToleranceTarget.hxx
|
||||
StepDimTol_GeometricToleranceType.hxx
|
||||
StepDimTol_GeometricToleranceWithDatumReference.cxx
|
||||
StepDimTol_GeometricToleranceWithDatumReference.hxx
|
||||
StepDimTol_GeometricToleranceWithDefinedAreaUnit.cxx
|
||||
StepDimTol_GeometricToleranceWithDefinedAreaUnit.hxx
|
||||
StepDimTol_GeometricToleranceWithDefinedUnit.cxx
|
||||
StepDimTol_GeometricToleranceWithDefinedUnit.hxx
|
||||
StepDimTol_GeometricToleranceWithMaximumTolerance.cxx
|
||||
StepDimTol_GeometricToleranceWithMaximumTolerance.hxx
|
||||
StepDimTol_GeometricToleranceWithModifiers.cxx
|
||||
StepDimTol_GeometricToleranceWithModifiers.hxx
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRef.cxx
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRef.hxx
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod.cxx
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod.hxx
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.cxx
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.hxx
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol.cxx
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol.hxx
|
||||
StepDimTol_GeoTolAndGeoTolWthMod.cxx
|
||||
StepDimTol_GeoTolAndGeoTolWthMod.hxx
|
||||
StepDimTol_HArray1OfDatumReference.hxx
|
||||
StepDimTol_HArray1OfDatumReferenceCompartment.hxx
|
||||
StepDimTol_HArray1OfDatumReferenceElement.hxx
|
||||
StepDimTol_HArray1OfDatumReferenceModifier.hxx
|
||||
StepDimTol_HArray1OfDatumSystemOrReference.hxx
|
||||
StepDimTol_HArray1OfGeometricToleranceModifier.hxx
|
||||
StepDimTol_HArray1OfToleranceZoneTarget.hxx
|
||||
StepDimTol_LimitCondition.hxx
|
||||
StepDimTol_LineProfileTolerance.cxx
|
||||
StepDimTol_LineProfileTolerance.hxx
|
||||
StepDimTol_ModifiedGeometricTolerance.cxx
|
||||
StepDimTol_ModifiedGeometricTolerance.hxx
|
||||
StepDimTol_NonUniformZoneDefinition.cxx
|
||||
StepDimTol_NonUniformZoneDefinition.hxx
|
||||
StepDimTol_ParallelismTolerance.cxx
|
||||
StepDimTol_ParallelismTolerance.hxx
|
||||
StepDimTol_PerpendicularityTolerance.cxx
|
||||
@@ -43,15 +95,34 @@ StepDimTol_PlacedDatumTargetFeature.cxx
|
||||
StepDimTol_PlacedDatumTargetFeature.hxx
|
||||
StepDimTol_PositionTolerance.cxx
|
||||
StepDimTol_PositionTolerance.hxx
|
||||
StepDimTol_ProjectedZoneDefinition.cxx
|
||||
StepDimTol_ProjectedZoneDefinition.hxx
|
||||
StepDimTol_RoundnessTolerance.cxx
|
||||
StepDimTol_RoundnessTolerance.hxx
|
||||
StepDimTol_RunoutZoneDefinition.cxx
|
||||
StepDimTol_RunoutZoneDefinition.hxx
|
||||
StepDimTol_RunoutZoneOrientation.cxx
|
||||
StepDimTol_RunoutZoneOrientation.hxx
|
||||
StepDimTol_ShapeToleranceSelect.cxx
|
||||
StepDimTol_ShapeToleranceSelect.hxx
|
||||
StepDimTol_SimpleDatumReferenceModifier.hxx
|
||||
StepDimTol_SimpleDatumReferenceModifierMember.cxx
|
||||
StepDimTol_SimpleDatumReferenceModifierMember.hxx
|
||||
StepDimTol_StraightnessTolerance.cxx
|
||||
StepDimTol_StraightnessTolerance.hxx
|
||||
StepDimTol_SurfaceProfileTolerance.cxx
|
||||
StepDimTol_SurfaceProfileTolerance.hxx
|
||||
StepDimTol_SymmetryTolerance.cxx
|
||||
StepDimTol_SymmetryTolerance.hxx
|
||||
StepDimTol_ToleranceZone.cxx
|
||||
StepDimTol_ToleranceZone.hxx
|
||||
StepDimTol_ToleranceZoneDefinition.cxx
|
||||
StepDimTol_ToleranceZoneDefinition.hxx
|
||||
StepDimTol_ToleranceZoneForm.cxx
|
||||
StepDimTol_ToleranceZoneForm.hxx
|
||||
StepDimTol_ToleranceZoneTarget.cxx
|
||||
StepDimTol_ToleranceZoneTarget.hxx
|
||||
StepDimTol_TotalRunoutTolerance.cxx
|
||||
StepDimTol_TotalRunoutTolerance.hxx
|
||||
StepDimTol_UnequallyDisposedGeometricTolerance.cxx
|
||||
StepDimTol_UnequallyDisposedGeometricTolerance.hxx
|
27
src/StepDimTol/StepDimTol_AreaUnitType.hxx
Normal file
27
src/StepDimTol/StepDimTol_AreaUnitType.hxx
Normal file
@@ -0,0 +1,27 @@
|
||||
// Created on: 2015-07-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_AreaUnitType_HeaderFile
|
||||
#define _StepDimTol_AreaUnitType_HeaderFile
|
||||
|
||||
#include <Standard_PrimitiveTypes.hxx>
|
||||
|
||||
enum StepDimTol_AreaUnitType {
|
||||
StepDimTol_Circular,
|
||||
StepDimTol_Rectangular,
|
||||
StepDimTol_Square
|
||||
};
|
||||
|
||||
#endif
|
@@ -0,0 +1,23 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_Array1OfDatumReferenceCompartment_HeaderFile
|
||||
#define _StepDimTol_Array1OfDatumReferenceCompartment_HeaderFile
|
||||
|
||||
#include <StepDimTol_DatumReferenceCompartment.hxx>
|
||||
#include <NCollection_Array1.hxx>
|
||||
|
||||
typedef NCollection_Array1<Handle(StepDimTol_DatumReferenceCompartment)> StepDimTol_Array1OfDatumReferenceCompartment;
|
||||
#endif // _StepDimTol_Array1OfDatumReferenceCompartment_HeaderFile
|
23
src/StepDimTol/StepDimTol_Array1OfDatumReferenceElement.hxx
Normal file
23
src/StepDimTol/StepDimTol_Array1OfDatumReferenceElement.hxx
Normal file
@@ -0,0 +1,23 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_Array1OfDatumReferenceElement_HeaderFile
|
||||
#define _StepDimTol_Array1OfDatumReferenceElement_HeaderFile
|
||||
|
||||
#include <StepDimTol_DatumReferenceElement.hxx>
|
||||
#include <NCollection_Array1.hxx>
|
||||
|
||||
typedef NCollection_Array1<Handle(StepDimTol_DatumReferenceElement)> StepDimTol_Array1OfDatumReferenceElement;
|
||||
#endif // _StepDimTol_Array1OfDatumReferenceElement_HeaderFile
|
23
src/StepDimTol/StepDimTol_Array1OfDatumReferenceModifier.hxx
Normal file
23
src/StepDimTol/StepDimTol_Array1OfDatumReferenceModifier.hxx
Normal file
@@ -0,0 +1,23 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_Array1OfDatumReferenceModifier_HeaderFile
|
||||
#define _StepDimTol_Array1OfDatumReferenceModifier_HeaderFile
|
||||
|
||||
#include <StepDimTol_DatumReferenceModifier.hxx>
|
||||
#include <NCollection_Array1.hxx>
|
||||
|
||||
typedef NCollection_Array1<StepDimTol_DatumReferenceModifier> StepDimTol_Array1OfDatumReferenceModifier;
|
||||
#endif // _StepDimTol_Array1OfDatumReferenceModifier_HeaderFile
|
23
src/StepDimTol/StepDimTol_Array1OfDatumSystemOrReference.hxx
Normal file
23
src/StepDimTol/StepDimTol_Array1OfDatumSystemOrReference.hxx
Normal file
@@ -0,0 +1,23 @@
|
||||
// Created on: 2015-07-21
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_Array1OfDatumSystemOrReference_HeaderFile
|
||||
#define _StepDimTol_Array1OfDatumSystemOrReference_HeaderFile
|
||||
|
||||
#include <StepDimTol_DatumSystemOrReference.hxx>
|
||||
#include <NCollection_Array1.hxx>
|
||||
|
||||
typedef NCollection_Array1<StepDimTol_DatumSystemOrReference> StepDimTol_Array1OfDatumSystemOrReference;
|
||||
#endif // _StepDimTol_Array1OfDatumSystemOrReference_HeaderFile
|
@@ -0,0 +1,24 @@
|
||||
// Created on: 2015-07-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_Array1OfGeometricToleranceModifier_HeaderFile
|
||||
#define _StepDimTol_Array1OfGeometricToleranceModifier_HeaderFile
|
||||
|
||||
#include <StepDimTol_GeometricToleranceModifier.hxx>
|
||||
#include <NCollection_Array1.hxx>
|
||||
|
||||
typedef NCollection_Array1<StepDimTol_GeometricToleranceModifier> StepDimTol_Array1OfGeometricToleranceModifier;
|
||||
|
||||
#endif // _StepDimTol_Array1OfGeometricToleranceModifier_HeaderFile
|
23
src/StepDimTol/StepDimTol_Array1OfToleranceZoneTarget.hxx
Normal file
23
src/StepDimTol/StepDimTol_Array1OfToleranceZoneTarget.hxx
Normal file
@@ -0,0 +1,23 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_Array1OfToleranceZoneTarget_HeaderFile
|
||||
#define _StepDimTol_Array1OfToleranceZoneTarget_HeaderFile
|
||||
|
||||
#include <StepDimTol_ToleranceZoneTarget.hxx>
|
||||
#include <NCollection_Array1.hxx>
|
||||
|
||||
typedef NCollection_Array1<StepDimTol_ToleranceZoneTarget> StepDimTol_Array1OfToleranceZoneTarget;
|
||||
#endif // _StepDimTol_Array1OfToleranceZoneTarget_HeaderFile
|
47
src/StepDimTol/StepDimTol_DatumOrCommonDatum.cxx
Normal file
47
src/StepDimTol/StepDimTol_DatumOrCommonDatum.cxx
Normal file
@@ -0,0 +1,47 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_DatumOrCommonDatum.hxx>
|
||||
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <StepDimTol_Datum.hxx>
|
||||
#include <StepDimTol_HArray1OfDatumReferenceElement.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_DatumOrCommonDatum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_DatumOrCommonDatum::StepDimTol_DatumOrCommonDatum () { }
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepDimTol_DatumOrCommonDatum::CaseNum(const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
if (ent.IsNull()) return 0;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepDimTol_Datum))) return 1;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepDimTol_HArray1OfDatumReferenceElement))) return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Handle(StepDimTol_Datum) StepDimTol_DatumOrCommonDatum::Datum() const
|
||||
{ return GetCasted(StepDimTol_Datum,Value()); }
|
||||
|
||||
Handle(StepDimTol_HArray1OfDatumReferenceElement) StepDimTol_DatumOrCommonDatum::CommonDatumList() const
|
||||
{ return GetCasted(StepDimTol_HArray1OfDatumReferenceElement,Value()); }
|
||||
|
52
src/StepDimTol/StepDimTol_DatumOrCommonDatum.hxx
Normal file
52
src/StepDimTol/StepDimTol_DatumOrCommonDatum.hxx
Normal file
@@ -0,0 +1,52 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_DatumOrCommonDatum_HeaderFile
|
||||
#define _StepDimTol_DatumOrCommonDatum_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepData_SelectType.hxx>
|
||||
|
||||
class Standard_Transient;
|
||||
class StepDimTol_Datum;
|
||||
class StepDimTol_HArray1OfDatumReferenceElement;
|
||||
|
||||
class StepDimTol_DatumOrCommonDatum : public StepData_SelectType
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Returns a DatumOrCommonDatum select type
|
||||
Standard_EXPORT StepDimTol_DatumOrCommonDatum();
|
||||
|
||||
//! Recognizes a DatumOrCommonDatum Kind Entity that is :
|
||||
//! 1 -> Datum
|
||||
//! 2 -> CommonDatumList
|
||||
//! 0 else
|
||||
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
|
||||
|
||||
//! returns Value as a Datum (Null if another type)
|
||||
Standard_EXPORT Handle(StepDimTol_Datum) Datum() const;
|
||||
|
||||
//! returns Value as a CommonDatumList (Null if another type)
|
||||
Standard_EXPORT Handle(StepDimTol_HArray1OfDatumReferenceElement) CommonDatumList() const;
|
||||
|
||||
};
|
||||
#endif // _StepDimTol_DatumOrCommonDatum_HeaderFile
|
25
src/StepDimTol/StepDimTol_DatumReferenceCompartment.cxx
Normal file
25
src/StepDimTol/StepDimTol_DatumReferenceCompartment.cxx
Normal file
@@ -0,0 +1,25 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_DatumReferenceCompartment.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_DatumReferenceCompartment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_DatumReferenceCompartment::StepDimTol_DatumReferenceCompartment ()
|
||||
{
|
||||
}
|
37
src/StepDimTol/StepDimTol_DatumReferenceCompartment.hxx
Normal file
37
src/StepDimTol/StepDimTol_DatumReferenceCompartment.hxx
Normal file
@@ -0,0 +1,37 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_DatumReferenceCompartment_HeaderFile
|
||||
#define _StepDimTol_DatumReferenceCompartment_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_GeneralDatumReference.hxx>
|
||||
|
||||
class StepDimTol_DatumReferenceCompartment;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_DatumReferenceCompartment, StepDimTol_GeneralDatumReference)
|
||||
//! Representation of STEP entity DatumReferenceCompartment
|
||||
class StepDimTol_DatumReferenceCompartment : public StepDimTol_GeneralDatumReference
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_DatumReferenceCompartment();
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_DatumReferenceCompartment, StepDimTol_GeneralDatumReference)
|
||||
};
|
||||
#endif // _StepDimTol_DatumReferenceCompartment_HeaderFile
|
25
src/StepDimTol/StepDimTol_DatumReferenceElement.cxx
Normal file
25
src/StepDimTol/StepDimTol_DatumReferenceElement.cxx
Normal file
@@ -0,0 +1,25 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_DatumReferenceElement.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_DatumReferenceElement
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_DatumReferenceElement::StepDimTol_DatumReferenceElement ()
|
||||
{
|
||||
}
|
38
src/StepDimTol/StepDimTol_DatumReferenceElement.hxx
Normal file
38
src/StepDimTol/StepDimTol_DatumReferenceElement.hxx
Normal file
@@ -0,0 +1,38 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_DatumReferenceElement_HeaderFile
|
||||
#define _StepDimTol_DatumReferenceElement_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineHandle.hxx>
|
||||
#include <Standard_Macro.hxx>
|
||||
|
||||
#include <StepDimTol_GeneralDatumReference.hxx>
|
||||
|
||||
class StepDimTol_DatumReferenceElement;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_DatumReferenceElement, StepDimTol_GeneralDatumReference)
|
||||
//! Representation of STEP entity DatumReferenceElement
|
||||
class StepDimTol_DatumReferenceElement : public StepDimTol_GeneralDatumReference
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_DatumReferenceElement();
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_DatumReferenceElement, StepDimTol_GeneralDatumReference)
|
||||
};
|
||||
#endif // _StepDimTol_DatumReferenceElement_HeaderFile
|
47
src/StepDimTol/StepDimTol_DatumReferenceModifier.cxx
Normal file
47
src/StepDimTol/StepDimTol_DatumReferenceModifier.cxx
Normal file
@@ -0,0 +1,47 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_DatumReferenceModifier.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <StepDimTol_DatumReferenceModifierWithValue.hxx>
|
||||
#include <StepDimTol_SimpleDatumReferenceModifierMember.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_DatumReferenceModifier
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_DatumReferenceModifier::StepDimTol_DatumReferenceModifier () { }
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepDimTol_DatumReferenceModifier::CaseNum(const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
if (ent.IsNull()) return 0;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepDimTol_DatumReferenceModifierWithValue))) return 1;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepDimTol_SimpleDatumReferenceModifierMember))) return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Handle(StepDimTol_DatumReferenceModifierWithValue) StepDimTol_DatumReferenceModifier::
|
||||
DatumReferenceModifierWithValue() const
|
||||
{ return GetCasted(StepDimTol_DatumReferenceModifierWithValue,Value()); }
|
||||
|
||||
Handle(StepDimTol_SimpleDatumReferenceModifierMember) StepDimTol_DatumReferenceModifier::
|
||||
SimpleDatumReferenceModifierMember() const
|
||||
{ return GetCasted(StepDimTol_SimpleDatumReferenceModifierMember,Value()); }
|
52
src/StepDimTol/StepDimTol_DatumReferenceModifier.hxx
Normal file
52
src/StepDimTol/StepDimTol_DatumReferenceModifier.hxx
Normal file
@@ -0,0 +1,52 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_DatumReferenceModifier_HeaderFile
|
||||
#define _StepDimTol_DatumReferenceModifier_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepData_SelectType.hxx>
|
||||
#include <StepDimTol_DatumReferenceModifierWithValue.hxx>
|
||||
#include <StepDimTol_SimpleDatumReferenceModifierMember.hxx>
|
||||
|
||||
class Standard_Transient;
|
||||
|
||||
class StepDimTol_DatumReferenceModifier : public StepData_SelectType
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Returns a DatumReferenceModifier select type
|
||||
Standard_EXPORT StepDimTol_DatumReferenceModifier();
|
||||
|
||||
//! Recognizes a DatumReferenceModifier Kind Entity that is :
|
||||
//! 1 -> DatumReferenceModifierWithValue
|
||||
//! 2 -> SimpleDatumReferenceModifierMember
|
||||
//! 0 else
|
||||
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
|
||||
|
||||
//! returns Value as a DatumReferenceModifierWithValue (Null if another type)
|
||||
Standard_EXPORT Handle(StepDimTol_DatumReferenceModifierWithValue) DatumReferenceModifierWithValue() const;
|
||||
|
||||
//! returns Value as a SimpleDatumReferenceModifierMember (Null if another type)
|
||||
Standard_EXPORT Handle(StepDimTol_SimpleDatumReferenceModifierMember) SimpleDatumReferenceModifierMember() const;
|
||||
|
||||
};
|
||||
#endif // _StepDimTol_DatumReferenceModifier_HeaderFile
|
28
src/StepDimTol/StepDimTol_DatumReferenceModifierType.hxx
Normal file
28
src/StepDimTol/StepDimTol_DatumReferenceModifierType.hxx
Normal file
@@ -0,0 +1,28 @@
|
||||
// Created on: 2015-07-14
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_DatumReferenceModifierType_HeaderFile
|
||||
#define _StepDimTol_DatumReferenceModifierType_HeaderFile
|
||||
|
||||
#include <Standard_PrimitiveTypes.hxx>
|
||||
|
||||
enum StepDimTol_DatumReferenceModifierType {
|
||||
StepDimTol_CircularOrCylindrical,
|
||||
StepDimTol_Distance,
|
||||
StepDimTol_Projected,
|
||||
StepDimTol_Spherical
|
||||
};
|
||||
|
||||
#endif
|
@@ -0,0 +1,38 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_DatumReferenceModifierWithValue.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_DatumReferenceModifierWithValue
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_DatumReferenceModifierWithValue::StepDimTol_DatumReferenceModifierWithValue ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_DatumReferenceModifierWithValue::Init (const StepDimTol_DatumReferenceModifierType& theModifierType,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit)& theModifierValue)
|
||||
{
|
||||
modifierType = theModifierType;
|
||||
modifierValue = theModifierValue;
|
||||
}
|
||||
|
@@ -0,0 +1,73 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_DatumReferenceModifierWithValue_HeaderFile
|
||||
#define _StepDimTol_DatumReferenceModifierWithValue_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineHandle.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepBasic_LengthMeasureWithUnit.hxx>
|
||||
#include <StepDimTol_DatumReferenceModifierType.hxx>
|
||||
|
||||
class StepDimTol_DatumReferenceModifierWithValue;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_DatumReferenceModifierWithValue, MMgt_TShared)
|
||||
//! Representation of STEP entity DatumReferenceModifierWithValue
|
||||
class StepDimTol_DatumReferenceModifierWithValue : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_DatumReferenceModifierWithValue();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const StepDimTol_DatumReferenceModifierType& theModifierType,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit)& theModifierValue);
|
||||
|
||||
//! Returns field ModifierType
|
||||
inline StepDimTol_DatumReferenceModifierType ModifierType () const
|
||||
{
|
||||
return modifierType;
|
||||
}
|
||||
|
||||
//! Set field ModifierType
|
||||
inline void SetModifierType (const StepDimTol_DatumReferenceModifierType &theModifierType)
|
||||
{
|
||||
modifierType = theModifierType;
|
||||
}
|
||||
|
||||
//! Returns field ModifierValue
|
||||
inline Handle(StepBasic_LengthMeasureWithUnit) ModifierValue()
|
||||
{
|
||||
return modifierValue;
|
||||
}
|
||||
|
||||
//! Set field ModifierValue
|
||||
inline void SetModifierValue(const Handle(StepBasic_LengthMeasureWithUnit)& theModifierValue)
|
||||
{
|
||||
modifierValue = theModifierValue;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_DatumReferenceModifierWithValue, MMgt_TShared)
|
||||
|
||||
private:
|
||||
StepDimTol_DatumReferenceModifierType modifierType;
|
||||
Handle(StepBasic_LengthMeasureWithUnit) modifierValue;
|
||||
};
|
||||
#endif // _StepDimTol_DatumReferenceModifierWithValue_HeaderFile
|
43
src/StepDimTol/StepDimTol_DatumSystem.cxx
Normal file
43
src/StepDimTol/StepDimTol_DatumSystem.cxx
Normal file
@@ -0,0 +1,43 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_DatumSystem.hxx>
|
||||
|
||||
#include <StepDimTol_HArray1OfDatumReferenceCompartment.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_DatumSystem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_DatumSystem::StepDimTol_DatumSystem ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_DatumSystem::Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
|
||||
const StepData_Logical theProductDefinitional,
|
||||
const Handle(StepDimTol_HArray1OfDatumReferenceCompartment)& theConstituents)
|
||||
{
|
||||
StepRepr_ShapeAspect::Init(theName, theDescription, theOfShape, theProductDefinitional);
|
||||
constituents = theConstituents;
|
||||
}
|
||||
|
79
src/StepDimTol/StepDimTol_DatumSystem.hxx
Normal file
79
src/StepDimTol/StepDimTol_DatumSystem.hxx
Normal file
@@ -0,0 +1,79 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_DatumSystem_HeaderFile
|
||||
#define _StepDimTol_DatumSystem_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <StepDimTol_HArray1OfDatumReferenceCompartment.hxx>
|
||||
|
||||
class StepDimTol_DatumSystem;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_DatumSystem, StepRepr_ShapeAspect)
|
||||
//! Representation of STEP entity DatumSystem
|
||||
class StepDimTol_DatumSystem : public StepRepr_ShapeAspect
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_DatumSystem();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
|
||||
const StepData_Logical theProductDefinitional,
|
||||
const Handle(StepDimTol_HArray1OfDatumReferenceCompartment)& theConstituents);
|
||||
|
||||
//! Returns field Constituents
|
||||
inline Handle(StepDimTol_HArray1OfDatumReferenceCompartment) Constituents()
|
||||
{
|
||||
return constituents;
|
||||
}
|
||||
|
||||
//! Set field Constituents
|
||||
inline void SetConstituents(const Handle(StepDimTol_HArray1OfDatumReferenceCompartment)& theConstituents)
|
||||
{
|
||||
constituents = theConstituents;
|
||||
}
|
||||
|
||||
//! Returns number of Constituents
|
||||
inline Standard_Integer NbConstituents () const
|
||||
{
|
||||
return (constituents.IsNull() ? 0 : constituents->Length());
|
||||
}
|
||||
|
||||
//! Returns Constituents with the given number
|
||||
inline Handle(StepDimTol_DatumReferenceCompartment) ConstituentsValue(const Standard_Integer num) const
|
||||
{
|
||||
return constituents->Value(num);
|
||||
}
|
||||
|
||||
//! Sets Constituents with given number
|
||||
inline void ConstituentsValue(const Standard_Integer num, const Handle(StepDimTol_DatumReferenceCompartment)& theItem)
|
||||
{
|
||||
constituents->SetValue (num, theItem);
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_DatumSystem, StepRepr_ShapeAspect)
|
||||
|
||||
private:
|
||||
Handle(StepDimTol_HArray1OfDatumReferenceCompartment) constituents;
|
||||
};
|
||||
#endif // _StepDimTol_DatumSystem_HeaderFile
|
45
src/StepDimTol/StepDimTol_DatumSystemOrReference.cxx
Normal file
45
src/StepDimTol/StepDimTol_DatumSystemOrReference.cxx
Normal file
@@ -0,0 +1,45 @@
|
||||
// Created on: 2015-07-21
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_DatumSystemOrReference.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <StepDimTol_DatumSystem.hxx>
|
||||
#include <StepDimTol_DatumReference.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_DatumSystemOrReference
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_DatumSystemOrReference::StepDimTol_DatumSystemOrReference () { }
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepDimTol_DatumSystemOrReference::CaseNum(const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
if (ent.IsNull()) return 0;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepDimTol_DatumSystem))) return 1;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepDimTol_DatumReference))) return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Handle(StepDimTol_DatumSystem) StepDimTol_DatumSystemOrReference::DatumSystem() const
|
||||
{ return GetCasted(StepDimTol_DatumSystem,Value()); }
|
||||
|
||||
Handle(StepDimTol_DatumReference) StepDimTol_DatumSystemOrReference::DatumReference() const
|
||||
{ return GetCasted(StepDimTol_DatumReference,Value()); }
|
51
src/StepDimTol/StepDimTol_DatumSystemOrReference.hxx
Normal file
51
src/StepDimTol/StepDimTol_DatumSystemOrReference.hxx
Normal file
@@ -0,0 +1,51 @@
|
||||
// Created on: 2015-07-21
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_DatumSystemOrReference_HeaderFile
|
||||
#define _StepDimTol_DatumSystemOrReference_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <StepData_SelectType.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
|
||||
class Standard_Transient;
|
||||
class StepDimTol_DatumSystem;
|
||||
class StepDimTol_DatumReference;
|
||||
|
||||
class StepDimTol_DatumSystemOrReference : public StepData_SelectType
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Returns a DatumSystemOrReference select type
|
||||
Standard_EXPORT StepDimTol_DatumSystemOrReference();
|
||||
|
||||
//! Recognizes a DatumSystemOrReference Kind Entity that is :
|
||||
//! 1 -> DatumSystem
|
||||
//! 2 -> DatumReference
|
||||
//! 0 else
|
||||
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
|
||||
|
||||
//! returns Value as a DatumSystem (Null if another type)
|
||||
Standard_EXPORT Handle(StepDimTol_DatumSystem) DatumSystem() const;
|
||||
|
||||
//! returns Value as a DatumReference (Null if another type)
|
||||
Standard_EXPORT Handle(StepDimTol_DatumReference) DatumReference() const;
|
||||
};
|
||||
#endif // _StepDimTol_DatumSystemOrReference_HeaderFile
|
49
src/StepDimTol/StepDimTol_GeneralDatumReference.cxx
Normal file
49
src/StepDimTol/StepDimTol_GeneralDatumReference.cxx
Normal file
@@ -0,0 +1,49 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_GeneralDatumReference.hxx>
|
||||
|
||||
#include <StepDimTol_HArray1OfDatumReferenceModifier.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeneralDatumReference
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_GeneralDatumReference::StepDimTol_GeneralDatumReference ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeneralDatumReference::Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
|
||||
const StepData_Logical theProductDefinitional,
|
||||
const StepDimTol_DatumOrCommonDatum& theBase,
|
||||
const Standard_Boolean hasModifiers,
|
||||
const Handle(StepDimTol_HArray1OfDatumReferenceModifier)& theModifiers)
|
||||
{
|
||||
StepRepr_ShapeAspect::Init(theName, theDescription, theOfShape, theProductDefinitional);
|
||||
base = theBase;
|
||||
if (hasModifiers)
|
||||
modifiers = theModifiers;
|
||||
else
|
||||
modifiers.Nullify();
|
||||
}
|
||||
|
101
src/StepDimTol/StepDimTol_GeneralDatumReference.hxx
Normal file
101
src/StepDimTol/StepDimTol_GeneralDatumReference.hxx
Normal file
@@ -0,0 +1,101 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeneralDatumReference_HeaderFile
|
||||
#define _StepDimTol_GeneralDatumReference_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <StepDimTol_DatumOrCommonDatum.hxx>
|
||||
#include <StepDimTol_HArray1OfDatumReferenceModifier.hxx>
|
||||
|
||||
class StepDimTol_GeneralDatumReference;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeneralDatumReference, StepRepr_ShapeAspect)
|
||||
//! Representation of STEP entity GeneralDatumReference
|
||||
class StepDimTol_GeneralDatumReference : public StepRepr_ShapeAspect
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_GeneralDatumReference();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
|
||||
const StepData_Logical theProductDefinitional,
|
||||
const StepDimTol_DatumOrCommonDatum& theBase,
|
||||
const Standard_Boolean hasModifiers,
|
||||
const Handle(StepDimTol_HArray1OfDatumReferenceModifier)& theModifiers);
|
||||
|
||||
//! Returns field Base
|
||||
inline StepDimTol_DatumOrCommonDatum Base()
|
||||
{
|
||||
return base;
|
||||
}
|
||||
|
||||
//! Set field Base
|
||||
inline void SetBase(const StepDimTol_DatumOrCommonDatum& theBase)
|
||||
{
|
||||
base = theBase;
|
||||
}
|
||||
|
||||
//! Indicates is field Modifiers exist
|
||||
inline Standard_Boolean HasModifiers() const
|
||||
{
|
||||
return modifiers.IsNull();
|
||||
}
|
||||
|
||||
//! Returns field Modifiers
|
||||
inline Handle(StepDimTol_HArray1OfDatumReferenceModifier) Modifiers()
|
||||
{
|
||||
return modifiers;
|
||||
}
|
||||
|
||||
//! Set field Modifiers
|
||||
inline void SetModifiers(const Handle(StepDimTol_HArray1OfDatumReferenceModifier)& theModifiers)
|
||||
{
|
||||
modifiers = theModifiers;
|
||||
}
|
||||
|
||||
//! Returns number of Modifiers
|
||||
inline Standard_Integer NbModifiers () const
|
||||
{
|
||||
return (modifiers.IsNull() ? 0 : modifiers->Length());
|
||||
}
|
||||
|
||||
//! Returns Modifiers with the given number
|
||||
inline StepDimTol_DatumReferenceModifier ModifiersValue(const Standard_Integer num) const
|
||||
{
|
||||
return modifiers->Value(num);
|
||||
}
|
||||
|
||||
//! Sets Modifiers with given number
|
||||
inline void ModifiersValue(const Standard_Integer num, const StepDimTol_DatumReferenceModifier& theItem)
|
||||
{
|
||||
modifiers->SetValue (num, theItem);
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeneralDatumReference, StepRepr_ShapeAspect)
|
||||
|
||||
private:
|
||||
StepDimTol_DatumOrCommonDatum base;
|
||||
Handle(StepDimTol_HArray1OfDatumReferenceModifier) modifiers;
|
||||
};
|
||||
#endif // _StepDimTol_GeneralDatumReference_HeaderFile
|
74
src/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRef.cxx
Normal file
74
src/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRef.cxx
Normal file
@@ -0,0 +1,74 @@
|
||||
// Created on: 2015-08-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
|
||||
#include <StepDimTol_GeoTolAndGeoTolWthDatRef.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeoTolAndGeoTolWthDatRef
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRef::StepDimTol_GeoTolAndGeoTolWthDatRef()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthDatRef::Init
|
||||
(const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const StepDimTol_GeometricToleranceType theType)
|
||||
{
|
||||
SetName(theName);
|
||||
SetDescription(theDescription);
|
||||
SetMagnitude(theMagnitude);
|
||||
SetTolerancedShapeAspect(theTolerancedShapeAspect);
|
||||
myGeometricToleranceWithDatumReference = theGTWDR;
|
||||
myToleranceType = theType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthDatRef::Init
|
||||
(const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const StepDimTol_GeometricToleranceType theType)
|
||||
{
|
||||
SetName(theName);
|
||||
SetDescription(theDescription);
|
||||
SetMagnitude(theMagnitude);
|
||||
SetTolerancedShapeAspect(theTolerancedShapeAspect);
|
||||
myGeometricToleranceWithDatumReference = theGTWDR;
|
||||
myToleranceType = theType;
|
||||
}
|
79
src/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRef.hxx
Normal file
79
src/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRef.hxx
Normal file
@@ -0,0 +1,79 @@
|
||||
// Created on: 2015-08-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeoTolAndGeoTolWthDatRef_HeaderFile
|
||||
#define _StepDimTol_GeoTolAndGeoTolWthDatRef_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
#include <StepDimTol_GeometricToleranceType.hxx>
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepDimTol_GeometricToleranceWithDatumReference;
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
|
||||
class StepDimTol_GeoTolAndGeoTolWthDatRef;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeoTolAndGeoTolWthDatRef, StepDimTol_GeometricTolerance)
|
||||
|
||||
class StepDimTol_GeoTolAndGeoTolWthDatRef : public StepDimTol_GeometricTolerance
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT StepDimTol_GeoTolAndGeoTolWthDatRef();
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const StepDimTol_GeometricToleranceType theType);
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(TCollection_HAsciiString)& aDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& aMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& aTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR,
|
||||
const StepDimTol_GeometricToleranceType theType);
|
||||
|
||||
inline void SetGeometricToleranceWithDatumReference (const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR){
|
||||
myGeometricToleranceWithDatumReference = theGTWDR;
|
||||
}
|
||||
|
||||
inline Handle(StepDimTol_GeometricToleranceWithDatumReference) GetGeometricToleranceWithDatumReference() const {
|
||||
return myGeometricToleranceWithDatumReference;
|
||||
}
|
||||
|
||||
inline void SetGeometricToleranceType (const StepDimTol_GeometricToleranceType theType){
|
||||
myToleranceType = theType;
|
||||
}
|
||||
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceType GetToleranceType() const {
|
||||
return myToleranceType;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeoTolAndGeoTolWthDatRef,StepDimTol_GeometricTolerance)
|
||||
|
||||
private:
|
||||
|
||||
Handle(StepDimTol_GeometricToleranceWithDatumReference) myGeometricToleranceWithDatumReference;
|
||||
StepDimTol_GeometricToleranceType myToleranceType;
|
||||
};
|
||||
#endif // _StepDimTol_GeoTolAndGeoTolWthDatRef_HeaderFile
|
@@ -0,0 +1,79 @@
|
||||
// Created on: 2015-08-06
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
|
||||
#include <StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithModifiers.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod::StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod::Init
|
||||
(const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
|
||||
const StepDimTol_GeometricToleranceType theType)
|
||||
{
|
||||
SetName(theName);
|
||||
SetDescription(theDescription);
|
||||
SetMagnitude(theMagnitude);
|
||||
SetTolerancedShapeAspect(theTolerancedShapeAspect);
|
||||
myGeometricToleranceWithDatumReference = theGTWDR;
|
||||
myGeometricToleranceWithModifiers = theGTWM;
|
||||
myToleranceType = theType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod::Init
|
||||
(const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
|
||||
const StepDimTol_GeometricToleranceType theType)
|
||||
{
|
||||
SetName(theName);
|
||||
SetDescription(theDescription);
|
||||
SetMagnitude(theMagnitude);
|
||||
SetTolerancedShapeAspect(theTolerancedShapeAspect);
|
||||
myGeometricToleranceWithDatumReference = theGTWDR;
|
||||
myGeometricToleranceWithModifiers = theGTWM;
|
||||
myToleranceType = theType;
|
||||
}
|
@@ -0,0 +1,91 @@
|
||||
// Created on: 2015-08-06
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod_HeaderFile
|
||||
#define _StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
#include <StepDimTol_GeometricToleranceType.hxx>
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepDimTol_GeometricToleranceWithDatumReference;
|
||||
class StepDimTol_GeometricToleranceWithModifiers;
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
|
||||
class StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod, StepDimTol_GeometricTolerance)
|
||||
|
||||
class StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod : public StepDimTol_GeometricTolerance
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod();
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
|
||||
const StepDimTol_GeometricToleranceType theType);
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(TCollection_HAsciiString)& aDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& aMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& aTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR,
|
||||
const Handle(StepDimTol_GeometricToleranceWithModifiers)& aGTWM,
|
||||
const StepDimTol_GeometricToleranceType theType);
|
||||
|
||||
inline void SetGeometricToleranceWithDatumReference (const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR){
|
||||
myGeometricToleranceWithDatumReference = theGTWDR;
|
||||
}
|
||||
|
||||
inline Handle(StepDimTol_GeometricToleranceWithDatumReference) GetGeometricToleranceWithDatumReference() const {
|
||||
return myGeometricToleranceWithDatumReference;
|
||||
}
|
||||
|
||||
inline void SetGeometricToleranceWithModifiers (const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM) {
|
||||
myGeometricToleranceWithModifiers = theGTWM;
|
||||
}
|
||||
|
||||
inline Handle(StepDimTol_GeometricToleranceWithModifiers) GetGeometricToleranceWithModifiers() const {
|
||||
return myGeometricToleranceWithModifiers;
|
||||
}
|
||||
|
||||
inline void SetGeometricToleranceType (const StepDimTol_GeometricToleranceType theType){
|
||||
myToleranceType = theType;
|
||||
}
|
||||
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceType GetToleranceType() const {
|
||||
return myToleranceType;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod,StepDimTol_GeometricTolerance)
|
||||
|
||||
private:
|
||||
|
||||
Handle(StepDimTol_GeometricToleranceWithDatumReference) myGeometricToleranceWithDatumReference;
|
||||
Handle(StepDimTol_GeometricToleranceWithModifiers) myGeometricToleranceWithModifiers;
|
||||
StepDimTol_GeometricToleranceType myToleranceType;
|
||||
};
|
||||
#endif // _StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod_HeaderFile
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
|
||||
#include <StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.hxx>
|
||||
#include <StepDimTol_ModifiedGeometricTolerance.hxx>
|
||||
@@ -51,6 +52,27 @@ void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Init
|
||||
myModifiedGeometricTolerance = aMGT;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Init
|
||||
(const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(TCollection_HAsciiString)& aDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& aMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& aTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR,
|
||||
const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT)
|
||||
{
|
||||
SetName(aName);
|
||||
SetDescription(aDescription);
|
||||
SetMagnitude(aMagnitude);
|
||||
SetTolerancedShapeAspect(aTolerancedShapeAspect);
|
||||
myGeometricToleranceWithDatumReference = aGTWDR;
|
||||
myModifiedGeometricTolerance = aMGT;
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SetGeometricToleranceWithDatumReference
|
||||
|
@@ -20,6 +20,7 @@
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepDimTol_GeometricToleranceWithDatumReference;
|
||||
class StepDimTol_ModifiedGeometricTolerance;
|
||||
class StepDimTol_PositionTolerance;
|
||||
@@ -41,7 +42,9 @@ public:
|
||||
Standard_EXPORT StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol();
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepBasic_MeasureWithUnit)& aMagnitude, const Handle(StepRepr_ShapeAspect)& aTolerancedShapeAspect, const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR, const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT);
|
||||
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepBasic_MeasureWithUnit)& aMagnitude, const StepDimTol_GeometricToleranceTarget& aTolerancedShapeAspect, const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR, const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT);
|
||||
|
||||
Standard_EXPORT void SetGeometricToleranceWithDatumReference (const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR);
|
||||
|
||||
Standard_EXPORT Handle(StepDimTol_GeometricToleranceWithDatumReference) GetGeometricToleranceWithDatumReference() const;
|
||||
|
@@ -0,0 +1,71 @@
|
||||
// Created on: 2015-08-11
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
|
||||
#include <StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol.hxx>
|
||||
#include <StepDimTol_UnequallyDisposedGeometricTolerance.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::Init
|
||||
(const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const StepDimTol_GeometricToleranceType theType,
|
||||
const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT)
|
||||
{
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRef::Init(theName, theDescription, theMagnitude,
|
||||
theTolerancedShapeAspect, theGTWDR, theType);
|
||||
myUnequallyDisposedGeometricTolerance = theUDGT;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::Init
|
||||
(const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const StepDimTol_GeometricToleranceType theType,
|
||||
const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT)
|
||||
{
|
||||
StepDimTol_GeoTolAndGeoTolWthDatRef::Init(theName, theDescription, theMagnitude,
|
||||
theTolerancedShapeAspect, theGTWDR, theType);
|
||||
myUnequallyDisposedGeometricTolerance = theUDGT;
|
||||
}
|
@@ -0,0 +1,72 @@
|
||||
// Created on: 2015-08-11
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol_HeaderFile
|
||||
#define _StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_GeoTolAndGeoTolWthDatRef.hxx>
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepDimTol_GeometricToleranceWithDatumReference;
|
||||
class StepDimTol_UnequallyDisposedGeometricTolerance;
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
|
||||
class StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol, StepDimTol_GeoTolAndGeoTolWthDatRef)
|
||||
|
||||
class StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol : public StepDimTol_GeoTolAndGeoTolWthDatRef
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol();
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
|
||||
const StepDimTol_GeometricToleranceType theType,
|
||||
const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT);
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(TCollection_HAsciiString)& aDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& aMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& aTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR,
|
||||
const StepDimTol_GeometricToleranceType theType,
|
||||
const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT);
|
||||
|
||||
inline void SetUnequallyDisposedGeometricTolerance (const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT){
|
||||
myUnequallyDisposedGeometricTolerance = theUDGT;
|
||||
}
|
||||
|
||||
inline Handle(StepDimTol_UnequallyDisposedGeometricTolerance) GetUnequallyDisposedGeometricTolerance() const {
|
||||
return myUnequallyDisposedGeometricTolerance;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol,StepDimTol_GeoTolAndGeoTolWthDatRef)
|
||||
|
||||
private:
|
||||
|
||||
Handle(StepDimTol_UnequallyDisposedGeometricTolerance) myUnequallyDisposedGeometricTolerance;
|
||||
};
|
||||
#endif // _StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol_HeaderFile
|
74
src/StepDimTol/StepDimTol_GeoTolAndGeoTolWthMod.cxx
Normal file
74
src/StepDimTol/StepDimTol_GeoTolAndGeoTolWthMod.cxx
Normal file
@@ -0,0 +1,74 @@
|
||||
// Created on: 2015-08-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepDimTol_GeoTolAndGeoTolWthMod.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithModifiers.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeoTolAndGeoTolWthMod
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
StepDimTol_GeoTolAndGeoTolWthMod::StepDimTol_GeoTolAndGeoTolWthMod()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthMod::Init
|
||||
(const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
|
||||
const StepDimTol_GeometricToleranceType theType)
|
||||
{
|
||||
SetName(theName);
|
||||
SetDescription(theDescription);
|
||||
SetMagnitude(theMagnitude);
|
||||
SetTolerancedShapeAspect(theTolerancedShapeAspect);
|
||||
myGeometricToleranceWithModifiers = theGTWM;
|
||||
myToleranceType = theType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeoTolAndGeoTolWthMod::Init
|
||||
(const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
|
||||
const StepDimTol_GeometricToleranceType theType)
|
||||
{
|
||||
SetName(theName);
|
||||
SetDescription(theDescription);
|
||||
SetMagnitude(theMagnitude);
|
||||
SetTolerancedShapeAspect(theTolerancedShapeAspect);
|
||||
myGeometricToleranceWithModifiers = theGTWM;
|
||||
myToleranceType = theType;
|
||||
}
|
79
src/StepDimTol/StepDimTol_GeoTolAndGeoTolWthMod.hxx
Normal file
79
src/StepDimTol/StepDimTol_GeoTolAndGeoTolWthMod.hxx
Normal file
@@ -0,0 +1,79 @@
|
||||
// Created on: 2015-08-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeoTolAndGeoTolWthMod_HeaderFile
|
||||
#define _StepDimTol_GeoTolAndGeoTolWthMod_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
#include <StepDimTol_GeometricToleranceType.hxx>
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepDimTol_GeometricToleranceWithModifiers;
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
|
||||
class StepDimTol_GeoTolAndGeoTolWthMod;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeoTolAndGeoTolWthMod, StepDimTol_GeometricTolerance)
|
||||
|
||||
class StepDimTol_GeoTolAndGeoTolWthMod : public StepDimTol_GeometricTolerance
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT StepDimTol_GeoTolAndGeoTolWthMod();
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
|
||||
const StepDimTol_GeometricToleranceType theType);
|
||||
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(TCollection_HAsciiString)& aDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& aMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& aTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_GeometricToleranceWithModifiers)& aGTWM,
|
||||
const StepDimTol_GeometricToleranceType theType);
|
||||
|
||||
inline void SetGeometricToleranceWithModifiers (const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM) {
|
||||
myGeometricToleranceWithModifiers = theGTWM;
|
||||
}
|
||||
|
||||
inline Handle(StepDimTol_GeometricToleranceWithModifiers) GetGeometricToleranceWithModifiers() const {
|
||||
return myGeometricToleranceWithModifiers;
|
||||
}
|
||||
|
||||
inline void SetGeometricToleranceType (const StepDimTol_GeometricToleranceType theType){
|
||||
myToleranceType = theType;
|
||||
}
|
||||
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceType GetToleranceType() const {
|
||||
return myToleranceType;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeoTolAndGeoTolWthMod,StepDimTol_GeometricTolerance)
|
||||
|
||||
private:
|
||||
|
||||
Handle(StepDimTol_GeometricToleranceWithModifiers) myGeometricToleranceWithModifiers;
|
||||
StepDimTol_GeometricToleranceType myToleranceType;
|
||||
};
|
||||
#endif // _StepDimTol_GeoTolAndGeoTolWthMod_HeaderFile
|
@@ -18,6 +18,7 @@
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
@@ -37,7 +38,7 @@ StepDimTol_GeometricTolerance::StepDimTol_GeometricTolerance ()
|
||||
void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &aName,
|
||||
const Handle(TCollection_HAsciiString) &aDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit) &aMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect) &aTolerancedShapeAspect)
|
||||
const StepDimTol_GeometricToleranceTarget &aTolerancedShapeAspect)
|
||||
{
|
||||
|
||||
theName = aName;
|
||||
@@ -49,6 +50,26 @@ void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString)
|
||||
theTolerancedShapeAspect = aTolerancedShapeAspect;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &aName,
|
||||
const Handle(TCollection_HAsciiString) &aDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit) &aMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect) &aTolerancedShapeAspect)
|
||||
{
|
||||
|
||||
theName = aName;
|
||||
|
||||
theDescription = aDescription;
|
||||
|
||||
theMagnitude = aMagnitude;
|
||||
|
||||
theTolerancedShapeAspect.SetValue(aTolerancedShapeAspect);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
@@ -114,7 +135,7 @@ void StepDimTol_GeometricTolerance::SetMagnitude (const Handle(StepBasic_Measure
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepRepr_ShapeAspect) StepDimTol_GeometricTolerance::TolerancedShapeAspect () const
|
||||
StepDimTol_GeometricToleranceTarget StepDimTol_GeometricTolerance::TolerancedShapeAspect () const
|
||||
{
|
||||
return theTolerancedShapeAspect;
|
||||
}
|
||||
@@ -125,6 +146,16 @@ Handle(StepRepr_ShapeAspect) StepDimTol_GeometricTolerance::TolerancedShapeAspec
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect) &aTolerancedShapeAspect)
|
||||
{
|
||||
theTolerancedShapeAspect.SetValue(aTolerancedShapeAspect);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetTolerancedShapeAspect
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget &aTolerancedShapeAspect)
|
||||
{
|
||||
theTolerancedShapeAspect = aTolerancedShapeAspect;
|
||||
}
|
||||
|
@@ -20,8 +20,10 @@
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
|
||||
@@ -38,8 +40,11 @@ public:
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_GeometricTolerance();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
//! Initialize all fields (own and inherited) AP214
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepBasic_MeasureWithUnit)& aMagnitude, const Handle(StepRepr_ShapeAspect)& aTolerancedShapeAspect);
|
||||
|
||||
//! Initialize all fields (own and inherited) AP242
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepBasic_MeasureWithUnit)& aMagnitude, const StepDimTol_GeometricToleranceTarget& aTolerancedShapeAspect);
|
||||
|
||||
//! Returns field Name
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
|
||||
@@ -60,11 +65,15 @@ public:
|
||||
Standard_EXPORT void SetMagnitude (const Handle(StepBasic_MeasureWithUnit)& Magnitude);
|
||||
|
||||
//! Returns field TolerancedShapeAspect
|
||||
Standard_EXPORT Handle(StepRepr_ShapeAspect) TolerancedShapeAspect() const;
|
||||
//! Note: in AP214(203) type of this attribute can be only StepRepr_ShapeAspect
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceTarget TolerancedShapeAspect() const;
|
||||
|
||||
//! Set field TolerancedShapeAspect
|
||||
//! Set field TolerancedShapeAspect AP214
|
||||
Standard_EXPORT void SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect)& TolerancedShapeAspect);
|
||||
|
||||
//! Set field TolerancedShapeAspect AP242
|
||||
Standard_EXPORT void SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget& TolerancedShapeAspect);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -81,7 +90,7 @@ private:
|
||||
Handle(TCollection_HAsciiString) theName;
|
||||
Handle(TCollection_HAsciiString) theDescription;
|
||||
Handle(StepBasic_MeasureWithUnit) theMagnitude;
|
||||
Handle(StepRepr_ShapeAspect) theTolerancedShapeAspect;
|
||||
StepDimTol_GeometricToleranceTarget theTolerancedShapeAspect;
|
||||
|
||||
|
||||
};
|
||||
|
39
src/StepDimTol/StepDimTol_GeometricToleranceModifier.hxx
Normal file
39
src/StepDimTol/StepDimTol_GeometricToleranceModifier.hxx
Normal file
@@ -0,0 +1,39 @@
|
||||
// Created on: 2015-07-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeometricToleranceModifier_HeaderFile
|
||||
#define _StepDimTol_GeometricToleranceModifier_HeaderFile
|
||||
|
||||
#include <Standard_PrimitiveTypes.hxx>
|
||||
|
||||
enum StepDimTol_GeometricToleranceModifier {
|
||||
StepDimTol_GTMAnyCrossSection,
|
||||
StepDimTol_GTMCommonZone,
|
||||
StepDimTol_GTMEachRadialElement,
|
||||
StepDimTol_GTMFreeState,
|
||||
StepDimTol_GTMLeastMaterialRequirement,
|
||||
StepDimTol_GTMLineElement,
|
||||
StepDimTol_GTMMajorDiameter,
|
||||
StepDimTol_GTMMaximumMaterialRequirement,
|
||||
StepDimTol_GTMMinorDiameter,
|
||||
StepDimTol_GTMNotConvex,
|
||||
StepDimTol_GTMPitchDiameter,
|
||||
StepDimTol_GTMReciprocityRequirement,
|
||||
StepDimTol_GTMSeparateRequirement,
|
||||
StepDimTol_GTMStatisticalTolerance,
|
||||
StepDimTol_GTMTangentPlane
|
||||
};
|
||||
|
||||
#endif
|
55
src/StepDimTol/StepDimTol_GeometricToleranceTarget.cxx
Normal file
55
src/StepDimTol/StepDimTol_GeometricToleranceTarget.cxx
Normal file
@@ -0,0 +1,55 @@
|
||||
// Created on: 2015-07-20
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <StepShape_DimensionalLocation.hxx>
|
||||
#include <StepShape_DimensionalSize.hxx>
|
||||
#include <StepRepr_ProductDefinitionShape.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeometricToleranceTarget
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_GeometricToleranceTarget::StepDimTol_GeometricToleranceTarget () { }
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepDimTol_GeometricToleranceTarget::CaseNum(const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
if (ent.IsNull()) return 0;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalLocation))) return 1;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalSize))) return 2;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_ProductDefinitionShape))) return 3;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 4;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Handle(StepShape_DimensionalLocation) StepDimTol_GeometricToleranceTarget::DimensionalLocation() const
|
||||
{ return GetCasted(StepShape_DimensionalLocation,Value()); }
|
||||
|
||||
Handle(StepShape_DimensionalSize) StepDimTol_GeometricToleranceTarget::DimensionalSize() const
|
||||
{ return GetCasted(StepShape_DimensionalSize,Value()); }
|
||||
|
||||
Handle(StepRepr_ProductDefinitionShape) StepDimTol_GeometricToleranceTarget::ProductDefinitionShape() const
|
||||
{ return GetCasted(StepRepr_ProductDefinitionShape,Value()); }
|
||||
|
||||
Handle(StepRepr_ShapeAspect) StepDimTol_GeometricToleranceTarget::ShapeAspect() const
|
||||
{ return GetCasted(StepRepr_ShapeAspect,Value()); }
|
61
src/StepDimTol/StepDimTol_GeometricToleranceTarget.hxx
Normal file
61
src/StepDimTol/StepDimTol_GeometricToleranceTarget.hxx
Normal file
@@ -0,0 +1,61 @@
|
||||
// Created on: 2015-07-20
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeometricToleranceTarget_HeaderFile
|
||||
#define _StepDimTol_GeometricToleranceTarget_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <StepData_SelectType.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
|
||||
class Standard_Transient;
|
||||
class StepShape_DimensionalLocation;
|
||||
class StepShape_DimensionalSize;
|
||||
class StepRepr_ProductDefinitionShape;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
class StepDimTol_GeometricToleranceTarget : public StepData_SelectType
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Returns a GeometricToleranceTarget select type
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceTarget();
|
||||
|
||||
//! Recognizes a GeometricToleranceTarget Kind Entity that is :
|
||||
//! 1 -> DimensionalLocation
|
||||
//! 2 -> DimensionalSize
|
||||
//! 3 -> ProductDefinitionShape
|
||||
//! 4 -> ShapeAspect
|
||||
//! 0 else
|
||||
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
|
||||
|
||||
//! returns Value as a DimensionalLocation (Null if another type)
|
||||
Standard_EXPORT Handle(StepShape_DimensionalLocation) DimensionalLocation() const;
|
||||
|
||||
//! returns Value as a DimensionalSize (Null if another type)
|
||||
Standard_EXPORT Handle(StepShape_DimensionalSize) DimensionalSize() const;
|
||||
|
||||
//! returns Value as a ProductDefinitionShape (Null if another type)
|
||||
Standard_EXPORT Handle(StepRepr_ProductDefinitionShape) ProductDefinitionShape() const;
|
||||
|
||||
//! returns Value as a ShapeAspect (Null if another type)
|
||||
Standard_EXPORT Handle(StepRepr_ShapeAspect) ShapeAspect() const;
|
||||
};
|
||||
#endif // _StepDimTol_GeometricToleranceTarget_HeaderFile
|
37
src/StepDimTol/StepDimTol_GeometricToleranceType.hxx
Normal file
37
src/StepDimTol/StepDimTol_GeometricToleranceType.hxx
Normal file
@@ -0,0 +1,37 @@
|
||||
// Created on: 2015-08-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeometricToleranceType_HeaderFile
|
||||
#define _StepDimTol_GeometricToleranceType_HeaderFile
|
||||
|
||||
enum StepDimTol_GeometricToleranceType {
|
||||
StepDimTol_GTTAngularityTolerance,
|
||||
StepDimTol_GTTCircularRunoutTolerance,
|
||||
StepDimTol_GTTCoaxialityTolerance,
|
||||
StepDimTol_GTTConcentricityTolerance,
|
||||
StepDimTol_GTTCylindricityTolerance,
|
||||
StepDimTol_GTTFlatnessTolerance,
|
||||
StepDimTol_GTTLineProfileTolerance,
|
||||
StepDimTol_GTTParallelismTolerance,
|
||||
StepDimTol_GTTPerpendicularityTolerance,
|
||||
StepDimTol_GTTPositionTolerance,
|
||||
StepDimTol_GTTRoundnessTolerance,
|
||||
StepDimTol_GTTStraightnessTolerance,
|
||||
StepDimTol_GTTSurfaceProfileTolerance,
|
||||
StepDimTol_GTTSymmetryTolerance,
|
||||
StepDimTol_GTTTotalRunoutTolerance
|
||||
};
|
||||
|
||||
#endif // _StepDimTol_GeometricToleranceType_HeaderFile
|
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
@@ -45,6 +46,30 @@ void StepDimTol_GeometricToleranceWithDatumReference::Init (const Handle(TCollec
|
||||
aGeometricTolerance_Magnitude,
|
||||
aGeometricTolerance_TolerancedShapeAspect);
|
||||
|
||||
theDatumSystem = new StepDimTol_HArray1OfDatumSystemOrReference(aDatumSystem->Lower(), aDatumSystem->Upper());
|
||||
StepDimTol_DatumSystemOrReference anAux;
|
||||
for (Standard_Integer i = aDatumSystem->Lower(); i <= aDatumSystem->Upper(); i++) {
|
||||
anAux.SetValue(aDatumSystem->Value(i));
|
||||
theDatumSystem->SetValue(i, anAux);
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricToleranceWithDatumReference::Init (const Handle(TCollection_HAsciiString) &aGeometricTolerance_Name,
|
||||
const Handle(TCollection_HAsciiString) &aGeometricTolerance_Description,
|
||||
const Handle(StepBasic_MeasureWithUnit) &aGeometricTolerance_Magnitude,
|
||||
const StepDimTol_GeometricToleranceTarget &aGeometricTolerance_TolerancedShapeAspect,
|
||||
const Handle(StepDimTol_HArray1OfDatumSystemOrReference) &aDatumSystem)
|
||||
{
|
||||
StepDimTol_GeometricTolerance::Init(aGeometricTolerance_Name,
|
||||
aGeometricTolerance_Description,
|
||||
aGeometricTolerance_Magnitude,
|
||||
aGeometricTolerance_TolerancedShapeAspect);
|
||||
|
||||
theDatumSystem = aDatumSystem;
|
||||
}
|
||||
|
||||
@@ -54,6 +79,21 @@ void StepDimTol_GeometricToleranceWithDatumReference::Init (const Handle(TCollec
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepDimTol_HArray1OfDatumReference) StepDimTol_GeometricToleranceWithDatumReference::DatumSystem () const
|
||||
{
|
||||
Handle(StepDimTol_HArray1OfDatumReference) aDatumSystem;
|
||||
aDatumSystem = new StepDimTol_HArray1OfDatumReference(theDatumSystem->Lower(), theDatumSystem->Upper());
|
||||
for (Standard_Integer i = aDatumSystem->Lower(); i <= aDatumSystem->Upper(); i++) {
|
||||
aDatumSystem->SetValue(i, theDatumSystem->Value(i).DatumReference());
|
||||
}
|
||||
return aDatumSystem;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : DatumSystemAP242
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepDimTol_HArray1OfDatumSystemOrReference) StepDimTol_GeometricToleranceWithDatumReference::DatumSystemAP242 () const
|
||||
{
|
||||
return theDatumSystem;
|
||||
}
|
||||
@@ -64,6 +104,21 @@ Handle(StepDimTol_HArray1OfDatumReference) StepDimTol_GeometricToleranceWithDatu
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricToleranceWithDatumReference::SetDatumSystem (const Handle(StepDimTol_HArray1OfDatumReference) &aDatumSystem)
|
||||
{
|
||||
theDatumSystem = new StepDimTol_HArray1OfDatumSystemOrReference(aDatumSystem->Lower(), aDatumSystem->Upper());
|
||||
StepDimTol_DatumSystemOrReference anAux;
|
||||
for (Standard_Integer i = aDatumSystem->Lower(); i <= aDatumSystem->Upper(); i++) {
|
||||
anAux.SetValue(aDatumSystem->Value(i));
|
||||
theDatumSystem->SetValue(i, anAux);
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDatumSystem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricToleranceWithDatumReference::SetDatumSystem (const Handle(StepDimTol_HArray1OfDatumSystemOrReference) &aDatumSystem)
|
||||
{
|
||||
theDatumSystem = aDatumSystem;
|
||||
}
|
||||
|
@@ -20,9 +20,11 @@
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_HArray1OfDatumReference.hxx>
|
||||
#include <StepDimTol_HArray1OfDatumSystemOrReference.hxx>
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
|
||||
@@ -39,14 +41,23 @@ public:
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceWithDatumReference();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
//! Initialize all fields (own and inherited) AP214
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aGeometricTolerance_Name, const Handle(TCollection_HAsciiString)& aGeometricTolerance_Description, const Handle(StepBasic_MeasureWithUnit)& aGeometricTolerance_Magnitude, const Handle(StepRepr_ShapeAspect)& aGeometricTolerance_TolerancedShapeAspect, const Handle(StepDimTol_HArray1OfDatumReference)& aDatumSystem);
|
||||
|
||||
//! Initialize all fields (own and inherited) AP242
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aGeometricTolerance_Name, const Handle(TCollection_HAsciiString)& aGeometricTolerance_Description, const Handle(StepBasic_MeasureWithUnit)& aGeometricTolerance_Magnitude, const StepDimTol_GeometricToleranceTarget& aGeometricTolerance_TolerancedShapeAspect, const Handle(StepDimTol_HArray1OfDatumSystemOrReference)& aDatumSystem);
|
||||
|
||||
//! Returns field DatumSystem
|
||||
//! Returns field DatumSystem AP214
|
||||
Standard_EXPORT Handle(StepDimTol_HArray1OfDatumReference) DatumSystem() const;
|
||||
|
||||
//! Returns field DatumSystem AP242
|
||||
Standard_EXPORT Handle(StepDimTol_HArray1OfDatumSystemOrReference) DatumSystemAP242() const;
|
||||
|
||||
//! Set field DatumSystem
|
||||
//! Set field DatumSystem AP214
|
||||
Standard_EXPORT void SetDatumSystem (const Handle(StepDimTol_HArray1OfDatumReference)& DatumSystem);
|
||||
|
||||
//! Set field DatumSystem AP242
|
||||
Standard_EXPORT void SetDatumSystem (const Handle(StepDimTol_HArray1OfDatumSystemOrReference)& DatumSystem);
|
||||
|
||||
|
||||
|
||||
@@ -61,7 +72,7 @@ protected:
|
||||
private:
|
||||
|
||||
|
||||
Handle(StepDimTol_HArray1OfDatumReference) theDatumSystem;
|
||||
Handle(StepDimTol_HArray1OfDatumSystemOrReference) theDatumSystem;
|
||||
|
||||
|
||||
};
|
||||
|
@@ -0,0 +1,49 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_GeometricToleranceWithDefinedAreaUnit.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeometricToleranceWithDefinedAreaUnit
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_GeometricToleranceWithDefinedAreaUnit::StepDimTol_GeometricToleranceWithDefinedAreaUnit ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricToleranceWithDefinedAreaUnit::
|
||||
Init (const Handle(TCollection_HAsciiString) &theName,
|
||||
const Handle(TCollection_HAsciiString) &theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit) &theUnitSize,
|
||||
const StepDimTol_AreaUnitType theUnitType,
|
||||
const Standard_Boolean hasSecondUnitSize,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit) &theSecondUnitSize)
|
||||
{
|
||||
StepDimTol_GeometricToleranceWithDefinedUnit::
|
||||
Init(theName, theDescription, theMagnitude, theTolerancedShapeAspect, theUnitSize);
|
||||
areaType = theUnitType;
|
||||
if (hasSecondUnitSize)
|
||||
secondUnitSize = theSecondUnitSize;
|
||||
else
|
||||
secondUnitSize.Nullify();
|
||||
}
|
@@ -0,0 +1,82 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeometricToleranceWithDefinedAreaUnit_HeaderFile
|
||||
#define _StepDimTol_GeometricToleranceWithDefinedAreaUnit_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <StepDimTol_AreaUnitType.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithDefinedUnit.hxx>
|
||||
|
||||
class StepBasic_LengthMeasureWithUnit;
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
|
||||
class StepDimTol_GeometricToleranceWithDefinedAreaUnit;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithDefinedAreaUnit, StepDimTol_GeometricToleranceWithDefinedUnit)
|
||||
//! Representation of STEP entity GeometricToleranceWithDefinedAreaUnit
|
||||
class StepDimTol_GeometricToleranceWithDefinedAreaUnit : public StepDimTol_GeometricToleranceWithDefinedUnit
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceWithDefinedAreaUnit();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName, const Handle(TCollection_HAsciiString)& theDescription, const Handle(StepBasic_MeasureWithUnit)& theMagnitude, const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect, const Handle(StepBasic_LengthMeasureWithUnit)& theUnitSize, const StepDimTol_AreaUnitType theAreaType, const Standard_Boolean hasSecondUnitSize, const Handle(StepBasic_LengthMeasureWithUnit)& theSecondUnitSize) ;
|
||||
|
||||
//! Returns field AreaType
|
||||
inline StepDimTol_AreaUnitType AreaType () const
|
||||
{
|
||||
return areaType;
|
||||
}
|
||||
|
||||
//! Set field AreaType
|
||||
inline void SetAreaType (const StepDimTol_AreaUnitType theAreaType)
|
||||
{
|
||||
areaType = theAreaType;
|
||||
}
|
||||
|
||||
//! Returns field SecondUnitSize
|
||||
inline Handle(StepBasic_LengthMeasureWithUnit) SecondUnitSize () const
|
||||
{
|
||||
return secondUnitSize;
|
||||
}
|
||||
|
||||
//! Set field SecondUnitSize
|
||||
inline void SetSecondUnitSize (const Handle(StepBasic_LengthMeasureWithUnit) &theSecondUnitSize)
|
||||
{
|
||||
secondUnitSize = theSecondUnitSize;
|
||||
}
|
||||
|
||||
//! Indicates if SecondUnitSize field exist
|
||||
inline Standard_Boolean HasSecondUnitSize () const
|
||||
{
|
||||
return secondUnitSize.IsNull();
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeometricToleranceWithDefinedAreaUnit, StepDimTol_GeometricToleranceWithDefinedUnit)
|
||||
|
||||
private:
|
||||
StepDimTol_AreaUnitType areaType;
|
||||
Handle(StepBasic_LengthMeasureWithUnit) secondUnitSize;
|
||||
};
|
||||
#endif // _StepDimTol_GeometricToleranceWithDefinedAreaUnit_HeaderFile
|
@@ -0,0 +1,58 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_GeometricToleranceWithDefinedUnit.hxx>
|
||||
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeometricToleranceWithDefinedUnit
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_GeometricToleranceWithDefinedUnit::StepDimTol_GeometricToleranceWithDefinedUnit ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricToleranceWithDefinedUnit::Init (const Handle(TCollection_HAsciiString) &theName,
|
||||
const Handle(TCollection_HAsciiString) &theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
|
||||
const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit) &theUnitSize)
|
||||
{
|
||||
StepDimTol_GeometricTolerance::Init(theName, theDescription, theMagnitude, theTolerancedShapeAspect);
|
||||
unitSize = theUnitSize;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricToleranceWithDefinedUnit::Init (const Handle(TCollection_HAsciiString) &theName,
|
||||
const Handle(TCollection_HAsciiString) &theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit) &theUnitSize)
|
||||
{
|
||||
StepDimTol_GeometricTolerance::Init(theName, theDescription, theMagnitude, theTolerancedShapeAspect);
|
||||
unitSize = theUnitSize;
|
||||
}
|
@@ -0,0 +1,64 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeometricToleranceWithDefinedUnit_HeaderFile
|
||||
#define _StepDimTol_GeometricToleranceWithDefinedUnit_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
|
||||
class StepBasic_LengthMeasureWithUnit;
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
class StepDimTol_GeometricToleranceWithDefinedUnit;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithDefinedUnit, StepDimTol_GeometricTolerance)
|
||||
//! Representation of STEP entity GeometricToleranceWithDefinedUnit
|
||||
class StepDimTol_GeometricToleranceWithDefinedUnit : public StepDimTol_GeometricTolerance
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceWithDefinedUnit();
|
||||
|
||||
//! Initialize all fields (own and inherited) AP214
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName, const Handle(TCollection_HAsciiString)& theDescription, const Handle(StepBasic_MeasureWithUnit)& theMagnitude, const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect, const Handle(StepBasic_LengthMeasureWithUnit)& theUnitSize) ;
|
||||
|
||||
//! Initialize all fields (own and inherited) AP242
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName, const Handle(TCollection_HAsciiString)& theDescription, const Handle(StepBasic_MeasureWithUnit)& theMagnitude, const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect, const Handle(StepBasic_LengthMeasureWithUnit)& theUnitSize) ;
|
||||
|
||||
//! Returns field UnitSize
|
||||
inline Handle(StepBasic_LengthMeasureWithUnit) UnitSize () const
|
||||
{
|
||||
return unitSize;
|
||||
}
|
||||
|
||||
//! Set field UnitSize
|
||||
inline void SetUnitSize (const Handle(StepBasic_LengthMeasureWithUnit) &theUnitSize)
|
||||
{
|
||||
unitSize = theUnitSize;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeometricToleranceWithDefinedUnit, StepDimTol_GeometricTolerance)
|
||||
|
||||
private:
|
||||
Handle(StepBasic_LengthMeasureWithUnit) unitSize;
|
||||
};
|
||||
#endif // _StepDimTol_GeometricToleranceWithDefinedUnit_HeaderFile
|
@@ -0,0 +1,45 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_GeometricToleranceWithMaximumTolerance.hxx>
|
||||
|
||||
#include <StepBasic_LengthMeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeometricToleranceWithModifiers
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_GeometricToleranceWithMaximumTolerance::StepDimTol_GeometricToleranceWithMaximumTolerance ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricToleranceWithMaximumTolerance::
|
||||
Init (const Handle(TCollection_HAsciiString) &theName,
|
||||
const Handle(TCollection_HAsciiString) &theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_HArray1OfGeometricToleranceModifier) &theModifiers,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit) &theMaximumUpperTolerance)
|
||||
{
|
||||
StepDimTol_GeometricToleranceWithModifiers::Init(theName, theDescription, theMagnitude, theTolerancedShapeAspect, theModifiers);
|
||||
maximumUpperTolerance = theMaximumUpperTolerance;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement. to be the "object code" form of the original source.
|
||||
|
||||
#ifndef _StepDimTol_GeometricToleranceWithMaximumTolerance_HeaderFile
|
||||
#define _StepDimTol_GeometricToleranceWithMaximumTolerance_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepBasic_LengthMeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricToleranceWithModifiers.hxx>
|
||||
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepDimTol_HArray1OfGeometricToleranceModifier;
|
||||
|
||||
class StepDimTol_GeometricToleranceWithMaximumTolerance;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithMaximumTolerance, StepDimTol_GeometricToleranceWithModifiers)
|
||||
//! Representation of STEP entity GeometricToleranceWithMaximumTolerance
|
||||
class StepDimTol_GeometricToleranceWithMaximumTolerance : public StepDimTol_GeometricToleranceWithModifiers
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceWithMaximumTolerance();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName, const Handle(TCollection_HAsciiString)& theDescription, const Handle(StepBasic_MeasureWithUnit)& theMagnitude, const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect, const Handle(StepDimTol_HArray1OfGeometricToleranceModifier)& theModifiers, const Handle(StepBasic_LengthMeasureWithUnit)& theUnitSize) ;
|
||||
|
||||
//! Returns field MaximumUpperTolerance
|
||||
inline Handle(StepBasic_LengthMeasureWithUnit) MaximumUpperTolerance () const
|
||||
{
|
||||
return maximumUpperTolerance;
|
||||
}
|
||||
|
||||
//! Set field MaximumUpperTolerance
|
||||
inline void SetMaximumUpperTolerance (const Handle(StepBasic_LengthMeasureWithUnit) &theMaximumUpperTolerance)
|
||||
{
|
||||
maximumUpperTolerance = theMaximumUpperTolerance;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeometricToleranceWithMaximumTolerance, StepDimTol_GeometricToleranceWithModifiers)
|
||||
|
||||
private:
|
||||
Handle(StepBasic_LengthMeasureWithUnit) maximumUpperTolerance;
|
||||
};
|
||||
#endif // _StepDimTol_GeometricToleranceWithMaximumTolerance_HeaderFile
|
@@ -0,0 +1,43 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_GeometricToleranceWithModifiers.hxx>
|
||||
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepDimTol_HArray1OfGeometricToleranceModifier.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_GeometricToleranceWithModifiers
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_GeometricToleranceWithModifiers::StepDimTol_GeometricToleranceWithModifiers ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_GeometricToleranceWithModifiers::Init (const Handle(TCollection_HAsciiString) &theName,
|
||||
const Handle(TCollection_HAsciiString) &theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_HArray1OfGeometricToleranceModifier) &theModifiers)
|
||||
{
|
||||
StepDimTol_GeometricTolerance::Init(theName, theDescription, theMagnitude, theTolerancedShapeAspect);
|
||||
modifiers = theModifiers;
|
||||
}
|
@@ -0,0 +1,84 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_GeometricToleranceWithModifiers_HeaderFile
|
||||
#define _StepDimTol_GeometricToleranceWithModifiers_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
#include <StepDimTol_GeometricToleranceModifier.hxx>
|
||||
#include <StepDimTol_HArray1OfGeometricToleranceModifier.hxx>
|
||||
|
||||
class StepDimTol_HArray1OfGeometricToleranceModifier;
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
|
||||
class StepDimTol_GeometricToleranceWithModifiers;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithModifiers, StepDimTol_GeometricTolerance)
|
||||
//! Representation of STEP entity GeometricToleranceWithModifiers
|
||||
class StepDimTol_GeometricToleranceWithModifiers : public StepDimTol_GeometricTolerance
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_GeometricToleranceWithModifiers();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
|
||||
const Handle(StepDimTol_HArray1OfGeometricToleranceModifier)& theModifiers) ;
|
||||
|
||||
//! Returns field Modifiers
|
||||
inline Handle(StepDimTol_HArray1OfGeometricToleranceModifier) Modifiers () const
|
||||
{
|
||||
return modifiers;
|
||||
}
|
||||
|
||||
//! Set field Modifiers
|
||||
inline void SetModifiers (const Handle(StepDimTol_HArray1OfGeometricToleranceModifier) &theModifiers)
|
||||
{
|
||||
modifiers = theModifiers;
|
||||
}
|
||||
|
||||
//! Returns number of modifiers
|
||||
inline Standard_Integer NbModifiers () const
|
||||
{
|
||||
return (modifiers.IsNull() ? 0 : modifiers->Length());
|
||||
}
|
||||
|
||||
//! Returns modifier with the given number
|
||||
inline StepDimTol_GeometricToleranceModifier ModifierValue(const Standard_Integer num) const
|
||||
{
|
||||
return modifiers->Value(num);
|
||||
}
|
||||
|
||||
//! Sets modifier with given number
|
||||
inline void SetModifierValue(const Standard_Integer num, const StepDimTol_GeometricToleranceModifier theItem)
|
||||
{
|
||||
modifiers->SetValue (num, theItem);
|
||||
}
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_GeometricToleranceWithModifiers, StepDimTol_GeometricTolerance)
|
||||
|
||||
private:
|
||||
Handle(StepDimTol_HArray1OfGeometricToleranceModifier) modifiers;
|
||||
};
|
||||
#endif // _StepDimTol_GeometricToleranceWithModifiers_HeaderFile
|
@@ -0,0 +1,24 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_HArray1OfDatumReferenceCompartment_HeaderFile
|
||||
#define _StepDimTol_HArray1OfDatumReferenceCompartment_HeaderFile
|
||||
|
||||
#include <StepDimTol_DatumReferenceCompartment.hxx>
|
||||
#include <StepDimTol_Array1OfDatumReferenceCompartment.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(StepDimTol_HArray1OfDatumReferenceCompartment, StepDimTol_Array1OfDatumReferenceCompartment)
|
||||
#endif // _StepDimTol_HArray1OfDatumReferenceCompartment_HeaderFile
|
24
src/StepDimTol/StepDimTol_HArray1OfDatumReferenceElement.hxx
Normal file
24
src/StepDimTol/StepDimTol_HArray1OfDatumReferenceElement.hxx
Normal file
@@ -0,0 +1,24 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_HArray1OfDatumReferenceElement_HeaderFile
|
||||
#define _StepDimTol_HArray1OfDatumReferenceElement_HeaderFile
|
||||
|
||||
#include <StepDimTol_DatumReferenceElement.hxx>
|
||||
#include <StepDimTol_Array1OfDatumReferenceElement.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(StepDimTol_HArray1OfDatumReferenceElement, StepDimTol_Array1OfDatumReferenceElement)
|
||||
#endif // _StepDimTol_HArray1OfDatumReferenceElement_HeaderFile
|
@@ -0,0 +1,25 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_HArray1OfDatumReferenceModifier_HeaderFile
|
||||
#define _StepDimTol_HArray1OfDatumReferenceModifier_HeaderFile
|
||||
|
||||
#include <StepDimTol_DatumReferenceModifier.hxx>
|
||||
#include <StepDimTol_Array1OfDatumReferenceModifier.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(StepDimTol_HArray1OfDatumReferenceModifier, StepDimTol_Array1OfDatumReferenceModifier)
|
||||
|
||||
#endif // _StepDimTol_HArray1OfDatumReferenceModifier_HeaderFile
|
@@ -0,0 +1,24 @@
|
||||
// Created on: 2015-07-21
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_HArray1OfDatumSystemOrReference_HeaderFile
|
||||
#define _StepDimTol_HArray1OfDatumSystemOrReference_HeaderFile
|
||||
|
||||
#include <StepDimTol_DatumSystemOrReference.hxx>
|
||||
#include <StepDimTol_Array1OfDatumSystemOrReference.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(StepDimTol_HArray1OfDatumSystemOrReference, StepDimTol_Array1OfDatumSystemOrReference)
|
||||
#endif // _StepDimTol_HArray1OfDatumSystemOrReference_HeaderFile
|
@@ -0,0 +1,24 @@
|
||||
// Created on: 2015-07-10
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_HArray1OfGeometricToleranceModifier_HeaderFile
|
||||
#define _StepDimTol_HArray1OfGeometricToleranceModifier_HeaderFile
|
||||
|
||||
#include <StepDimTol_GeometricToleranceModifier.hxx>
|
||||
#include <StepDimTol_Array1OfGeometricToleranceModifier.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(StepDimTol_HArray1OfGeometricToleranceModifier, StepDimTol_Array1OfGeometricToleranceModifier)
|
||||
#endif // _StepDimTol_HArray1OfGeometricToleranceModifier_HeaderFile
|
24
src/StepDimTol/StepDimTol_HArray1OfToleranceZoneTarget.hxx
Normal file
24
src/StepDimTol/StepDimTol_HArray1OfToleranceZoneTarget.hxx
Normal file
@@ -0,0 +1,24 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_HArray1OfToleranceZoneTarget_HeaderFile
|
||||
#define _StepDimTol_HArray1OfToleranceZoneTarget_HeaderFile
|
||||
|
||||
#include <StepDimTol_ToleranceZoneTarget.hxx>
|
||||
#include <StepDimTol_Array1OfToleranceZoneTarget.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(StepDimTol_HArray1OfToleranceZoneTarget, StepDimTol_Array1OfToleranceZoneTarget)
|
||||
#endif // _StepDimTol_HArray1OfToleranceZoneTarget_HeaderFile
|
@@ -18,6 +18,7 @@
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepDimTol_ModifiedGeometricTolerance.hxx>
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
@@ -48,6 +49,25 @@ void StepDimTol_ModifiedGeometricTolerance::Init (const Handle(TCollection_HAsci
|
||||
theModifier = aModifier;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_ModifiedGeometricTolerance::Init (const Handle(TCollection_HAsciiString) &aGeometricTolerance_Name,
|
||||
const Handle(TCollection_HAsciiString) &aGeometricTolerance_Description,
|
||||
const Handle(StepBasic_MeasureWithUnit) &aGeometricTolerance_Magnitude,
|
||||
const StepDimTol_GeometricToleranceTarget &aGeometricTolerance_TolerancedShapeAspect,
|
||||
const StepDimTol_LimitCondition aModifier)
|
||||
{
|
||||
StepDimTol_GeometricTolerance::Init(aGeometricTolerance_Name,
|
||||
aGeometricTolerance_Description,
|
||||
aGeometricTolerance_Magnitude,
|
||||
aGeometricTolerance_TolerancedShapeAspect);
|
||||
|
||||
theModifier = aModifier;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Modifier
|
||||
//purpose :
|
||||
|
@@ -23,6 +23,7 @@
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
class StepRepr_ShapeAspect;
|
||||
|
||||
|
||||
@@ -39,9 +40,12 @@ public:
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_ModifiedGeometricTolerance();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
//! Initialize all fields (own and inherited) AP214
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aGeometricTolerance_Name, const Handle(TCollection_HAsciiString)& aGeometricTolerance_Description, const Handle(StepBasic_MeasureWithUnit)& aGeometricTolerance_Magnitude, const Handle(StepRepr_ShapeAspect)& aGeometricTolerance_TolerancedShapeAspect, const StepDimTol_LimitCondition aModifier);
|
||||
|
||||
|
||||
//! Initialize all fields (own and inherited) AP242
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aGeometricTolerance_Name, const Handle(TCollection_HAsciiString)& aGeometricTolerance_Description, const Handle(StepBasic_MeasureWithUnit)& aGeometricTolerance_Magnitude, const StepDimTol_GeometricToleranceTarget& aGeometricTolerance_TolerancedShapeAspect, const StepDimTol_LimitCondition aModifier);
|
||||
|
||||
//! Returns field Modifier
|
||||
Standard_EXPORT StepDimTol_LimitCondition Modifier() const;
|
||||
|
||||
|
25
src/StepDimTol/StepDimTol_NonUniformZoneDefinition.cxx
Normal file
25
src/StepDimTol/StepDimTol_NonUniformZoneDefinition.cxx
Normal file
@@ -0,0 +1,25 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_NonUniformZoneDefinition.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_NonUniformZoneDefinition
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_NonUniformZoneDefinition::StepDimTol_NonUniformZoneDefinition ()
|
||||
{
|
||||
}
|
37
src/StepDimTol/StepDimTol_NonUniformZoneDefinition.hxx
Normal file
37
src/StepDimTol/StepDimTol_NonUniformZoneDefinition.hxx
Normal file
@@ -0,0 +1,37 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_NonUniformZoneDefinition_HeaderFile
|
||||
#define _StepDimTol_NonUniformZoneDefinition_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_ToleranceZoneDefinition.hxx>
|
||||
|
||||
class StepDimTol_NonUniformZoneDefinition;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_NonUniformZoneDefinition, StepDimTol_ToleranceZoneDefinition)
|
||||
//! Representation of STEP entity NonUniformZoneDefinition
|
||||
class StepDimTol_NonUniformZoneDefinition : public StepDimTol_ToleranceZoneDefinition
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_NonUniformZoneDefinition();
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_NonUniformZoneDefinition, StepDimTol_ToleranceZoneDefinition)
|
||||
};
|
||||
#endif // _StepDimTol_NonUniformZoneDefinition_HeaderFile
|
40
src/StepDimTol/StepDimTol_ProjectedZoneDefinition.cxx
Normal file
40
src/StepDimTol/StepDimTol_ProjectedZoneDefinition.cxx
Normal file
@@ -0,0 +1,40 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_ProjectedZoneDefinition.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_ProjectedZoneDefinition
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_ProjectedZoneDefinition::StepDimTol_ProjectedZoneDefinition ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_ProjectedZoneDefinition::Init (const Handle(StepDimTol_ToleranceZone)& theZone,
|
||||
const Handle(StepRepr_HArray1OfShapeAspect)& theBoundaries,
|
||||
const Handle(StepRepr_ShapeAspect)& theProjectionEnd,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit)& theProjectionLength)
|
||||
{
|
||||
StepDimTol_ToleranceZoneDefinition::Init(theZone, theBoundaries);
|
||||
projectionEnd = theProjectionEnd;
|
||||
projectionLength = theProjectionLength;
|
||||
}
|
74
src/StepDimTol/StepDimTol_ProjectedZoneDefinition.hxx
Normal file
74
src/StepDimTol/StepDimTol_ProjectedZoneDefinition.hxx
Normal file
@@ -0,0 +1,74 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_ProjectedZoneDefinition_HeaderFile
|
||||
#define _StepDimTol_ProjectedZoneDefinition_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepBasic_LengthMeasureWithUnit.hxx>
|
||||
#include <StepDimTol_ToleranceZoneDefinition.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
|
||||
class StepDimTol_ProjectedZoneDefinition;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_ProjectedZoneDefinition, StepDimTol_ToleranceZoneDefinition)
|
||||
//! Representation of STEP entity ProjectedZoneDefinition
|
||||
class StepDimTol_ProjectedZoneDefinition : public StepDimTol_ToleranceZoneDefinition
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_ProjectedZoneDefinition();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(StepDimTol_ToleranceZone)& theZone,
|
||||
const Handle(StepRepr_HArray1OfShapeAspect)& theBoundaries,
|
||||
const Handle(StepRepr_ShapeAspect)& theProjectionEnd,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit)& theProjectionLength);
|
||||
|
||||
//! Returns field ProjectionEnd
|
||||
inline Handle(StepRepr_ShapeAspect) ProjectionEnd () const
|
||||
{
|
||||
return projectionEnd;
|
||||
}
|
||||
|
||||
//! Set field ProjectionEnd
|
||||
inline void SetProjectionEnd (const Handle(StepRepr_ShapeAspect) &theProjectionEnd)
|
||||
{
|
||||
projectionEnd = theProjectionEnd;
|
||||
}
|
||||
|
||||
//! Returns field ProjectionLength
|
||||
inline Handle(StepBasic_LengthMeasureWithUnit) ProjectionLength()
|
||||
{
|
||||
return projectionLength;
|
||||
}
|
||||
|
||||
//! Set field ProjectionLength
|
||||
inline void SetProjectionLength(const Handle(StepBasic_LengthMeasureWithUnit)& theProjectionLength)
|
||||
{
|
||||
projectionLength = theProjectionLength;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_ProjectedZoneDefinition, StepDimTol_ToleranceZoneDefinition)
|
||||
|
||||
private:
|
||||
Handle(StepRepr_ShapeAspect) projectionEnd;
|
||||
Handle(StepBasic_LengthMeasureWithUnit) projectionLength;
|
||||
};
|
||||
#endif // _StepDimTol_ProjectionZoneDefinition_HeaderFile
|
41
src/StepDimTol/StepDimTol_RunoutZoneDefinition.cxx
Normal file
41
src/StepDimTol/StepDimTol_RunoutZoneDefinition.cxx
Normal file
@@ -0,0 +1,41 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_RunoutZoneDefinition.hxx>
|
||||
|
||||
#include <StepRepr_HArray1OfShapeAspect.hxx>
|
||||
#include <StepDimTol_RunoutZoneOrientation.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_RunoutZoneDefinition
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_RunoutZoneDefinition::StepDimTol_RunoutZoneDefinition ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_RunoutZoneDefinition:: Init (const Handle(StepDimTol_ToleranceZone)& theZone,
|
||||
const Handle(StepRepr_HArray1OfShapeAspect)& theBoundaries,
|
||||
const Handle(StepDimTol_RunoutZoneOrientation)& theOrientation)
|
||||
{
|
||||
StepDimTol_ToleranceZoneDefinition::Init(theZone, theBoundaries);
|
||||
orientation = theOrientation;
|
||||
}
|
61
src/StepDimTol/StepDimTol_RunoutZoneDefinition.hxx
Normal file
61
src/StepDimTol/StepDimTol_RunoutZoneDefinition.hxx
Normal file
@@ -0,0 +1,61 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_RunoutZoneDefinition_HeaderFile
|
||||
#define _StepDimTol_RunoutZoneDefinition_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepDimTol_RunoutZoneOrientation.hxx>
|
||||
#include <StepDimTol_ToleranceZoneDefinition.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
|
||||
class StepRepr_HArray1OfShapeAspect;
|
||||
|
||||
class StepDimTol_RunoutZoneDefinition;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_RunoutZoneDefinition, StepDimTol_ToleranceZoneDefinition)
|
||||
//! Representation of STEP entity ToleranceZoneDefinition
|
||||
class StepDimTol_RunoutZoneDefinition : public StepDimTol_ToleranceZoneDefinition
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_RunoutZoneDefinition();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(StepDimTol_ToleranceZone)& theZone,
|
||||
const Handle(StepRepr_HArray1OfShapeAspect)& theBoundaries,
|
||||
const Handle(StepDimTol_RunoutZoneOrientation)& theOrientation);
|
||||
|
||||
//! Returns field Orientation
|
||||
inline Handle(StepDimTol_RunoutZoneOrientation) Orientation () const
|
||||
{
|
||||
return orientation;
|
||||
}
|
||||
|
||||
//! Set field Orientation
|
||||
inline void SetOrientation (const Handle(StepDimTol_RunoutZoneOrientation) &theOrientation)
|
||||
{
|
||||
orientation = theOrientation;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_ToleranceZoneDefinition, StepDimTol_ToleranceZoneDefinition)
|
||||
|
||||
private:
|
||||
Handle(StepDimTol_RunoutZoneOrientation) orientation;
|
||||
};
|
||||
#endif // _StepDimTol_RunoutToleranceZone_HeaderFile
|
35
src/StepDimTol/StepDimTol_RunoutZoneOrientation.cxx
Normal file
35
src/StepDimTol/StepDimTol_RunoutZoneOrientation.cxx
Normal file
@@ -0,0 +1,35 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_RunoutZoneOrientation.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_RunoutZoneOrientation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_RunoutZoneOrientation::StepDimTol_RunoutZoneOrientation () {}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_RunoutZoneOrientation::Init(
|
||||
const Handle(StepBasic_PlaneAngleMeasureWithUnit)& theAngle)
|
||||
{
|
||||
// --- class own fields ---
|
||||
angle = theAngle;
|
||||
}
|
57
src/StepDimTol/StepDimTol_RunoutZoneOrientation.hxx
Normal file
57
src/StepDimTol/StepDimTol_RunoutZoneOrientation.hxx
Normal file
@@ -0,0 +1,57 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_RunoutZoneOrientation_HeaderFile
|
||||
#define _StepDimTol_RunoutZoneOrientation_HeaderFile
|
||||
|
||||
#include <StepDimTol_RunoutZoneOrientation.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepBasic_PlaneAngleMeasureWithUnit.hxx>
|
||||
|
||||
class StepDimTol_RunoutZoneOrientation;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_RunoutZoneOrientation, MMgt_TShared)
|
||||
//! Added for Dimensional Tolerances
|
||||
class StepDimTol_RunoutZoneOrientation : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
Standard_EXPORT StepDimTol_RunoutZoneOrientation();
|
||||
|
||||
//! Init all field own and inherited
|
||||
Standard_EXPORT virtual void Init (const Handle(StepBasic_PlaneAngleMeasureWithUnit)& theAngle);
|
||||
|
||||
//! Returns field Angle
|
||||
inline Handle(StepBasic_PlaneAngleMeasureWithUnit) Angle()
|
||||
{
|
||||
return angle;
|
||||
}
|
||||
|
||||
//! Set field Angle
|
||||
inline void SetAngle(const Handle(StepBasic_PlaneAngleMeasureWithUnit) &theAngle)
|
||||
{
|
||||
angle = theAngle;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_RunoutZoneOrientation, MMgt_TShared)
|
||||
|
||||
private:
|
||||
Handle(StepBasic_PlaneAngleMeasureWithUnit) angle;
|
||||
|
||||
};
|
||||
#endif // _StepDimTol_RunoutZoneOrientation_HeaderFile
|
46
src/StepDimTol/StepDimTol_SimpleDatumReferenceModifier.hxx
Normal file
46
src/StepDimTol/StepDimTol_SimpleDatumReferenceModifier.hxx
Normal file
@@ -0,0 +1,46 @@
|
||||
// Created on: 2015-07-14
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_SimpleDatumReferenceModifier_HeaderFile
|
||||
#define _StepDimTol_SimpleDatumReferenceModifier_HeaderFile
|
||||
|
||||
#include <Standard_PrimitiveTypes.hxx>
|
||||
|
||||
enum StepDimTol_SimpleDatumReferenceModifier {
|
||||
StepDimTol_SDRMAnyCrossSection,
|
||||
StepDimTol_SDRMAnyLongitudinalSection,
|
||||
StepDimTol_SDRMBasic,
|
||||
StepDimTol_SDRMContactingFeature,
|
||||
StepDimTol_SDRMDegreeOfFreedomConstraintU,
|
||||
StepDimTol_SDRMDegreeOfFreedomConstraintV,
|
||||
StepDimTol_SDRMDegreeOfFreedomConstraintW,
|
||||
StepDimTol_SDRMDegreeOfFreedomConstraintX,
|
||||
StepDimTol_SDRMDegreeOfFreedomConstraintY,
|
||||
StepDimTol_SDRMDegreeOfFreedomConstraintZ,
|
||||
StepDimTol_SDRMDistanceVariable,
|
||||
StepDimTol_SDRMFreeState,
|
||||
StepDimTol_SDRMLeastMaterialRequirement,
|
||||
StepDimTol_SDRMLine,
|
||||
StepDimTol_SDRMMajorDiameter,
|
||||
StepDimTol_SDRMMaximumMaterialRequirement,
|
||||
StepDimTol_SDRMMinorDiameter,
|
||||
StepDimTol_SDRMOrientation,
|
||||
StepDimTol_SDRMPitchDiameter,
|
||||
StepDimTol_SDRMPlane,
|
||||
StepDimTol_SDRMPoint,
|
||||
StepDimTol_SDRMTranslation
|
||||
};
|
||||
|
||||
#endif
|
@@ -0,0 +1,91 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_SimpleDatumReferenceModifierMember.hxx>
|
||||
#include <StepData_EnumTool.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
static StepData_EnumTool tool
|
||||
(".ANY_CROSS_SECTION.",
|
||||
".ANY_LONGITUDINAL_SECTION.",
|
||||
".BASIC.",
|
||||
".CONTACTING_FEATURE.",
|
||||
".DEGREE_OF_FREEDOM_CONSTRAINT_U.",
|
||||
".DEGREE_OF_FREEDOM_CONSTRAINT_V.",
|
||||
".DEGREE_OF_FREEDOM_CONSTRAINT_W.",
|
||||
".DEGREE_OF_FREEDOM_CONSTRAINT_X.",
|
||||
".DEGREE_OF_FREEDOM_CONSTRAINT_Y.",
|
||||
".DEGREE_OF_FREEDOM_CONSTRAINT_Z.",
|
||||
".DISTANCE_VARIABLE.",
|
||||
".FREE_STATE.",
|
||||
".LEAST_MATERIAL_REQUIREMENT.",
|
||||
".LINE.",
|
||||
".MAJOR_DIAMETER.",
|
||||
".MAXIMUM_MATERIAL_REQUIREMENT.",
|
||||
".MINOR_DIAMETER.",
|
||||
".ORIENTATION.",
|
||||
".PITCH_DIAMETER.",
|
||||
".PLANE.",
|
||||
".POINT.",
|
||||
".TRANSLATION.");
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_SimpleDatumReferenceModifierMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_SimpleDatumReferenceModifierMember::StepDimTol_SimpleDatumReferenceModifierMember () { }
|
||||
|
||||
//=======================================================================
|
||||
//function : EnumText
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_CString StepDimTol_SimpleDatumReferenceModifierMember::EnumText () const
|
||||
{ return tool.Text(Int()).ToCString(); }
|
||||
|
||||
//=======================================================================
|
||||
//function : SetEnumText
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_SimpleDatumReferenceModifierMember::SetEnumText (const Standard_Integer /*theValue*/,
|
||||
const Standard_CString theText)
|
||||
{
|
||||
Standard_Integer aVal = tool.Value (theText);
|
||||
if (aVal >= 0) SetInt (aVal);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetValue
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_SimpleDatumReferenceModifierMember::SetValue (const StepDimTol_SimpleDatumReferenceModifier theValue)
|
||||
{
|
||||
SetInt ( Standard_Integer (theValue) );
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Value
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_SimpleDatumReferenceModifier StepDimTol_SimpleDatumReferenceModifierMember::Value () const
|
||||
{
|
||||
return StepDimTol_SimpleDatumReferenceModifier (Int());
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,58 @@
|
||||
// Created on: 2015-07-16
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepVisual_MarkerMember_HeaderFile
|
||||
#define _StepVisual_MarkerMember_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepData_SelectInt.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepDimTol_SimpleDatumReferenceModifier.hxx>
|
||||
|
||||
class StepDimTol_SimpleDatumReferenceModifierMember;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_SimpleDatumReferenceModifierMember, StepData_SelectInt)
|
||||
//! Defines SimpleDatumReferenceModifier as unique member of DatumReferenceModifier
|
||||
//! Works with an EnumTool
|
||||
class StepDimTol_SimpleDatumReferenceModifierMember : public StepData_SelectInt
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
Standard_EXPORT StepDimTol_SimpleDatumReferenceModifierMember();
|
||||
|
||||
inline Standard_Boolean HasName() const
|
||||
{ return Standard_True; }
|
||||
|
||||
inline Standard_CString Name() const
|
||||
{ return "SIMPLE_DATUM_REFERENCE_MODIFIER"; }
|
||||
|
||||
inline Standard_Boolean SetName(const Standard_CString /*theName*/)
|
||||
{ return Standard_True; }
|
||||
|
||||
Standard_EXPORT virtual Standard_CString EnumText() const;
|
||||
|
||||
Standard_EXPORT virtual void SetEnumText (const Standard_Integer theValue, const Standard_CString theText) ;
|
||||
|
||||
Standard_EXPORT void SetValue (const StepDimTol_SimpleDatumReferenceModifier theValue) ;
|
||||
|
||||
Standard_EXPORT StepDimTol_SimpleDatumReferenceModifier Value() const;
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_SimpleDatumReferenceModifierMember, StepData_SelectInt)
|
||||
};
|
||||
#endif // _StepDimTol_SimpleDatumReferenceModifierMember_HeaderFile
|
45
src/StepDimTol/StepDimTol_ToleranceZone.cxx
Normal file
45
src/StepDimTol/StepDimTol_ToleranceZone.cxx
Normal file
@@ -0,0 +1,45 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_ToleranceZone.hxx>
|
||||
|
||||
#include <StepDimTol_HArray1OfToleranceZoneTarget.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_ToleranceZone
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_ToleranceZone::StepDimTol_ToleranceZone ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_ToleranceZone::Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
|
||||
const StepData_Logical theProductDefinitional,
|
||||
const Handle(StepDimTol_HArray1OfToleranceZoneTarget)& theDefiningTolerance,
|
||||
const Handle(StepDimTol_ToleranceZoneForm)& theForm)
|
||||
{
|
||||
StepRepr_ShapeAspect::Init(theName, theDescription, theOfShape, theProductDefinitional);
|
||||
definingTolerance = theDefiningTolerance;
|
||||
form = theForm;
|
||||
}
|
||||
|
99
src/StepDimTol/StepDimTol_ToleranceZone.hxx
Normal file
99
src/StepDimTol/StepDimTol_ToleranceZone.hxx
Normal file
@@ -0,0 +1,99 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_ToleranceZone_HeaderFile
|
||||
#define _StepDimTol_ToleranceZone_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepDimTol_HArray1OfToleranceZoneTarget.hxx>
|
||||
#include <StepDimTol_ToleranceZoneForm.hxx>
|
||||
#include <StepDimTol_ToleranceZoneTarget.hxx>
|
||||
|
||||
class StepDimTol_HArray1OfToleranceZoneTarget;
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
|
||||
class StepDimTol_ToleranceZone;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_ToleranceZone, StepRepr_ShapeAspect)
|
||||
//! Representation of STEP entity ToleranceZone
|
||||
class StepDimTol_ToleranceZone : public StepRepr_ShapeAspect
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_ToleranceZone();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(TCollection_HAsciiString)& theDescription,
|
||||
const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
|
||||
const StepData_Logical theProductDefinitional,
|
||||
const Handle(StepDimTol_HArray1OfToleranceZoneTarget)& theDefiningTolerance,
|
||||
const Handle(StepDimTol_ToleranceZoneForm)& theForm);
|
||||
|
||||
//! Returns field DefiningTolerance
|
||||
inline Handle(StepDimTol_HArray1OfToleranceZoneTarget) DefiningTolerance () const
|
||||
{
|
||||
return definingTolerance;
|
||||
}
|
||||
|
||||
//! Set field DefiningTolerance
|
||||
inline void SetModifiers (const Handle(StepDimTol_HArray1OfToleranceZoneTarget) &theDefiningTolerance)
|
||||
{
|
||||
definingTolerance = theDefiningTolerance;
|
||||
}
|
||||
|
||||
//! Returns number of Defining Tolerances
|
||||
inline Standard_Integer NbDefiningTolerances () const
|
||||
{
|
||||
return (definingTolerance.IsNull() ? 0 : definingTolerance->Length());
|
||||
}
|
||||
|
||||
//! Returns Defining Tolerance with the given number
|
||||
inline StepDimTol_ToleranceZoneTarget DefiningToleranceValue(const Standard_Integer num) const
|
||||
{
|
||||
return definingTolerance->Value(num);
|
||||
}
|
||||
|
||||
//! Sets Defining Tolerance with given number
|
||||
inline void SetDefiningToleranceValue(const Standard_Integer num, const StepDimTol_ToleranceZoneTarget& theItem)
|
||||
{
|
||||
definingTolerance->SetValue (num, theItem);
|
||||
}
|
||||
|
||||
//! Returns field Form
|
||||
inline Handle(StepDimTol_ToleranceZoneForm) Form()
|
||||
{
|
||||
return form;
|
||||
}
|
||||
|
||||
//! Set field Form
|
||||
inline void SetForm(const Handle(StepDimTol_ToleranceZoneForm)& theForm)
|
||||
{
|
||||
form = theForm;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_ToleranceZone, StepRepr_ShapeAspect)
|
||||
|
||||
private:
|
||||
Handle(StepDimTol_HArray1OfToleranceZoneTarget) definingTolerance;
|
||||
Handle(StepDimTol_ToleranceZoneForm) form;
|
||||
};
|
||||
#endif // _StepDimTol_ToleranceZone_HeaderFile
|
39
src/StepDimTol/StepDimTol_ToleranceZoneDefinition.cxx
Normal file
39
src/StepDimTol/StepDimTol_ToleranceZoneDefinition.cxx
Normal file
@@ -0,0 +1,39 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_ToleranceZoneDefinition.hxx>
|
||||
|
||||
#include <StepRepr_HArray1OfShapeAspect.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_ToleranceZoneDefinition
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_ToleranceZoneDefinition::StepDimTol_ToleranceZoneDefinition ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_ToleranceZoneDefinition::Init (const Handle(StepDimTol_ToleranceZone)& theZone,
|
||||
const Handle(StepRepr_HArray1OfShapeAspect)& theBoundaries)
|
||||
{
|
||||
boundaries = theBoundaries;
|
||||
zone = theZone;
|
||||
}
|
93
src/StepDimTol/StepDimTol_ToleranceZoneDefinition.hxx
Normal file
93
src/StepDimTol/StepDimTol_ToleranceZoneDefinition.hxx
Normal file
@@ -0,0 +1,93 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_ToleranceZoneDefinition_HeaderFile
|
||||
#define _StepDimTol_ToleranceZoneDefinition_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StepRepr_HArray1OfShapeAspect.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <StepDimTol_ToleranceZone.hxx>
|
||||
|
||||
class StepRepr_HArray1OfShapeAspect;
|
||||
|
||||
class StepDimTol_ToleranceZoneDefinition;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_ToleranceZoneDefinition, MMgt_TShared)
|
||||
//! Representation of STEP entity ToleranceZoneDefinition
|
||||
class StepDimTol_ToleranceZoneDefinition : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_ToleranceZoneDefinition();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(StepDimTol_ToleranceZone)& theZone,
|
||||
const Handle(StepRepr_HArray1OfShapeAspect)& theBoundaries);
|
||||
|
||||
//! Returns field Boundaries
|
||||
inline Handle(StepRepr_HArray1OfShapeAspect) Boundaries () const
|
||||
{
|
||||
return boundaries;
|
||||
}
|
||||
|
||||
//! Set field Boundaries
|
||||
inline void SetBoundaries (const Handle(StepRepr_HArray1OfShapeAspect) &theBoundaries)
|
||||
{
|
||||
boundaries = theBoundaries;
|
||||
}
|
||||
|
||||
//! Returns number of Boundaries
|
||||
inline Standard_Integer NbBoundaries () const
|
||||
{
|
||||
return (boundaries.IsNull() ? 0 : boundaries->Length());
|
||||
}
|
||||
|
||||
//! Returns Boundaries with the given number
|
||||
inline Handle(StepRepr_ShapeAspect) BoundariesValue(const Standard_Integer num) const
|
||||
{
|
||||
return boundaries->Value(num);
|
||||
}
|
||||
|
||||
//! Sets Boundaries with given number
|
||||
inline void SetBoundariesValue(const Standard_Integer num, const Handle(StepRepr_ShapeAspect)& theItem)
|
||||
{
|
||||
boundaries->SetValue (num, theItem);
|
||||
}
|
||||
|
||||
//! Returns field Zone
|
||||
inline Handle(StepDimTol_ToleranceZone) Zone()
|
||||
{
|
||||
return zone;
|
||||
}
|
||||
|
||||
//! Set field Zone
|
||||
inline void SetZone(const Handle(StepDimTol_ToleranceZone)& theZone)
|
||||
{
|
||||
zone = theZone;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_ToleranceZoneDefinition, MMgt_TShared)
|
||||
|
||||
private:
|
||||
Handle(StepRepr_HArray1OfShapeAspect) boundaries;
|
||||
Handle(StepDimTol_ToleranceZone) zone;
|
||||
};
|
||||
#endif // _StepDimTol_ToleranceZoneDefinition_HeaderFile
|
35
src/StepDimTol/StepDimTol_ToleranceZoneForm.cxx
Normal file
35
src/StepDimTol/StepDimTol_ToleranceZoneForm.cxx
Normal file
@@ -0,0 +1,35 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_ToleranceZoneForm.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_ToleranceZoneForm
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_ToleranceZoneForm::StepDimTol_ToleranceZoneForm () {}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_ToleranceZoneForm::Init(
|
||||
const Handle(TCollection_HAsciiString)& theName)
|
||||
{
|
||||
// --- classe own fields ---
|
||||
name = theName;
|
||||
}
|
59
src/StepDimTol/StepDimTol_ToleranceZoneForm.hxx
Normal file
59
src/StepDimTol/StepDimTol_ToleranceZoneForm.hxx
Normal file
@@ -0,0 +1,59 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_ToleranceZoneForm_HeaderFile
|
||||
#define _StepDimTol_ToleranceZoneForm_HeaderFile
|
||||
|
||||
#include <StepDimTol_ToleranceZoneForm.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
class TCollection_HAsciiString;
|
||||
|
||||
class StepDimTol_ToleranceZoneForm;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_ToleranceZoneForm, MMgt_TShared)
|
||||
//! Added for Dimensional Tolerances
|
||||
class StepDimTol_ToleranceZoneForm : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
Standard_EXPORT StepDimTol_ToleranceZoneForm();
|
||||
|
||||
//! Init all field own and inherited
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& theName);
|
||||
|
||||
//! Returns field Name
|
||||
inline Handle(TCollection_HAsciiString) Name()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
//! Set field Name
|
||||
inline void SetName(const Handle(TCollection_HAsciiString) &theName)
|
||||
{
|
||||
name = theName;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_ToleranceZoneForm, MMgt_TShared)
|
||||
|
||||
private:
|
||||
Handle(TCollection_HAsciiString) name;
|
||||
|
||||
};
|
||||
#endif // _StepDimTol_ToleranceZoneForm_HeaderFile
|
55
src/StepDimTol/StepDimTol_ToleranceZoneTarget.cxx
Normal file
55
src/StepDimTol/StepDimTol_ToleranceZoneTarget.cxx
Normal file
@@ -0,0 +1,55 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_ToleranceZoneTarget.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <StepShape_DimensionalLocation.hxx>
|
||||
#include <StepShape_DimensionalSize.hxx>
|
||||
#include <StepDimTol_GeneralDatumReference.hxx>
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_ToleranceZoneTarget
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_ToleranceZoneTarget::StepDimTol_ToleranceZoneTarget () { }
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepDimTol_ToleranceZoneTarget::CaseNum(const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
if (ent.IsNull()) return 0;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalLocation))) return 1;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalSize))) return 2;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepDimTol_GeometricTolerance))) return 3;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepDimTol_GeneralDatumReference))) return 4;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Handle(StepShape_DimensionalLocation) StepDimTol_ToleranceZoneTarget::DimensionalLocation() const
|
||||
{ return GetCasted(StepShape_DimensionalLocation,Value()); }
|
||||
|
||||
Handle(StepShape_DimensionalSize) StepDimTol_ToleranceZoneTarget::DimensionalSize() const
|
||||
{ return GetCasted(StepShape_DimensionalSize,Value()); }
|
||||
|
||||
Handle(StepDimTol_GeometricTolerance) StepDimTol_ToleranceZoneTarget::GeometricTolerance() const
|
||||
{ return GetCasted(StepDimTol_GeometricTolerance,Value()); }
|
||||
|
||||
Handle(StepDimTol_GeneralDatumReference) StepDimTol_ToleranceZoneTarget::GeneralDatumReference() const
|
||||
{ return GetCasted(StepDimTol_GeneralDatumReference,Value()); }
|
61
src/StepDimTol/StepDimTol_ToleranceZoneTarget.hxx
Normal file
61
src/StepDimTol/StepDimTol_ToleranceZoneTarget.hxx
Normal file
@@ -0,0 +1,61 @@
|
||||
// Created on: 2015-07-13
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_ToleranceZoneTarget_HeaderFile
|
||||
#define _StepDimTol_ToleranceZoneTarget_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <StepData_SelectType.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
|
||||
class Standard_Transient;
|
||||
class StepDimTol_GeometricTolerance;
|
||||
class StepDimTol_GeneralDatumReference;
|
||||
class StepShape_DimensionalLocation;
|
||||
class StepShape_DimensionalSize;
|
||||
|
||||
class StepDimTol_ToleranceZoneTarget : public StepData_SelectType
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Returns a ToleranceZoneTarget select type
|
||||
Standard_EXPORT StepDimTol_ToleranceZoneTarget();
|
||||
|
||||
//! Recognizes a ToleranceZoneTarget Kind Entity that is :
|
||||
//! 1 -> DimensionalLocation
|
||||
//! 2 -> DimensionalSize
|
||||
//! 3 -> GeometricTolerance
|
||||
//! 4 -> GeneralDatumReference
|
||||
//! 0 else
|
||||
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
|
||||
|
||||
//! returns Value as a DimensionalLocation (Null if another type)
|
||||
Standard_EXPORT Handle(StepShape_DimensionalLocation) DimensionalLocation() const;
|
||||
|
||||
//! returns Value as a DimensionalSize (Null if another type)
|
||||
Standard_EXPORT Handle(StepShape_DimensionalSize) DimensionalSize() const;
|
||||
|
||||
//! returns Value as a GeometricTolerance (Null if another type)
|
||||
Standard_EXPORT Handle(StepDimTol_GeometricTolerance) GeometricTolerance() const;
|
||||
|
||||
//! returns Value as a GeneralDatumReference (Null if another type)
|
||||
Standard_EXPORT Handle(StepDimTol_GeneralDatumReference) GeneralDatumReference() const;
|
||||
};
|
||||
#endif // _StepDimTol_ToleranceZoneTarget_HeaderFile
|
@@ -0,0 +1,43 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepDimTol_UnequallyDisposedGeometricTolerance.hxx>
|
||||
|
||||
#include <StepDimTol_GeometricToleranceTarget.hxx>
|
||||
#include <StepBasic_LengthMeasureWithUnit.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepDimTol_UnequallyDisposedGeometricTolerance
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepDimTol_UnequallyDisposedGeometricTolerance::StepDimTol_UnequallyDisposedGeometricTolerance ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepDimTol_UnequallyDisposedGeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theName,
|
||||
const Handle(TCollection_HAsciiString) &theDescription,
|
||||
const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
|
||||
const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect,
|
||||
const Handle(StepBasic_LengthMeasureWithUnit) &theDisplacement)
|
||||
{
|
||||
StepDimTol_GeometricTolerance::Init( theName, theDescription, theMagnitude, theTolerancedShapeAspect);
|
||||
displacement = theDisplacement;
|
||||
}
|
@@ -0,0 +1,60 @@
|
||||
// Created on: 2015-07-07
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepDimTol_UnequallyDisposedGeometricTolerance_HeaderFile
|
||||
#define _StepDimTol_UnequallyDisposedGeometricTolerance_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <StepBasic_LengthMeasureWithUnit.hxx>
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_MeasureWithUnit;
|
||||
class StepDimTol_GeometricToleranceTarget;
|
||||
|
||||
class StepDimTol_UnequallyDisposedGeometricTolerance;
|
||||
DEFINE_STANDARD_HANDLE(StepDimTol_UnequallyDisposedGeometricTolerance, StepDimTol_GeometricTolerance)
|
||||
//! Representation of STEP entity UnequallyDisposedGeometricTolerance
|
||||
class StepDimTol_UnequallyDisposedGeometricTolerance : public StepDimTol_GeometricTolerance
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepDimTol_UnequallyDisposedGeometricTolerance();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName, const Handle(TCollection_HAsciiString)& theDescription, const Handle(StepBasic_MeasureWithUnit)& theMagnitude, const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect, const Handle(StepBasic_LengthMeasureWithUnit)& theDisplacement) ;
|
||||
|
||||
//! Returns field Displacement
|
||||
inline Handle(StepBasic_LengthMeasureWithUnit) Displacement () const
|
||||
{
|
||||
return displacement;
|
||||
}
|
||||
|
||||
//! Set field Displacement
|
||||
inline void SetDisplacement (const Handle(StepBasic_LengthMeasureWithUnit) &theDisplacement)
|
||||
{
|
||||
displacement = theDisplacement;
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI(StepDimTol_UnequallyDisposedGeometricTolerance, StepDimTol_GeometricTolerance)
|
||||
|
||||
private:
|
||||
Handle(StepBasic_LengthMeasureWithUnit) displacement;
|
||||
};
|
||||
#endif // _StepDimTol_UnequallyDisposedGeometricTolerance_HeaderFile
|
Reference in New Issue
Block a user