blob: f91c4fcefc08a29cdb621484c79b89bb65c5c2ad [file] [edit]
// 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 <StepBasic_MeasureWithUnit.hxx>
#include <StepDimTol_GeometricTolerance.hxx>
#include <StepDimTol_GeometricToleranceTarget.hxx>
#include <StepRepr_ShapeAspect.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeometricTolerance, Standard_Transient)
//=================================================================================================
StepDimTol_GeometricTolerance::StepDimTol_GeometricTolerance() = default;
//=================================================================================================
void StepDimTol_GeometricTolerance::Init(
const occ::handle<TCollection_HAsciiString>& theName,
const occ::handle<TCollection_HAsciiString>& theDescription,
const occ::handle<Standard_Transient>& theMagnitude,
const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect)
{
myName = theName;
myDescription = theDescription;
myMagnitude = theMagnitude;
myTolerancedShapeAspect = theTolerancedShapeAspect;
}
//=================================================================================================
void StepDimTol_GeometricTolerance::Init(
const occ::handle<TCollection_HAsciiString>& theName,
const occ::handle<TCollection_HAsciiString>& theDescription,
const occ::handle<Standard_Transient>& theMagnitude,
const occ::handle<StepRepr_ShapeAspect>& theTolerancedShapeAspect)
{
myName = theName;
myDescription = theDescription;
myMagnitude = theMagnitude;
myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect);
}
//=================================================================================================
occ::handle<TCollection_HAsciiString> StepDimTol_GeometricTolerance::Name() const
{
return myName;
}
//=================================================================================================
void StepDimTol_GeometricTolerance::SetName(const occ::handle<TCollection_HAsciiString>& theName)
{
myName = theName;
}
//=================================================================================================
occ::handle<TCollection_HAsciiString> StepDimTol_GeometricTolerance::Description() const
{
return myDescription;
}
//=================================================================================================
void StepDimTol_GeometricTolerance::SetDescription(
const occ::handle<TCollection_HAsciiString>& theDescription)
{
myDescription = theDescription;
}
//=================================================================================================
occ::handle<Standard_Transient> StepDimTol_GeometricTolerance::Magnitude() const
{
return myMagnitude;
}
//=================================================================================================
void StepDimTol_GeometricTolerance::SetMagnitude(
const occ::handle<Standard_Transient>& theMagnitude)
{
myMagnitude = theMagnitude;
}
//=================================================================================================
StepDimTol_GeometricToleranceTarget StepDimTol_GeometricTolerance::TolerancedShapeAspect() const
{
return myTolerancedShapeAspect;
}
//=================================================================================================
void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect(
const occ::handle<StepRepr_ShapeAspect>& theTolerancedShapeAspect)
{
myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect);
}
//=================================================================================================
void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect(
const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect)
{
myTolerancedShapeAspect = theTolerancedShapeAspect;
}