1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0031388: Data Exchange - support kinematics data in STEP format

- add new STEP entities.
This commit is contained in:
dpasukhi
2020-03-12 19:29:21 +03:00
committed by smoskvin
parent 92c1f9728e
commit 812ee2c9be
352 changed files with 34916 additions and 55 deletions

View File

@@ -114,10 +114,16 @@ StepRepr_Representation.cxx
StepRepr_Representation.hxx
StepRepr_RepresentationContext.cxx
StepRepr_RepresentationContext.hxx
StepRepr_RepresentationContextReference.cxx
StepRepr_RepresentationContextReference.hxx
StepRepr_RepresentationItem.cxx
StepRepr_RepresentationItem.hxx
StepRepr_RepresentationMap.cxx
StepRepr_RepresentationMap.hxx
StepRepr_RepresentationOrRepresentationReference.cxx
StepRepr_RepresentationOrRepresentationReference.hxx
StepRepr_RepresentationReference.cxx
StepRepr_RepresentationReference.hxx
StepRepr_RepresentationRelationship.cxx
StepRepr_RepresentationRelationship.hxx
StepRepr_RepresentationRelationshipWithTransformation.cxx

View File

@@ -42,6 +42,8 @@ public:
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
Standard_Boolean HasDescription() const { return !theDescription.IsNull(); }
Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& aDescription);

View File

@@ -0,0 +1,59 @@
// Created on : Sat May 02 12:41:14 2020
// Created by: Irina KRYLOVA
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V3.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 <StepRepr_RepresentationContextReference.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepRepr_RepresentationContextReference, Standard_Transient)
//=======================================================================
//function : StepRepr_RepresentationContextReference
//purpose :
//=======================================================================
StepRepr_RepresentationContextReference::StepRepr_RepresentationContextReference ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepRepr_RepresentationContextReference::Init (const Handle(TCollection_HAsciiString)& theContextIdentifier)
{
myContextIdentifier = theContextIdentifier;
}
//=======================================================================
//function : ContextIdentifier
//purpose :
//=======================================================================
Handle(TCollection_HAsciiString) StepRepr_RepresentationContextReference::ContextIdentifier () const
{
return myContextIdentifier;
}
//=======================================================================
//function : SetContextIdentifier
//purpose :
//=======================================================================
void StepRepr_RepresentationContextReference::SetContextIdentifier (const Handle(TCollection_HAsciiString)& theContextIdentifier)
{
myContextIdentifier = theContextIdentifier;
}

View File

@@ -0,0 +1,50 @@
// Created on : Sat May 02 12:41:14 2020
// Created by: Irina KRYLOVA
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V3.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 _StepRepr_RepresentationContextReference_HeaderFile_
#define _StepRepr_RepresentationContextReference_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Transient.hxx>
#include <TCollection_HAsciiString.hxx>
DEFINE_STANDARD_HANDLE(StepRepr_RepresentationContextReference, Standard_Transient)
//! Representation of STEP entity RepresentationContextReference
class StepRepr_RepresentationContextReference : public Standard_Transient
{
public :
//! default constructor
Standard_EXPORT StepRepr_RepresentationContextReference();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theContextIdentifier);
//! Returns field ContextIdentifier
Standard_EXPORT Handle(TCollection_HAsciiString) ContextIdentifier() const;
//! Sets field ContextIdentifier
Standard_EXPORT void SetContextIdentifier (const Handle(TCollection_HAsciiString)& theContextIdentifier);
DEFINE_STANDARD_RTTIEXT(StepRepr_RepresentationContextReference, Standard_Transient)
private:
Handle(TCollection_HAsciiString) myContextIdentifier;
};
#endif // _StepRepr_RepresentationContextReference_HeaderFile_

View File

@@ -0,0 +1,61 @@
// Created on : Sat May 02 12:41:14 2020
// Created by: Irina KRYLOVA
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V3.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 <StepRepr_RepresentationOrRepresentationReference.hxx>
#include <StepRepr_Representation.hxx>
#include <StepRepr_RepresentationReference.hxx>
//=======================================================================
//function : StepRepr_RepresentationOrRepresentationReference
//purpose :
//=======================================================================
StepRepr_RepresentationOrRepresentationReference::StepRepr_RepresentationOrRepresentationReference ()
{
}
//=======================================================================
//function : CaseNum
//purpose :
//=======================================================================
Standard_Integer StepRepr_RepresentationOrRepresentationReference::CaseNum (const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepRepr_RepresentationReference))) return 2;
return 0;
}
//=======================================================================
//function : Representation
//purpose :
//=======================================================================
Handle(StepRepr_Representation) StepRepr_RepresentationOrRepresentationReference::Representation () const
{
return Handle(StepRepr_Representation)::DownCast(Value());
}
//=======================================================================
//function : RepresentationReference
//purpose :
//=======================================================================
Handle(StepRepr_RepresentationReference) StepRepr_RepresentationOrRepresentationReference::RepresentationReference () const
{
return Handle(StepRepr_RepresentationReference)::DownCast(Value());
}

View File

@@ -0,0 +1,53 @@
// Created on : Sat May 02 12:41:14 2020
// Created by: Irina KRYLOVA
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V3.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 _StepRepr_RepresentationOrRepresentationReference_HeaderFile
#define _StepRepr_RepresentationOrRepresentationReference_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <StepData_SelectType.hxx>
#include <Standard_Integer.hxx>
class Standard_Transient;
class StepRepr_Representation;
class StepRepr_RepresentationReference;
//! Representation of STEP SELECT type RepresentationOrRepresentationReference
class StepRepr_RepresentationOrRepresentationReference : public StepData_SelectType
{
public:
DEFINE_STANDARD_ALLOC
//! Empty constructor
Standard_EXPORT StepRepr_RepresentationOrRepresentationReference();
//! Recognizes a kind of RepresentationOrRepresentationReference select type
//! -- 1 -> Representation
//! -- 2 -> RepresentationReference
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
//! Returns Value as Representation (or Null if another type)
Standard_EXPORT Handle(StepRepr_Representation) Representation() const;
//! Returns Value as RepresentationReference (or Null if another type)
Standard_EXPORT Handle(StepRepr_RepresentationReference) RepresentationReference() const;
};
#endif // _StepRepr_RepresentationOrRepresentationReference_HeaderFile

View File

@@ -0,0 +1,82 @@
// Created on : Sat May 02 12:41:14 2020
// Created by: Irina KRYLOVA
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V3.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 <StepRepr_RepresentationReference.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepRepr_RepresentationReference, Standard_Transient)
//=======================================================================
//function : StepRepr_RepresentationReference
//purpose :
//=======================================================================
StepRepr_RepresentationReference::StepRepr_RepresentationReference ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepRepr_RepresentationReference::Init (const Handle(TCollection_HAsciiString)& theId,
const Handle(StepRepr_RepresentationContextReference)& theContextOfItems)
{
myId = theId;
myContextOfItems = theContextOfItems;
}
//=======================================================================
//function : Id
//purpose :
//=======================================================================
Handle(TCollection_HAsciiString) StepRepr_RepresentationReference::Id () const
{
return myId;
}
//=======================================================================
//function : SetId
//purpose :
//=======================================================================
void StepRepr_RepresentationReference::SetId (const Handle(TCollection_HAsciiString)& theId)
{
myId = theId;
}
//=======================================================================
//function : ContextOfItems
//purpose :
//=======================================================================
Handle(StepRepr_RepresentationContextReference) StepRepr_RepresentationReference::ContextOfItems () const
{
return myContextOfItems;
}
//=======================================================================
//function : SetContextOfItems
//purpose :
//=======================================================================
void StepRepr_RepresentationReference::SetContextOfItems (const Handle(StepRepr_RepresentationContextReference)& theContextOfItems)
{
myContextOfItems = theContextOfItems;
}

View File

@@ -0,0 +1,58 @@
// Created on : Sat May 02 12:41:14 2020
// Created by: Irina KRYLOVA
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V3.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 _StepRepr_RepresentationReference_HeaderFile_
#define _StepRepr_RepresentationReference_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Transient.hxx>
#include <TCollection_HAsciiString.hxx>
#include <StepRepr_RepresentationContextReference.hxx>
DEFINE_STANDARD_HANDLE(StepRepr_RepresentationReference, Standard_Transient)
//! Representation of STEP entity RepresentationReference
class StepRepr_RepresentationReference : public Standard_Transient
{
public :
//! default constructor
Standard_EXPORT StepRepr_RepresentationReference();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theId,
const Handle(StepRepr_RepresentationContextReference)& theContextOfItems);
//! Returns field Id
Standard_EXPORT Handle(TCollection_HAsciiString) Id() const;
//! Sets field Id
Standard_EXPORT void SetId (const Handle(TCollection_HAsciiString)& theId);
//! Returns field ContextOfItems
Standard_EXPORT Handle(StepRepr_RepresentationContextReference) ContextOfItems() const;
//! Sets field ContextOfItems
Standard_EXPORT void SetContextOfItems (const Handle(StepRepr_RepresentationContextReference)& theContextOfItems);
DEFINE_STANDARD_RTTIEXT(StepRepr_RepresentationReference, Standard_Transient)
private:
Handle(TCollection_HAsciiString) myId;
Handle(StepRepr_RepresentationContextReference) myContextOfItems;
};
#endif // _StepRepr_RepresentationReference_HeaderFile_

View File

@@ -43,6 +43,8 @@ public:
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
Standard_Boolean HasDescription() { return !description.IsNull(); }
Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& aDescription);

View File

@@ -14,6 +14,7 @@
#include <Interface_Macros.hxx>
#include <Standard_Transient.hxx>
#include <StepGeom_GeometricRepresentationItem.hxx>
#include <StepRepr_FunctionallyDefinedTransformation.hxx>
#include <StepRepr_ItemDefinedTransformation.hxx>
#include <StepRepr_Transformation.hxx>
@@ -25,6 +26,7 @@ Standard_Integer StepRepr_Transformation::CaseNum(const Handle(Standard_Transien
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ItemDefinedTransformation))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepRepr_FunctionallyDefinedTransformation))) return 2;
if (ent->IsKind(STANDARD_TYPE(StepGeom_GeometricRepresentationItem))) return 1;
return 0;
}

View File

@@ -52,8 +52,6 @@ public:
Standard_EXPORT Handle(StepRepr_FunctionallyDefinedTransformation) FunctionallyDefinedTransformation() const;
protected: