#include <StepKinematics_RevolutePair.hxx>
#include <StepKinematics_RevolutePairValue.hxx>
#include <StepKinematics_RevolutePairWithRange.hxx>
+#include <StepKinematics_RigidLinkRepresentation.hxx>
#include <StepKinematics_RollingCurvePair.hxx>
#include <StepKinematics_RollingCurvePairValue.hxx>
#include <StepKinematics_RollingSurfacePair.hxx>
#include <RWStepKinematics_RWRevolutePair.hxx>
#include <RWStepKinematics_RWRevolutePairValue.hxx>
#include <RWStepKinematics_RWRevolutePairWithRange.hxx>
+#include <RWStepKinematics_RWRigidLinkRepresentation.hxx>
#include <RWStepKinematics_RWRollingCurvePair.hxx>
#include <RWStepKinematics_RWRollingCurvePairValue.hxx>
#include <RWStepKinematics_RWRollingSurfacePair.hxx>
tool.Share(anent, iter);
}
break;
+ case 789:
+ {
+ DeclareAndCast(StepKinematics_RigidLinkRepresentation, anent, ent);
+ RWStepKinematics_RWRigidLinkRepresentation tool;
+ tool.Share(anent, iter);
+ }
+ break;
break;
default : break;
case 788:
ent = new StepKinematics_PairRepresentationRelationship;
break;
+ case 789:
+ ent = new StepKinematics_RigidLinkRepresentation;
+ break;
default:
case 786: return cataux;
case 787: return cataux;
case 788: return cataux;
+ case 789: return cataux;
default : break;
#include <StepKinematics_RevolutePair.hxx>
#include <StepKinematics_RevolutePairValue.hxx>
#include <StepKinematics_RevolutePairWithRange.hxx>
+#include <StepKinematics_RigidLinkRepresentation.hxx>
#include <StepKinematics_RollingCurvePair.hxx>
#include <StepKinematics_RollingCurvePairValue.hxx>
#include <StepKinematics_RollingSurfacePair.hxx>
#include <RWStepKinematics_RWRevolutePair.hxx>
#include <RWStepKinematics_RWRevolutePairValue.hxx>
#include <RWStepKinematics_RWRevolutePairWithRange.hxx>
+#include <RWStepKinematics_RWRigidLinkRepresentation.hxx>
#include <RWStepKinematics_RWRollingCurvePair.hxx>
#include <RWStepKinematics_RWRollingCurvePairValue.hxx>
#include <RWStepKinematics_RWRollingSurfacePair.hxx>
static TCollection_AsciiString Reco_RevolutePair("REVOLUTE_PAIR");
static TCollection_AsciiString Reco_RevolutePairValue("REVOLUTE_PAIR_VALUE");
static TCollection_AsciiString Reco_RevolutePairWithRange("REVOLUTE_PAIR_WITH_RANGE");
+static TCollection_AsciiString Reco_RigidLinkRepresentation("RIGID_LINK_REPRESENTATION");
static TCollection_AsciiString Reco_RollingCurvePair("ROLLING_CURVE_PAIR");
static TCollection_AsciiString Reco_RollingCurvePairValue("ROLLING_CURVE_PAIR_VALUE");
static TCollection_AsciiString Reco_RollingSurfacePair("ROLLING_SURFACE_PAIR");
typenums.Bind(Reco_UniversalPairValue, 786);
typenums.Bind(Reco_UniversalPairWithRange, 787);
typenums.Bind(Reco_PairRepresentationRelationship, 788);
+ typenums.Bind(Reco_RigidLinkRepresentation, 789);
// SHORT NAMES
case 786: return Reco_UniversalPairValue;
case 787: return Reco_UniversalPairWithRange;
case 788: return Reco_PairRepresentationRelationship;
+ case 789: return Reco_RigidLinkRepresentation;
default : return PasReco;
tool.ReadStep(data, num, ach, anent);
}
break;
+ case 789:
+ {
+ DeclareAndCast(StepKinematics_RigidLinkRepresentation, anent, ent);
+ RWStepKinematics_RWRigidLinkRepresentation tool;
+ tool.ReadStep(data, num, ach, anent);
+ }
+ break;
default:
ach->AddFail("Type Mismatch when reading - Entity");
tool.WriteStep(SW, anent);
}
break;
+ case 789:
+ {
+ DeclareAndCast(StepKinematics_RigidLinkRepresentation, anent, ent);
+ RWStepKinematics_RWRigidLinkRepresentation tool;
+ tool.WriteStep(SW, anent);
+ }
+ break;
default:
return;
RWStepKinematics_RWRevolutePairValue.hxx
RWStepKinematics_RWRevolutePairWithRange.cxx
RWStepKinematics_RWRevolutePairWithRange.hxx
+RWStepKinematics_RWRigidLinkRepresentation.cxx
+RWStepKinematics_RWRigidLinkRepresentation.hxx
RWStepKinematics_RWRollingCurvePair.cxx
RWStepKinematics_RWRollingCurvePair.hxx
RWStepKinematics_RWRollingCurvePairValue.cxx
--- /dev/null
+// Created on : Wed Apr 22 18:51:50 2020
+// Created by: Irina KRYLOVA
+// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
+// Copyright (c) Open CASCADE 2020
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#include <Interface_EntityIterator.hxx>
+#include <StepData_StepReaderData.hxx>
+#include <StepData_StepWriter.hxx>
+#include <RWStepKinematics_RWRigidLinkRepresentation.hxx>
+#include <StepKinematics_RigidLinkRepresentation.hxx>
+#include <TCollection_HAsciiString.hxx>
+#include <StepRepr_HArray1OfRepresentationItem.hxx>
+#include <StepRepr_RepresentationItem.hxx>
+#include <StepRepr_RepresentationContext.hxx>
+
+//=======================================================================
+//function : RWStepKinematics_RWRigidLinkRepresentation
+//purpose :
+//=======================================================================
+
+RWStepKinematics_RWRigidLinkRepresentation::RWStepKinematics_RWRigidLinkRepresentation() {}
+
+
+//=======================================================================
+//function : ReadStep
+//purpose :
+//=======================================================================
+
+void RWStepKinematics_RWRigidLinkRepresentation::ReadStep (const Handle(StepData_StepReaderData)& data,
+ const Standard_Integer num,
+ Handle(Interface_Check)& ach,
+ const Handle(StepKinematics_RigidLinkRepresentation)& ent) const
+{
+ // Check number of parameters
+ if ( ! data->CheckNbParams(num,3,ach,"rigid_link_representation") ) return;
+
+ // Inherited fields of Representation
+
+ Handle(TCollection_HAsciiString) aRepresentation_Name;
+ data->ReadString (num, 1, "representation.name", ach, aRepresentation_Name);
+
+ Handle(StepRepr_HArray1OfRepresentationItem) aRepresentation_Items;
+ Standard_Integer sub2 = 0;
+ if ( data->ReadSubList (num, 2, "representation.items", ach, sub2) ) {
+ Standard_Integer nb0 = data->NbParams(sub2);
+ aRepresentation_Items = new StepRepr_HArray1OfRepresentationItem (1, nb0);
+ Standard_Integer num2 = sub2;
+ for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
+ Handle(StepRepr_RepresentationItem) anIt0;
+ data->ReadEntity (num2, i0, "representation_item", ach, STANDARD_TYPE(StepRepr_RepresentationItem), anIt0);
+ aRepresentation_Items->SetValue(i0, anIt0);
+ }
+ }
+
+ Handle(StepRepr_RepresentationContext) aRepresentation_ContextOfItems;
+ data->ReadEntity (num, 3, "representation.context_of_items", ach, STANDARD_TYPE(StepRepr_RepresentationContext), aRepresentation_ContextOfItems);
+
+ // Initialize entity
+ ent->Init(aRepresentation_Name,
+ aRepresentation_Items,
+ aRepresentation_ContextOfItems);
+}
+
+//=======================================================================
+//function : WriteStep
+//purpose :
+//=======================================================================
+
+void RWStepKinematics_RWRigidLinkRepresentation::WriteStep (StepData_StepWriter& SW,
+ const Handle(StepKinematics_RigidLinkRepresentation)& ent) const
+{
+
+ // Own fields of Representation
+
+ SW.Send (ent->Name());
+
+ SW.OpenSub();
+ for (Standard_Integer i1=1; i1 <= ent->Items()->Length(); i1++ ) {
+ Handle(StepRepr_RepresentationItem) Var0 = ent->Items()->Value(i1);
+ SW.Send (Var0);
+ }
+ SW.CloseSub();
+
+ SW.Send (ent->ContextOfItems());
+}
+
+//=======================================================================
+//function : Share
+//purpose :
+//=======================================================================
+
+void RWStepKinematics_RWRigidLinkRepresentation::Share (const Handle(StepKinematics_RigidLinkRepresentation)& ent,
+ Interface_EntityIterator& iter) const
+{
+
+ // Inherited fields of Representation
+
+ for (Standard_Integer i1=1; i1 <= ent->StepRepr_Representation::Items()->Length(); i1++ ) {
+ Handle(StepRepr_RepresentationItem) Var0 = ent->StepRepr_Representation::Items()->Value(i1);
+ iter.AddItem (Var0);
+ }
+
+ iter.AddItem (ent->StepRepr_Representation::ContextOfItems());
+}
--- /dev/null
+// Created on : Wed Apr 22 18:51:50 2020
+// Created by: Irina KRYLOVA
+// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
+// Copyright (c) Open CASCADE 2020
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef _RWStepKinematics_RWRigidLinkRepresentation_HeaderFile_
+#define _RWStepKinematics_RWRigidLinkRepresentation_HeaderFile_
+
+#include <Standard.hxx>
+#include <Standard_DefineAlloc.hxx>
+#include <Standard_Handle.hxx>
+
+class StepData_StepReaderData;
+class Interface_Check;
+class StepData_StepWriter;
+class Interface_EntityIterator;
+class StepKinematics_RigidLinkRepresentation;
+
+//! Read & Write tool for RigidLinkRepresentation
+class RWStepKinematics_RWRigidLinkRepresentation
+{
+public:
+
+ DEFINE_STANDARD_ALLOC
+
+ Standard_EXPORT RWStepKinematics_RWRigidLinkRepresentation();
+
+ Standard_EXPORT void ReadStep(const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepKinematics_RigidLinkRepresentation)& ent) const;
+
+ Standard_EXPORT void WriteStep(StepData_StepWriter& SW, const Handle(StepKinematics_RigidLinkRepresentation)& ent) const;
+
+ Standard_EXPORT void Share(const Handle(StepKinematics_RigidLinkRepresentation)& ent, Interface_EntityIterator& iter) const;
+
+};
+#endif // _RWStepKinematics_RWRigidLinkRepresentation_HeaderFile_
#include <StepKinematics_RevolutePair.hxx>
#include <StepKinematics_RevolutePairValue.hxx>
#include <StepKinematics_RevolutePairWithRange.hxx>
+#include <StepKinematics_RigidLinkRepresentation.hxx>
#include <StepKinematics_RollingCurvePair.hxx>
#include <StepKinematics_RollingCurvePairValue.hxx>
#include <StepKinematics_RollingSurfacePair.hxx>
types.Bind(STANDARD_TYPE(StepKinematics_UniversalPairValue), 786);
types.Bind(STANDARD_TYPE(StepKinematics_UniversalPairWithRange), 787);
types.Bind(STANDARD_TYPE(StepKinematics_PairRepresentationRelationship), 788);
+ types.Bind(STANDARD_TYPE(StepKinematics_RigidLinkRepresentation), 789);
}
StepKinematics_RevolutePairValue.hxx
StepKinematics_RevolutePairWithRange.cxx
StepKinematics_RevolutePairWithRange.hxx
+StepKinematics_RigidLinkRepresentation.cxx
+StepKinematics_RigidLinkRepresentation.hxx
StepKinematics_RigidPlacement.cxx
StepKinematics_RigidPlacement.hxx
StepKinematics_RollingCurvePair.cxx
--- /dev/null
+// Created on : Wed Apr 22 18:51:50 2020
+// Created by: Irina KRYLOVA
+// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
+// Copyright (c) Open CASCADE 2020
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#include <StepKinematics_RigidLinkRepresentation.hxx>
+
+IMPLEMENT_STANDARD_RTTIEXT(StepKinematics_RigidLinkRepresentation, StepKinematics_KinematicLinkRepresentation)
+
+//=======================================================================
+//function : StepKinematics_RigidLinkRepresentation
+//purpose :
+//=======================================================================
+
+StepKinematics_RigidLinkRepresentation::StepKinematics_RigidLinkRepresentation ()
+{
+}
--- /dev/null
+// Created on : Wed Apr 22 18:51:50 2020
+// Created by: Irina KRYLOVA
+// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
+// Copyright (c) Open CASCADE 2020
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef _StepKinematics_RigidLinkRepresentation_HeaderFile_
+#define _StepKinematics_RigidLinkRepresentation_HeaderFile_
+
+#include <Standard.hxx>
+#include <Standard_Type.hxx>
+#include <StepKinematics_KinematicLinkRepresentation.hxx>
+
+#include <TCollection_HAsciiString.hxx>
+#include <StepRepr_HArray1OfRepresentationItem.hxx>
+#include <StepRepr_RepresentationContext.hxx>
+
+DEFINE_STANDARD_HANDLE(StepKinematics_RigidLinkRepresentation, StepKinematics_KinematicLinkRepresentation)
+
+//! Representation of STEP entity RigidLinkRepresentation
+class StepKinematics_RigidLinkRepresentation : public StepKinematics_KinematicLinkRepresentation
+{
+public :
+
+ //! default constructor
+ Standard_EXPORT StepKinematics_RigidLinkRepresentation();
+
+DEFINE_STANDARD_RTTIEXT(StepKinematics_RigidLinkRepresentation, StepKinematics_KinematicLinkRepresentation)
+
+};
+#endif // _StepKinematics_RigidLinkRepresentation_HeaderFile_