]> OCCT Git - occt-copy.git/commitdiff
# Add rigit_link_representation entity
authorika <ika@opencascade.com>
Thu, 23 Apr 2020 08:22:16 +0000 (11:22 +0300)
committerika <ika@opencascade.com>
Thu, 23 Apr 2020 08:22:16 +0000 (11:22 +0300)
src/RWStepAP214/RWStepAP214_GeneralModule.cxx
src/RWStepAP214/RWStepAP214_ReadWriteModule.cxx
src/RWStepKinematics/FILES
src/RWStepKinematics/RWStepKinematics_RWRigidLinkRepresentation.cxx [new file with mode: 0644]
src/RWStepKinematics/RWStepKinematics_RWRigidLinkRepresentation.hxx [new file with mode: 0644]
src/StepAP214/StepAP214_Protocol.cxx
src/StepKinematics/FILES
src/StepKinematics/StepKinematics_RigidLinkRepresentation.cxx [new file with mode: 0644]
src/StepKinematics/StepKinematics_RigidLinkRepresentation.hxx [new file with mode: 0644]

index a1be5d63ebda7f081005238ac282cadb302d92b5..5afbe54a958e2bcb61d355136d20a541c2713912 100644 (file)
@@ -1405,6 +1405,7 @@ IMPLEMENT_STANDARD_RTTIEXT(RWStepAP214_GeneralModule,StepData_GeneralModule)
 #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>
@@ -1475,6 +1476,7 @@ IMPLEMENT_STANDARD_RTTIEXT(RWStepAP214_GeneralModule,StepData_GeneralModule)
 #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>
@@ -5779,6 +5781,13 @@ void RWStepAP214_GeneralModule::FillSharedCase(const Standard_Integer CN,
     tool.Share(anent, iter);
   }
   break;
+  case 789:
+  {
+    DeclareAndCast(StepKinematics_RigidLinkRepresentation, anent, ent);
+    RWStepKinematics_RWRigidLinkRepresentation tool;
+    tool.Share(anent, iter);
+  }
+  break;
 
   break;
     default : break;
@@ -8000,6 +8009,9 @@ Standard_Boolean RWStepAP214_GeneralModule::NewVoid
    case 788:
      ent = new StepKinematics_PairRepresentationRelationship;
      break;
+   case 789:
+     ent = new StepKinematics_RigidLinkRepresentation;
+     break;
 
     
   default: 
@@ -8669,6 +8681,7 @@ Standard_Integer  RWStepAP214_GeneralModule::CategoryNumber
   case 786: return cataux;
   case 787: return cataux;
   case 788: return cataux;
+  case 789: return cataux;
 
     
   default : break;
index 740344351704de8450553e698b750df9cfc8e00d..658d2cd03bddaad2541afece8e4b840e8b3ec96f 100644 (file)
@@ -1452,6 +1452,7 @@ IMPLEMENT_STANDARD_RTTIEXT(RWStepAP214_ReadWriteModule,StepData_ReadWriteModule)
 #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>
@@ -1521,6 +1522,7 @@ IMPLEMENT_STANDARD_RTTIEXT(RWStepAP214_ReadWriteModule,StepData_ReadWriteModule)
 #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>
@@ -2233,6 +2235,7 @@ static TCollection_AsciiString Reco_RackAndPinionPairWithRange("RACK_AND_PINION_
 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");
@@ -2982,6 +2985,7 @@ RWStepAP214_ReadWriteModule::RWStepAP214_ReadWriteModule ()
   typenums.Bind(Reco_UniversalPairValue, 786);
   typenums.Bind(Reco_UniversalPairWithRange, 787);
   typenums.Bind(Reco_PairRepresentationRelationship, 788);
+  typenums.Bind(Reco_RigidLinkRepresentation, 789);
 
   
 //    SHORT NAMES
@@ -4907,6 +4911,7 @@ const TCollection_AsciiString& RWStepAP214_ReadWriteModule::StepType
   case 786: return Reco_UniversalPairValue;
   case 787: return Reco_UniversalPairWithRange;
   case 788: return Reco_PairRepresentationRelationship;
+  case 789: return Reco_RigidLinkRepresentation;
 
 
   default : return PasReco;
@@ -10291,6 +10296,13 @@ void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer CN,
     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");
@@ -15630,6 +15642,13 @@ void RWStepAP214_ReadWriteModule::WriteStep(const Standard_Integer CN,
     tool.WriteStep(SW, anent);
   }
   break;
+  case 789:
+  {
+    DeclareAndCast(StepKinematics_RigidLinkRepresentation, anent, ent);
+    RWStepKinematics_RWRigidLinkRepresentation tool;
+    tool.WriteStep(SW, anent);
+  }
+  break;
 
   default: 
     return;
index c5981f704ae9a2daea34ff0b503923303a1bfbab..88e053d56a7dc909057eab9bec4337bf2fe25d7b 100644 (file)
@@ -84,6 +84,8 @@ RWStepKinematics_RWRevolutePairValue.cxx
 RWStepKinematics_RWRevolutePairValue.hxx
 RWStepKinematics_RWRevolutePairWithRange.cxx
 RWStepKinematics_RWRevolutePairWithRange.hxx
+RWStepKinematics_RWRigidLinkRepresentation.cxx
+RWStepKinematics_RWRigidLinkRepresentation.hxx
 RWStepKinematics_RWRollingCurvePair.cxx
 RWStepKinematics_RWRollingCurvePair.hxx
 RWStepKinematics_RWRollingCurvePairValue.cxx
diff --git a/src/RWStepKinematics/RWStepKinematics_RWRigidLinkRepresentation.cxx b/src/RWStepKinematics/RWStepKinematics_RWRigidLinkRepresentation.cxx
new file mode 100644 (file)
index 0000000..57f998d
--- /dev/null
@@ -0,0 +1,115 @@
+// 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());
+}
diff --git a/src/RWStepKinematics/RWStepKinematics_RWRigidLinkRepresentation.hxx b/src/RWStepKinematics/RWStepKinematics_RWRigidLinkRepresentation.hxx
new file mode 100644 (file)
index 0000000..a87fef0
--- /dev/null
@@ -0,0 +1,46 @@
+// 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_
index 39f671ef71e8665ef1891a9f8bcd0f5d1ad90a0e..358b6fdc0dc5aa11535965cf1641a946560e80d5 100644 (file)
@@ -797,6 +797,7 @@ static Standard_CString schemaAP242DIS = "AP242_MANAGED_MODEL_BASED_3D_ENGINEERI
 #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>
@@ -1601,6 +1602,7 @@ StepAP214_Protocol::StepAP214_Protocol ()
   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);
 
 }
 
index d092dcc017fc30e8715128fdb17a6e86cea7d89c..1dd4eb371e5aaadaac86101a6e69d51db1815773 100644 (file)
@@ -97,6 +97,8 @@ StepKinematics_RevolutePairValue.cxx
 StepKinematics_RevolutePairValue.hxx
 StepKinematics_RevolutePairWithRange.cxx
 StepKinematics_RevolutePairWithRange.hxx
+StepKinematics_RigidLinkRepresentation.cxx
+StepKinematics_RigidLinkRepresentation.hxx
 StepKinematics_RigidPlacement.cxx
 StepKinematics_RigidPlacement.hxx
 StepKinematics_RollingCurvePair.cxx
diff --git a/src/StepKinematics/StepKinematics_RigidLinkRepresentation.cxx b/src/StepKinematics/StepKinematics_RigidLinkRepresentation.cxx
new file mode 100644 (file)
index 0000000..82df53b
--- /dev/null
@@ -0,0 +1,28 @@
+// 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 ()
+{
+}
diff --git a/src/StepKinematics/StepKinematics_RigidLinkRepresentation.hxx b/src/StepKinematics/StepKinematics_RigidLinkRepresentation.hxx
new file mode 100644 (file)
index 0000000..935a80c
--- /dev/null
@@ -0,0 +1,41 @@
+// 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_