1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/src/StepDimTol/StepDimTol_ModifiedGeometricTolerance.cxx
dpasukhi 49d628667b 0033099: Data Exchange, Step Import - Wrong PMI values in GDT
measure_with_unit entity is changed to be translated as Handle(Standard_Transient) and to be processed later, depending on the underlying type being used.
2024-05-15 16:24:33 +01:00

90 lines
4.1 KiB
C++

// Created on: 2003-06-04
// Created by: Galina KULIKOVA
// Copyright (c) 2003-2014 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.
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
#include <StepDimTol_ModifiedGeometricTolerance.hxx>
#include <StepDimTol_GeometricToleranceTarget.hxx>
#include <StepRepr_ShapeAspect.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_ModifiedGeometricTolerance,StepDimTol_GeometricTolerance)
//=======================================================================
//function : StepDimTol_ModifiedGeometricTolerance
//purpose :
//=======================================================================
StepDimTol_ModifiedGeometricTolerance::StepDimTol_ModifiedGeometricTolerance ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepDimTol_ModifiedGeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theGeometricTolerance_Name,
const Handle(TCollection_HAsciiString) &theGeometricTolerance_Description,
const Handle(Standard_Transient)& theGeometricTolerance_Magnitude,
const Handle(StepRepr_ShapeAspect) &theGeometricTolerance_TolerancedShapeAspect,
const StepDimTol_LimitCondition theModifier)
{
StepDimTol_GeometricTolerance::Init(theGeometricTolerance_Name,
theGeometricTolerance_Description,
theGeometricTolerance_Magnitude,
theGeometricTolerance_TolerancedShapeAspect);
myModifier = theModifier;
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepDimTol_ModifiedGeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theGeometricTolerance_Name,
const Handle(TCollection_HAsciiString) &theGeometricTolerance_Description,
const Handle(Standard_Transient)& theGeometricTolerance_Magnitude,
const StepDimTol_GeometricToleranceTarget &theGeometricTolerance_TolerancedShapeAspect,
const StepDimTol_LimitCondition theModifier)
{
StepDimTol_GeometricTolerance::Init(theGeometricTolerance_Name,
theGeometricTolerance_Description,
theGeometricTolerance_Magnitude,
theGeometricTolerance_TolerancedShapeAspect);
myModifier = theModifier;
}
//=======================================================================
//function : Modifier
//purpose :
//=======================================================================
StepDimTol_LimitCondition StepDimTol_ModifiedGeometricTolerance::Modifier () const
{
return myModifier;
}
//=======================================================================
//function : SetModifier
//purpose :
//=======================================================================
void StepDimTol_ModifiedGeometricTolerance::SetModifier (const StepDimTol_LimitCondition theModifier)
{
myModifier = theModifier;
}