| // 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_GeometricTolerance.hxx> | |
| #include <StepDimTol_GeometricToleranceRelationship.hxx> | |
| #include <TCollection_HAsciiString.hxx> | |
| IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceRelationship, Standard_Transient) | |
| //================================================================================================= | |
| StepDimTol_GeometricToleranceRelationship::StepDimTol_GeometricToleranceRelationship() = default; | |
| //================================================================================================= | |
| void StepDimTol_GeometricToleranceRelationship::Init( | |
| const occ::handle<TCollection_HAsciiString>& theName, | |
| const occ::handle<TCollection_HAsciiString>& theDescription, | |
| const occ::handle<StepDimTol_GeometricTolerance>& theRelatingGeometricTolerance, | |
| const occ::handle<StepDimTol_GeometricTolerance>& theRelatedGeometricTolerance) | |
| { | |
| myName = theName; | |
| myDescription = theDescription; | |
| myRelatingGeometricTolerance = theRelatingGeometricTolerance; | |
| myRelatedGeometricTolerance = theRelatedGeometricTolerance; | |
| } | |
| //================================================================================================= | |
| occ::handle<TCollection_HAsciiString> StepDimTol_GeometricToleranceRelationship::Name() const | |
| { | |
| return myName; | |
| } | |
| //================================================================================================= | |
| void StepDimTol_GeometricToleranceRelationship::SetName( | |
| const occ::handle<TCollection_HAsciiString>& theName) | |
| { | |
| myName = theName; | |
| } | |
| //================================================================================================= | |
| occ::handle<TCollection_HAsciiString> StepDimTol_GeometricToleranceRelationship::Description() const | |
| { | |
| return myDescription; | |
| } | |
| //================================================================================================= | |
| void StepDimTol_GeometricToleranceRelationship::SetDescription( | |
| const occ::handle<TCollection_HAsciiString>& theDescription) | |
| { | |
| myDescription = theDescription; | |
| } | |
| //================================================================================================= | |
| occ::handle<StepDimTol_GeometricTolerance> StepDimTol_GeometricToleranceRelationship:: | |
| RelatingGeometricTolerance() const | |
| { | |
| return myRelatingGeometricTolerance; | |
| } | |
| //================================================================================================= | |
| void StepDimTol_GeometricToleranceRelationship::SetRelatingGeometricTolerance( | |
| const occ::handle<StepDimTol_GeometricTolerance>& theRelatingGeometricTolerance) | |
| { | |
| myRelatingGeometricTolerance = theRelatingGeometricTolerance; | |
| } | |
| //================================================================================================= | |
| occ::handle<StepDimTol_GeometricTolerance> StepDimTol_GeometricToleranceRelationship:: | |
| RelatedGeometricTolerance() const | |
| { | |
| return myRelatedGeometricTolerance; | |
| } | |
| //================================================================================================= | |
| void StepDimTol_GeometricToleranceRelationship::SetRelatedGeometricTolerance( | |
| const occ::handle<StepDimTol_GeometricTolerance>& theRelatedGeometricTolerance) | |
| { | |
| myRelatedGeometricTolerance = theRelatedGeometricTolerance; | |
| } |