#include <StepKinematics_LowOrderKinematicPairWithRange.hxx>
#include <StepKinematics_MechanismRepresentation.hxx>
#include <StepKinematics_OrientedJoint.hxx>
+#include <StepKinematics_PairRepresentationRelationship.hxx>
#include <StepKinematics_PlanarCurvePair.hxx>
#include <StepKinematics_PlanarCurvePairRange.hxx>
#include <StepKinematics_PlanarPair.hxx>
#include <RWStepKinematics_RWLowOrderKinematicPairWithRange.hxx>
#include <RWStepKinematics_RWMechanismRepresentation.hxx>
#include <RWStepKinematics_RWOrientedJoint.hxx>
+#include <RWStepKinematics_RWPairRepresentationRelationship.hxx>
#include <RWStepKinematics_RWPlanarCurvePair.hxx>
#include <RWStepKinematics_RWPlanarCurvePairRange.hxx>
#include <RWStepKinematics_RWPlanarPair.hxx>
tool.Share(anent, iter);
}
break;
+ case 788:
+ {
+ DeclareAndCast(StepKinematics_PairRepresentationRelationship, anent, ent);
+ RWStepKinematics_RWPairRepresentationRelationship tool;
+ tool.Share(anent, iter);
+ }
+ break;
break;
default : break;
case 787:
ent = new StepKinematics_UniversalPairWithRange;
break;
+ case 788:
+ ent = new StepKinematics_PairRepresentationRelationship;
+ break;
default:
case 785: return cataux;
case 786: return cataux;
case 787: return cataux;
+ case 788: return cataux;
default : break;
#include <StepKinematics_LowOrderKinematicPairWithRange.hxx>
#include <StepKinematics_MechanismRepresentation.hxx>
#include <StepKinematics_OrientedJoint.hxx>
+#include <StepKinematics_PairRepresentationRelationship.hxx>
#include <StepKinematics_PlanarCurvePair.hxx>
#include <StepKinematics_PlanarCurvePairRange.hxx>
#include <StepKinematics_PlanarPair.hxx>
#include <RWStepKinematics_RWLowOrderKinematicPairWithRange.hxx>
#include <RWStepKinematics_RWMechanismRepresentation.hxx>
#include <RWStepKinematics_RWOrientedJoint.hxx>
+#include <RWStepKinematics_RWPairRepresentationRelationship.hxx>
#include <RWStepKinematics_RWPlanarCurvePair.hxx>
#include <RWStepKinematics_RWPlanarCurvePairRange.hxx>
#include <RWStepKinematics_RWPlanarPair.hxx>
static TCollection_AsciiString Reco_LowOrderKinematicPairWithRange("LOW_ORDER_KINEMATIC_PAIR_WITH_RANGE");
static TCollection_AsciiString Reco_MechanismRepresentation("MECHANISM_REPRESENTATION");
static TCollection_AsciiString Reco_OrientedJoint("ORIENTED_JOINT");
+static TCollection_AsciiString Reco_PairRepresentationRelationship("PAIR_REPRESENTATION_RELATIONSHIP");
static TCollection_AsciiString Reco_PlanarCurvePair("PLANAR_CURVE_PAIR");
static TCollection_AsciiString Reco_PlanarCurvePairRange("PLANAR_CURVE_PAIR_RANGE");
static TCollection_AsciiString Reco_PlanarPair("PLANAR_PAIR");
typenums.Bind(Reco_UniversalPair, 785);
typenums.Bind(Reco_UniversalPairValue, 786);
typenums.Bind(Reco_UniversalPairWithRange, 787);
-
+ typenums.Bind(Reco_PairRepresentationRelationship, 788);
// SHORT NAMES
case 785: return Reco_UniversalPair;
case 786: return Reco_UniversalPairValue;
case 787: return Reco_UniversalPairWithRange;
+ case 788: return Reco_PairRepresentationRelationship;
default : return PasReco;
tool.ReadStep(data, num, ach, anent);
}
break;
-
-
+ case 788:
+ {
+ DeclareAndCast(StepKinematics_PairRepresentationRelationship, anent, ent);
+ RWStepKinematics_RWPairRepresentationRelationship tool;
+ tool.ReadStep(data, num, ach, anent);
+ }
+ break;
default:
ach->AddFail("Type Mismatch when reading - Entity");
tool.WriteStep(SW, anent);
}
break;
-
+ case 788:
+ {
+ DeclareAndCast(StepKinematics_PairRepresentationRelationship, anent, ent);
+ RWStepKinematics_RWPairRepresentationRelationship tool;
+ tool.WriteStep(SW, anent);
+ }
+ break;
default:
return;
RWStepKinematics_RWMechanismRepresentation.hxx
RWStepKinematics_RWOrientedJoint.cxx
RWStepKinematics_RWOrientedJoint.hxx
+RWStepKinematics_RWPairRepresentationRelationship.cxx
+RWStepKinematics_RWPairRepresentationRelationship.hxx
RWStepKinematics_RWPlanarCurvePair.cxx
RWStepKinematics_RWPlanarCurvePair.hxx
RWStepKinematics_RWPlanarCurvePairRange.cxx
--- /dev/null
+// Created on : Mon Apr 20 13:08:26 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_RWPairRepresentationRelationship.hxx>
+#include <StepKinematics_PairRepresentationRelationship.hxx>
+#include <TCollection_HAsciiString.hxx>
+#include <StepRepr_RepresentationRelationshipWithTransformation.hxx>
+#include <StepRepr_RepresentationOrRepresentationReference.hxx>
+#include <StepRepr_Transformation.hxx>
+#include <StepRepr_Representation.hxx>
+
+//=======================================================================
+//function : RWStepKinematics_RWPairRepresentationRelationship
+//purpose :
+//=======================================================================
+
+RWStepKinematics_RWPairRepresentationRelationship::RWStepKinematics_RWPairRepresentationRelationship() {}
+
+
+//=======================================================================
+//function : ReadStep
+//purpose :
+//=======================================================================
+
+void RWStepKinematics_RWPairRepresentationRelationship::ReadStep (const Handle(StepData_StepReaderData)& data,
+ const Standard_Integer num,
+ Handle(Interface_Check)& ach,
+ const Handle(StepKinematics_PairRepresentationRelationship)& ent) const
+{
+ // Check number of parameters
+ if ( ! data->CheckNbParams(num,6,ach,"pair_representation_relationship") ) return;
+
+ // Inherited fields of RepresentationItem
+
+ Handle(TCollection_HAsciiString) aRepresentationItem_Name;
+ data->ReadString (num, 1, "representation_item.name", ach, aRepresentationItem_Name);
+
+ // Inherited fields of RepresentationRelationship
+
+ Handle(TCollection_HAsciiString) aRepresentationRelationship_Name;
+ data->ReadString (num, 2, "representation_relationship.name", ach, aRepresentationRelationship_Name);
+
+ Handle(TCollection_HAsciiString) aRepresentationRelationship_Description;
+ Standard_Boolean hasRepresentationRelationship_Description = Standard_True;
+ if ( data->IsParamDefined (num,3) ) {
+ data->ReadString (num, 3, "representation_relationship.description", ach, aRepresentationRelationship_Description);
+ }
+ else {
+ hasRepresentationRelationship_Description = Standard_False;
+ aRepresentationRelationship_Description.Nullify();
+ }
+
+ StepRepr_RepresentationOrRepresentationReference aRepresentationRelationship_Rep1;
+ data->ReadEntity (num, 4, "representation_relationship.rep1", ach, aRepresentationRelationship_Rep1);
+
+ StepRepr_RepresentationOrRepresentationReference aRepresentationRelationship_Rep2;
+ data->ReadEntity (num, 5, "representation_relationship.rep2", ach, aRepresentationRelationship_Rep2);
+
+ // Inherited fields of RepresentationRelationshipWithTransformation
+
+ StepRepr_Transformation aRepresentationRelationshipWithTransformation_TransformationOperator;
+ data->ReadEntity (num, 6, "representation_relationship_with_transformation.transformation_operator", ach, aRepresentationRelationshipWithTransformation_TransformationOperator);
+
+ // Initialize entity
+ ent->Init(aRepresentationItem_Name,
+ aRepresentationRelationship_Name,
+ hasRepresentationRelationship_Description,
+ aRepresentationRelationship_Description,
+ aRepresentationRelationship_Rep1,
+ aRepresentationRelationship_Rep2,
+ aRepresentationRelationshipWithTransformation_TransformationOperator);
+}
+
+//=======================================================================
+//function : WriteStep
+//purpose :
+//=======================================================================
+
+void RWStepKinematics_RWPairRepresentationRelationship::WriteStep (StepData_StepWriter& SW,
+ const Handle(StepKinematics_PairRepresentationRelationship)& ent) const
+{
+
+ // Own fields of RepresentationItem
+
+ SW.Send (ent->Name());
+
+ // Own fields of RepresentationRelationship
+
+ SW.Send (ent->Name());
+
+ if ( ent->RepresentationRelationshipWithTransformation()->HasDescription() ) {
+ SW.Send(ent->RepresentationRelationshipWithTransformation()->Description());
+ }
+ else SW.SendUndef();
+
+ SW.Send(ent->RepresentationRelationshipWithTransformation()->Rep1());
+
+ SW.Send(ent->RepresentationRelationshipWithTransformation()->Rep2());
+
+ // Inherited fields of RepresentationRelationshipWithTransformation
+
+ SW.Send (ent->RepresentationRelationshipWithTransformation()->TransformationOperator().Value());
+}
+
+//=======================================================================
+//function : Share
+//purpose :
+//=======================================================================
+
+void RWStepKinematics_RWPairRepresentationRelationship::Share (const Handle(StepKinematics_PairRepresentationRelationship)& ent,
+ Interface_EntityIterator& iter) const
+{
+
+ // Inherited fields of RepresentationItem
+
+ // Inherited fields of RepresentationRelationship
+
+ iter.AddItem(ent->RepresentationRelationshipWithTransformation()->Rep1());
+
+ iter.AddItem(ent->RepresentationRelationshipWithTransformation()->Rep2());
+
+ // Inherited fields of RepresentationRelationshipWithTransformation
+
+ iter.AddItem (ent->RepresentationRelationshipWithTransformation()->TransformationOperator().Value());
+}
--- /dev/null
+// Created on : Mon Apr 20 13:08:26 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_RWPairRepresentationRelationship_HeaderFile_
+#define _RWStepKinematics_RWPairRepresentationRelationship_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_PairRepresentationRelationship;
+
+//! Read & Write tool for PairRepresentationRelationship
+class RWStepKinematics_RWPairRepresentationRelationship
+{
+public:
+
+ DEFINE_STANDARD_ALLOC
+
+ Standard_EXPORT RWStepKinematics_RWPairRepresentationRelationship();
+
+ Standard_EXPORT void ReadStep(const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepKinematics_PairRepresentationRelationship)& ent) const;
+
+ Standard_EXPORT void WriteStep(StepData_StepWriter& SW, const Handle(StepKinematics_PairRepresentationRelationship)& ent) const;
+
+ Standard_EXPORT void Share(const Handle(StepKinematics_PairRepresentationRelationship)& ent, Interface_EntityIterator& iter) const;
+
+};
+#endif // _RWStepKinematics_RWPairRepresentationRelationship_HeaderFile_
#include <StepKinematics_LowOrderKinematicPairWithRange.hxx>
#include <StepKinematics_MechanismRepresentation.hxx>
#include <StepKinematics_OrientedJoint.hxx>
+#include <StepKinematics_PairRepresentationRelationship.hxx>
#include <StepKinematics_PlanarCurvePair.hxx>
#include <StepKinematics_PlanarCurvePairRange.hxx>
#include <StepKinematics_PlanarPair.hxx>
types.Bind(STANDARD_TYPE(StepKinematics_UniversalPair), 785);
types.Bind(STANDARD_TYPE(StepKinematics_UniversalPairValue), 786);
types.Bind(STANDARD_TYPE(StepKinematics_UniversalPairWithRange), 787);
+ types.Bind(STANDARD_TYPE(StepKinematics_PairRepresentationRelationship), 788);
}
StepKinematics_MechanismRepresentation.hxx
StepKinematics_OrientedJoint.cxx
StepKinematics_OrientedJoint.hxx
+StepKinematics_PairRepresentationRelationship.cxx
+StepKinematics_PairRepresentationRelationship.hxx
StepKinematics_PairValue.cxx
StepKinematics_PairValue.hxx
StepKinematics_PlanarCurvePair.cxx
--- /dev/null
+// Created on : Mon Apr 20 13:08:26 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_PairRepresentationRelationship.hxx>
+
+IMPLEMENT_STANDARD_RTTIEXT(StepKinematics_PairRepresentationRelationship, StepGeom_GeometricRepresentationItem)
+
+//=======================================================================
+//function : StepKinematics_PairRepresentationRelationship
+//purpose :
+//=======================================================================
+
+StepKinematics_PairRepresentationRelationship::StepKinematics_PairRepresentationRelationship ()
+{
+}
+
+//=======================================================================
+//function : Init
+//purpose :
+//=======================================================================
+
+void StepKinematics_PairRepresentationRelationship::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
+ const Handle(TCollection_HAsciiString)& theRepresentationRelationship_Name,
+ const Standard_Boolean /*hasRepresentationRelationship_Description*/,
+ const Handle(TCollection_HAsciiString)& theRepresentationRelationship_Description,
+ const StepRepr_RepresentationOrRepresentationReference& theRepresentationRelationship_Rep1,
+ const StepRepr_RepresentationOrRepresentationReference& theRepresentationRelationship_Rep2,
+ const StepRepr_Transformation& theRepresentationRelationshipWithTransformation_TransformationOperator)
+{
+ StepGeom_GeometricRepresentationItem::Init(theRepresentationItem_Name);
+ myRepresentationRelationshipWithTransformation = new StepRepr_RepresentationRelationshipWithTransformation;
+ myRepresentationRelationshipWithTransformation->Init(theRepresentationRelationship_Name,
+ /*hasRepresentationRelationship_Description,*/
+ theRepresentationRelationship_Description,
+ theRepresentationRelationship_Rep1.Representation(),
+ theRepresentationRelationship_Rep2.Representation(),
+ theRepresentationRelationshipWithTransformation_TransformationOperator);
+}
+
+//=======================================================================
+//function : RepresentationRelationshipWithTransformation
+//purpose :
+//=======================================================================
+
+Handle(StepRepr_RepresentationRelationshipWithTransformation) StepKinematics_PairRepresentationRelationship::RepresentationRelationshipWithTransformation () const
+{
+ return myRepresentationRelationshipWithTransformation;
+}
+
+//=======================================================================
+//function : SetRepresentationRelationshipWithTransformation
+//purpose :
+//=======================================================================
+
+void StepKinematics_PairRepresentationRelationship::SetRepresentationRelationshipWithTransformation (const Handle(StepRepr_RepresentationRelationshipWithTransformation)& theRepresentationRelationshipWithTransformation)
+{
+ myRepresentationRelationshipWithTransformation = theRepresentationRelationshipWithTransformation;
+}
--- /dev/null
+// Created on : Mon Apr 20 13:08:26 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_PairRepresentationRelationship_HeaderFile_
+#define _StepKinematics_PairRepresentationRelationship_HeaderFile_
+
+#include <Standard.hxx>
+#include <Standard_Type.hxx>
+#include <StepGeom_GeometricRepresentationItem.hxx>
+
+#include <TCollection_HAsciiString.hxx>
+#include <StepRepr_RepresentationOrRepresentationReference.hxx>
+#include <StepRepr_Transformation.hxx>
+#include <StepRepr_RepresentationRelationshipWithTransformation.hxx>
+
+DEFINE_STANDARD_HANDLE(StepKinematics_PairRepresentationRelationship, StepGeom_GeometricRepresentationItem)
+
+//! Representation of STEP entity PairRepresentationRelationship
+class StepKinematics_PairRepresentationRelationship : public StepGeom_GeometricRepresentationItem
+{
+public :
+
+ //! default constructor
+ Standard_EXPORT StepKinematics_PairRepresentationRelationship();
+
+ //! Initialize all fields (own and inherited)
+ Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
+ const Handle(TCollection_HAsciiString)& theRepresentationRelationship_Name,
+ const Standard_Boolean hasRepresentationRelationship_Description,
+ const Handle(TCollection_HAsciiString)& theRepresentationRelationship_Description,
+ const StepRepr_RepresentationOrRepresentationReference& theRepresentationRelationship_Rep1,
+ const StepRepr_RepresentationOrRepresentationReference& theRepresentationRelationship_Rep2,
+ const StepRepr_Transformation& theRepresentationRelationshipWithTransformation_TransformationOperator);
+
+ //! Returns data for supertype RepresentationRelationshipWithTransformation
+ Standard_EXPORT Handle(StepRepr_RepresentationRelationshipWithTransformation) RepresentationRelationshipWithTransformation() const;
+ //! Sets data for supertype RepresentationRelationshipWithTransformation
+ Standard_EXPORT void SetRepresentationRelationshipWithTransformation (const Handle(StepRepr_RepresentationRelationshipWithTransformation)& theRepresentationRelationshipWithTransformation);
+
+DEFINE_STANDARD_RTTIEXT(StepKinematics_PairRepresentationRelationship, StepGeom_GeometricRepresentationItem)
+
+private:
+ Handle(StepRepr_RepresentationRelationshipWithTransformation) myRepresentationRelationshipWithTransformation; //!< supertype
+
+};
+#endif // _StepKinematics_PairRepresentationRelationship_HeaderFile_