blob: d7f9f8f093db305606ff863abffc642fde5c82b8 [file] [edit]
// Copyright (c) 1999-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.
#include <StepBasic_MeasureWithUnit.hxx>
#include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
#include <StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.hxx>
#include <StepDimTol_ModifiedGeometricTolerance.hxx>
#include <StepDimTol_PositionTolerance.hxx>
#include <StepRepr_ShapeAspect.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol,
StepDimTol_GeometricTolerance)
//=================================================================================================
StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::
StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol() = default;
//=================================================================================================
void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Init(
const occ::handle<TCollection_HAsciiString>& aName,
const occ::handle<TCollection_HAsciiString>& aDescription,
const occ::handle<Standard_Transient>& aMagnitude,
const occ::handle<StepRepr_ShapeAspect>& aTolerancedShapeAspect,
const occ::handle<StepDimTol_GeometricToleranceWithDatumReference>& aGTWDR,
const occ::handle<StepDimTol_ModifiedGeometricTolerance>& aMGT)
{
SetName(aName);
SetDescription(aDescription);
SetMagnitude(aMagnitude);
SetTolerancedShapeAspect(aTolerancedShapeAspect);
myGeometricToleranceWithDatumReference = aGTWDR;
myModifiedGeometricTolerance = aMGT;
}
//=================================================================================================
void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Init(
const occ::handle<TCollection_HAsciiString>& aName,
const occ::handle<TCollection_HAsciiString>& aDescription,
const occ::handle<Standard_Transient>& aMagnitude,
const StepDimTol_GeometricToleranceTarget& aTolerancedShapeAspect,
const occ::handle<StepDimTol_GeometricToleranceWithDatumReference>& aGTWDR,
const occ::handle<StepDimTol_ModifiedGeometricTolerance>& aMGT)
{
SetName(aName);
SetDescription(aDescription);
SetMagnitude(aMagnitude);
SetTolerancedShapeAspect(aTolerancedShapeAspect);
myGeometricToleranceWithDatumReference = aGTWDR;
myModifiedGeometricTolerance = aMGT;
}
//=================================================================================================
void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::
SetGeometricToleranceWithDatumReference(
const occ::handle<StepDimTol_GeometricToleranceWithDatumReference>& aGTWDR)
{
myGeometricToleranceWithDatumReference = aGTWDR;
}
//=================================================================================================
occ::handle<StepDimTol_GeometricToleranceWithDatumReference>
StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::
GetGeometricToleranceWithDatumReference() const
{
return myGeometricToleranceWithDatumReference;
}
//=================================================================================================
void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetModifiedGeometricTolerance(
const occ::handle<StepDimTol_ModifiedGeometricTolerance>& aMGT)
{
myModifiedGeometricTolerance = aMGT;
}
//=================================================================================================
occ::handle<StepDimTol_ModifiedGeometricTolerance>
StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetModifiedGeometricTolerance() const
{
return myModifiedGeometricTolerance;
}
//=================================================================================================
void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetPositionTolerance(
const occ::handle<StepDimTol_PositionTolerance>& aPT)
{
myPositionTolerance = aPT;
}
//=================================================================================================
occ::handle<StepDimTol_PositionTolerance> StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::
GetPositionTolerance() const
{
return myPositionTolerance;
}