1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-26 10:19:45 +03:00
occt/src/RWStepShape/RWStepShape_RWSeamEdge.cxx
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

131 lines
4.2 KiB
C++

// Created on: 2002-01-04
// Created by: data exchange team
// Copyright (c) 2002-2014 OPEN CASCADE SAS
//
// 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.
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
#include <RWStepShape_RWSeamEdge.ixx>
//=======================================================================
//function : RWStepShape_RWSeamEdge
//purpose :
//=======================================================================
RWStepShape_RWSeamEdge::RWStepShape_RWSeamEdge ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepShape_RWSeamEdge::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepShape_SeamEdge) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,6,ach,"seam_edge") ) return;
// Inherited fields of RepresentationItem
Handle(TCollection_HAsciiString) aRepresentationItem_Name;
data->ReadString (num, 1, "representation_item.name", ach, aRepresentationItem_Name);
// Inherited fields of Edge
Handle(StepShape_Vertex) aEdge_EdgeStart;
data->CheckDerived(num, 2, "edge.edge_start", ach,Standard_False);
Handle(StepShape_Vertex) aEdge_EdgeEnd;
data->CheckDerived (num, 3, "edge.edge_end", ach, Standard_False);
// Inherited fields of OrientedEdge
Handle(StepShape_Edge) aOrientedEdge_EdgeElement;
data->ReadEntity (num, 4, "oriented_edge.edge_element", ach, STANDARD_TYPE(StepShape_Edge), aOrientedEdge_EdgeElement);
Standard_Boolean aOrientedEdge_Orientation;
data->ReadBoolean (num, 5, "oriented_edge.orientation", ach, aOrientedEdge_Orientation);
// Own fields of SeamEdge
Handle(StepGeom_Pcurve) aPcurveReference;
data->ReadEntity (num, 6, "pcurve_reference", ach, STANDARD_TYPE(StepGeom_Pcurve), aPcurveReference);
// Initialize entity
ent->Init(aRepresentationItem_Name,
aOrientedEdge_EdgeElement,
aOrientedEdge_Orientation,
aPcurveReference);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepShape_RWSeamEdge::WriteStep (StepData_StepWriter& SW,
const Handle(StepShape_SeamEdge) &ent) const
{
// Inherited fields of RepresentationItem
SW.Send (ent->StepRepr_RepresentationItem::Name());
// Inherited fields of Edge
SW.Send (ent->StepShape_Edge::EdgeStart());
SW.Send (ent->StepShape_Edge::EdgeEnd());
// Inherited fields of OrientedEdge
SW.Send (ent->StepShape_OrientedEdge::EdgeElement());
SW.SendBoolean (ent->StepShape_OrientedEdge::Orientation());
// Own fields of SeamEdge
SW.Send (ent->PcurveReference());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepShape_RWSeamEdge::Share (const Handle(StepShape_SeamEdge) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of RepresentationItem
// Inherited fields of Edge
iter.AddItem (ent->StepShape_Edge::EdgeStart());
iter.AddItem (ent->StepShape_Edge::EdgeEnd());
// Inherited fields of OrientedEdge
iter.AddItem (ent->StepShape_OrientedEdge::EdgeElement());
// Own fields of SeamEdge
iter.AddItem (ent->PcurveReference());
}