mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
31
src/RWStepElement/RWStepElement.cdl
Executable file
31
src/RWStepElement/RWStepElement.cdl
Executable file
@@ -0,0 +1,31 @@
|
||||
-- File: RWStepElement.cdl
|
||||
-- Created: Thu Dec 12 17:22:36 2002
|
||||
-- Author: data exchange team
|
||||
-- <det@doomox>
|
||||
---Copyright: Matra Datavision 2002
|
||||
|
||||
package RWStepElement
|
||||
|
||||
uses
|
||||
|
||||
StepData, Interface, TCollection, TColStd, StepElement
|
||||
|
||||
is
|
||||
|
||||
class RWAnalysisItemWithinRepresentation;
|
||||
class RWCurve3dElementDescriptor;
|
||||
class RWCurveElementEndReleasePacket;
|
||||
class RWCurveElementSectionDefinition;
|
||||
class RWCurveElementSectionDerivedDefinitions;
|
||||
class RWElementDescriptor;
|
||||
class RWElementMaterial;
|
||||
class RWSurface3dElementDescriptor;
|
||||
class RWSurfaceElementProperty;
|
||||
class RWSurfaceSection;
|
||||
class RWSurfaceSectionField;
|
||||
class RWSurfaceSectionFieldConstant;
|
||||
class RWSurfaceSectionFieldVarying;
|
||||
class RWUniformSurfaceSection;
|
||||
class RWVolume3dElementDescriptor;
|
||||
|
||||
end;
|
35
src/RWStepElement/RWStepElement_RWAnalysisItemWithinRepresentation.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWAnalysisItemWithinRepresentation.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWAnalysisItemWithinRepresentation.cdl
|
||||
-- Created: Thu Dec 12 17:28:59 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWAnalysisItemWithinRepresentation from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for AnalysisItemWithinRepresentation
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
AnalysisItemWithinRepresentation from StepElement
|
||||
|
||||
is
|
||||
Create returns RWAnalysisItemWithinRepresentation from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : AnalysisItemWithinRepresentation from StepElement);
|
||||
---Purpose: Reads AnalysisItemWithinRepresentation
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: AnalysisItemWithinRepresentation from StepElement);
|
||||
---Purpose: Writes AnalysisItemWithinRepresentation
|
||||
|
||||
Share (me; ent : AnalysisItemWithinRepresentation from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWAnalysisItemWithinRepresentation;
|
86
src/RWStepElement/RWStepElement_RWAnalysisItemWithinRepresentation.cxx
Executable file
86
src/RWStepElement/RWStepElement_RWAnalysisItemWithinRepresentation.cxx
Executable file
@@ -0,0 +1,86 @@
|
||||
// File: RWStepElement_RWAnalysisItemWithinRepresentation.cxx
|
||||
// Created: Thu Dec 12 17:28:59 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWAnalysisItemWithinRepresentation.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWAnalysisItemWithinRepresentation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWAnalysisItemWithinRepresentation::RWStepElement_RWAnalysisItemWithinRepresentation ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWAnalysisItemWithinRepresentation::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_AnalysisItemWithinRepresentation) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"analysis_item_within_representation") ) return;
|
||||
|
||||
// Own fields of AnalysisItemWithinRepresentation
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
data->ReadString (num, 1, "name", ach, aName);
|
||||
|
||||
Handle(TCollection_HAsciiString) aDescription;
|
||||
data->ReadString (num, 2, "description", ach, aDescription);
|
||||
|
||||
Handle(StepRepr_RepresentationItem) aItem;
|
||||
data->ReadEntity (num, 3, "item", ach, STANDARD_TYPE(StepRepr_RepresentationItem), aItem);
|
||||
|
||||
Handle(StepRepr_Representation) aRep;
|
||||
data->ReadEntity (num, 4, "rep", ach, STANDARD_TYPE(StepRepr_Representation), aRep);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aName,
|
||||
aDescription,
|
||||
aItem,
|
||||
aRep);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWAnalysisItemWithinRepresentation::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_AnalysisItemWithinRepresentation) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of AnalysisItemWithinRepresentation
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
SW.Send (ent->Description());
|
||||
|
||||
SW.Send (ent->Item());
|
||||
|
||||
SW.Send (ent->Rep());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWAnalysisItemWithinRepresentation::Share (const Handle(StepElement_AnalysisItemWithinRepresentation) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of AnalysisItemWithinRepresentation
|
||||
|
||||
iter.AddItem (ent->Item());
|
||||
|
||||
iter.AddItem (ent->Rep());
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWCurve3dElementDescriptor.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWCurve3dElementDescriptor.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWCurve3dElementDescriptor.cdl
|
||||
-- Created: Thu Dec 12 17:28:59 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWCurve3dElementDescriptor from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for Curve3dElementDescriptor
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
Curve3dElementDescriptor from StepElement
|
||||
|
||||
is
|
||||
Create returns RWCurve3dElementDescriptor from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : Curve3dElementDescriptor from StepElement);
|
||||
---Purpose: Reads Curve3dElementDescriptor
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: Curve3dElementDescriptor from StepElement);
|
||||
---Purpose: Writes Curve3dElementDescriptor
|
||||
|
||||
Share (me; ent : Curve3dElementDescriptor from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWCurve3dElementDescriptor;
|
137
src/RWStepElement/RWStepElement_RWCurve3dElementDescriptor.cxx
Executable file
137
src/RWStepElement/RWStepElement_RWCurve3dElementDescriptor.cxx
Executable file
@@ -0,0 +1,137 @@
|
||||
// File: RWStepElement_RWCurve3dElementDescriptor.cxx
|
||||
// Created: Thu Dec 12 17:28:59 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWCurve3dElementDescriptor.ixx>
|
||||
#include <StepElement_CurveElementPurposeMember.hxx>
|
||||
#include <StepElement_HArray1OfHSequenceOfCurveElementPurposeMember.hxx>
|
||||
#include <StepElement_HSequenceOfCurveElementPurposeMember.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWCurve3dElementDescriptor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWCurve3dElementDescriptor::RWStepElement_RWCurve3dElementDescriptor ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurve3dElementDescriptor::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_Curve3dElementDescriptor) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,3,ach,"curve3d_element_descriptor") ) return;
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
StepElement_ElementOrder aElementDescriptor_TopologyOrder;
|
||||
if (data->ParamType (num, 1) == Interface_ParamEnum) {
|
||||
Standard_CString text = data->ParamCValue(num, 1);
|
||||
if (strcmp(text, ".LINEAR.")==0) aElementDescriptor_TopologyOrder = StepElement_Linear;
|
||||
else if (strcmp(text, ".QUADRATIC.")==0) aElementDescriptor_TopologyOrder = StepElement_Quadratic;
|
||||
else if (strcmp(text, ".CUBIC.")==0) aElementDescriptor_TopologyOrder = StepElement_Cubic;
|
||||
else ach->AddFail("Parameter #1 (element_descriptor.topology_order) has not allowed value");
|
||||
}
|
||||
else ach->AddFail("Parameter #1 (element_descriptor.topology_order) is not enumeration");
|
||||
|
||||
Handle(TCollection_HAsciiString) aElementDescriptor_Description;
|
||||
data->ReadString (num, 2, "element_descriptor.description", ach, aElementDescriptor_Description);
|
||||
|
||||
// Own fields of Curve3dElementDescriptor
|
||||
|
||||
Handle(StepElement_HArray1OfHSequenceOfCurveElementPurposeMember) aPurpose;
|
||||
Standard_Integer sub3 = 0;
|
||||
if ( data->ReadSubList (num, 3, "purpose", ach, sub3) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub3);
|
||||
//Standard_Integer nbj0 = data->NbParams(data->ParamNumber(sub3,1));
|
||||
aPurpose = new StepElement_HArray1OfHSequenceOfCurveElementPurposeMember (1, nb0);
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
Handle(StepElement_HSequenceOfCurveElementPurposeMember) HSCEPM =
|
||||
new StepElement_HSequenceOfCurveElementPurposeMember;
|
||||
Standard_Integer subj3 = 0;
|
||||
if ( data->ReadSubList (sub3, i0, "sub-part(purpose)", ach, subj3) ) {
|
||||
Standard_Integer num4 = subj3;
|
||||
Standard_Integer nbj0 = data->NbParams(data->ParamNumber(sub3,i0));
|
||||
for ( Standard_Integer j0=1; j0 <= nbj0; j0++ ) {
|
||||
Handle(StepElement_CurveElementPurposeMember) aMember = new StepElement_CurveElementPurposeMember;
|
||||
data->ReadMember(num4, j0, "curve_element_purpose", ach, aMember);
|
||||
//data->ReadEntity (num4, j0, "curve_element_purpose", ach, anIt0);
|
||||
HSCEPM->Append(aMember);
|
||||
}
|
||||
}
|
||||
aPurpose->SetValue(i0, HSCEPM);
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aElementDescriptor_TopologyOrder,
|
||||
aElementDescriptor_Description,
|
||||
aPurpose);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurve3dElementDescriptor::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_Curve3dElementDescriptor) &ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
switch (ent->StepElement_ElementDescriptor::TopologyOrder()) {
|
||||
case StepElement_Linear: SW.SendEnum (".LINEAR."); break;
|
||||
case StepElement_Quadratic: SW.SendEnum (".QUADRATIC."); break;
|
||||
case StepElement_Cubic: SW.SendEnum (".CUBIC."); break;
|
||||
}
|
||||
|
||||
SW.Send (ent->StepElement_ElementDescriptor::Description());
|
||||
|
||||
// Own fields of Curve3dElementDescriptor
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2=1; i2 <= ent->Purpose()->Length(); i2++ ) {
|
||||
SW.NewLine(Standard_False);
|
||||
SW.OpenSub();
|
||||
Handle(StepElement_HSequenceOfCurveElementPurposeMember) HSCEPM = ent->Purpose()->Value(i2);
|
||||
for (Standard_Integer j2=1; j2 <= HSCEPM->Length(); j2++ ) {
|
||||
Handle(StepElement_CurveElementPurposeMember) Var0 = HSCEPM->Value(j2);
|
||||
SW.Send (Var0);
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurve3dElementDescriptor::Share (const Handle(StepElement_Curve3dElementDescriptor) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
// Own fields of Curve3dElementDescriptor
|
||||
/* CKY 17JUN04. Content is made of strings and enums. No entity !
|
||||
for (Standard_Integer i1=1; i1 <= ent->Purpose()->Length(); i1++ ) {
|
||||
Handle(StepElement_HSequenceOfCurveElementPurposeMember) HSCEPM = ent->Purpose()->Value(i1);
|
||||
for (Standard_Integer i2=1; i2 <= HSCEPM->Length(); i2++ ) {
|
||||
Handle(StepElement_CurveElementPurposeMember) Var1 = HSCEPM->Value(i2);
|
||||
iter.AddItem (Var1);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWCurveElementEndReleasePacket.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWCurveElementEndReleasePacket.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWCurveElementEndReleasePacket.cdl
|
||||
-- Created: Thu Dec 12 17:29:00 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWCurveElementEndReleasePacket from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for CurveElementEndReleasePacket
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
CurveElementEndReleasePacket from StepElement
|
||||
|
||||
is
|
||||
Create returns RWCurveElementEndReleasePacket from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : CurveElementEndReleasePacket from StepElement);
|
||||
---Purpose: Reads CurveElementEndReleasePacket
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: CurveElementEndReleasePacket from StepElement);
|
||||
---Purpose: Writes CurveElementEndReleasePacket
|
||||
|
||||
Share (me; ent : CurveElementEndReleasePacket from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWCurveElementEndReleasePacket;
|
72
src/RWStepElement/RWStepElement_RWCurveElementEndReleasePacket.cxx
Executable file
72
src/RWStepElement/RWStepElement_RWCurveElementEndReleasePacket.cxx
Executable file
@@ -0,0 +1,72 @@
|
||||
// File: RWStepElement_RWCurveElementEndReleasePacket.cxx
|
||||
// Created: Thu Dec 12 17:29:00 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWCurveElementEndReleasePacket.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWCurveElementEndReleasePacket
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWCurveElementEndReleasePacket::RWStepElement_RWCurveElementEndReleasePacket ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementEndReleasePacket::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_CurveElementEndReleasePacket) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"curve_element_end_release_packet") ) return;
|
||||
|
||||
// Own fields of CurveElementEndReleasePacket
|
||||
|
||||
StepElement_CurveElementFreedom aReleaseFreedom;
|
||||
data->ReadEntity (num, 1, "release_freedom", ach, aReleaseFreedom);
|
||||
|
||||
Standard_Real aReleaseStiffness;
|
||||
data->ReadReal (num, 2, "release_stiffness", ach, aReleaseStiffness);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aReleaseFreedom,
|
||||
aReleaseStiffness);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementEndReleasePacket::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_CurveElementEndReleasePacket) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of CurveElementEndReleasePacket
|
||||
|
||||
SW.Send (ent->ReleaseFreedom().Value());
|
||||
|
||||
SW.Send (ent->ReleaseStiffness());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementEndReleasePacket::Share (const Handle(StepElement_CurveElementEndReleasePacket) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of CurveElementEndReleasePacket
|
||||
|
||||
iter.AddItem (ent->ReleaseFreedom().Value());
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWCurveElementSectionDefinition.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWCurveElementSectionDefinition.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWCurveElementSectionDefinition.cdl
|
||||
-- Created: Thu Dec 12 17:29:00 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWCurveElementSectionDefinition from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for CurveElementSectionDefinition
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
CurveElementSectionDefinition from StepElement
|
||||
|
||||
is
|
||||
Create returns RWCurveElementSectionDefinition from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : CurveElementSectionDefinition from StepElement);
|
||||
---Purpose: Reads CurveElementSectionDefinition
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: CurveElementSectionDefinition from StepElement);
|
||||
---Purpose: Writes CurveElementSectionDefinition
|
||||
|
||||
Share (me; ent : CurveElementSectionDefinition from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWCurveElementSectionDefinition;
|
70
src/RWStepElement/RWStepElement_RWCurveElementSectionDefinition.cxx
Executable file
70
src/RWStepElement/RWStepElement_RWCurveElementSectionDefinition.cxx
Executable file
@@ -0,0 +1,70 @@
|
||||
// File: RWStepElement_RWCurveElementSectionDefinition.cxx
|
||||
// Created: Thu Dec 12 17:29:00 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWCurveElementSectionDefinition.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWCurveElementSectionDefinition
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWCurveElementSectionDefinition::RWStepElement_RWCurveElementSectionDefinition ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementSectionDefinition::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_CurveElementSectionDefinition) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"curve_element_section_definition") ) return;
|
||||
|
||||
// Own fields of CurveElementSectionDefinition
|
||||
|
||||
Handle(TCollection_HAsciiString) aDescription;
|
||||
data->ReadString (num, 1, "description", ach, aDescription);
|
||||
|
||||
Standard_Real aSectionAngle;
|
||||
data->ReadReal (num, 2, "section_angle", ach, aSectionAngle);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aDescription,
|
||||
aSectionAngle);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementSectionDefinition::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_CurveElementSectionDefinition) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of CurveElementSectionDefinition
|
||||
|
||||
SW.Send (ent->Description());
|
||||
|
||||
SW.Send (ent->SectionAngle());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementSectionDefinition::Share (const Handle(StepElement_CurveElementSectionDefinition) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of CurveElementSectionDefinition
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWCurveElementSectionDerivedDefinitions.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWCurveElementSectionDerivedDefinitions.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWCurveElementSectionDerivedDefinitions.cdl
|
||||
-- Created: Thu Dec 12 17:29:00 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWCurveElementSectionDerivedDefinitions from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for CurveElementSectionDerivedDefinitions
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
CurveElementSectionDerivedDefinitions from StepElement
|
||||
|
||||
is
|
||||
Create returns RWCurveElementSectionDerivedDefinitions from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : CurveElementSectionDerivedDefinitions from StepElement);
|
||||
---Purpose: Reads CurveElementSectionDerivedDefinitions
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: CurveElementSectionDerivedDefinitions from StepElement);
|
||||
---Purpose: Writes CurveElementSectionDerivedDefinitions
|
||||
|
||||
Share (me; ent : CurveElementSectionDerivedDefinitions from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWCurveElementSectionDerivedDefinitions;
|
247
src/RWStepElement/RWStepElement_RWCurveElementSectionDerivedDefinitions.cxx
Executable file
247
src/RWStepElement/RWStepElement_RWCurveElementSectionDerivedDefinitions.cxx
Executable file
@@ -0,0 +1,247 @@
|
||||
// File: RWStepElement_RWCurveElementSectionDerivedDefinitions.cxx
|
||||
// Created: Thu Dec 12 17:29:00 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWCurveElementSectionDerivedDefinitions.ixx>
|
||||
#include <StepElement_HArray1OfMeasureOrUnspecifiedValue.hxx>
|
||||
#include <StepElement_MeasureOrUnspecifiedValue.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <StepElement_HArray1OfMeasureOrUnspecifiedValue.hxx>
|
||||
#include <StepElement_MeasureOrUnspecifiedValue.hxx>
|
||||
#include <StepElement_HArray1OfMeasureOrUnspecifiedValue.hxx>
|
||||
#include <StepElement_MeasureOrUnspecifiedValue.hxx>
|
||||
#include <StepElement_HArray1OfMeasureOrUnspecifiedValue.hxx>
|
||||
#include <StepElement_MeasureOrUnspecifiedValue.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWCurveElementSectionDerivedDefinitions
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWCurveElementSectionDerivedDefinitions::RWStepElement_RWCurveElementSectionDerivedDefinitions ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementSectionDerivedDefinitions::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_CurveElementSectionDerivedDefinitions) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,12,ach,"curve_element_section_derived_definitions") ) return;
|
||||
|
||||
// Inherited fields of CurveElementSectionDefinition
|
||||
|
||||
Handle(TCollection_HAsciiString) aCurveElementSectionDefinition_Description;
|
||||
data->ReadString (num, 1, "curve_element_section_definition.description", ach, aCurveElementSectionDefinition_Description);
|
||||
|
||||
Standard_Real aCurveElementSectionDefinition_SectionAngle;
|
||||
data->ReadReal (num, 2, "curve_element_section_definition.section_angle", ach, aCurveElementSectionDefinition_SectionAngle);
|
||||
|
||||
// Own fields of CurveElementSectionDerivedDefinitions
|
||||
|
||||
Standard_Real aCrossSectionalArea;
|
||||
data->ReadReal (num, 3, "cross_sectional_area", ach, aCrossSectionalArea);
|
||||
|
||||
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) aShearArea;
|
||||
Standard_Integer sub4 = 0;
|
||||
if ( data->ReadSubList (num, 4, "shear_area", ach, sub4) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub4);
|
||||
aShearArea = new StepElement_HArray1OfMeasureOrUnspecifiedValue (1, nb0);
|
||||
Standard_Integer num2 = sub4;
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue anIt0;
|
||||
data->ReadEntity (num2, i0, "measure_or_unspecified_value", ach, anIt0);
|
||||
aShearArea->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(TColStd_HArray1OfReal) aSecondMomentOfArea;
|
||||
Standard_Integer sub5 = 0;
|
||||
if ( data->ReadSubList (num, 5, "second_moment_of_area", ach, sub5) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub5);
|
||||
aSecondMomentOfArea = new TColStd_HArray1OfReal (1, nb0);
|
||||
Standard_Integer num2 = sub5;
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
Standard_Real anIt0;
|
||||
data->ReadReal (num2, i0, "real", ach, anIt0);
|
||||
aSecondMomentOfArea->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
|
||||
Standard_Real aTorsionalConstant;
|
||||
data->ReadReal (num, 6, "torsional_constant", ach, aTorsionalConstant);
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aWarpingConstant;
|
||||
data->ReadEntity (num, 7, "warping_constant", ach, aWarpingConstant);
|
||||
|
||||
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) aLocationOfCentroid;
|
||||
Standard_Integer sub8 = 0;
|
||||
if ( data->ReadSubList (num, 8, "location_of_centroid", ach, sub8) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub8);
|
||||
aLocationOfCentroid = new StepElement_HArray1OfMeasureOrUnspecifiedValue (1, nb0);
|
||||
Standard_Integer num2 = sub8;
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue anIt0;
|
||||
data->ReadEntity (num2, i0, "measure_or_unspecified_value", ach, anIt0);
|
||||
aLocationOfCentroid->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) aLocationOfShearCentre;
|
||||
Standard_Integer sub9 = 0;
|
||||
if ( data->ReadSubList (num, 9, "location_of_shear_centre", ach, sub9) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub9);
|
||||
aLocationOfShearCentre = new StepElement_HArray1OfMeasureOrUnspecifiedValue (1, nb0);
|
||||
Standard_Integer num2 = sub9;
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue anIt0;
|
||||
data->ReadEntity (num2, i0, "measure_or_unspecified_value", ach, anIt0);
|
||||
aLocationOfShearCentre->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) aLocationOfNonStructuralMass;
|
||||
Standard_Integer sub10 = 0;
|
||||
if ( data->ReadSubList (num, 10, "location_of_non_structural_mass", ach, sub10) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub10);
|
||||
aLocationOfNonStructuralMass = new StepElement_HArray1OfMeasureOrUnspecifiedValue (1, nb0);
|
||||
Standard_Integer num2 = sub10;
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue anIt0;
|
||||
data->ReadEntity (num2, i0, "measure_or_unspecified_value", ach, anIt0);
|
||||
aLocationOfNonStructuralMass->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aNonStructuralMass;
|
||||
data->ReadEntity (num, 11, "non_structural_mass", ach, aNonStructuralMass);
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aPolarMoment;
|
||||
data->ReadEntity (num, 12, "polar_moment", ach, aPolarMoment);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aCurveElementSectionDefinition_Description,
|
||||
aCurveElementSectionDefinition_SectionAngle,
|
||||
aCrossSectionalArea,
|
||||
aShearArea,
|
||||
aSecondMomentOfArea,
|
||||
aTorsionalConstant,
|
||||
aWarpingConstant,
|
||||
aLocationOfCentroid,
|
||||
aLocationOfShearCentre,
|
||||
aLocationOfNonStructuralMass,
|
||||
aNonStructuralMass,
|
||||
aPolarMoment);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementSectionDerivedDefinitions::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_CurveElementSectionDerivedDefinitions) &ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of CurveElementSectionDefinition
|
||||
|
||||
SW.Send (ent->StepElement_CurveElementSectionDefinition::Description());
|
||||
|
||||
SW.Send (ent->StepElement_CurveElementSectionDefinition::SectionAngle());
|
||||
|
||||
// Own fields of CurveElementSectionDerivedDefinitions
|
||||
|
||||
SW.Send (ent->CrossSectionalArea());
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3=1; i3 <= ent->ShearArea()->Length(); i3++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue Var0 = ent->ShearArea()->Value(i3);
|
||||
SW.Send (Var0.Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i4=1; i4 <= ent->SecondMomentOfArea()->Length(); i4++ ) {
|
||||
Standard_Real Var0 = ent->SecondMomentOfArea()->Value(i4);
|
||||
SW.Send (Var0);
|
||||
}
|
||||
SW.CloseSub();
|
||||
|
||||
SW.Send (ent->TorsionalConstant());
|
||||
|
||||
SW.Send (ent->WarpingConstant().Value());
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i7=1; i7 <= ent->LocationOfCentroid()->Length(); i7++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue Var0 = ent->LocationOfCentroid()->Value(i7);
|
||||
SW.Send (Var0.Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i8=1; i8 <= ent->LocationOfShearCentre()->Length(); i8++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue Var0 = ent->LocationOfShearCentre()->Value(i8);
|
||||
SW.Send (Var0.Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i9=1; i9 <= ent->LocationOfNonStructuralMass()->Length(); i9++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue Var0 = ent->LocationOfNonStructuralMass()->Value(i9);
|
||||
SW.Send (Var0.Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
|
||||
SW.Send (ent->NonStructuralMass().Value());
|
||||
|
||||
SW.Send (ent->PolarMoment().Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWCurveElementSectionDerivedDefinitions::Share (const Handle(StepElement_CurveElementSectionDerivedDefinitions) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of CurveElementSectionDefinition
|
||||
|
||||
// Own fields of CurveElementSectionDerivedDefinitions
|
||||
|
||||
for (Standard_Integer i1=1; i1 <= ent->ShearArea()->Length(); i1++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue Var0 = ent->ShearArea()->Value(i1);
|
||||
iter.AddItem (Var0.Value());
|
||||
}
|
||||
|
||||
iter.AddItem (ent->WarpingConstant().Value());
|
||||
|
||||
for (Standard_Integer i3=1; i3 <= ent->LocationOfCentroid()->Length(); i3++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue Var0 = ent->LocationOfCentroid()->Value(i3);
|
||||
iter.AddItem (Var0.Value());
|
||||
}
|
||||
|
||||
for (Standard_Integer i4=1; i4 <= ent->LocationOfShearCentre()->Length(); i4++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue Var0 = ent->LocationOfShearCentre()->Value(i4);
|
||||
iter.AddItem (Var0.Value());
|
||||
}
|
||||
|
||||
for (Standard_Integer i5=1; i5 <= ent->LocationOfNonStructuralMass()->Length(); i5++ ) {
|
||||
StepElement_MeasureOrUnspecifiedValue Var0 = ent->LocationOfNonStructuralMass()->Value(i5);
|
||||
iter.AddItem (Var0.Value());
|
||||
}
|
||||
|
||||
iter.AddItem (ent->NonStructuralMass().Value());
|
||||
|
||||
iter.AddItem (ent->PolarMoment().Value());
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWElementDescriptor.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWElementDescriptor.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWElementDescriptor.cdl
|
||||
-- Created: Thu Dec 12 17:29:01 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWElementDescriptor from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for ElementDescriptor
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
ElementDescriptor from StepElement
|
||||
|
||||
is
|
||||
Create returns RWElementDescriptor from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : ElementDescriptor from StepElement);
|
||||
---Purpose: Reads ElementDescriptor
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: ElementDescriptor from StepElement);
|
||||
---Purpose: Writes ElementDescriptor
|
||||
|
||||
Share (me; ent : ElementDescriptor from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWElementDescriptor;
|
81
src/RWStepElement/RWStepElement_RWElementDescriptor.cxx
Executable file
81
src/RWStepElement/RWStepElement_RWElementDescriptor.cxx
Executable file
@@ -0,0 +1,81 @@
|
||||
// File: RWStepElement_RWElementDescriptor.cxx
|
||||
// Created: Thu Dec 12 17:29:01 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWElementDescriptor.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWElementDescriptor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWElementDescriptor::RWStepElement_RWElementDescriptor ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWElementDescriptor::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_ElementDescriptor) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"element_descriptor") ) return;
|
||||
|
||||
// Own fields of ElementDescriptor
|
||||
|
||||
StepElement_ElementOrder aTopologyOrder;
|
||||
if (data->ParamType (num, 1) == Interface_ParamEnum) {
|
||||
Standard_CString text = data->ParamCValue(num, 1);
|
||||
if (strcmp(text, ".LINEAR.")) aTopologyOrder = StepElement_Linear;
|
||||
else if (strcmp(text, ".QUADRATIC.")) aTopologyOrder = StepElement_Quadratic;
|
||||
else if (strcmp(text, ".CUBIC.")) aTopologyOrder = StepElement_Cubic;
|
||||
else ach->AddFail("Parameter #1 (topology_order) has not allowed value");
|
||||
}
|
||||
else ach->AddFail("Parameter #1 (topology_order) is not enumeration");
|
||||
|
||||
Handle(TCollection_HAsciiString) aDescription;
|
||||
data->ReadString (num, 2, "description", ach, aDescription);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aTopologyOrder,
|
||||
aDescription);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWElementDescriptor::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_ElementDescriptor) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of ElementDescriptor
|
||||
|
||||
switch (ent->TopologyOrder()) {
|
||||
case StepElement_Linear: SW.SendEnum (".LINEAR."); break;
|
||||
case StepElement_Quadratic: SW.SendEnum (".QUADRATIC."); break;
|
||||
case StepElement_Cubic: SW.SendEnum (".CUBIC."); break;
|
||||
}
|
||||
|
||||
SW.Send (ent->Description());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWElementDescriptor::Share (const Handle(StepElement_ElementDescriptor) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of ElementDescriptor
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWElementMaterial.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWElementMaterial.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWElementMaterial.cdl
|
||||
-- Created: Thu Dec 12 17:29:01 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWElementMaterial from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for ElementMaterial
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
ElementMaterial from StepElement
|
||||
|
||||
is
|
||||
Create returns RWElementMaterial from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : ElementMaterial from StepElement);
|
||||
---Purpose: Reads ElementMaterial
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: ElementMaterial from StepElement);
|
||||
---Purpose: Writes ElementMaterial
|
||||
|
||||
Share (me; ent : ElementMaterial from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWElementMaterial;
|
98
src/RWStepElement/RWStepElement_RWElementMaterial.cxx
Executable file
98
src/RWStepElement/RWStepElement_RWElementMaterial.cxx
Executable file
@@ -0,0 +1,98 @@
|
||||
// File: RWStepElement_RWElementMaterial.cxx
|
||||
// Created: Thu Dec 12 17:29:01 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWElementMaterial.ixx>
|
||||
#include <StepRepr_HArray1OfMaterialPropertyRepresentation.hxx>
|
||||
#include <StepRepr_MaterialPropertyRepresentation.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWElementMaterial
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWElementMaterial::RWStepElement_RWElementMaterial ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWElementMaterial::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_ElementMaterial) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,3,ach,"element_material") ) return;
|
||||
|
||||
// Own fields of ElementMaterial
|
||||
|
||||
Handle(TCollection_HAsciiString) aMaterialId;
|
||||
data->ReadString (num, 1, "material_id", ach, aMaterialId);
|
||||
|
||||
Handle(TCollection_HAsciiString) aDescription;
|
||||
data->ReadString (num, 2, "description", ach, aDescription);
|
||||
|
||||
Handle(StepRepr_HArray1OfMaterialPropertyRepresentation) aProperties;
|
||||
Standard_Integer sub3 = 0;
|
||||
if ( data->ReadSubList (num, 3, "properties", ach, sub3) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub3);
|
||||
aProperties = new StepRepr_HArray1OfMaterialPropertyRepresentation (1, nb0);
|
||||
Standard_Integer num2 = sub3;
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
Handle(StepRepr_MaterialPropertyRepresentation) anIt0;
|
||||
data->ReadEntity (num2, i0, "material_property_representation", ach, STANDARD_TYPE(StepRepr_MaterialPropertyRepresentation), anIt0);
|
||||
aProperties->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aMaterialId,
|
||||
aDescription,
|
||||
aProperties);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWElementMaterial::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_ElementMaterial) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of ElementMaterial
|
||||
|
||||
SW.Send (ent->MaterialId());
|
||||
|
||||
SW.Send (ent->Description());
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2=1; i2 <= ent->Properties()->Length(); i2++ ) {
|
||||
Handle(StepRepr_MaterialPropertyRepresentation) Var0 = ent->Properties()->Value(i2);
|
||||
SW.Send (Var0);
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWElementMaterial::Share (const Handle(StepElement_ElementMaterial) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of ElementMaterial
|
||||
|
||||
for (Standard_Integer i1=1; i1 <= ent->Properties()->Length(); i1++ ) {
|
||||
Handle(StepRepr_MaterialPropertyRepresentation) Var0 = ent->Properties()->Value(i1);
|
||||
iter.AddItem (Var0);
|
||||
}
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWSurface3dElementDescriptor.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWSurface3dElementDescriptor.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWSurface3dElementDescriptor.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWSurface3dElementDescriptor from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for Surface3dElementDescriptor
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
Surface3dElementDescriptor from StepElement
|
||||
|
||||
is
|
||||
Create returns RWSurface3dElementDescriptor from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : Surface3dElementDescriptor from StepElement);
|
||||
---Purpose: Reads Surface3dElementDescriptor
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: Surface3dElementDescriptor from StepElement);
|
||||
---Purpose: Writes Surface3dElementDescriptor
|
||||
|
||||
Share (me; ent : Surface3dElementDescriptor from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWSurface3dElementDescriptor;
|
151
src/RWStepElement/RWStepElement_RWSurface3dElementDescriptor.cxx
Executable file
151
src/RWStepElement/RWStepElement_RWSurface3dElementDescriptor.cxx
Executable file
@@ -0,0 +1,151 @@
|
||||
// File: RWStepElement_RWSurface3dElementDescriptor.cxx
|
||||
// Created: Thu Dec 12 17:29:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWSurface3dElementDescriptor.ixx>
|
||||
#include <StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember.hxx>
|
||||
#include <StepElement_HSequenceOfSurfaceElementPurposeMember.hxx>
|
||||
#include <StepElement_SurfaceElementPurposeMember.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWSurface3dElementDescriptor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWSurface3dElementDescriptor::RWStepElement_RWSurface3dElementDescriptor ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurface3dElementDescriptor::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_Surface3dElementDescriptor) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"surface3d_element_descriptor") ) return;
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
StepElement_ElementOrder aElementDescriptor_TopologyOrder;
|
||||
if (data->ParamType (num, 1) == Interface_ParamEnum) {
|
||||
Standard_CString text = data->ParamCValue(num, 1);
|
||||
if (!strcmp(text, ".LINEAR.")) aElementDescriptor_TopologyOrder = StepElement_Linear;
|
||||
else if (!strcmp(text, ".QUADRATIC.")) aElementDescriptor_TopologyOrder = StepElement_Quadratic;
|
||||
else if (!strcmp(text, ".CUBIC.")) aElementDescriptor_TopologyOrder = StepElement_Cubic;
|
||||
else ach->AddFail("Parameter #1 (element_descriptor.topology_order) has not allowed value");
|
||||
}
|
||||
else ach->AddFail("Parameter #1 (element_descriptor.topology_order) is not enumeration");
|
||||
|
||||
Handle(TCollection_HAsciiString) aElementDescriptor_Description;
|
||||
data->ReadString (num, 2, "element_descriptor.description", ach, aElementDescriptor_Description);
|
||||
|
||||
// Own fields of Surface3dElementDescriptor
|
||||
|
||||
Handle(StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember) aPurpose;
|
||||
Standard_Integer sub3 = 0;
|
||||
if ( data->ReadSubList (num, 3, "purpose", ach, sub3) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub3);
|
||||
//Standard_Integer nbj0 = data->NbParams(data->ParamNumber(sub3,1));
|
||||
aPurpose = new StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember (1, nb0);
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
Handle(StepElement_HSequenceOfSurfaceElementPurposeMember) HSSEPM =
|
||||
new StepElement_HSequenceOfSurfaceElementPurposeMember;
|
||||
Standard_Integer subj3 = 0;
|
||||
if ( data->ReadSubList (sub3, i0, "sub-part(purpose)", ach, subj3) ) {
|
||||
Standard_Integer num4 = subj3;
|
||||
Standard_Integer nbj0 = data->NbParams(data->ParamNumber(sub3,i0));
|
||||
for ( Standard_Integer j0=1; j0 <= nbj0; j0++ ) {
|
||||
Handle(StepElement_SurfaceElementPurposeMember) aMember = new StepElement_SurfaceElementPurposeMember;
|
||||
data->ReadMember (num4, j0, "surface_element_purpose", ach, aMember);
|
||||
HSSEPM->Append(aMember);
|
||||
}
|
||||
}
|
||||
aPurpose->SetValue(i0, HSSEPM);
|
||||
}
|
||||
}
|
||||
|
||||
StepElement_Element2dShape aShape;
|
||||
if (data->ParamType (num, 4) == Interface_ParamEnum) {
|
||||
Standard_CString text = data->ParamCValue(num, 4);
|
||||
if (!strcmp(text, ".QUADRILATERAL.")) aShape = StepElement_Quadrilateral;
|
||||
else if (!strcmp(text, ".TRIANGLE.")) aShape = StepElement_Triangle;
|
||||
else ach->AddFail("Parameter #4 (shape) has not allowed value");
|
||||
}
|
||||
else ach->AddFail("Parameter #4 (shape) is not enumeration");
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aElementDescriptor_TopologyOrder,
|
||||
aElementDescriptor_Description,
|
||||
aPurpose,
|
||||
aShape);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurface3dElementDescriptor::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_Surface3dElementDescriptor) &ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
switch (ent->StepElement_ElementDescriptor::TopologyOrder()) {
|
||||
case StepElement_Linear: SW.SendEnum (".LINEAR."); break;
|
||||
case StepElement_Quadratic: SW.SendEnum (".QUADRATIC."); break;
|
||||
case StepElement_Cubic: SW.SendEnum (".CUBIC."); break;
|
||||
}
|
||||
|
||||
SW.Send (ent->StepElement_ElementDescriptor::Description());
|
||||
|
||||
// Own fields of Surface3dElementDescriptor
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2=1; i2 <= ent->Purpose()->Length(); i2++ ) {
|
||||
SW.NewLine(Standard_False);
|
||||
SW.OpenSub();
|
||||
Handle(StepElement_HSequenceOfSurfaceElementPurposeMember) HSSEPM = ent->Purpose()->Value(i2);
|
||||
for (Standard_Integer j2=1; j2 <= HSSEPM->Length(); j2++ ) {
|
||||
Handle(StepElement_SurfaceElementPurposeMember) Var0 = HSSEPM->Value(j2);
|
||||
SW.Send (Var0);
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
SW.CloseSub();
|
||||
|
||||
switch (ent->Shape()) {
|
||||
case StepElement_Quadrilateral: SW.SendEnum (".QUADRILATERAL."); break;
|
||||
case StepElement_Triangle: SW.SendEnum (".TRIANGLE."); break;
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurface3dElementDescriptor::Share (const Handle(StepElement_Surface3dElementDescriptor) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
// Own fields of Surface3dElementDescriptor
|
||||
/* CKY 17JUN04 : content is made of STRINGS or ENUMS , no entity !
|
||||
for (Standard_Integer i1=1; i1 <= ent->Purpose()->Length(); i1++ ) {
|
||||
Handle(StepElement_HSequenceOfSurfaceElementPurposeMember) HSSEPM = ent->Purpose()->Value(i1);
|
||||
for (Standard_Integer i2=1; i2 <= HSSEPM->Length(); i2++ ) {
|
||||
Handle(StepElement_SurfaceElementPurposeMember) Var1 = HSSEPM->Value(i2);
|
||||
iter.AddItem (Var1);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWSurfaceElementProperty.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWSurfaceElementProperty.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWSurfaceElementProperty.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWSurfaceElementProperty from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for SurfaceElementProperty
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
SurfaceElementProperty from StepElement
|
||||
|
||||
is
|
||||
Create returns RWSurfaceElementProperty from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : SurfaceElementProperty from StepElement);
|
||||
---Purpose: Reads SurfaceElementProperty
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: SurfaceElementProperty from StepElement);
|
||||
---Purpose: Writes SurfaceElementProperty
|
||||
|
||||
Share (me; ent : SurfaceElementProperty from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWSurfaceElementProperty;
|
78
src/RWStepElement/RWStepElement_RWSurfaceElementProperty.cxx
Executable file
78
src/RWStepElement/RWStepElement_RWSurfaceElementProperty.cxx
Executable file
@@ -0,0 +1,78 @@
|
||||
// File: RWStepElement_RWSurfaceElementProperty.cxx
|
||||
// Created: Thu Dec 12 17:29:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWSurfaceElementProperty.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWSurfaceElementProperty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWSurfaceElementProperty::RWStepElement_RWSurfaceElementProperty ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceElementProperty::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_SurfaceElementProperty) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,3,ach,"surface_element_property") ) return;
|
||||
|
||||
// Own fields of SurfaceElementProperty
|
||||
|
||||
Handle(TCollection_HAsciiString) aPropertyId;
|
||||
data->ReadString (num, 1, "property_id", ach, aPropertyId);
|
||||
|
||||
Handle(TCollection_HAsciiString) aDescription;
|
||||
data->ReadString (num, 2, "description", ach, aDescription);
|
||||
|
||||
Handle(StepElement_SurfaceSectionField) aSection;
|
||||
data->ReadEntity (num, 3, "section", ach, STANDARD_TYPE(StepElement_SurfaceSectionField), aSection);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aPropertyId,
|
||||
aDescription,
|
||||
aSection);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceElementProperty::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_SurfaceElementProperty) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of SurfaceElementProperty
|
||||
|
||||
SW.Send (ent->PropertyId());
|
||||
|
||||
SW.Send (ent->Description());
|
||||
|
||||
SW.Send (ent->Section());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceElementProperty::Share (const Handle(StepElement_SurfaceElementProperty) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of SurfaceElementProperty
|
||||
|
||||
iter.AddItem (ent->Section());
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWSurfaceSection.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWSurfaceSection.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWSurfaceSection.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWSurfaceSection from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for SurfaceSection
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
SurfaceSection from StepElement
|
||||
|
||||
is
|
||||
Create returns RWSurfaceSection from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : SurfaceSection from StepElement);
|
||||
---Purpose: Reads SurfaceSection
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: SurfaceSection from StepElement);
|
||||
---Purpose: Writes SurfaceSection
|
||||
|
||||
Share (me; ent : SurfaceSection from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWSurfaceSection;
|
83
src/RWStepElement/RWStepElement_RWSurfaceSection.cxx
Executable file
83
src/RWStepElement/RWStepElement_RWSurfaceSection.cxx
Executable file
@@ -0,0 +1,83 @@
|
||||
// File: RWStepElement_RWSurfaceSection.cxx
|
||||
// Created: Thu Dec 12 17:29:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWSurfaceSection.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWSurfaceSection
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWSurfaceSection::RWStepElement_RWSurfaceSection ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSection::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_SurfaceSection) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,3,ach,"surface_section") ) return;
|
||||
|
||||
// Own fields of SurfaceSection
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aOffset;
|
||||
data->ReadEntity (num, 1, "offset", ach, aOffset);
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aNonStructuralMass;
|
||||
data->ReadEntity (num, 2, "non_structural_mass", ach, aNonStructuralMass);
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aNonStructuralMassOffset;
|
||||
data->ReadEntity (num, 3, "non_structural_mass_offset", ach, aNonStructuralMassOffset);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aOffset,
|
||||
aNonStructuralMass,
|
||||
aNonStructuralMassOffset);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSection::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_SurfaceSection) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of SurfaceSection
|
||||
|
||||
SW.Send (ent->Offset().Value());
|
||||
|
||||
SW.Send (ent->NonStructuralMass().Value());
|
||||
|
||||
SW.Send (ent->NonStructuralMassOffset().Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSection::Share (const Handle(StepElement_SurfaceSection) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of SurfaceSection
|
||||
/* CKY 17JUN04. Content is made of REAL and ENUM. No entity !
|
||||
iter.AddItem (ent->Offset().Value());
|
||||
|
||||
iter.AddItem (ent->NonStructuralMass().Value());
|
||||
|
||||
iter.AddItem (ent->NonStructuralMassOffset().Value());
|
||||
*/
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWSurfaceSectionField.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWSurfaceSectionField.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWSurfaceSectionField.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWSurfaceSectionField from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for SurfaceSectionField
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
SurfaceSectionField from StepElement
|
||||
|
||||
is
|
||||
Create returns RWSurfaceSectionField from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : SurfaceSectionField from StepElement);
|
||||
---Purpose: Reads SurfaceSectionField
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: SurfaceSectionField from StepElement);
|
||||
---Purpose: Writes SurfaceSectionField
|
||||
|
||||
Share (me; ent : SurfaceSectionField from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWSurfaceSectionField;
|
53
src/RWStepElement/RWStepElement_RWSurfaceSectionField.cxx
Executable file
53
src/RWStepElement/RWStepElement_RWSurfaceSectionField.cxx
Executable file
@@ -0,0 +1,53 @@
|
||||
// File: RWStepElement_RWSurfaceSectionField.cxx
|
||||
// Created: Thu Dec 12 17:29:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWSurfaceSectionField.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWSurfaceSectionField
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWSurfaceSectionField::RWStepElement_RWSurfaceSectionField ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionField::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_SurfaceSectionField) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,0,ach,"surface_section_field") ) return;
|
||||
|
||||
// Initialize entity
|
||||
// ent->Init();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionField::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_SurfaceSectionField) &ent) const
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionField::Share (const Handle(StepElement_SurfaceSectionField) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWSurfaceSectionFieldConstant.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWSurfaceSectionFieldConstant.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWSurfaceSectionFieldConstant.cdl
|
||||
-- Created: Thu Dec 12 17:29:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWSurfaceSectionFieldConstant from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for SurfaceSectionFieldConstant
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
SurfaceSectionFieldConstant from StepElement
|
||||
|
||||
is
|
||||
Create returns RWSurfaceSectionFieldConstant from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : SurfaceSectionFieldConstant from StepElement);
|
||||
---Purpose: Reads SurfaceSectionFieldConstant
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: SurfaceSectionFieldConstant from StepElement);
|
||||
---Purpose: Writes SurfaceSectionFieldConstant
|
||||
|
||||
Share (me; ent : SurfaceSectionFieldConstant from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWSurfaceSectionFieldConstant;
|
66
src/RWStepElement/RWStepElement_RWSurfaceSectionFieldConstant.cxx
Executable file
66
src/RWStepElement/RWStepElement_RWSurfaceSectionFieldConstant.cxx
Executable file
@@ -0,0 +1,66 @@
|
||||
// File: RWStepElement_RWSurfaceSectionFieldConstant.cxx
|
||||
// Created: Thu Dec 12 17:29:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWSurfaceSectionFieldConstant.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWSurfaceSectionFieldConstant
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWSurfaceSectionFieldConstant::RWStepElement_RWSurfaceSectionFieldConstant ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionFieldConstant::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_SurfaceSectionFieldConstant) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,1,ach,"surface_section_field_constant") ) return;
|
||||
|
||||
// Own fields of SurfaceSectionFieldConstant
|
||||
|
||||
Handle(StepElement_SurfaceSection) aDefinition;
|
||||
data->ReadEntity (num, 1, "definition", ach, STANDARD_TYPE(StepElement_SurfaceSection), aDefinition);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aDefinition);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionFieldConstant::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_SurfaceSectionFieldConstant) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of SurfaceSectionFieldConstant
|
||||
|
||||
SW.Send (ent->Definition());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionFieldConstant::Share (const Handle(StepElement_SurfaceSectionFieldConstant) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of SurfaceSectionFieldConstant
|
||||
|
||||
iter.AddItem (ent->Definition());
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWSurfaceSectionFieldVarying.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWSurfaceSectionFieldVarying.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWSurfaceSectionFieldVarying.cdl
|
||||
-- Created: Thu Dec 12 17:29:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWSurfaceSectionFieldVarying from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for SurfaceSectionFieldVarying
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
SurfaceSectionFieldVarying from StepElement
|
||||
|
||||
is
|
||||
Create returns RWSurfaceSectionFieldVarying from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : SurfaceSectionFieldVarying from StepElement);
|
||||
---Purpose: Reads SurfaceSectionFieldVarying
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: SurfaceSectionFieldVarying from StepElement);
|
||||
---Purpose: Writes SurfaceSectionFieldVarying
|
||||
|
||||
Share (me; ent : SurfaceSectionFieldVarying from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWSurfaceSectionFieldVarying;
|
92
src/RWStepElement/RWStepElement_RWSurfaceSectionFieldVarying.cxx
Executable file
92
src/RWStepElement/RWStepElement_RWSurfaceSectionFieldVarying.cxx
Executable file
@@ -0,0 +1,92 @@
|
||||
// File: RWStepElement_RWSurfaceSectionFieldVarying.cxx
|
||||
// Created: Thu Dec 12 17:29:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWSurfaceSectionFieldVarying.ixx>
|
||||
#include <StepElement_HArray1OfSurfaceSection.hxx>
|
||||
#include <StepElement_SurfaceSection.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWSurfaceSectionFieldVarying
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWSurfaceSectionFieldVarying::RWStepElement_RWSurfaceSectionFieldVarying ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionFieldVarying::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_SurfaceSectionFieldVarying) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"surface_section_field_varying") ) return;
|
||||
|
||||
// Own fields of SurfaceSectionFieldVarying
|
||||
|
||||
Handle(StepElement_HArray1OfSurfaceSection) aDefinitions;
|
||||
Standard_Integer sub1 = 0;
|
||||
if ( data->ReadSubList (num, 1, "definitions", ach, sub1) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub1);
|
||||
aDefinitions = new StepElement_HArray1OfSurfaceSection (1, nb0);
|
||||
Standard_Integer num2 = sub1;
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
Handle(StepElement_SurfaceSection) anIt0;
|
||||
data->ReadEntity (num2, i0, "surface_section", ach, STANDARD_TYPE(StepElement_SurfaceSection), anIt0);
|
||||
aDefinitions->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
|
||||
Standard_Boolean aAdditionalNodeValues;
|
||||
data->ReadBoolean (num, 2, "additional_node_values", ach, aAdditionalNodeValues);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aDefinitions,
|
||||
aAdditionalNodeValues);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionFieldVarying::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_SurfaceSectionFieldVarying) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of SurfaceSectionFieldVarying
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i0=1; i0 <= ent->Definitions()->Length(); i0++ ) {
|
||||
Handle(StepElement_SurfaceSection) Var0 = ent->Definitions()->Value(i0);
|
||||
SW.Send (Var0);
|
||||
}
|
||||
SW.CloseSub();
|
||||
|
||||
SW.SendBoolean (ent->AdditionalNodeValues());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWSurfaceSectionFieldVarying::Share (const Handle(StepElement_SurfaceSectionFieldVarying) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of SurfaceSectionFieldVarying
|
||||
|
||||
for (Standard_Integer i1=1; i1 <= ent->Definitions()->Length(); i1++ ) {
|
||||
Handle(StepElement_SurfaceSection) Var0 = ent->Definitions()->Value(i1);
|
||||
iter.AddItem (Var0);
|
||||
}
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWUniformSurfaceSection.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWUniformSurfaceSection.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWUniformSurfaceSection.cdl
|
||||
-- Created: Thu Dec 12 17:29:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWUniformSurfaceSection from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for UniformSurfaceSection
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
UniformSurfaceSection from StepElement
|
||||
|
||||
is
|
||||
Create returns RWUniformSurfaceSection from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : UniformSurfaceSection from StepElement);
|
||||
---Purpose: Reads UniformSurfaceSection
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: UniformSurfaceSection from StepElement);
|
||||
---Purpose: Writes UniformSurfaceSection
|
||||
|
||||
Share (me; ent : UniformSurfaceSection from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWUniformSurfaceSection;
|
111
src/RWStepElement/RWStepElement_RWUniformSurfaceSection.cxx
Executable file
111
src/RWStepElement/RWStepElement_RWUniformSurfaceSection.cxx
Executable file
@@ -0,0 +1,111 @@
|
||||
// File: RWStepElement_RWUniformSurfaceSection.cxx
|
||||
// Created: Thu Dec 12 17:29:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWUniformSurfaceSection.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWUniformSurfaceSection
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWUniformSurfaceSection::RWStepElement_RWUniformSurfaceSection ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWUniformSurfaceSection::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_UniformSurfaceSection) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,6,ach,"uniform_surface_section") ) return;
|
||||
|
||||
// Inherited fields of SurfaceSection
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aSurfaceSection_Offset;
|
||||
data->ReadEntity (num, 1, "surface_section.offset", ach, aSurfaceSection_Offset);
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aSurfaceSection_NonStructuralMass;
|
||||
data->ReadEntity (num, 2, "surface_section.non_structural_mass", ach, aSurfaceSection_NonStructuralMass);
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aSurfaceSection_NonStructuralMassOffset;
|
||||
data->ReadEntity (num, 3, "surface_section.non_structural_mass_offset", ach, aSurfaceSection_NonStructuralMassOffset);
|
||||
|
||||
// Own fields of UniformSurfaceSection
|
||||
|
||||
Standard_Real aThickness;
|
||||
data->ReadReal (num, 4, "thickness", ach, aThickness);
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aBendingThickness;
|
||||
data->ReadEntity (num, 5, "bending_thickness", ach, aBendingThickness);
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue aShearThickness;
|
||||
data->ReadEntity (num, 6, "shear_thickness", ach, aShearThickness);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aSurfaceSection_Offset,
|
||||
aSurfaceSection_NonStructuralMass,
|
||||
aSurfaceSection_NonStructuralMassOffset,
|
||||
aThickness,
|
||||
aBendingThickness,
|
||||
aShearThickness);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWUniformSurfaceSection::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_UniformSurfaceSection) &ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of SurfaceSection
|
||||
|
||||
SW.Send (ent->StepElement_SurfaceSection::Offset().Value());
|
||||
|
||||
SW.Send (ent->StepElement_SurfaceSection::NonStructuralMass().Value());
|
||||
|
||||
SW.Send (ent->StepElement_SurfaceSection::NonStructuralMassOffset().Value());
|
||||
|
||||
// Own fields of UniformSurfaceSection
|
||||
|
||||
SW.Send (ent->Thickness());
|
||||
|
||||
SW.Send (ent->BendingThickness().Value());
|
||||
|
||||
SW.Send (ent->ShearThickness().Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWUniformSurfaceSection::Share (const Handle(StepElement_UniformSurfaceSection) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of SurfaceSection
|
||||
/* CKY 17JUN04. Content is made of REAL and ENUM. No entity !
|
||||
iter.AddItem (ent->StepElement_SurfaceSection::Offset().Value());
|
||||
|
||||
iter.AddItem (ent->StepElement_SurfaceSection::NonStructuralMass().Value());
|
||||
|
||||
iter.AddItem (ent->StepElement_SurfaceSection::NonStructuralMassOffset().Value());
|
||||
|
||||
// Own fields of UniformSurfaceSection
|
||||
|
||||
iter.AddItem (ent->BendingThickness().Value());
|
||||
|
||||
iter.AddItem (ent->ShearThickness().Value());
|
||||
*/
|
||||
}
|
35
src/RWStepElement/RWStepElement_RWVolume3dElementDescriptor.cdl
Executable file
35
src/RWStepElement/RWStepElement_RWVolume3dElementDescriptor.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepElement_RWVolume3dElementDescriptor.cdl
|
||||
-- Created: Thu Dec 12 17:29:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWVolume3dElementDescriptor from RWStepElement
|
||||
|
||||
---Purpose: Read & Write tool for Volume3dElementDescriptor
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
Volume3dElementDescriptor from StepElement
|
||||
|
||||
is
|
||||
Create returns RWVolume3dElementDescriptor from RWStepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : Volume3dElementDescriptor from StepElement);
|
||||
---Purpose: Reads Volume3dElementDescriptor
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: Volume3dElementDescriptor from StepElement);
|
||||
---Purpose: Writes Volume3dElementDescriptor
|
||||
|
||||
Share (me; ent : Volume3dElementDescriptor from StepElement;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWVolume3dElementDescriptor;
|
137
src/RWStepElement/RWStepElement_RWVolume3dElementDescriptor.cxx
Executable file
137
src/RWStepElement/RWStepElement_RWVolume3dElementDescriptor.cxx
Executable file
@@ -0,0 +1,137 @@
|
||||
// File: RWStepElement_RWVolume3dElementDescriptor.cxx
|
||||
// Created: Thu Dec 12 17:29:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepElement_RWVolume3dElementDescriptor.ixx>
|
||||
#include <StepElement_HArray1OfVolumeElementPurposeMember.hxx>
|
||||
#include <StepElement_VolumeElementPurposeMember.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepElement_RWVolume3dElementDescriptor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepElement_RWVolume3dElementDescriptor::RWStepElement_RWVolume3dElementDescriptor ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWVolume3dElementDescriptor::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepElement_Volume3dElementDescriptor) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"volume3d_element_descriptor") ) return;
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
StepElement_ElementOrder aElementDescriptor_TopologyOrder;
|
||||
if (data->ParamType (num, 1) == Interface_ParamEnum) {
|
||||
Standard_CString text = data->ParamCValue(num, 1);
|
||||
if (!strcmp(text, ".LINEAR.")) aElementDescriptor_TopologyOrder = StepElement_Linear;
|
||||
else if (!strcmp(text, ".QUADRATIC.")) aElementDescriptor_TopologyOrder = StepElement_Quadratic;
|
||||
else if (!strcmp(text, ".CUBIC.")) aElementDescriptor_TopologyOrder = StepElement_Cubic;
|
||||
else ach->AddFail("Parameter #1 (element_descriptor.topology_order) has not allowed value");
|
||||
}
|
||||
else ach->AddFail("Parameter #1 (element_descriptor.topology_order) is not enumeration");
|
||||
|
||||
Handle(TCollection_HAsciiString) aElementDescriptor_Description;
|
||||
data->ReadString (num, 2, "element_descriptor.description", ach, aElementDescriptor_Description);
|
||||
|
||||
// Own fields of Volume3dElementDescriptor
|
||||
|
||||
Handle(StepElement_HArray1OfVolumeElementPurposeMember) aPurpose;
|
||||
Standard_Integer sub3 = 0;
|
||||
if ( data->ReadSubList (num, 3, "purpose", ach, sub3) ) {
|
||||
Standard_Integer nb0 = data->NbParams(sub3);
|
||||
aPurpose = new StepElement_HArray1OfVolumeElementPurposeMember (1, nb0);
|
||||
Standard_Integer num2 = sub3;
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
//StepElement_VolumeElementPurpose anIt0;
|
||||
Handle(StepElement_VolumeElementPurposeMember) aMember = new StepElement_VolumeElementPurposeMember;
|
||||
//data->ReadEntity (num2, i0, "volume_element_purpose", ach, anIt0);
|
||||
data->ReadMember (num2, i0, "volume_element_purpose", ach, aMember);
|
||||
aPurpose->SetValue(i0, aMember);
|
||||
}
|
||||
}
|
||||
|
||||
StepElement_Volume3dElementShape aShape;
|
||||
if (data->ParamType (num, 4) == Interface_ParamEnum) {
|
||||
Standard_CString text = data->ParamCValue(num, 4);
|
||||
if (!strcmp(text, ".HEXAHEDRON.")) aShape = StepElement_Hexahedron;
|
||||
else if (!strcmp(text, ".WEDGE.")) aShape = StepElement_Wedge;
|
||||
else if (!strcmp(text, ".TETRAHEDRON.")) aShape = StepElement_Tetrahedron;
|
||||
else if (!strcmp(text, ".PYRAMID.")) aShape = StepElement_Pyramid;
|
||||
else ach->AddFail("Parameter #4 (shape) has not allowed value");
|
||||
}
|
||||
else ach->AddFail("Parameter #4 (shape) is not enumeration");
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aElementDescriptor_TopologyOrder,
|
||||
aElementDescriptor_Description,
|
||||
aPurpose,
|
||||
aShape);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWVolume3dElementDescriptor::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepElement_Volume3dElementDescriptor) &ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
switch (ent->StepElement_ElementDescriptor::TopologyOrder()) {
|
||||
case StepElement_Linear: SW.SendEnum (".LINEAR."); break;
|
||||
case StepElement_Quadratic: SW.SendEnum (".QUADRATIC."); break;
|
||||
case StepElement_Cubic: SW.SendEnum (".CUBIC."); break;
|
||||
}
|
||||
|
||||
SW.Send (ent->StepElement_ElementDescriptor::Description());
|
||||
|
||||
// Own fields of Volume3dElementDescriptor
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2=1; i2 <= ent->Purpose()->Length(); i2++ ) {
|
||||
Handle(StepElement_VolumeElementPurposeMember) Var0 = ent->Purpose()->Value(i2);
|
||||
SW.Send (Var0);
|
||||
}
|
||||
SW.CloseSub();
|
||||
|
||||
switch (ent->Shape()) {
|
||||
case StepElement_Hexahedron: SW.SendEnum (".HEXAHEDRON."); break;
|
||||
case StepElement_Wedge: SW.SendEnum (".WEDGE."); break;
|
||||
case StepElement_Tetrahedron: SW.SendEnum (".TETRAHEDRON."); break;
|
||||
case StepElement_Pyramid: SW.SendEnum (".PYRAMID."); break;
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepElement_RWVolume3dElementDescriptor::Share (const Handle(StepElement_Volume3dElementDescriptor) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of ElementDescriptor
|
||||
|
||||
// Own fields of Volume3dElementDescriptor
|
||||
/* CKY 17JUN04 : content is made of STRINGS and ENUMS. No entity !
|
||||
for (Standard_Integer i1=1; i1 <= ent->Purpose()->Length(); i1++ ) {
|
||||
Handle(StepElement_VolumeElementPurposeMember) Var0 = ent->Purpose()->Value(i1);
|
||||
iter.AddItem (Var0);
|
||||
}
|
||||
*/
|
||||
}
|
Reference in New Issue
Block a user