1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
-- File: RWStepDimTol.cdl
-- Created: Wed Jun 4 12:04:38 2003
-- Author: Galina KULIKOVA
-- <gka@zamox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 2003
package RWStepDimTol
---Purpose: Packsge contains tools for parsing and formatting GD&T entities.
uses
TCollection,
RWStepRepr,
RWStepShape,
RWStepVisual,
RWStepBasic,
TColStd,
StepData,
Interface,
StepDimTol,
MMgt
is
class RWAngularityTolerance;
class RWCircularRunoutTolerance;
class RWConcentricityTolerance;
class RWCylindricityTolerance;
class RWCoaxialityTolerance;
class RWFlatnessTolerance;
class RWLineProfileTolerance;
class RWParallelismTolerance;
class RWPerpendicularityTolerance;
class RWPositionTolerance;
class RWRoundnessTolerance;
class RWStraightnessTolerance;
class RWSurfaceProfileTolerance;
class RWSymmetryTolerance;
class RWTotalRunoutTolerance;
class RWGeometricTolerance;
class RWGeometricToleranceRelationship;
class RWGeometricToleranceWithDatumReference;
class RWModifiedGeometricTolerance;
class RWDatum;
class RWDatumFeature;
class RWDatumReference;
class RWCommonDatum;
class RWDatumTarget;
class RWPlacedDatumTargetFeature;
class RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol;
end RWStepDimTol;

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWAngularityTolerance.cdl
-- Created: Wed Jun 4 13:34:33 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWAngularityTolerance from RWStepDimTol
---Purpose: Read & Write tool for AngularityTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
AngularityTolerance from StepDimTol
is
Create returns RWAngularityTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : AngularityTolerance from StepDimTol);
---Purpose: Reads AngularityTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: AngularityTolerance from StepDimTol);
---Purpose: Writes AngularityTolerance
Share (me; ent : AngularityTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWAngularityTolerance;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWAngularityTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWAngularityTolerance.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWAngularityTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWAngularityTolerance::RWStepDimTol_RWAngularityTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWAngularityTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_AngularityTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"angularity_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Inherited fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aGeometricToleranceWithDatumReference_DatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "geometric_tolerance_with_datum_reference.datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aGeometricToleranceWithDatumReference_DatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aGeometricToleranceWithDatumReference_DatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aGeometricToleranceWithDatumReference_DatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWAngularityTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_AngularityTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWAngularityTolerance::Share (const Handle(StepDimTol_AngularityTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWCircularRunoutTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWCircularRunoutTolerance from RWStepDimTol
---Purpose: Read & Write tool for CircularRunoutTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
CircularRunoutTolerance from StepDimTol
is
Create returns RWCircularRunoutTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : CircularRunoutTolerance from StepDimTol);
---Purpose: Reads CircularRunoutTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: CircularRunoutTolerance from StepDimTol);
---Purpose: Writes CircularRunoutTolerance
Share (me; ent : CircularRunoutTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWCircularRunoutTolerance;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWCircularRunoutTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWCircularRunoutTolerance.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWCircularRunoutTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWCircularRunoutTolerance::RWStepDimTol_RWCircularRunoutTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWCircularRunoutTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_CircularRunoutTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"circular_runout_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Inherited fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aGeometricToleranceWithDatumReference_DatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "geometric_tolerance_with_datum_reference.datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aGeometricToleranceWithDatumReference_DatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aGeometricToleranceWithDatumReference_DatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aGeometricToleranceWithDatumReference_DatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWCircularRunoutTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_CircularRunoutTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWCircularRunoutTolerance::Share (const Handle(StepDimTol_CircularRunoutTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWCoaxialityTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWCoaxialityTolerance from RWStepDimTol
---Purpose: Read & Write tool for CoaxialityTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
CoaxialityTolerance from StepDimTol
is
Create returns RWCoaxialityTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : CoaxialityTolerance from StepDimTol);
---Purpose: Reads CoaxialityTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: CoaxialityTolerance from StepDimTol);
---Purpose: Writes CoaxialityTolerance
Share (me; ent : CoaxialityTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWCoaxialityTolerance;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWCoaxialityTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWCoaxialityTolerance.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWCoaxialityTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWCoaxialityTolerance::RWStepDimTol_RWCoaxialityTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWCoaxialityTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_CoaxialityTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"coaxiality_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Inherited fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aGeometricToleranceWithDatumReference_DatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "geometric_tolerance_with_datum_reference.datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aGeometricToleranceWithDatumReference_DatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aGeometricToleranceWithDatumReference_DatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aGeometricToleranceWithDatumReference_DatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWCoaxialityTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_CoaxialityTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWCoaxialityTolerance::Share (const Handle(StepDimTol_CoaxialityTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWCommonDatum.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWCommonDatum from RWStepDimTol
---Purpose: Read & Write tool for CommonDatum
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
CommonDatum from StepDimTol
is
Create returns RWCommonDatum from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : CommonDatum from StepDimTol);
---Purpose: Reads CommonDatum
WriteStep (me; SW: in out StepWriter from StepData;
ent: CommonDatum from StepDimTol);
---Purpose: Writes CommonDatum
Share (me; ent : CommonDatum from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWCommonDatum;

View File

@@ -0,0 +1,136 @@
// File: RWStepDimTol_RWCommonDatum.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWCommonDatum.ixx>
#include <StepDimTol_Datum.hxx>
//=======================================================================
//function : RWStepDimTol_RWCommonDatum
//purpose :
//=======================================================================
RWStepDimTol_RWCommonDatum::RWStepDimTol_RWCommonDatum ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWCommonDatum::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_CommonDatum) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,9,ach,"common_datum") ) return;
// Inherited fields of ShapeAspect
Handle(TCollection_HAsciiString) aShapeAspect_Name;
data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
Handle(TCollection_HAsciiString) aShapeAspect_Description;
Standard_Boolean hasShapeAspect_Description = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
}
else {
hasShapeAspect_Description = Standard_False;
}
Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
StepData_Logical aShapeAspect_ProductDefinitional;
data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
// Inherited fields of Datum
Handle(TCollection_HAsciiString) aDatum_Name;
data->ReadString (num, 5, "shape_aspect.name", ach,aDatum_Name);
Handle(TCollection_HAsciiString) aDatum_Description;
if ( data->IsParamDefined (num,6) ) {
data->ReadString (num, 6, "shape_aspect.description", ach,aDatum_Description);
}
Handle(StepRepr_ProductDefinitionShape) aDatum_OfShape;
data->ReadEntity (num, 7, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape),aDatum_OfShape);
StepData_Logical aDatum_ProductDefinitional;
data->ReadLogical (num, 8, "shape_aspect.product_definitional", ach,aDatum_ProductDefinitional);
// Inherited fields of Datum
Handle(TCollection_HAsciiString) aDatum_Identification;
data->ReadString (num, 9, "datum.identification", ach, aDatum_Identification);
// Initialize entity
ent->Init(aShapeAspect_Name,
aShapeAspect_Description,
aShapeAspect_OfShape,
aShapeAspect_ProductDefinitional,
aDatum_Name,
aDatum_Description,
aDatum_OfShape,
aDatum_ProductDefinitional,
aDatum_Identification);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWCommonDatum::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_CommonDatum) &ent) const
{
// Inherited fields of ShapeAspect
SW.Send (ent->StepRepr_ShapeAspect::Name());
SW.Send (ent->StepRepr_ShapeAspect::Description());
SW.Send (ent->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
// Inherited fields of Datum->ShapeAspect
SW.Send (ent->Datum()->StepRepr_ShapeAspect::Name());
SW.Send (ent->Datum()->StepRepr_ShapeAspect::Description());
SW.Send (ent->Datum()->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->Datum()->StepRepr_ShapeAspect::ProductDefinitional());
// Inherited fields of Datum
SW.Send (ent->Datum()->Identification());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWCommonDatum::Share (const Handle(StepDimTol_CommonDatum) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspect
iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());
// Inherited fields of Datum
iter.AddItem (ent->Datum()->StepRepr_ShapeAspect::OfShape());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWConcentricityTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWConcentricityTolerance from RWStepDimTol
---Purpose: Read & Write tool for ConcentricityTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ConcentricityTolerance from StepDimTol
is
Create returns RWConcentricityTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ConcentricityTolerance from StepDimTol);
---Purpose: Reads ConcentricityTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: ConcentricityTolerance from StepDimTol);
---Purpose: Writes ConcentricityTolerance
Share (me; ent : ConcentricityTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWConcentricityTolerance;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWConcentricityTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWConcentricityTolerance.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWConcentricityTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWConcentricityTolerance::RWStepDimTol_RWConcentricityTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWConcentricityTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_ConcentricityTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"concentricity_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Inherited fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aGeometricToleranceWithDatumReference_DatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "geometric_tolerance_with_datum_reference.datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aGeometricToleranceWithDatumReference_DatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aGeometricToleranceWithDatumReference_DatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aGeometricToleranceWithDatumReference_DatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWConcentricityTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_ConcentricityTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWConcentricityTolerance::Share (const Handle(StepDimTol_ConcentricityTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWCylindricityTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWCylindricityTolerance from RWStepDimTol
---Purpose: Read & Write tool for CylindricityTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
CylindricityTolerance from StepDimTol
is
Create returns RWCylindricityTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : CylindricityTolerance from StepDimTol);
---Purpose: Reads CylindricityTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: CylindricityTolerance from StepDimTol);
---Purpose: Writes CylindricityTolerance
Share (me; ent : CylindricityTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWCylindricityTolerance;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWCylindricityTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWCylindricityTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWCylindricityTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWCylindricityTolerance::RWStepDimTol_RWCylindricityTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWCylindricityTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_CylindricityTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"cylindricity_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWCylindricityTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_CylindricityTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWCylindricityTolerance::Share (const Handle(StepDimTol_CylindricityTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWDatum.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWDatum from RWStepDimTol
---Purpose: Read & Write tool for Datum
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
Datum from StepDimTol
is
Create returns RWDatum from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : Datum from StepDimTol);
---Purpose: Reads Datum
WriteStep (me; SW: in out StepWriter from StepData;
ent: Datum from StepDimTol);
---Purpose: Writes Datum
Share (me; ent : Datum from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWDatum;

View File

@@ -0,0 +1,98 @@
// File: RWStepDimTol_RWDatum.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWDatum.ixx>
//=======================================================================
//function : RWStepDimTol_RWDatum
//purpose :
//=======================================================================
RWStepDimTol_RWDatum::RWStepDimTol_RWDatum ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWDatum::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_Datum) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"datum") ) return;
// Inherited fields of ShapeAspect
Handle(TCollection_HAsciiString) aShapeAspect_Name;
data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
Handle(TCollection_HAsciiString) aShapeAspect_Description;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
}
Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
StepData_Logical aShapeAspect_ProductDefinitional;
data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
// Own fields of Datum
Handle(TCollection_HAsciiString) aIdentification;
data->ReadString (num, 5, "identification", ach, aIdentification);
// Initialize entity
ent->Init(aShapeAspect_Name,
aShapeAspect_Description,
aShapeAspect_OfShape,
aShapeAspect_ProductDefinitional,
aIdentification);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWDatum::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_Datum) &ent) const
{
// Inherited fields of ShapeAspect
SW.Send (ent->StepRepr_ShapeAspect::Name());
SW.Send (ent->StepRepr_ShapeAspect::Description());
SW.Send (ent->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
// Own fields of Datum
SW.Send (ent->Identification());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWDatum::Share (const Handle(StepDimTol_Datum) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspect
iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());
// Own fields of Datum
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWDatumFeature.cdl
-- Created: Wed Jun 4 13:34:35 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWDatumFeature from RWStepDimTol
---Purpose: Read & Write tool for DatumFeature
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
DatumFeature from StepDimTol
is
Create returns RWDatumFeature from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : DatumFeature from StepDimTol);
---Purpose: Reads DatumFeature
WriteStep (me; SW: in out StepWriter from StepData;
ent: DatumFeature from StepDimTol);
---Purpose: Writes DatumFeature
Share (me; ent : DatumFeature from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWDatumFeature;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWDatumFeature.cxx
// Created: Wed Jun 4 13:34:35 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWDatumFeature.ixx>
//=======================================================================
//function : RWStepDimTol_RWDatumFeature
//purpose :
//=======================================================================
RWStepDimTol_RWDatumFeature::RWStepDimTol_RWDatumFeature ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumFeature::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_DatumFeature) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"datum_feature") ) return;
// Inherited fields of ShapeAspect
Handle(TCollection_HAsciiString) aShapeAspect_Name;
data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
Handle(TCollection_HAsciiString) aShapeAspect_Description;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
}
Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
StepData_Logical aShapeAspect_ProductDefinitional;
data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
// Initialize entity
ent->Init(aShapeAspect_Name,
aShapeAspect_Description,
aShapeAspect_OfShape,
aShapeAspect_ProductDefinitional);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumFeature::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_DatumFeature) &ent) const
{
// Inherited fields of ShapeAspect
SW.Send (ent->StepRepr_ShapeAspect::Name());
SW.Send (ent->StepRepr_ShapeAspect::Description());
SW.Send (ent->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumFeature::Share (const Handle(StepDimTol_DatumFeature) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspect
iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWDatumReference.cdl
-- Created: Wed Jun 4 13:34:35 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWDatumReference from RWStepDimTol
---Purpose: Read & Write tool for DatumReference
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
DatumReference from StepDimTol
is
Create returns RWDatumReference from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : DatumReference from StepDimTol);
---Purpose: Reads DatumReference
WriteStep (me; SW: in out StepWriter from StepData;
ent: DatumReference from StepDimTol);
---Purpose: Writes DatumReference
Share (me; ent : DatumReference from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWDatumReference;

View File

@@ -0,0 +1,72 @@
// File: RWStepDimTol_RWDatumReference.cxx
// Created: Wed Jun 4 13:34:35 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWDatumReference.ixx>
//=======================================================================
//function : RWStepDimTol_RWDatumReference
//purpose :
//=======================================================================
RWStepDimTol_RWDatumReference::RWStepDimTol_RWDatumReference ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumReference::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_DatumReference) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,2,ach,"datum_reference") ) return;
// Own fields of DatumReference
Standard_Integer aPrecedence;
data->ReadInteger (num, 1, "precedence", ach, aPrecedence);
Handle(StepDimTol_Datum) aReferencedDatum;
data->ReadEntity (num, 2, "referenced_datum", ach, STANDARD_TYPE(StepDimTol_Datum), aReferencedDatum);
// Initialize entity
ent->Init(aPrecedence,
aReferencedDatum);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumReference::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_DatumReference) &ent) const
{
// Own fields of DatumReference
SW.Send (ent->Precedence());
SW.Send (ent->ReferencedDatum());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumReference::Share (const Handle(StepDimTol_DatumReference) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of DatumReference
iter.AddItem (ent->ReferencedDatum());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWDatumTarget.cdl
-- Created: Wed Jun 4 13:34:35 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWDatumTarget from RWStepDimTol
---Purpose: Read & Write tool for DatumTarget
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
DatumTarget from StepDimTol
is
Create returns RWDatumTarget from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : DatumTarget from StepDimTol);
---Purpose: Reads DatumTarget
WriteStep (me; SW: in out StepWriter from StepData;
ent: DatumTarget from StepDimTol);
---Purpose: Writes DatumTarget
Share (me; ent : DatumTarget from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWDatumTarget;

View File

@@ -0,0 +1,98 @@
// File: RWStepDimTol_RWDatumTarget.cxx
// Created: Wed Jun 4 13:34:35 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWDatumTarget.ixx>
//=======================================================================
//function : RWStepDimTol_RWDatumTarget
//purpose :
//=======================================================================
RWStepDimTol_RWDatumTarget::RWStepDimTol_RWDatumTarget ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumTarget::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_DatumTarget) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"datum_target") ) return;
// Inherited fields of ShapeAspect
Handle(TCollection_HAsciiString) aShapeAspect_Name;
data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
Handle(TCollection_HAsciiString) aShapeAspect_Description;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
}
Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
StepData_Logical aShapeAspect_ProductDefinitional;
data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
// Own fields of DatumTarget
Handle(TCollection_HAsciiString) aTargetId;
data->ReadString (num, 5, "target_id", ach, aTargetId);
// Initialize entity
ent->Init(aShapeAspect_Name,
aShapeAspect_Description,
aShapeAspect_OfShape,
aShapeAspect_ProductDefinitional,
aTargetId);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumTarget::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_DatumTarget) &ent) const
{
// Inherited fields of ShapeAspect
SW.Send (ent->StepRepr_ShapeAspect::Name());
SW.Send (ent->StepRepr_ShapeAspect::Description());
SW.Send (ent->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
// Own fields of DatumTarget
SW.Send (ent->TargetId());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWDatumTarget::Share (const Handle(StepDimTol_DatumTarget) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspect
iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());
// Own fields of DatumTarget
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWFlatnessTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWFlatnessTolerance from RWStepDimTol
---Purpose: Read & Write tool for FlatnessTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
FlatnessTolerance from StepDimTol
is
Create returns RWFlatnessTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : FlatnessTolerance from StepDimTol);
---Purpose: Reads FlatnessTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: FlatnessTolerance from StepDimTol);
---Purpose: Writes FlatnessTolerance
Share (me; ent : FlatnessTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWFlatnessTolerance;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWFlatnessTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWFlatnessTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWFlatnessTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWFlatnessTolerance::RWStepDimTol_RWFlatnessTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWFlatnessTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_FlatnessTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"flatness_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWFlatnessTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_FlatnessTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWFlatnessTolerance::Share (const Handle(StepDimTol_FlatnessTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}

View File

@@ -0,0 +1,32 @@
-- File: RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.cdl
-- Created: Fri Aug 22 12:42:57 2003
-- Author: Sergey KUUL
-- <skl@petrox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 2003
class RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol from RWStepDimTol
---Purpose : Read & Write Module for ReprItemAndLengthMeasureWithUni
uses
Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol from StepDimTol,
EntityIterator from Interface
is
Create returns RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol;
ReadStep (me; data : StepReaderData; num : Integer; ach : in out Check;
ent : mutable GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol from StepDimTol);
WriteStep (me; SW : in out StepWriter;
ent : GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol from StepDimTol);
Share(me; ent : GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol from StepDimTol;
iter : in out EntityIterator);
end RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol;

View File

@@ -0,0 +1,131 @@
#include <RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
#include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
#include <StepDimTol_ModifiedGeometricTolerance.hxx>
#include <StepDimTol_LimitCondition.hxx>
//=======================================================================
//function : RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol
//purpose :
//=======================================================================
RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num0, Handle(Interface_Check)& ach,
const Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol)& ent) const
{
Standard_Integer num = 0;//num0;
data->NamedForComplex("GEOMETRIC_TOLERANCE",num0,num,ach);
if (!data->CheckNbParams(num,4,ach,"geometric_tolerance")) return;
// Own fields of GeometricTolerance
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 1, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
data->ReadString (num, 2, "description", ach, aDescription);
Handle(StepBasic_MeasureWithUnit) aMagnitude;
data->ReadEntity (num, 3, "magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aMagnitude);
Handle(StepRepr_ShapeAspect) aTolerancedShapeAspect;
data->ReadEntity (num, 4, "toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aTolerancedShapeAspect);
data->NamedForComplex("GEOMETRIC_TOLERANCE_WITH_DATUM_REFERENCE",num0,num,ach);
// Own fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aDatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 1, "datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aDatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aDatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
Handle(StepDimTol_GeometricToleranceWithDatumReference) GTWDR =
new StepDimTol_GeometricToleranceWithDatumReference;
GTWDR->SetDatumSystem(aDatumSystem);
data->NamedForComplex("MODIFIED_GEOMETRIC_TOLERANCE",num0,num,ach);
// Own fields of ModifiedGeometricTolerance
StepDimTol_LimitCondition aModifier;
if (data->ParamType (num, 1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 1);
if (strcmp(text, ".MAXIMUM_MATERIAL_CONDITION.")==0) aModifier = StepDimTol_MaximumMaterialCondition;
else if (strcmp(text, ".LEAST_MATERIAL_CONDITION.")==0) aModifier = StepDimTol_LeastMaterialCondition;
else if (strcmp(text, ".REGARDLESS_OF_FEATURE_SIZE.")==0) aModifier = StepDimTol_RegardlessOfFeatureSize;
else ach->AddFail("Parameter in MODIFIED_GEOMETRIC_TOLERANCE has not allowed value");
}
else ach->AddFail("Parameter in MODIFIED_GEOMETRIC_TOLERANCE is not enumeration");
Handle(StepDimTol_ModifiedGeometricTolerance) MGT = new StepDimTol_ModifiedGeometricTolerance;
MGT->SetModifier(aModifier);
// Initialize entity
ent->Init(aName, aDescription, aMagnitude, aTolerancedShapeAspect, GTWDR, MGT);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::WriteStep
(StepData_StepWriter& SW,
const Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol)& ent) const
{
SW.StartEntity("GEOMETRIC_TOLERANCE");
SW.Send(ent->Name());
SW.Send(ent->Description());
SW.Send(ent->Magnitude());
SW.Send(ent->TolerancedShapeAspect());
SW.StartEntity("GEOMETRIC_TOLERANCE_WITH_DATUM_REFERENCE");
SW.OpenSub();
for(Standard_Integer i4=1; i4<=ent->GetGeometricToleranceWithDatumReference()->DatumSystem()->Length(); i4++) {
Handle(StepDimTol_DatumReference) Var0 =
ent->GetGeometricToleranceWithDatumReference()->DatumSystem()->Value(i4);
SW.Send(Var0);
}
SW.CloseSub();
SW.StartEntity("MODIFIED_GEOMETRIC_TOLERANCE");
switch (ent->GetModifiedGeometricTolerance()->Modifier()) {
case StepDimTol_MaximumMaterialCondition: SW.SendEnum(".MAXIMUM_MATERIAL_CONDITION."); break;
case StepDimTol_LeastMaterialCondition: SW.SendEnum(".LEAST_MATERIAL_CONDITION."); break;
case StepDimTol_RegardlessOfFeatureSize: SW.SendEnum(".REGARDLESS_OF_FEATURE_SIZE."); break;
}
SW.StartEntity("POSITION_TOLERANCE");
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Share
(const Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol)& ent,
Interface_EntityIterator& iter) const
{
// Own fields of GeometricTolerance
iter.AddItem (ent->Magnitude());
iter.AddItem (ent->TolerancedShapeAspect());
// Own fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3<=ent->GetGeometricToleranceWithDatumReference()->DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->GetGeometricToleranceWithDatumReference()->DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWGeometricTolerance.cdl
-- Created: Wed Jun 4 13:34:35 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWGeometricTolerance from RWStepDimTol
---Purpose: Read & Write tool for GeometricTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
GeometricTolerance from StepDimTol
is
Create returns RWGeometricTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : GeometricTolerance from StepDimTol);
---Purpose: Reads GeometricTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: GeometricTolerance from StepDimTol);
---Purpose: Writes GeometricTolerance
Share (me; ent : GeometricTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWGeometricTolerance;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWGeometricTolerance.cxx
// Created: Wed Jun 4 13:34:35 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWGeometricTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWGeometricTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWGeometricTolerance::RWStepDimTol_RWGeometricTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_GeometricTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"geometric_tolerance") ) return;
// Own fields of GeometricTolerance
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 1, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
data->ReadString (num, 2, "description", ach, aDescription);
Handle(StepBasic_MeasureWithUnit) aMagnitude;
data->ReadEntity (num, 3, "magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aMagnitude);
Handle(StepRepr_ShapeAspect) aTolerancedShapeAspect;
data->ReadEntity (num, 4, "toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aTolerancedShapeAspect);
// Initialize entity
ent->Init(aName,
aDescription,
aMagnitude,
aTolerancedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_GeometricTolerance) &ent) const
{
// Own fields of GeometricTolerance
SW.Send (ent->Name());
SW.Send (ent->Description());
SW.Send (ent->Magnitude());
SW.Send (ent->TolerancedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricTolerance::Share (const Handle(StepDimTol_GeometricTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of GeometricTolerance
iter.AddItem (ent->Magnitude());
iter.AddItem (ent->TolerancedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWGeometricToleranceRelationship.cdl
-- Created: Wed Jun 4 13:34:35 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWGeometricToleranceRelationship from RWStepDimTol
---Purpose: Read & Write tool for GeometricToleranceRelationship
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
GeometricToleranceRelationship from StepDimTol
is
Create returns RWGeometricToleranceRelationship from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : GeometricToleranceRelationship from StepDimTol);
---Purpose: Reads GeometricToleranceRelationship
WriteStep (me; SW: in out StepWriter from StepData;
ent: GeometricToleranceRelationship from StepDimTol);
---Purpose: Writes GeometricToleranceRelationship
Share (me; ent : GeometricToleranceRelationship from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWGeometricToleranceRelationship;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWGeometricToleranceRelationship.cxx
// Created: Wed Jun 4 13:34:35 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWGeometricToleranceRelationship.ixx>
//=======================================================================
//function : RWStepDimTol_RWGeometricToleranceRelationship
//purpose :
//=======================================================================
RWStepDimTol_RWGeometricToleranceRelationship::RWStepDimTol_RWGeometricToleranceRelationship ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricToleranceRelationship::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_GeometricToleranceRelationship) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"geometric_tolerance_relationship") ) return;
// Own fields of GeometricToleranceRelationship
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 1, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
data->ReadString (num, 2, "description", ach, aDescription);
Handle(StepDimTol_GeometricTolerance) aRelatingGeometricTolerance;
data->ReadEntity (num, 3, "relating_geometric_tolerance", ach, STANDARD_TYPE(StepDimTol_GeometricTolerance), aRelatingGeometricTolerance);
Handle(StepDimTol_GeometricTolerance) aRelatedGeometricTolerance;
data->ReadEntity (num, 4, "related_geometric_tolerance", ach, STANDARD_TYPE(StepDimTol_GeometricTolerance), aRelatedGeometricTolerance);
// Initialize entity
ent->Init(aName,
aDescription,
aRelatingGeometricTolerance,
aRelatedGeometricTolerance);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricToleranceRelationship::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_GeometricToleranceRelationship) &ent) const
{
// Own fields of GeometricToleranceRelationship
SW.Send (ent->Name());
SW.Send (ent->Description());
SW.Send (ent->RelatingGeometricTolerance());
SW.Send (ent->RelatedGeometricTolerance());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricToleranceRelationship::Share (const Handle(StepDimTol_GeometricToleranceRelationship) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of GeometricToleranceRelationship
iter.AddItem (ent->RelatingGeometricTolerance());
iter.AddItem (ent->RelatedGeometricTolerance());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWGeometricToleranceWithDatumReference.cdl
-- Created: Wed Jun 4 13:34:35 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWGeometricToleranceWithDatumReference from RWStepDimTol
---Purpose: Read & Write tool for GeometricToleranceWithDatumReference
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
GeometricToleranceWithDatumReference from StepDimTol
is
Create returns RWGeometricToleranceWithDatumReference from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : GeometricToleranceWithDatumReference from StepDimTol);
---Purpose: Reads GeometricToleranceWithDatumReference
WriteStep (me; SW: in out StepWriter from StepData;
ent: GeometricToleranceWithDatumReference from StepDimTol);
---Purpose: Writes GeometricToleranceWithDatumReference
Share (me; ent : GeometricToleranceWithDatumReference from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWGeometricToleranceWithDatumReference;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWGeometricToleranceWithDatumReference.cxx
// Created: Wed Jun 4 13:34:35 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWGeometricToleranceWithDatumReference.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWGeometricToleranceWithDatumReference
//purpose :
//=======================================================================
RWStepDimTol_RWGeometricToleranceWithDatumReference::RWStepDimTol_RWGeometricToleranceWithDatumReference ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricToleranceWithDatumReference::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_GeometricToleranceWithDatumReference) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"geometric_tolerance_with_datum_reference") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Own fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aDatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aDatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aDatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aDatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricToleranceWithDatumReference::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_GeometricToleranceWithDatumReference) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Own fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWGeometricToleranceWithDatumReference::Share (const Handle(StepDimTol_GeometricToleranceWithDatumReference) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Own fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWLineProfileTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWLineProfileTolerance from RWStepDimTol
---Purpose: Read & Write tool for LineProfileTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
LineProfileTolerance from StepDimTol
is
Create returns RWLineProfileTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : LineProfileTolerance from StepDimTol);
---Purpose: Reads LineProfileTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: LineProfileTolerance from StepDimTol);
---Purpose: Writes LineProfileTolerance
Share (me; ent : LineProfileTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWLineProfileTolerance;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWLineProfileTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWLineProfileTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWLineProfileTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWLineProfileTolerance::RWStepDimTol_RWLineProfileTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWLineProfileTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_LineProfileTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"line_profile_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWLineProfileTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_LineProfileTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWLineProfileTolerance::Share (const Handle(StepDimTol_LineProfileTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWModifiedGeometricTolerance.cdl
-- Created: Wed Jun 4 13:34:35 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWModifiedGeometricTolerance from RWStepDimTol
---Purpose: Read & Write tool for ModifiedGeometricTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ModifiedGeometricTolerance from StepDimTol
is
Create returns RWModifiedGeometricTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ModifiedGeometricTolerance from StepDimTol);
---Purpose: Reads ModifiedGeometricTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: ModifiedGeometricTolerance from StepDimTol);
---Purpose: Writes ModifiedGeometricTolerance
Share (me; ent : ModifiedGeometricTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWModifiedGeometricTolerance;

View File

@@ -0,0 +1,109 @@
// File: RWStepDimTol_RWModifiedGeometricTolerance.cxx
// Created: Wed Jun 4 13:34:35 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWModifiedGeometricTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWModifiedGeometricTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWModifiedGeometricTolerance::RWStepDimTol_RWModifiedGeometricTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWModifiedGeometricTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_ModifiedGeometricTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"modified_geometric_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Own fields of ModifiedGeometricTolerance
StepDimTol_LimitCondition aModifier;
if (data->ParamType (num, 5) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 5);
if (strcmp(text, ".MAXIMUM_MATERIAL_CONDITION.")==0) aModifier = StepDimTol_MaximumMaterialCondition;
else if (strcmp(text, ".LEAST_MATERIAL_CONDITION.")==0) aModifier = StepDimTol_LeastMaterialCondition;
else if (strcmp(text, ".REGARDLESS_OF_FEATURE_SIZE.")==0) aModifier = StepDimTol_RegardlessOfFeatureSize;
else ach->AddFail("Parameter #5 (modifier) has not allowed value");
}
else ach->AddFail("Parameter #5 (modifier) is not enumeration");
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aModifier);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWModifiedGeometricTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_ModifiedGeometricTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Own fields of ModifiedGeometricTolerance
switch (ent->Modifier()) {
case StepDimTol_MaximumMaterialCondition: SW.SendEnum (".MAXIMUM_MATERIAL_CONDITION."); break;
case StepDimTol_LeastMaterialCondition: SW.SendEnum (".LEAST_MATERIAL_CONDITION."); break;
case StepDimTol_RegardlessOfFeatureSize: SW.SendEnum (".REGARDLESS_OF_FEATURE_SIZE."); break;
}
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWModifiedGeometricTolerance::Share (const Handle(StepDimTol_ModifiedGeometricTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Own fields of ModifiedGeometricTolerance
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWParallelismTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWParallelismTolerance from RWStepDimTol
---Purpose: Read & Write tool for ParallelismTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ParallelismTolerance from StepDimTol
is
Create returns RWParallelismTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ParallelismTolerance from StepDimTol);
---Purpose: Reads ParallelismTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: ParallelismTolerance from StepDimTol);
---Purpose: Writes ParallelismTolerance
Share (me; ent : ParallelismTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWParallelismTolerance;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWParallelismTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWParallelismTolerance.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWParallelismTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWParallelismTolerance::RWStepDimTol_RWParallelismTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWParallelismTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_ParallelismTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"parallelism_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Inherited fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aGeometricToleranceWithDatumReference_DatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "geometric_tolerance_with_datum_reference.datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aGeometricToleranceWithDatumReference_DatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aGeometricToleranceWithDatumReference_DatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aGeometricToleranceWithDatumReference_DatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWParallelismTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_ParallelismTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWParallelismTolerance::Share (const Handle(StepDimTol_ParallelismTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWPerpendicularityTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWPerpendicularityTolerance from RWStepDimTol
---Purpose: Read & Write tool for PerpendicularityTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
PerpendicularityTolerance from StepDimTol
is
Create returns RWPerpendicularityTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : PerpendicularityTolerance from StepDimTol);
---Purpose: Reads PerpendicularityTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: PerpendicularityTolerance from StepDimTol);
---Purpose: Writes PerpendicularityTolerance
Share (me; ent : PerpendicularityTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWPerpendicularityTolerance;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWPerpendicularityTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWPerpendicularityTolerance.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWPerpendicularityTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWPerpendicularityTolerance::RWStepDimTol_RWPerpendicularityTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWPerpendicularityTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_PerpendicularityTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"perpendicularity_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Inherited fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aGeometricToleranceWithDatumReference_DatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "geometric_tolerance_with_datum_reference.datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aGeometricToleranceWithDatumReference_DatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aGeometricToleranceWithDatumReference_DatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aGeometricToleranceWithDatumReference_DatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWPerpendicularityTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_PerpendicularityTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWPerpendicularityTolerance::Share (const Handle(StepDimTol_PerpendicularityTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWPlacedDatumTargetFeature.cdl
-- Created: Wed Jun 4 13:34:33 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWPlacedDatumTargetFeature from RWStepDimTol
---Purpose: Read & Write tool for PlacedDatumTargetFeature
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
PlacedDatumTargetFeature from StepDimTol
is
Create returns RWPlacedDatumTargetFeature from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : PlacedDatumTargetFeature from StepDimTol);
---Purpose: Reads PlacedDatumTargetFeature
WriteStep (me; SW: in out StepWriter from StepData;
ent: PlacedDatumTargetFeature from StepDimTol);
---Purpose: Writes PlacedDatumTargetFeature
Share (me; ent : PlacedDatumTargetFeature from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWPlacedDatumTargetFeature;

View File

@@ -0,0 +1,98 @@
// File: RWStepDimTol_RWPlacedDatumTargetFeature.cxx
// Created: Wed Jun 4 13:34:33 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWPlacedDatumTargetFeature.ixx>
//=======================================================================
//function : RWStepDimTol_RWPlacedDatumTargetFeature
//purpose :
//=======================================================================
RWStepDimTol_RWPlacedDatumTargetFeature::RWStepDimTol_RWPlacedDatumTargetFeature ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWPlacedDatumTargetFeature::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_PlacedDatumTargetFeature) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"placed_datum_target_feature") ) return;
// Inherited fields of ShapeAspect
Handle(TCollection_HAsciiString) aShapeAspect_Name;
data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
Handle(TCollection_HAsciiString) aShapeAspect_Description;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
}
Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
StepData_Logical aShapeAspect_ProductDefinitional;
data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
// Inherited fields of DatumTarget
Handle(TCollection_HAsciiString) aDatumTarget_TargetId;
data->ReadString (num, 5, "datum_target.target_id", ach, aDatumTarget_TargetId);
// Initialize entity
ent->Init(aShapeAspect_Name,
aShapeAspect_Description,
aShapeAspect_OfShape,
aShapeAspect_ProductDefinitional,
aDatumTarget_TargetId);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWPlacedDatumTargetFeature::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_PlacedDatumTargetFeature) &ent) const
{
// Inherited fields of ShapeAspect
SW.Send (ent->StepRepr_ShapeAspect::Name());
SW.Send (ent->StepRepr_ShapeAspect::Description());
SW.Send (ent->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
// Inherited fields of DatumTarget
SW.Send (ent->StepDimTol_DatumTarget::TargetId());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWPlacedDatumTargetFeature::Share (const Handle(StepDimTol_PlacedDatumTargetFeature) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspect
iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());
// Inherited fields of DatumTarget
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWPositionTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWPositionTolerance from RWStepDimTol
---Purpose: Read & Write tool for PositionTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
PositionTolerance from StepDimTol
is
Create returns RWPositionTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : PositionTolerance from StepDimTol);
---Purpose: Reads PositionTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: PositionTolerance from StepDimTol);
---Purpose: Writes PositionTolerance
Share (me; ent : PositionTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWPositionTolerance;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWPositionTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWPositionTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWPositionTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWPositionTolerance::RWStepDimTol_RWPositionTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWPositionTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_PositionTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"position_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWPositionTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_PositionTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWPositionTolerance::Share (const Handle(StepDimTol_PositionTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWRoundnessTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWRoundnessTolerance from RWStepDimTol
---Purpose: Read & Write tool for RoundnessTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
RoundnessTolerance from StepDimTol
is
Create returns RWRoundnessTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : RoundnessTolerance from StepDimTol);
---Purpose: Reads RoundnessTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: RoundnessTolerance from StepDimTol);
---Purpose: Writes RoundnessTolerance
Share (me; ent : RoundnessTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWRoundnessTolerance;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWRoundnessTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWRoundnessTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWRoundnessTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWRoundnessTolerance::RWStepDimTol_RWRoundnessTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWRoundnessTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_RoundnessTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"roundness_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWRoundnessTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_RoundnessTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWRoundnessTolerance::Share (const Handle(StepDimTol_RoundnessTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWStraightnessTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWStraightnessTolerance from RWStepDimTol
---Purpose: Read & Write tool for StraightnessTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
StraightnessTolerance from StepDimTol
is
Create returns RWStraightnessTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : StraightnessTolerance from StepDimTol);
---Purpose: Reads StraightnessTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: StraightnessTolerance from StepDimTol);
---Purpose: Writes StraightnessTolerance
Share (me; ent : StraightnessTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWStraightnessTolerance;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWStraightnessTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWStraightnessTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWStraightnessTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWStraightnessTolerance::RWStepDimTol_RWStraightnessTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWStraightnessTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_StraightnessTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"straightness_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWStraightnessTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_StraightnessTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWStraightnessTolerance::Share (const Handle(StepDimTol_StraightnessTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWSurfaceProfileTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWSurfaceProfileTolerance from RWStepDimTol
---Purpose: Read & Write tool for SurfaceProfileTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
SurfaceProfileTolerance from StepDimTol
is
Create returns RWSurfaceProfileTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : SurfaceProfileTolerance from StepDimTol);
---Purpose: Reads SurfaceProfileTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: SurfaceProfileTolerance from StepDimTol);
---Purpose: Writes SurfaceProfileTolerance
Share (me; ent : SurfaceProfileTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWSurfaceProfileTolerance;

View File

@@ -0,0 +1,86 @@
// File: RWStepDimTol_RWSurfaceProfileTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWSurfaceProfileTolerance.ixx>
//=======================================================================
//function : RWStepDimTol_RWSurfaceProfileTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWSurfaceProfileTolerance::RWStepDimTol_RWSurfaceProfileTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWSurfaceProfileTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_SurfaceProfileTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"surface_profile_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWSurfaceProfileTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_SurfaceProfileTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWSurfaceProfileTolerance::Share (const Handle(StepDimTol_SurfaceProfileTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWSymmetryTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWSymmetryTolerance from RWStepDimTol
---Purpose: Read & Write tool for SymmetryTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
SymmetryTolerance from StepDimTol
is
Create returns RWSymmetryTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : SymmetryTolerance from StepDimTol);
---Purpose: Reads SymmetryTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: SymmetryTolerance from StepDimTol);
---Purpose: Writes SymmetryTolerance
Share (me; ent : SymmetryTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWSymmetryTolerance;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWSymmetryTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWSymmetryTolerance.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWSymmetryTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWSymmetryTolerance::RWStepDimTol_RWSymmetryTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWSymmetryTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_SymmetryTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"symmetry_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Inherited fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aGeometricToleranceWithDatumReference_DatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "geometric_tolerance_with_datum_reference.datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aGeometricToleranceWithDatumReference_DatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aGeometricToleranceWithDatumReference_DatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aGeometricToleranceWithDatumReference_DatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWSymmetryTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_SymmetryTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWSymmetryTolerance::Share (const Handle(StepDimTol_SymmetryTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepDimTol_RWTotalRunoutTolerance.cdl
-- Created: Wed Jun 4 13:34:34 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWTotalRunoutTolerance from RWStepDimTol
---Purpose: Read & Write tool for TotalRunoutTolerance
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
TotalRunoutTolerance from StepDimTol
is
Create returns RWTotalRunoutTolerance from RWStepDimTol;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : TotalRunoutTolerance from StepDimTol);
---Purpose: Reads TotalRunoutTolerance
WriteStep (me; SW: in out StepWriter from StepData;
ent: TotalRunoutTolerance from StepDimTol);
---Purpose: Writes TotalRunoutTolerance
Share (me; ent : TotalRunoutTolerance from StepDimTol;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWTotalRunoutTolerance;

View File

@@ -0,0 +1,120 @@
// File: RWStepDimTol_RWTotalRunoutTolerance.cxx
// Created: Wed Jun 4 13:34:34 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepDimTol_RWTotalRunoutTolerance.ixx>
#include <StepDimTol_HArray1OfDatumReference.hxx>
#include <StepDimTol_DatumReference.hxx>
//=======================================================================
//function : RWStepDimTol_RWTotalRunoutTolerance
//purpose :
//=======================================================================
RWStepDimTol_RWTotalRunoutTolerance::RWStepDimTol_RWTotalRunoutTolerance ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepDimTol_RWTotalRunoutTolerance::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepDimTol_TotalRunoutTolerance) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"total_runout_tolerance") ) return;
// Inherited fields of GeometricTolerance
Handle(TCollection_HAsciiString) aGeometricTolerance_Name;
data->ReadString (num, 1, "geometric_tolerance.name", ach, aGeometricTolerance_Name);
Handle(TCollection_HAsciiString) aGeometricTolerance_Description;
data->ReadString (num, 2, "geometric_tolerance.description", ach, aGeometricTolerance_Description);
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
// Inherited fields of GeometricToleranceWithDatumReference
Handle(StepDimTol_HArray1OfDatumReference) aGeometricToleranceWithDatumReference_DatumSystem;
Standard_Integer sub5 = 0;
if ( data->ReadSubList (num, 5, "geometric_tolerance_with_datum_reference.datum_system", ach, sub5) ) {
Standard_Integer nb0 = data->NbParams(sub5);
aGeometricToleranceWithDatumReference_DatumSystem = new StepDimTol_HArray1OfDatumReference (1, nb0);
Standard_Integer num2 = sub5;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepDimTol_DatumReference) anIt0;
data->ReadEntity (num2, i0, "datum_reference", ach, STANDARD_TYPE(StepDimTol_DatumReference), anIt0);
aGeometricToleranceWithDatumReference_DatumSystem->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aGeometricTolerance_Name,
aGeometricTolerance_Description,
aGeometricTolerance_Magnitude,
aGeometricTolerance_TolerancedShapeAspect,
aGeometricToleranceWithDatumReference_DatumSystem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepDimTol_RWTotalRunoutTolerance::WriteStep (StepData_StepWriter& SW,
const Handle(StepDimTol_TotalRunoutTolerance) &ent) const
{
// Inherited fields of GeometricTolerance
SW.Send (ent->StepDimTol_GeometricTolerance::Name());
SW.Send (ent->StepDimTol_GeometricTolerance::Description());
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
SW.OpenSub();
for (Standard_Integer i4=1; i4 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i4++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i4);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepDimTol_RWTotalRunoutTolerance::Share (const Handle(StepDimTol_TotalRunoutTolerance) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of GeometricTolerance
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
// Inherited fields of GeometricToleranceWithDatumReference
for (Standard_Integer i3=1; i3 <= ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Length(); i3++ ) {
Handle(StepDimTol_DatumReference) Var0 = ent->StepDimTol_GeometricToleranceWithDatumReference::DatumSystem()->Value(i3);
iter.AddItem (Var0);
}
}