mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
168
src/StepElement/StepElement.cdl
Executable file
168
src/StepElement/StepElement.cdl
Executable file
@@ -0,0 +1,168 @@
|
||||
|
||||
|
||||
package StepElement
|
||||
|
||||
|
||||
uses
|
||||
|
||||
TCollection,
|
||||
TColStd,
|
||||
MMgt,
|
||||
StepData,
|
||||
StepBasic,
|
||||
StepRepr
|
||||
|
||||
is
|
||||
|
||||
enumeration ElementOrder is
|
||||
Linear,
|
||||
Quadratic,
|
||||
Cubic
|
||||
end;
|
||||
|
||||
enumeration EnumeratedCurveElementPurpose is
|
||||
Axial,
|
||||
YYBending,
|
||||
ZZBending,
|
||||
Torsion,
|
||||
XYShear,
|
||||
XZShear,
|
||||
Warping
|
||||
end;
|
||||
|
||||
enumeration EnumeratedCurveElementFreedom is
|
||||
XTranslation,
|
||||
YTranslation,
|
||||
ZTranslation,
|
||||
XRotation,
|
||||
YRotation,
|
||||
ZRotation,
|
||||
Warp,
|
||||
None
|
||||
end;
|
||||
|
||||
enumeration UnspecifiedValue is
|
||||
Unspecified
|
||||
end;
|
||||
|
||||
enumeration ElementVolume is
|
||||
Volume
|
||||
end;
|
||||
|
||||
enumeration CurveEdge is
|
||||
ElementEdge
|
||||
end;
|
||||
|
||||
enumeration EnumeratedSurfaceElementPurpose is
|
||||
MembraneDirect,
|
||||
MembraneShear,
|
||||
BendingDirect,
|
||||
BendingTorsion,
|
||||
NormalToPlaneShear
|
||||
end;
|
||||
|
||||
enumeration Element2dShape is
|
||||
Quadrilateral,
|
||||
Triangle
|
||||
end;
|
||||
|
||||
enumeration EnumeratedVolumeElementPurpose is
|
||||
StressDisplacement
|
||||
end;
|
||||
|
||||
enumeration Volume3dElementShape is
|
||||
Hexahedron,
|
||||
Wedge,
|
||||
Tetrahedron,
|
||||
Pyramid
|
||||
end;
|
||||
|
||||
|
||||
|
||||
class AnalysisItemWithinRepresentation;
|
||||
class Curve3dElementDescriptor;
|
||||
class CurveElementEndReleasePacket;
|
||||
class CurveElementFreedom;
|
||||
class CurveElementFreedomMember;
|
||||
class CurveElementPurpose;
|
||||
class CurveElementPurposeMember;
|
||||
class CurveElementSectionDefinition;
|
||||
class CurveElementSectionDerivedDefinitions;
|
||||
class ElementAspect;
|
||||
class ElementAspectMember;
|
||||
class ElementDescriptor;
|
||||
class ElementMaterial;
|
||||
class MeasureOrUnspecifiedValue;
|
||||
class MeasureOrUnspecifiedValueMember;
|
||||
class Surface3dElementDescriptor;
|
||||
class SurfaceElementProperty;
|
||||
class SurfaceElementPurpose;
|
||||
class SurfaceElementPurposeMember;
|
||||
class SurfaceSection;
|
||||
class SurfaceSectionField;
|
||||
class SurfaceSectionFieldConstant;
|
||||
class SurfaceSectionFieldVarying;
|
||||
class UniformSurfaceSection;
|
||||
class Volume3dElementDescriptor;
|
||||
class VolumeElementPurpose;
|
||||
class VolumeElementPurposeMember;
|
||||
|
||||
|
||||
--- Instantiations
|
||||
|
||||
class Array2OfCurveElementPurposeMember instantiates Array2 from TCollection (CurveElementPurposeMember);
|
||||
class HArray2OfCurveElementPurposeMember instantiates HArray2 from TCollection (CurveElementPurposeMember,Array2OfCurveElementPurposeMember from StepElement);
|
||||
|
||||
class Array2OfSurfaceElementPurposeMember instantiates Array2 from TCollection (SurfaceElementPurposeMember);
|
||||
class HArray2OfSurfaceElementPurposeMember instantiates HArray2 from TCollection (SurfaceElementPurposeMember,Array2OfSurfaceElementPurposeMember from StepElement);
|
||||
|
||||
class Array1OfVolumeElementPurposeMember instantiates Array1 from TCollection (VolumeElementPurposeMember);
|
||||
class HArray1OfVolumeElementPurposeMember instantiates HArray1 from TCollection (VolumeElementPurposeMember,Array1OfVolumeElementPurposeMember from StepElement);
|
||||
|
||||
class Array2OfSurfaceElementPurpose instantiates Array2 from TCollection (SurfaceElementPurpose);
|
||||
class HArray2OfSurfaceElementPurpose instantiates HArray2 from TCollection (SurfaceElementPurpose, Array2OfSurfaceElementPurpose from StepElement);
|
||||
|
||||
class Array1OfMeasureOrUnspecifiedValue instantiates Array1 from TCollection (MeasureOrUnspecifiedValue);
|
||||
class HArray1OfMeasureOrUnspecifiedValue instantiates HArray1 from TCollection (MeasureOrUnspecifiedValue, Array1OfMeasureOrUnspecifiedValue from StepElement);
|
||||
|
||||
class Array1OfSurfaceSection instantiates Array1 from TCollection (SurfaceSection);
|
||||
class HArray1OfSurfaceSection instantiates HArray1 from TCollection (SurfaceSection, Array1OfSurfaceSection from StepElement);
|
||||
|
||||
class Array1OfVolumeElementPurpose instantiates Array1 from TCollection (VolumeElementPurpose);
|
||||
class HArray1OfVolumeElementPurpose instantiates HArray1 from TCollection (VolumeElementPurpose, Array1OfVolumeElementPurpose from StepElement);
|
||||
|
||||
class Array1OfCurveElementEndReleasePacket instantiates Array1 from TCollection (CurveElementEndReleasePacket);
|
||||
class HArray1OfCurveElementEndReleasePacket instantiates HArray1 from TCollection (CurveElementEndReleasePacket, Array1OfCurveElementEndReleasePacket from StepElement);
|
||||
|
||||
class Array1OfCurveElementSectionDefinition instantiates Array1 from TCollection (CurveElementSectionDefinition);
|
||||
class HArray1OfCurveElementSectionDefinition instantiates HArray1 from TCollection (CurveElementSectionDefinition, Array1OfCurveElementSectionDefinition from StepElement);
|
||||
|
||||
|
||||
class SequenceOfElementMaterial instantiates Sequence from TCollection (ElementMaterial);
|
||||
class HSequenceOfElementMaterial instantiates HSequence from TCollection (ElementMaterial, SequenceOfElementMaterial from StepElement);
|
||||
|
||||
class SequenceOfCurveElementSectionDefinition instantiates Sequence
|
||||
from TCollection (CurveElementSectionDefinition);
|
||||
class HSequenceOfCurveElementSectionDefinition instantiates HSequence
|
||||
from TCollection (CurveElementSectionDefinition, SequenceOfCurveElementSectionDefinition from StepElement);
|
||||
|
||||
class SequenceOfCurveElementPurposeMember instantiates Sequence
|
||||
from TCollection (CurveElementPurposeMember);
|
||||
class HSequenceOfCurveElementPurposeMember instantiates HSequence
|
||||
from TCollection (CurveElementPurposeMember, SequenceOfCurveElementPurposeMember from StepElement);
|
||||
class Array1OfHSequenceOfCurveElementPurposeMember instantiates Array1
|
||||
from TCollection (HSequenceOfCurveElementPurposeMember);
|
||||
class HArray1OfHSequenceOfCurveElementPurposeMember instantiates HArray1
|
||||
from TCollection (HSequenceOfCurveElementPurposeMember, Array1OfHSequenceOfCurveElementPurposeMember from StepElement);
|
||||
|
||||
class SequenceOfSurfaceElementPurposeMember instantiates Sequence
|
||||
from TCollection (SurfaceElementPurposeMember);
|
||||
class HSequenceOfSurfaceElementPurposeMember instantiates HSequence
|
||||
from TCollection (SurfaceElementPurposeMember, SequenceOfSurfaceElementPurposeMember from StepElement);
|
||||
class Array1OfHSequenceOfSurfaceElementPurposeMember instantiates Array1
|
||||
from TCollection (HSequenceOfSurfaceElementPurposeMember);
|
||||
class HArray1OfHSequenceOfSurfaceElementPurposeMember instantiates HArray1
|
||||
from TCollection (HSequenceOfSurfaceElementPurposeMember, Array1OfHSequenceOfSurfaceElementPurposeMember from StepElement);
|
||||
|
||||
|
||||
end;
|
53
src/StepElement/StepElement_AnalysisItemWithinRepresentation.cdl
Executable file
53
src/StepElement/StepElement_AnalysisItemWithinRepresentation.cdl
Executable file
@@ -0,0 +1,53 @@
|
||||
-- File: StepElement_AnalysisItemWithinRepresentation.cdl
|
||||
-- Created: Thu Dec 12 17:28:59 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class AnalysisItemWithinRepresentation from StepElement
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: Representation of STEP entity AnalysisItemWithinRepresentation
|
||||
|
||||
uses
|
||||
HAsciiString from TCollection,
|
||||
RepresentationItem from StepRepr,
|
||||
Representation from StepRepr
|
||||
|
||||
is
|
||||
Create returns AnalysisItemWithinRepresentation from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aName: HAsciiString from TCollection;
|
||||
aDescription: HAsciiString from TCollection;
|
||||
aItem: RepresentationItem from StepRepr;
|
||||
aRep: Representation from StepRepr);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Name (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns field Name
|
||||
SetName (me: mutable; Name: HAsciiString from TCollection);
|
||||
---Purpose: Set field Name
|
||||
|
||||
Description (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns field Description
|
||||
SetDescription (me: mutable; Description: HAsciiString from TCollection);
|
||||
---Purpose: Set field Description
|
||||
|
||||
Item (me) returns RepresentationItem from StepRepr;
|
||||
---Purpose: Returns field Item
|
||||
SetItem (me: mutable; Item: RepresentationItem from StepRepr);
|
||||
---Purpose: Set field Item
|
||||
|
||||
Rep (me) returns Representation from StepRepr;
|
||||
---Purpose: Returns field Rep
|
||||
SetRep (me: mutable; Rep: Representation from StepRepr);
|
||||
---Purpose: Set field Rep
|
||||
|
||||
fields
|
||||
theName: HAsciiString from TCollection;
|
||||
theDescription: HAsciiString from TCollection;
|
||||
theItem: RepresentationItem from StepRepr;
|
||||
theRep: Representation from StepRepr;
|
||||
|
||||
end AnalysisItemWithinRepresentation;
|
116
src/StepElement/StepElement_AnalysisItemWithinRepresentation.cxx
Executable file
116
src/StepElement/StepElement_AnalysisItemWithinRepresentation.cxx
Executable file
@@ -0,0 +1,116 @@
|
||||
// File: StepElement_AnalysisItemWithinRepresentation.cxx
|
||||
// Created: Thu Dec 12 17:28:59 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_AnalysisItemWithinRepresentation.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_AnalysisItemWithinRepresentation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_AnalysisItemWithinRepresentation::StepElement_AnalysisItemWithinRepresentation ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_AnalysisItemWithinRepresentation::Init (const Handle(TCollection_HAsciiString) &aName,
|
||||
const Handle(TCollection_HAsciiString) &aDescription,
|
||||
const Handle(StepRepr_RepresentationItem) &aItem,
|
||||
const Handle(StepRepr_Representation) &aRep)
|
||||
{
|
||||
|
||||
theName = aName;
|
||||
|
||||
theDescription = aDescription;
|
||||
|
||||
theItem = aItem;
|
||||
|
||||
theRep = aRep;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_AnalysisItemWithinRepresentation::Name () const
|
||||
{
|
||||
return theName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_AnalysisItemWithinRepresentation::SetName (const Handle(TCollection_HAsciiString) &aName)
|
||||
{
|
||||
theName = aName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Description
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_AnalysisItemWithinRepresentation::Description () const
|
||||
{
|
||||
return theDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDescription
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_AnalysisItemWithinRepresentation::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
|
||||
{
|
||||
theDescription = aDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Item
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepRepr_RepresentationItem) StepElement_AnalysisItemWithinRepresentation::Item () const
|
||||
{
|
||||
return theItem;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetItem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_AnalysisItemWithinRepresentation::SetItem (const Handle(StepRepr_RepresentationItem) &aItem)
|
||||
{
|
||||
theItem = aItem;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Rep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepRepr_Representation) StepElement_AnalysisItemWithinRepresentation::Rep () const
|
||||
{
|
||||
return theRep;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetRep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_AnalysisItemWithinRepresentation::SetRep (const Handle(StepRepr_Representation) &aRep)
|
||||
{
|
||||
theRep = aRep;
|
||||
}
|
35
src/StepElement/StepElement_Curve3dElementDescriptor.cdl
Executable file
35
src/StepElement/StepElement_Curve3dElementDescriptor.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: StepElement_Curve3dElementDescriptor.cdl
|
||||
-- Created: Thu Dec 12 17:28:59 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class Curve3dElementDescriptor from StepElement
|
||||
inherits ElementDescriptor from StepElement
|
||||
|
||||
---Purpose: Representation of STEP entity Curve3dElementDescriptor
|
||||
|
||||
uses
|
||||
ElementOrder from StepElement,
|
||||
HAsciiString from TCollection,
|
||||
HArray1OfHSequenceOfCurveElementPurposeMember from StepElement
|
||||
|
||||
is
|
||||
Create returns Curve3dElementDescriptor from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aElementDescriptor_TopologyOrder: ElementOrder from StepElement;
|
||||
aElementDescriptor_Description: HAsciiString from TCollection;
|
||||
aPurpose: HArray1OfHSequenceOfCurveElementPurposeMember from StepElement);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Purpose (me) returns HArray1OfHSequenceOfCurveElementPurposeMember from StepElement;
|
||||
---Purpose: Returns field Purpose
|
||||
SetPurpose (me: mutable; Purpose: HArray1OfHSequenceOfCurveElementPurposeMember from StepElement);
|
||||
---Purpose: Set field Purpose
|
||||
|
||||
fields
|
||||
|
||||
thePurpose: HArray1OfHSequenceOfCurveElementPurposeMember from StepElement;
|
||||
|
||||
end Curve3dElementDescriptor;
|
51
src/StepElement/StepElement_Curve3dElementDescriptor.cxx
Executable file
51
src/StepElement/StepElement_Curve3dElementDescriptor.cxx
Executable file
@@ -0,0 +1,51 @@
|
||||
// File: StepElement_Curve3dElementDescriptor.cxx
|
||||
// Created: Thu Dec 12 17:28:59 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_Curve3dElementDescriptor.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_Curve3dElementDescriptor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_Curve3dElementDescriptor::StepElement_Curve3dElementDescriptor ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_Curve3dElementDescriptor::Init (const StepElement_ElementOrder aElementDescriptor_TopologyOrder,
|
||||
const Handle(TCollection_HAsciiString) &aElementDescriptor_Description,
|
||||
const Handle(StepElement_HArray1OfHSequenceOfCurveElementPurposeMember) &aPurpose)
|
||||
{
|
||||
StepElement_ElementDescriptor::Init(aElementDescriptor_TopologyOrder,
|
||||
aElementDescriptor_Description);
|
||||
|
||||
thePurpose = aPurpose;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Purpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_HArray1OfHSequenceOfCurveElementPurposeMember) StepElement_Curve3dElementDescriptor::Purpose () const
|
||||
{
|
||||
return thePurpose;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_Curve3dElementDescriptor::SetPurpose (const Handle(StepElement_HArray1OfHSequenceOfCurveElementPurposeMember) &aPurpose)
|
||||
{
|
||||
thePurpose = aPurpose;
|
||||
}
|
37
src/StepElement/StepElement_CurveElementEndReleasePacket.cdl
Executable file
37
src/StepElement/StepElement_CurveElementEndReleasePacket.cdl
Executable file
@@ -0,0 +1,37 @@
|
||||
-- File: StepElement_CurveElementEndReleasePacket.cdl
|
||||
-- Created: Thu Dec 12 17:29:00 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class CurveElementEndReleasePacket from StepElement
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: Representation of STEP entity CurveElementEndReleasePacket
|
||||
|
||||
uses
|
||||
CurveElementFreedom from StepElement
|
||||
|
||||
is
|
||||
Create returns CurveElementEndReleasePacket from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aReleaseFreedom: CurveElementFreedom from StepElement;
|
||||
aReleaseStiffness: Real);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
ReleaseFreedom (me) returns CurveElementFreedom from StepElement;
|
||||
---Purpose: Returns field ReleaseFreedom
|
||||
SetReleaseFreedom (me: mutable; ReleaseFreedom: CurveElementFreedom from StepElement);
|
||||
---Purpose: Set field ReleaseFreedom
|
||||
|
||||
ReleaseStiffness (me) returns Real;
|
||||
---Purpose: Returns field ReleaseStiffness
|
||||
SetReleaseStiffness (me: mutable; ReleaseStiffness: Real);
|
||||
---Purpose: Set field ReleaseStiffness
|
||||
|
||||
fields
|
||||
theReleaseFreedom: CurveElementFreedom from StepElement;
|
||||
theReleaseStiffness: Real;
|
||||
|
||||
end CurveElementEndReleasePacket;
|
70
src/StepElement/StepElement_CurveElementEndReleasePacket.cxx
Executable file
70
src/StepElement/StepElement_CurveElementEndReleasePacket.cxx
Executable file
@@ -0,0 +1,70 @@
|
||||
// File: StepElement_CurveElementEndReleasePacket.cxx
|
||||
// Created: Thu Dec 12 17:29:00 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_CurveElementEndReleasePacket.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_CurveElementEndReleasePacket
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveElementEndReleasePacket::StepElement_CurveElementEndReleasePacket ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementEndReleasePacket::Init (const StepElement_CurveElementFreedom &aReleaseFreedom,
|
||||
const Standard_Real aReleaseStiffness)
|
||||
{
|
||||
|
||||
theReleaseFreedom = aReleaseFreedom;
|
||||
|
||||
theReleaseStiffness = aReleaseStiffness;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReleaseFreedom
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveElementFreedom StepElement_CurveElementEndReleasePacket::ReleaseFreedom () const
|
||||
{
|
||||
return theReleaseFreedom;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetReleaseFreedom
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementEndReleasePacket::SetReleaseFreedom (const StepElement_CurveElementFreedom &aReleaseFreedom)
|
||||
{
|
||||
theReleaseFreedom = aReleaseFreedom;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReleaseStiffness
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Real StepElement_CurveElementEndReleasePacket::ReleaseStiffness () const
|
||||
{
|
||||
return theReleaseStiffness;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetReleaseStiffness
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementEndReleasePacket::SetReleaseStiffness (const Standard_Real aReleaseStiffness)
|
||||
{
|
||||
theReleaseStiffness = aReleaseStiffness;
|
||||
}
|
47
src/StepElement/StepElement_CurveElementFreedom.cdl
Executable file
47
src/StepElement/StepElement_CurveElementFreedom.cdl
Executable file
@@ -0,0 +1,47 @@
|
||||
-- File: StepElement_CurveElementFreedom.cdl
|
||||
-- Created: Tue Dec 10 18:12:57 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class CurveElementFreedom from StepElement
|
||||
inherits SelectType from StepData
|
||||
|
||||
---Purpose: Representation of STEP SELECT type CurveElementFreedom
|
||||
|
||||
uses
|
||||
SelectMember from StepData,
|
||||
EnumeratedCurveElementFreedom from StepElement,
|
||||
HAsciiString from TCollection
|
||||
|
||||
is
|
||||
Create returns CurveElementFreedom from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
CaseNum (me; ent: Transient) returns Integer;
|
||||
---Purpose: Recognizes a kind of CurveElementFreedom select type
|
||||
-- return 0
|
||||
|
||||
CaseMem (me; ent: SelectMember from StepData) returns Integer is redefined;
|
||||
---Purpose: Recognizes a items of select member CurveElementFreedomMember
|
||||
-- 1 -> EnumeratedCurveElementFreedom
|
||||
-- 2 -> ApplicationDefinedDegreeOfFreedom
|
||||
-- 0 else
|
||||
|
||||
|
||||
NewMember(me) returns SelectMember from StepData is redefined;
|
||||
---Purpose: Returns a new select member the type CurveElementFreedomMember
|
||||
|
||||
SetEnumeratedCurveElementFreedom(me: in out; aVal :EnumeratedCurveElementFreedom from StepElement);
|
||||
---Purpose: Set Value for EnumeratedCurveElementFreedom
|
||||
|
||||
EnumeratedCurveElementFreedom (me) returns EnumeratedCurveElementFreedom from StepElement;
|
||||
---Purpose: Returns Value as EnumeratedCurveElementFreedom (or Null if another type)
|
||||
|
||||
SetApplicationDefinedDegreeOfFreedom(me: in out; aVal :HAsciiString from TCollection);
|
||||
---Purpose: Set Value for ApplicationDefinedDegreeOfFreedom
|
||||
|
||||
ApplicationDefinedDegreeOfFreedom (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns Value as ApplicationDefinedDegreeOfFreedom (or Null if another type)
|
||||
|
||||
end CurveElementFreedom;
|
128
src/StepElement/StepElement_CurveElementFreedom.cxx
Executable file
128
src/StepElement/StepElement_CurveElementFreedom.cxx
Executable file
@@ -0,0 +1,128 @@
|
||||
// File: StepElement_CurveElementFreedom.cxx
|
||||
// Created: Tue Dec 10 18:12:57 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_CurveElementFreedom.ixx>
|
||||
#include <StepElement_CurveElementFreedomMember.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Standard_CString anEnum = "ENUMERATED_CURVE_ELEMENT_FREEDOM";
|
||||
static Standard_CString anApp = "APPLICATION_DEFINED_DEGREE_OF_FREEDOM";
|
||||
//=======================================================================
|
||||
//function : StepElement_CurveElementFreedom
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveElementFreedom::StepElement_CurveElementFreedom ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_CurveElementFreedom::CaseNum (const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseMem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_CurveElementFreedom::CaseMem (const Handle(StepData_SelectMember)& ent) const
|
||||
{
|
||||
if(ent.IsNull()) return 0;
|
||||
if(ent->Matches(anEnum)) return 1;
|
||||
else if(ent->Matches(anApp)) return 2;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepData_SelectMember) StepElement_CurveElementFreedom::NewMember() const
|
||||
{
|
||||
return new StepElement_CurveElementFreedomMember;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetEnumeratedCurveElementFreedom
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementFreedom::SetEnumeratedCurveElementFreedom (const StepElement_EnumeratedCurveElementFreedom val)
|
||||
{
|
||||
Handle(StepElement_CurveElementFreedomMember) SelMem = Handle(StepElement_CurveElementFreedomMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ENUMERATED_CURVE_ELEMENT_FREEDOM");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetEnum((Standard_Integer)val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : EnumeratedCurveElementFreedom
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_EnumeratedCurveElementFreedom StepElement_CurveElementFreedom::EnumeratedCurveElementFreedom () const
|
||||
{
|
||||
Handle(StepElement_CurveElementFreedomMember) SelMem = Handle(StepElement_CurveElementFreedomMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return StepElement_None;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ENUMERATED_CURVE_ELEMENT_FREEDOM");
|
||||
if(name->IsDifferent(nameitem)) return StepElement_None;
|
||||
Standard_Integer numit = SelMem->Enum();
|
||||
StepElement_EnumeratedCurveElementFreedom val;
|
||||
switch(numit) {
|
||||
case 1 : val = StepElement_XTranslation; break;
|
||||
case 2 : val = StepElement_YTranslation; break;
|
||||
case 3 : val = StepElement_ZTranslation; break;
|
||||
case 4 : val = StepElement_XRotation; break;
|
||||
case 5 : val = StepElement_YRotation; break;
|
||||
case 6 : val = StepElement_ZRotation; break;
|
||||
case 7 : val = StepElement_Warp; break;
|
||||
case 8 : val = StepElement_None; break;
|
||||
default : return StepElement_None;break;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetApplicationDefinedDegreeOfFreedom
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementFreedom::SetApplicationDefinedDegreeOfFreedom (const Handle(TCollection_HAsciiString) &val)
|
||||
{
|
||||
Handle(StepElement_CurveElementFreedomMember) SelMem = Handle(StepElement_CurveElementFreedomMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("APPLICATION_DEFINED_DEGREE_OF_FREEDOM");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetString(val->ToCString());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ApplicationDefinedDegreeOfFreedom
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_CurveElementFreedom::ApplicationDefinedDegreeOfFreedom () const
|
||||
{
|
||||
Handle(StepElement_CurveElementFreedomMember) SelMem = Handle(StepElement_CurveElementFreedomMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("APPLICATION_DEFINED_DEGREE_OF_FREEDOM");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Handle(TCollection_HAsciiString) val = new TCollection_HAsciiString;
|
||||
val->AssignCat(SelMem->String());
|
||||
return val;
|
||||
}
|
32
src/StepElement/StepElement_CurveElementFreedomMember.cdl
Executable file
32
src/StepElement/StepElement_CurveElementFreedomMember.cdl
Executable file
@@ -0,0 +1,32 @@
|
||||
-- File: StepElement_CurveElementFreedomMember.cdl
|
||||
-- Created: Tue Dec 10 18:12:57 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class CurveElementFreedomMember from StepElement
|
||||
inherits SelectNamed from StepData
|
||||
|
||||
---Purpose: Representation of member for STEP SELECT type CurveElementFreedom
|
||||
|
||||
is
|
||||
Create returns CurveElementFreedomMember from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
HasName (me) returns Boolean is redefined;
|
||||
---Purpose: Returns True if has name
|
||||
|
||||
Name (me) returns CString is redefined;
|
||||
---Purpose: Returns set name
|
||||
|
||||
SetName (me : mutable; name : CString) returns Boolean is redefined;
|
||||
---Purpose: Set name
|
||||
|
||||
Matches (me; name : CString) returns Boolean is redefined;
|
||||
---Purpose : Tells if the name of a SelectMember matches a given one;
|
||||
|
||||
fields
|
||||
|
||||
mycase : Integer;
|
||||
|
||||
end CurveElementFreedomMember;
|
89
src/StepElement/StepElement_CurveElementFreedomMember.cxx
Executable file
89
src/StepElement/StepElement_CurveElementFreedomMember.cxx
Executable file
@@ -0,0 +1,89 @@
|
||||
// File: StepElement_CurveElementFreedomMember.cxx
|
||||
// Created: Tue Dec 10 18:12:57 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_CurveElementFreedomMember.ixx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Standard_CString ECEF = "ENUMERATED_CURVE_ELEMENT_FREEDOM";
|
||||
static Standard_CString ADDF = "APPLICATION_DEFINED_DEGREE_OF_FREEDOM";
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_CurveElementFreedomMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveElementFreedomMember::StepElement_CurveElementFreedomMember () : mycase(0)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : HasName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_CurveElementFreedomMember::HasName() const
|
||||
{
|
||||
return mycase >0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_CString StepElement_CurveElementFreedomMember::Name() const
|
||||
{
|
||||
switch(mycase) {
|
||||
case 1 : return ECEF;
|
||||
case 2 : return ADDF;
|
||||
default : break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CompareNames
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer CompareNames(const Standard_CString name,Standard_Integer &numen)
|
||||
{
|
||||
Standard_Integer thecase =0;
|
||||
if (!name || name[0] == '\0') thecase = 0;
|
||||
|
||||
else if(!strcmp (name,ECEF)){
|
||||
thecase = 1;
|
||||
}
|
||||
else if(!strcmp (name,ADDF)){
|
||||
thecase = 2;
|
||||
}
|
||||
return thecase;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_CurveElementFreedomMember::SetName(const Standard_CString name)
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
mycase = CompareNames(name,numit);
|
||||
if(numit) SetInteger(numit);
|
||||
return (mycase >0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Matches
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_CurveElementFreedomMember::Matches(const Standard_CString name) const
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
Standard_Integer thecase = CompareNames(name,numit);
|
||||
return (mycase==thecase);
|
||||
}
|
47
src/StepElement/StepElement_CurveElementPurpose.cdl
Executable file
47
src/StepElement/StepElement_CurveElementPurpose.cdl
Executable file
@@ -0,0 +1,47 @@
|
||||
-- File: StepElement_CurveElementPurpose.cdl
|
||||
-- Created: Tue Dec 10 18:12:56 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class CurveElementPurpose from StepElement
|
||||
inherits SelectType from StepData
|
||||
|
||||
---Purpose: Representation of STEP SELECT type CurveElementPurpose
|
||||
|
||||
uses
|
||||
SelectMember from StepData,
|
||||
EnumeratedCurveElementPurpose from StepElement,
|
||||
HAsciiString from TCollection
|
||||
|
||||
is
|
||||
Create returns CurveElementPurpose from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
CaseNum (me; ent: Transient) returns Integer;
|
||||
---Purpose: Recognizes a kind of CurveElementPurpose select type
|
||||
-- return 0
|
||||
|
||||
CaseMem (me; ent: SelectMember from StepData) returns Integer is redefined;
|
||||
---Purpose: Recognizes a items of select member CurveElementPurposeMember
|
||||
-- 1 -> EnumeratedCurveElementPurpose
|
||||
-- 2 -> ApplicationDefinedElementPurpose
|
||||
-- 0 else
|
||||
|
||||
|
||||
NewMember(me) returns SelectMember from StepData is redefined;
|
||||
---Purpose: Returns a new select member the type CurveElementPurposeMember
|
||||
|
||||
SetEnumeratedCurveElementPurpose(me: in out; aVal :EnumeratedCurveElementPurpose from StepElement);
|
||||
---Purpose: Set Value for EnumeratedCurveElementPurpose
|
||||
|
||||
EnumeratedCurveElementPurpose (me) returns EnumeratedCurveElementPurpose from StepElement;
|
||||
---Purpose: Returns Value as EnumeratedCurveElementPurpose (or Null if another type)
|
||||
|
||||
SetApplicationDefinedElementPurpose(me: in out; aVal :HAsciiString from TCollection);
|
||||
---Purpose: Set Value for ApplicationDefinedElementPurpose
|
||||
|
||||
ApplicationDefinedElementPurpose (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns Value as ApplicationDefinedElementPurpose (or Null if another type)
|
||||
|
||||
end CurveElementPurpose;
|
125
src/StepElement/StepElement_CurveElementPurpose.cxx
Executable file
125
src/StepElement/StepElement_CurveElementPurpose.cxx
Executable file
@@ -0,0 +1,125 @@
|
||||
// File: StepElement_CurveElementPurpose.cxx
|
||||
// Created: Tue Dec 10 18:12:56 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_CurveElementPurpose.ixx>
|
||||
#include <StepElement_CurveElementPurposeMember.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_CurveElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveElementPurpose::StepElement_CurveElementPurpose ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_CurveElementPurpose::CaseNum (const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseMem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_CurveElementPurpose::CaseMem (const Handle(StepData_SelectMember)& ent) const
|
||||
{
|
||||
if(ent.IsNull()) return 0;
|
||||
if(ent->Matches("EnumeratedCurveElementPurpose")) return 1;
|
||||
else if(ent->Matches("ApplicationDefinedElementPurpose")) return 2;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepData_SelectMember) StepElement_CurveElementPurpose::NewMember() const
|
||||
{
|
||||
return new StepElement_CurveElementPurposeMember;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetEnumeratedCurveElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementPurpose::SetEnumeratedCurveElementPurpose (const StepElement_EnumeratedCurveElementPurpose val)
|
||||
{
|
||||
Handle(StepElement_CurveElementPurposeMember) SelMem = Handle(StepElement_CurveElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ENUMERATED_CURVE_ELEMENT_PURPOSE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetEnum((Standard_Integer)val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : EnumeratedCurveElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_EnumeratedCurveElementPurpose StepElement_CurveElementPurpose::EnumeratedCurveElementPurpose () const
|
||||
{
|
||||
Handle(StepElement_CurveElementPurposeMember) SelMem = Handle(StepElement_CurveElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return StepElement_Axial;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ENUMERATED_CURVEELEMENT_PURPOSE");
|
||||
if(name->IsDifferent(nameitem)) return StepElement_Axial;
|
||||
Standard_Integer numit = SelMem->Enum();
|
||||
StepElement_EnumeratedCurveElementPurpose val;
|
||||
switch(numit) {
|
||||
case 1 : val = StepElement_Axial; break;
|
||||
case 2 : val = StepElement_YYBending; break;
|
||||
case 3 : val = StepElement_ZZBending; break;
|
||||
case 4 : val = StepElement_Torsion; break;
|
||||
case 5 : val = StepElement_XYShear; break;
|
||||
case 6 : val = StepElement_XZShear; break;
|
||||
case 7 : val = StepElement_Warping; break;
|
||||
default : return StepElement_Axial;break;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetApplicationDefinedElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementPurpose::SetApplicationDefinedElementPurpose (const Handle(TCollection_HAsciiString) &val)
|
||||
{
|
||||
Handle(StepElement_CurveElementPurposeMember) SelMem = Handle(StepElement_CurveElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("APPLICATION_DEFINED_ELEMENT_PURPOSE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetString(val->ToCString());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ApplicationDefinedElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_CurveElementPurpose::ApplicationDefinedElementPurpose () const
|
||||
{
|
||||
Handle(StepElement_CurveElementPurposeMember) SelMem = Handle(StepElement_CurveElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("APPLICATION_DEFINED_ELEMENT_PURPOSE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Handle(TCollection_HAsciiString) val = new TCollection_HAsciiString;
|
||||
val->AssignCat(SelMem->String());
|
||||
return val;
|
||||
}
|
32
src/StepElement/StepElement_CurveElementPurposeMember.cdl
Executable file
32
src/StepElement/StepElement_CurveElementPurposeMember.cdl
Executable file
@@ -0,0 +1,32 @@
|
||||
-- File: StepElement_CurveElementPurposeMember.cdl
|
||||
-- Created: Tue Dec 10 18:12:56 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class CurveElementPurposeMember from StepElement
|
||||
inherits SelectNamed from StepData
|
||||
|
||||
---Purpose: Representation of member for STEP SELECT type CurveElementPurpose
|
||||
|
||||
is
|
||||
Create returns CurveElementPurposeMember from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
HasName (me) returns Boolean is redefined;
|
||||
---Purpose: Returns True if has name
|
||||
|
||||
Name (me) returns CString is redefined;
|
||||
---Purpose: Returns set name
|
||||
|
||||
SetName (me : mutable; name : CString) returns Boolean is redefined;
|
||||
---Purpose: Set name
|
||||
|
||||
Matches (me; name : CString) returns Boolean is redefined;
|
||||
---Purpose : Tells if the name of a SelectMember matches a given one;
|
||||
|
||||
fields
|
||||
|
||||
mycase : Integer;
|
||||
|
||||
end CurveElementPurposeMember;
|
89
src/StepElement/StepElement_CurveElementPurposeMember.cxx
Executable file
89
src/StepElement/StepElement_CurveElementPurposeMember.cxx
Executable file
@@ -0,0 +1,89 @@
|
||||
// File: StepElement_CurveElementPurposeMember.cxx
|
||||
// Created: Tue Dec 10 18:12:56 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_CurveElementPurposeMember.ixx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Standard_CString ECEP = "ENUMERATED_CURVE_ELEMENT_PURPOSE";
|
||||
static Standard_CString ADEP = "APPLICATION_DEFINED_ELEMENT_PURPOSE";
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_CurveElementPurposeMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveElementPurposeMember::StepElement_CurveElementPurposeMember () : mycase(0)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : HasName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_CurveElementPurposeMember::HasName() const
|
||||
{
|
||||
return mycase >0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_CString StepElement_CurveElementPurposeMember::Name() const
|
||||
{
|
||||
switch(mycase) {
|
||||
case 1 : return ECEP;
|
||||
case 2 : return ADEP;
|
||||
default : break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CompareNames
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer CompareNames(const Standard_CString name,Standard_Integer &numen)
|
||||
{
|
||||
Standard_Integer thecase =0;
|
||||
if (!name || name[0] == '\0') thecase = 0;
|
||||
else if(!strcmp (name,ECEP)) {
|
||||
thecase = 1;
|
||||
}
|
||||
else if(!strcmp (name,ADEP)) {
|
||||
thecase = 2;
|
||||
}
|
||||
return thecase;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_CurveElementPurposeMember::SetName(const Standard_CString name)
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
mycase = CompareNames(name,numit);
|
||||
if(numit) SetInteger(numit);
|
||||
return (mycase >0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Matches
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_CurveElementPurposeMember::Matches(const Standard_CString name) const
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
Standard_Integer thecase = CompareNames(name,numit);
|
||||
return (mycase==thecase);
|
||||
}
|
37
src/StepElement/StepElement_CurveElementSectionDefinition.cdl
Executable file
37
src/StepElement/StepElement_CurveElementSectionDefinition.cdl
Executable file
@@ -0,0 +1,37 @@
|
||||
-- File: StepElement_CurveElementSectionDefinition.cdl
|
||||
-- Created: Thu Dec 12 17:29:00 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class CurveElementSectionDefinition from StepElement
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: Representation of STEP entity CurveElementSectionDefinition
|
||||
|
||||
uses
|
||||
HAsciiString from TCollection
|
||||
|
||||
is
|
||||
Create returns CurveElementSectionDefinition from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aDescription: HAsciiString from TCollection;
|
||||
aSectionAngle: Real);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Description (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns field Description
|
||||
SetDescription (me: mutable; Description: HAsciiString from TCollection);
|
||||
---Purpose: Set field Description
|
||||
|
||||
SectionAngle (me) returns Real;
|
||||
---Purpose: Returns field SectionAngle
|
||||
SetSectionAngle (me: mutable; SectionAngle: Real);
|
||||
---Purpose: Set field SectionAngle
|
||||
|
||||
fields
|
||||
theDescription: HAsciiString from TCollection;
|
||||
theSectionAngle: Real;
|
||||
|
||||
end CurveElementSectionDefinition;
|
70
src/StepElement/StepElement_CurveElementSectionDefinition.cxx
Executable file
70
src/StepElement/StepElement_CurveElementSectionDefinition.cxx
Executable file
@@ -0,0 +1,70 @@
|
||||
// File: StepElement_CurveElementSectionDefinition.cxx
|
||||
// Created: Thu Dec 12 17:29:00 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_CurveElementSectionDefinition.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_CurveElementSectionDefinition
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveElementSectionDefinition::StepElement_CurveElementSectionDefinition ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDefinition::Init (const Handle(TCollection_HAsciiString) &aDescription,
|
||||
const Standard_Real aSectionAngle)
|
||||
{
|
||||
|
||||
theDescription = aDescription;
|
||||
|
||||
theSectionAngle = aSectionAngle;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Description
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_CurveElementSectionDefinition::Description () const
|
||||
{
|
||||
return theDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDescription
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDefinition::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
|
||||
{
|
||||
theDescription = aDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SectionAngle
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Real StepElement_CurveElementSectionDefinition::SectionAngle () const
|
||||
{
|
||||
return theSectionAngle;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSectionAngle
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDefinition::SetSectionAngle (const Standard_Real aSectionAngle)
|
||||
{
|
||||
theSectionAngle = aSectionAngle;
|
||||
}
|
99
src/StepElement/StepElement_CurveElementSectionDerivedDefinitions.cdl
Executable file
99
src/StepElement/StepElement_CurveElementSectionDerivedDefinitions.cdl
Executable file
@@ -0,0 +1,99 @@
|
||||
-- File: StepElement_CurveElementSectionDerivedDefinitions.cdl
|
||||
-- Created: Thu Dec 12 17:29:00 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class CurveElementSectionDerivedDefinitions from StepElement
|
||||
inherits CurveElementSectionDefinition from StepElement
|
||||
|
||||
---Purpose: Representation of STEP entity CurveElementSectionDerivedDefinitions
|
||||
|
||||
uses
|
||||
HAsciiString from TCollection,
|
||||
HArray1OfMeasureOrUnspecifiedValue from StepElement,
|
||||
HArray1OfReal from TColStd,
|
||||
MeasureOrUnspecifiedValue from StepElement,
|
||||
HArray1OfMeasureOrUnspecifiedValue from StepElement
|
||||
|
||||
is
|
||||
Create returns CurveElementSectionDerivedDefinitions from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aCurveElementSectionDefinition_Description: HAsciiString from TCollection;
|
||||
aCurveElementSectionDefinition_SectionAngle: Real;
|
||||
aCrossSectionalArea: Real;
|
||||
aShearArea: HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
aSecondMomentOfArea: HArray1OfReal from TColStd;
|
||||
aTorsionalConstant: Real;
|
||||
aWarpingConstant: MeasureOrUnspecifiedValue from StepElement;
|
||||
aLocationOfCentroid: HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
aLocationOfShearCentre: HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
aLocationOfNonStructuralMass: HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
aNonStructuralMass: MeasureOrUnspecifiedValue from StepElement;
|
||||
aPolarMoment: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
CrossSectionalArea (me) returns Real;
|
||||
---Purpose: Returns field CrossSectionalArea
|
||||
SetCrossSectionalArea (me: mutable; CrossSectionalArea: Real);
|
||||
---Purpose: Set field CrossSectionalArea
|
||||
|
||||
ShearArea (me) returns HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field ShearArea
|
||||
SetShearArea (me: mutable; ShearArea: HArray1OfMeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field ShearArea
|
||||
|
||||
SecondMomentOfArea (me) returns HArray1OfReal from TColStd;
|
||||
---Purpose: Returns field SecondMomentOfArea
|
||||
SetSecondMomentOfArea (me: mutable; SecondMomentOfArea: HArray1OfReal from TColStd);
|
||||
---Purpose: Set field SecondMomentOfArea
|
||||
|
||||
TorsionalConstant (me) returns Real;
|
||||
---Purpose: Returns field TorsionalConstant
|
||||
SetTorsionalConstant (me: mutable; TorsionalConstant: Real);
|
||||
---Purpose: Set field TorsionalConstant
|
||||
|
||||
WarpingConstant (me) returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field WarpingConstant
|
||||
SetWarpingConstant (me: mutable; WarpingConstant: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field WarpingConstant
|
||||
|
||||
LocationOfCentroid (me) returns HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field LocationOfCentroid
|
||||
SetLocationOfCentroid (me: mutable; LocationOfCentroid: HArray1OfMeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field LocationOfCentroid
|
||||
|
||||
LocationOfShearCentre (me) returns HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field LocationOfShearCentre
|
||||
SetLocationOfShearCentre (me: mutable; LocationOfShearCentre: HArray1OfMeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field LocationOfShearCentre
|
||||
|
||||
LocationOfNonStructuralMass (me) returns HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field LocationOfNonStructuralMass
|
||||
SetLocationOfNonStructuralMass (me: mutable; LocationOfNonStructuralMass: HArray1OfMeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field LocationOfNonStructuralMass
|
||||
|
||||
NonStructuralMass (me) returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field NonStructuralMass
|
||||
SetNonStructuralMass (me: mutable; NonStructuralMass: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field NonStructuralMass
|
||||
|
||||
PolarMoment (me) returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field PolarMoment
|
||||
SetPolarMoment (me: mutable; PolarMoment: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field PolarMoment
|
||||
|
||||
fields
|
||||
theCrossSectionalArea: Real;
|
||||
theShearArea: HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
theSecondMomentOfArea: HArray1OfReal from TColStd;
|
||||
theTorsionalConstant: Real;
|
||||
theWarpingConstant: MeasureOrUnspecifiedValue from StepElement;
|
||||
theLocationOfCentroid: HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
theLocationOfShearCentre: HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
theLocationOfNonStructuralMass: HArray1OfMeasureOrUnspecifiedValue from StepElement;
|
||||
theNonStructuralMass: MeasureOrUnspecifiedValue from StepElement;
|
||||
thePolarMoment: MeasureOrUnspecifiedValue from StepElement;
|
||||
|
||||
end CurveElementSectionDerivedDefinitions;
|
258
src/StepElement/StepElement_CurveElementSectionDerivedDefinitions.cxx
Executable file
258
src/StepElement/StepElement_CurveElementSectionDerivedDefinitions.cxx
Executable file
@@ -0,0 +1,258 @@
|
||||
// File: StepElement_CurveElementSectionDerivedDefinitions.cxx
|
||||
// Created: Thu Dec 12 17:29:00 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_CurveElementSectionDerivedDefinitions.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_CurveElementSectionDerivedDefinitions
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveElementSectionDerivedDefinitions::StepElement_CurveElementSectionDerivedDefinitions ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::Init (const Handle(TCollection_HAsciiString) &aCurveElementSectionDefinition_Description,
|
||||
const Standard_Real aCurveElementSectionDefinition_SectionAngle,
|
||||
const Standard_Real aCrossSectionalArea,
|
||||
const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea,
|
||||
const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea,
|
||||
const Standard_Real aTorsionalConstant,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant,
|
||||
const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid,
|
||||
const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre,
|
||||
const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
|
||||
{
|
||||
StepElement_CurveElementSectionDefinition::Init(aCurveElementSectionDefinition_Description,
|
||||
aCurveElementSectionDefinition_SectionAngle);
|
||||
|
||||
theCrossSectionalArea = aCrossSectionalArea;
|
||||
|
||||
theShearArea = aShearArea;
|
||||
|
||||
theSecondMomentOfArea = aSecondMomentOfArea;
|
||||
|
||||
theTorsionalConstant = aTorsionalConstant;
|
||||
|
||||
theWarpingConstant = aWarpingConstant;
|
||||
|
||||
theLocationOfCentroid = aLocationOfCentroid;
|
||||
|
||||
theLocationOfShearCentre = aLocationOfShearCentre;
|
||||
|
||||
theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
|
||||
|
||||
theNonStructuralMass = aNonStructuralMass;
|
||||
|
||||
thePolarMoment = aPolarMoment;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CrossSectionalArea
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Real StepElement_CurveElementSectionDerivedDefinitions::CrossSectionalArea () const
|
||||
{
|
||||
return theCrossSectionalArea;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetCrossSectionalArea
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetCrossSectionalArea (const Standard_Real aCrossSectionalArea)
|
||||
{
|
||||
theCrossSectionalArea = aCrossSectionalArea;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ShearArea
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::ShearArea () const
|
||||
{
|
||||
return theShearArea;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetShearArea
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetShearArea (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea)
|
||||
{
|
||||
theShearArea = aShearArea;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SecondMomentOfArea
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TColStd_HArray1OfReal) StepElement_CurveElementSectionDerivedDefinitions::SecondMomentOfArea () const
|
||||
{
|
||||
return theSecondMomentOfArea;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSecondMomentOfArea
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetSecondMomentOfArea (const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea)
|
||||
{
|
||||
theSecondMomentOfArea = aSecondMomentOfArea;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : TorsionalConstant
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Real StepElement_CurveElementSectionDerivedDefinitions::TorsionalConstant () const
|
||||
{
|
||||
return theTorsionalConstant;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetTorsionalConstant
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetTorsionalConstant (const Standard_Real aTorsionalConstant)
|
||||
{
|
||||
theTorsionalConstant = aTorsionalConstant;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WarpingConstant
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::WarpingConstant () const
|
||||
{
|
||||
return theWarpingConstant;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetWarpingConstant
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetWarpingConstant (const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant)
|
||||
{
|
||||
theWarpingConstant = aWarpingConstant;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : LocationOfCentroid
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfCentroid () const
|
||||
{
|
||||
return theLocationOfCentroid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetLocationOfCentroid
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfCentroid (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid)
|
||||
{
|
||||
theLocationOfCentroid = aLocationOfCentroid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : LocationOfShearCentre
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfShearCentre () const
|
||||
{
|
||||
return theLocationOfShearCentre;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetLocationOfShearCentre
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfShearCentre (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre)
|
||||
{
|
||||
theLocationOfShearCentre = aLocationOfShearCentre;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : LocationOfNonStructuralMass
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfNonStructuralMass () const
|
||||
{
|
||||
return theLocationOfNonStructuralMass;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetLocationOfNonStructuralMass
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfNonStructuralMass (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass)
|
||||
{
|
||||
theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NonStructuralMass
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::NonStructuralMass () const
|
||||
{
|
||||
return theNonStructuralMass;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetNonStructuralMass
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetNonStructuralMass (const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass)
|
||||
{
|
||||
theNonStructuralMass = aNonStructuralMass;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : PolarMoment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::PolarMoment () const
|
||||
{
|
||||
return thePolarMoment;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetPolarMoment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_CurveElementSectionDerivedDefinitions::SetPolarMoment (const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
|
||||
{
|
||||
thePolarMoment = aPolarMoment;
|
||||
}
|
103
src/StepElement/StepElement_ElementAspect.cdl
Executable file
103
src/StepElement/StepElement_ElementAspect.cdl
Executable file
@@ -0,0 +1,103 @@
|
||||
-- File: StepElement_ElementAspect.cdl
|
||||
-- Created: Tue Dec 10 18:12:58 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class ElementAspect from StepElement
|
||||
inherits SelectType from StepData
|
||||
|
||||
---Purpose: Representation of STEP SELECT type ElementAspect
|
||||
|
||||
uses
|
||||
SelectMember from StepData,
|
||||
ElementVolume from StepElement,
|
||||
CurveEdge from StepElement
|
||||
|
||||
is
|
||||
Create returns ElementAspect from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
CaseNum (me; ent: Transient) returns Integer;
|
||||
---Purpose: Recognizes a kind of ElementAspect select type
|
||||
-- return 0
|
||||
|
||||
CaseMem (me; ent: SelectMember from StepData) returns Integer is redefined;
|
||||
---Purpose: Recognizes a items of select member ElementAspectMember
|
||||
-- 1 -> ElementVolume
|
||||
-- 2 -> Volume3dFace
|
||||
-- 3 -> Volume2dFace
|
||||
-- 4 -> Volume3dEdge
|
||||
-- 5 -> Volume2dEdge
|
||||
-- 6 -> Surface3dFace
|
||||
-- 7 -> Surface2dFace
|
||||
-- 8 -> Surface3dEdge
|
||||
-- 9 -> Surface2dEdge
|
||||
-- 10 -> CurveEdge
|
||||
-- 0 else
|
||||
|
||||
|
||||
NewMember(me) returns SelectMember from StepData is redefined;
|
||||
---Purpose: Returns a new select member the type ElementAspectMember
|
||||
|
||||
SetElementVolume(me: in out; aVal :ElementVolume from StepElement);
|
||||
---Purpose: Set Value for ElementVolume
|
||||
|
||||
ElementVolume (me) returns ElementVolume from StepElement;
|
||||
---Purpose: Returns Value as ElementVolume (or Null if another type)
|
||||
|
||||
SetVolume3dFace(me: in out; aVal :Integer);
|
||||
---Purpose: Set Value for Volume3dFace
|
||||
|
||||
Volume3dFace (me) returns Integer;
|
||||
---Purpose: Returns Value as Volume3dFace (or Null if another type)
|
||||
|
||||
SetVolume2dFace(me: in out; aVal :Integer);
|
||||
---Purpose: Set Value for Volume2dFace
|
||||
|
||||
Volume2dFace (me) returns Integer;
|
||||
---Purpose: Returns Value as Volume2dFace (or Null if another type)
|
||||
|
||||
SetVolume3dEdge(me: in out; aVal :Integer);
|
||||
---Purpose: Set Value for Volume3dEdge
|
||||
|
||||
Volume3dEdge (me) returns Integer;
|
||||
---Purpose: Returns Value as Volume3dEdge (or Null if another type)
|
||||
|
||||
SetVolume2dEdge(me: in out; aVal :Integer);
|
||||
---Purpose: Set Value for Volume2dEdge
|
||||
|
||||
Volume2dEdge (me) returns Integer;
|
||||
---Purpose: Returns Value as Volume2dEdge (or Null if another type)
|
||||
|
||||
SetSurface3dFace(me: in out; aVal :Integer);
|
||||
---Purpose: Set Value for Surface3dFace
|
||||
|
||||
Surface3dFace (me) returns Integer;
|
||||
---Purpose: Returns Value as Surface3dFace (or Null if another type)
|
||||
|
||||
SetSurface2dFace(me: in out; aVal :Integer);
|
||||
---Purpose: Set Value for Surface2dFace
|
||||
|
||||
Surface2dFace (me) returns Integer;
|
||||
---Purpose: Returns Value as Surface2dFace (or Null if another type)
|
||||
|
||||
SetSurface3dEdge(me: in out; aVal :Integer);
|
||||
---Purpose: Set Value for Surface3dEdge
|
||||
|
||||
Surface3dEdge (me) returns Integer;
|
||||
---Purpose: Returns Value as Surface3dEdge (or Null if another type)
|
||||
|
||||
SetSurface2dEdge(me: in out; aVal :Integer);
|
||||
---Purpose: Set Value for Surface2dEdge
|
||||
|
||||
Surface2dEdge (me) returns Integer;
|
||||
---Purpose: Returns Value as Surface2dEdge (or Null if another type)
|
||||
|
||||
SetCurveEdge(me: in out; aVal :CurveEdge from StepElement);
|
||||
---Purpose: Set Value for CurveEdge
|
||||
|
||||
CurveEdge (me) returns CurveEdge from StepElement;
|
||||
---Purpose: Returns Value as CurveEdge (or Null if another type)
|
||||
|
||||
end ElementAspect;
|
379
src/StepElement/StepElement_ElementAspect.cxx
Executable file
379
src/StepElement/StepElement_ElementAspect.cxx
Executable file
@@ -0,0 +1,379 @@
|
||||
// File: StepElement_ElementAspect.cxx
|
||||
// Created: Tue Dec 10 18:12:58 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_ElementAspect.ixx>
|
||||
#include <StepElement_ElementAspectMember.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_ElementAspect
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_ElementAspect::StepElement_ElementAspect ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::CaseNum (const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseMem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::CaseMem (const Handle(StepData_SelectMember)& ent) const
|
||||
{
|
||||
if(ent.IsNull()) return 0;
|
||||
if(ent->Matches("ELEMENT_VOLUME")) return 1;
|
||||
else if(ent->Matches("VOLUME_3D_FACE")) return 2;
|
||||
else if(ent->Matches("VOLUME_2D_FACE")) return 3;
|
||||
else if(ent->Matches("VOLUME_3D_EDGE")) return 4;
|
||||
else if(ent->Matches("VOLUME_2D_EDGE")) return 5;
|
||||
else if(ent->Matches("SURFACE_3D_FACE")) return 6;
|
||||
else if(ent->Matches("SURFACE_2D_FACE")) return 7;
|
||||
else if(ent->Matches("SURFACE_3D_EDGE")) return 8;
|
||||
else if(ent->Matches("SURFACE_2D_EDGE")) return 9;
|
||||
else if(ent->Matches("CURVE_EDGE")) return 10;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepData_SelectMember) StepElement_ElementAspect::NewMember() const
|
||||
{
|
||||
return new StepElement_ElementAspectMember;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetElementVolume
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetElementVolume (const StepElement_ElementVolume val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ELEMENT_VOLUME");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetEnum((Standard_Integer)val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ElementVolume
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_ElementVolume StepElement_ElementAspect::ElementVolume () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return StepElement_Volume;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ELEMENT_VOLUME");
|
||||
if(name->IsDifferent(nameitem)) return StepElement_Volume;
|
||||
Standard_Integer numit = SelMem->Enum();
|
||||
StepElement_ElementVolume val;
|
||||
switch(numit) {
|
||||
case 1 : val = StepElement_Volume; break;
|
||||
default : return StepElement_Volume;break;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetVolume3dFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetVolume3dFace (const Standard_Integer val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("VOLUME_3D_FACE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetInteger(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Volume3dFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::Volume3dFace () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("VOLUME_3D_FACE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Integer val = SelMem->Integer();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetVolume2dFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetVolume2dFace (const Standard_Integer val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("VOLUME_2D_FACE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetInteger(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Volume2dFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::Volume2dFace () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("VOLUME_2D_FACE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Integer val = SelMem->Integer();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetVolume3dEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetVolume3dEdge (const Standard_Integer val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("VOLUME_3D_EDGE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetInteger(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Volume3dEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::Volume3dEdge () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("VOLUME_3D_EDGE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Integer val = SelMem->Integer();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetVolume2dEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetVolume2dEdge (const Standard_Integer val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("VOLUME_2D_EDGE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetInteger(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Volume2dEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::Volume2dEdge () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("VOLUME_2D_EDGE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Integer val = SelMem->Integer();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSurface3dFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetSurface3dFace (const Standard_Integer val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("SURFACE_3D_FACE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetInteger(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Surface3dFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::Surface3dFace () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("SURFACE_3D_FACE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Integer val = SelMem->Integer();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSurface2dFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetSurface2dFace (const Standard_Integer val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("SURFACE_2D_FACE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetInteger(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Surface2dFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::Surface2dFace () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("SURFACE_2D_FACE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Integer val = SelMem->Integer();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSurface3dEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetSurface3dEdge (const Standard_Integer val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("SURFACE_3D_EDGE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetInteger(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Surface3dEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::Surface3dEdge () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("SURFACE_3D_EDGE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Integer val = SelMem->Integer();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSurface2dEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetSurface2dEdge (const Standard_Integer val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("SURFACE_2D_EDGE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetInteger(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Surface2dEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_ElementAspect::Surface2dEdge () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("SURFACE_2D_EDGE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Integer val = SelMem->Integer();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetCurveEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementAspect::SetCurveEdge (const StepElement_CurveEdge val)
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("CURVE_EDGE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetEnum((Standard_Integer)val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CurveEdge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_CurveEdge StepElement_ElementAspect::CurveEdge () const
|
||||
{
|
||||
Handle(StepElement_ElementAspectMember) SelMem = Handle(StepElement_ElementAspectMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return StepElement_ElementEdge;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("CURVE_EDGE");
|
||||
if(name->IsDifferent(nameitem)) return StepElement_ElementEdge;
|
||||
Standard_Integer numit = SelMem->Enum();
|
||||
StepElement_CurveEdge val;
|
||||
switch(numit) {
|
||||
case 1 : val = StepElement_ElementEdge; break;
|
||||
default : return StepElement_ElementEdge;break;
|
||||
}
|
||||
return val;
|
||||
}
|
32
src/StepElement/StepElement_ElementAspectMember.cdl
Executable file
32
src/StepElement/StepElement_ElementAspectMember.cdl
Executable file
@@ -0,0 +1,32 @@
|
||||
-- File: StepElement_ElementAspectMember.cdl
|
||||
-- Created: Tue Dec 10 18:12:58 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class ElementAspectMember from StepElement
|
||||
inherits SelectNamed from StepData
|
||||
|
||||
---Purpose: Representation of member for STEP SELECT type ElementAspect
|
||||
|
||||
is
|
||||
Create returns ElementAspectMember from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
HasName (me) returns Boolean is redefined;
|
||||
---Purpose: Returns True if has name
|
||||
|
||||
Name (me) returns CString is redefined;
|
||||
---Purpose: Returns set name
|
||||
|
||||
SetName (me : mutable; name : CString) returns Boolean is redefined;
|
||||
---Purpose: Set name
|
||||
|
||||
Matches (me; name : CString) returns Boolean is redefined;
|
||||
---Purpose : Tells if the name of a SelectMember matches a given one;
|
||||
|
||||
fields
|
||||
|
||||
mycase : Integer;
|
||||
|
||||
end ElementAspectMember;
|
114
src/StepElement/StepElement_ElementAspectMember.cxx
Executable file
114
src/StepElement/StepElement_ElementAspectMember.cxx
Executable file
@@ -0,0 +1,114 @@
|
||||
// File: StepElement_ElementAspectMember.cxx
|
||||
// Created: Tue Dec 10 18:12:58 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_ElementAspectMember.ixx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Standard_CString aElementVolume = "ELEMENT_VOLUME";
|
||||
static Standard_CString aVolume3dFace = "VOLUME_3D_FACE";
|
||||
static Standard_CString aVolume2dFace = "VOLUME_2D_FACE";
|
||||
static Standard_CString aVolume3dEdge = "VOLUME_3D_EDGE";
|
||||
static Standard_CString aVolume2dEdge = "VOLUME_2D_EDGE";
|
||||
static Standard_CString aSurface3dFace = "SURFACE_3D_FACE";
|
||||
static Standard_CString aSurface2dFace = "SURFACE_2D_FACE";
|
||||
static Standard_CString aSurface3dEdge = "SURFACE_3D_EDGE";
|
||||
static Standard_CString aSurface2dEdge = "SURFACE_2D_EDGE";
|
||||
static Standard_CString aCurveEdge = "CURVE_EDGE";
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_ElementAspectMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_ElementAspectMember::StepElement_ElementAspectMember () : mycase(0)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : HasName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_ElementAspectMember::HasName() const
|
||||
{
|
||||
return mycase >0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_CString StepElement_ElementAspectMember::Name() const
|
||||
{
|
||||
switch(mycase) {
|
||||
case 1 : return aElementVolume;
|
||||
case 2 : return aVolume3dFace;
|
||||
case 3 : return aVolume2dFace;
|
||||
case 4 : return aVolume3dEdge;
|
||||
case 5 : return aVolume2dEdge;
|
||||
case 6 : return aSurface3dFace;
|
||||
case 7 : return aSurface2dFace;
|
||||
case 8 : return aSurface3dEdge;
|
||||
case 9 : return aSurface2dEdge;
|
||||
case 10 : return aCurveEdge;
|
||||
default : break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CompareNames
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer CompareNames(const Standard_CString name,Standard_Integer &numen)
|
||||
{
|
||||
Standard_Integer thecase =0;
|
||||
if (!name || name[0] == '\0') thecase = 0;
|
||||
else if(!strcmp (name,aElementVolume)) {
|
||||
thecase = 1;
|
||||
numen = 1;
|
||||
}
|
||||
else if(!strcmp (name,aVolume3dFace)) thecase = 2;
|
||||
else if(!strcmp (name,aVolume2dFace)) thecase = 3;
|
||||
else if(!strcmp (name,aVolume3dEdge)) thecase = 4;
|
||||
else if(!strcmp (name,aVolume2dEdge)) thecase = 5;
|
||||
else if(!strcmp (name,aSurface3dFace)) thecase = 6;
|
||||
else if(!strcmp (name,aSurface2dFace)) thecase = 7;
|
||||
else if(!strcmp (name,aSurface3dEdge)) thecase = 8;
|
||||
else if(!strcmp (name,aSurface2dEdge)) thecase = 9;
|
||||
else if(!strcmp (name,aCurveEdge)) {
|
||||
thecase = 10;
|
||||
numen = 1;
|
||||
}
|
||||
return thecase;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_ElementAspectMember::SetName(const Standard_CString name)
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
mycase = CompareNames(name,numit);
|
||||
if(numit) SetInteger(numit);
|
||||
return (mycase >0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Matches
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_ElementAspectMember::Matches(const Standard_CString name) const
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
Standard_Integer thecase = CompareNames(name,numit);
|
||||
return (mycase==thecase);
|
||||
}
|
38
src/StepElement/StepElement_ElementDescriptor.cdl
Executable file
38
src/StepElement/StepElement_ElementDescriptor.cdl
Executable file
@@ -0,0 +1,38 @@
|
||||
-- File: StepElement_ElementDescriptor.cdl
|
||||
-- Created: Thu Dec 12 17:29:00 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class ElementDescriptor from StepElement
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: Representation of STEP entity ElementDescriptor
|
||||
|
||||
uses
|
||||
ElementOrder from StepElement,
|
||||
HAsciiString from TCollection
|
||||
|
||||
is
|
||||
Create returns ElementDescriptor from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aTopologyOrder: ElementOrder from StepElement;
|
||||
aDescription: HAsciiString from TCollection);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
TopologyOrder (me) returns ElementOrder from StepElement;
|
||||
---Purpose: Returns field TopologyOrder
|
||||
SetTopologyOrder (me: mutable; TopologyOrder: ElementOrder from StepElement);
|
||||
---Purpose: Set field TopologyOrder
|
||||
|
||||
Description (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns field Description
|
||||
SetDescription (me: mutable; Description: HAsciiString from TCollection);
|
||||
---Purpose: Set field Description
|
||||
|
||||
fields
|
||||
theTopologyOrder: ElementOrder from StepElement;
|
||||
theDescription: HAsciiString from TCollection;
|
||||
|
||||
end ElementDescriptor;
|
70
src/StepElement/StepElement_ElementDescriptor.cxx
Executable file
70
src/StepElement/StepElement_ElementDescriptor.cxx
Executable file
@@ -0,0 +1,70 @@
|
||||
// File: StepElement_ElementDescriptor.cxx
|
||||
// Created: Thu Dec 12 17:29:01 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_ElementDescriptor.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_ElementDescriptor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_ElementDescriptor::StepElement_ElementDescriptor ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementDescriptor::Init (const StepElement_ElementOrder aTopologyOrder,
|
||||
const Handle(TCollection_HAsciiString) &aDescription)
|
||||
{
|
||||
|
||||
theTopologyOrder = aTopologyOrder;
|
||||
|
||||
theDescription = aDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : TopologyOrder
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_ElementOrder StepElement_ElementDescriptor::TopologyOrder () const
|
||||
{
|
||||
return theTopologyOrder;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetTopologyOrder
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementDescriptor::SetTopologyOrder (const StepElement_ElementOrder aTopologyOrder)
|
||||
{
|
||||
theTopologyOrder = aTopologyOrder;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Description
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_ElementDescriptor::Description () const
|
||||
{
|
||||
return theDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDescription
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementDescriptor::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
|
||||
{
|
||||
theDescription = aDescription;
|
||||
}
|
45
src/StepElement/StepElement_ElementMaterial.cdl
Executable file
45
src/StepElement/StepElement_ElementMaterial.cdl
Executable file
@@ -0,0 +1,45 @@
|
||||
-- File: StepElement_ElementMaterial.cdl
|
||||
-- Created: Thu Dec 12 17:29:01 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class ElementMaterial from StepElement
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: Representation of STEP entity ElementMaterial
|
||||
|
||||
uses
|
||||
HAsciiString from TCollection,
|
||||
HArray1OfMaterialPropertyRepresentation from StepRepr
|
||||
|
||||
is
|
||||
Create returns ElementMaterial from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aMaterialId: HAsciiString from TCollection;
|
||||
aDescription: HAsciiString from TCollection;
|
||||
aProperties: HArray1OfMaterialPropertyRepresentation from StepRepr);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
MaterialId (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns field MaterialId
|
||||
SetMaterialId (me: mutable; MaterialId: HAsciiString from TCollection);
|
||||
---Purpose: Set field MaterialId
|
||||
|
||||
Description (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns field Description
|
||||
SetDescription (me: mutable; Description: HAsciiString from TCollection);
|
||||
---Purpose: Set field Description
|
||||
|
||||
Properties (me) returns HArray1OfMaterialPropertyRepresentation from StepRepr;
|
||||
---Purpose: Returns field Properties
|
||||
SetProperties (me: mutable; Properties: HArray1OfMaterialPropertyRepresentation from StepRepr);
|
||||
---Purpose: Set field Properties
|
||||
|
||||
fields
|
||||
theMaterialId: HAsciiString from TCollection;
|
||||
theDescription: HAsciiString from TCollection;
|
||||
theProperties: HArray1OfMaterialPropertyRepresentation from StepRepr;
|
||||
|
||||
end ElementMaterial;
|
93
src/StepElement/StepElement_ElementMaterial.cxx
Executable file
93
src/StepElement/StepElement_ElementMaterial.cxx
Executable file
@@ -0,0 +1,93 @@
|
||||
// File: StepElement_ElementMaterial.cxx
|
||||
// Created: Thu Dec 12 17:29:01 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_ElementMaterial.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_ElementMaterial
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_ElementMaterial::StepElement_ElementMaterial ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementMaterial::Init (const Handle(TCollection_HAsciiString) &aMaterialId,
|
||||
const Handle(TCollection_HAsciiString) &aDescription,
|
||||
const Handle(StepRepr_HArray1OfMaterialPropertyRepresentation) &aProperties)
|
||||
{
|
||||
|
||||
theMaterialId = aMaterialId;
|
||||
|
||||
theDescription = aDescription;
|
||||
|
||||
theProperties = aProperties;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : MaterialId
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_ElementMaterial::MaterialId () const
|
||||
{
|
||||
return theMaterialId;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetMaterialId
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementMaterial::SetMaterialId (const Handle(TCollection_HAsciiString) &aMaterialId)
|
||||
{
|
||||
theMaterialId = aMaterialId;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Description
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_ElementMaterial::Description () const
|
||||
{
|
||||
return theDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDescription
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementMaterial::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
|
||||
{
|
||||
theDescription = aDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Properties
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepRepr_HArray1OfMaterialPropertyRepresentation) StepElement_ElementMaterial::Properties () const
|
||||
{
|
||||
return theProperties;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetProperties
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_ElementMaterial::SetProperties (const Handle(StepRepr_HArray1OfMaterialPropertyRepresentation) &aProperties)
|
||||
{
|
||||
theProperties = aProperties;
|
||||
}
|
45
src/StepElement/StepElement_MeasureOrUnspecifiedValue.cdl
Executable file
45
src/StepElement/StepElement_MeasureOrUnspecifiedValue.cdl
Executable file
@@ -0,0 +1,45 @@
|
||||
-- File: StepElement_MeasureOrUnspecifiedValue.cdl
|
||||
-- Created: Tue Dec 10 18:12:58 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class MeasureOrUnspecifiedValue from StepElement inherits SelectType from StepData
|
||||
|
||||
---Purpose: Representation of STEP SELECT type MeasureOrUnspecifiedValue
|
||||
|
||||
uses
|
||||
SelectMember from StepData,
|
||||
UnspecifiedValue from StepElement
|
||||
|
||||
is
|
||||
Create returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
CaseNum (me; ent: Transient) returns Integer;
|
||||
---Purpose: Recognizes a kind of MeasureOrUnspecifiedValue select type
|
||||
-- return 0
|
||||
|
||||
CaseMem (me; ent: SelectMember from StepData) returns Integer is redefined;
|
||||
---Purpose: Recognizes a items of select member MeasureOrUnspecifiedValueMember
|
||||
-- 1 -> ContextDependentMeasure
|
||||
-- 2 -> UnspecifiedValue
|
||||
-- 0 else
|
||||
|
||||
|
||||
NewMember(me) returns SelectMember from StepData is redefined;
|
||||
---Purpose: Returns a new select member the type MeasureOrUnspecifiedValueMember
|
||||
|
||||
SetContextDependentMeasure(me: in out; aVal :Real);
|
||||
---Purpose: Set Value for ContextDependentMeasure
|
||||
|
||||
ContextDependentMeasure (me) returns Real;
|
||||
---Purpose: Returns Value as ContextDependentMeasure (or Null if another type)
|
||||
|
||||
SetUnspecifiedValue(me: in out; aVal :UnspecifiedValue from StepElement);
|
||||
---Purpose: Set Value for UnspecifiedValue
|
||||
|
||||
UnspecifiedValue (me) returns UnspecifiedValue from StepElement;
|
||||
---Purpose: Returns Value as UnspecifiedValue (or Null if another type)
|
||||
|
||||
end MeasureOrUnspecifiedValue;
|
122
src/StepElement/StepElement_MeasureOrUnspecifiedValue.cxx
Executable file
122
src/StepElement/StepElement_MeasureOrUnspecifiedValue.cxx
Executable file
@@ -0,0 +1,122 @@
|
||||
// File: StepElement_MeasureOrUnspecifiedValue.cxx
|
||||
// Created: Tue Dec 10 18:12:58 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_MeasureOrUnspecifiedValue.ixx>
|
||||
#include <StepElement_MeasureOrUnspecifiedValueMember.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Standard_CString aCDM = "CONTEXT_DEPENDENT_MEASURE";
|
||||
static Standard_CString anUV = "UNSPECIFIED_VALUE";
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_MeasureOrUnspecifiedValue
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue::StepElement_MeasureOrUnspecifiedValue ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_MeasureOrUnspecifiedValue::CaseNum (const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseMem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_MeasureOrUnspecifiedValue::CaseMem (const Handle(StepData_SelectMember)& ent) const
|
||||
{
|
||||
if(ent.IsNull()) return 0;
|
||||
if(ent->Matches(aCDM)) return 1;
|
||||
else if(ent->Matches(anUV)) return 2;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepData_SelectMember) StepElement_MeasureOrUnspecifiedValue::NewMember() const
|
||||
{
|
||||
return new StepElement_MeasureOrUnspecifiedValueMember;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetContextDependentMeasure
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_MeasureOrUnspecifiedValue::SetContextDependentMeasure (const Standard_Real val)
|
||||
{
|
||||
Handle(StepElement_MeasureOrUnspecifiedValueMember) SelMem = Handle(StepElement_MeasureOrUnspecifiedValueMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("CONTEXT_DEPENDENT_MEASURE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetReal(val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ContextDependentMeasure
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Real StepElement_MeasureOrUnspecifiedValue::ContextDependentMeasure () const
|
||||
{
|
||||
Handle(StepElement_MeasureOrUnspecifiedValueMember) SelMem = Handle(StepElement_MeasureOrUnspecifiedValueMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("CONTEXT_DEPENDENT_MEASURE");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Standard_Real val = SelMem->Real();
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetUnspecifiedValue
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_MeasureOrUnspecifiedValue::SetUnspecifiedValue (const StepElement_UnspecifiedValue val)
|
||||
{
|
||||
Handle(StepElement_MeasureOrUnspecifiedValueMember) SelMem = Handle(StepElement_MeasureOrUnspecifiedValueMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("UNSPECIFIED_VALUE");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetEnum((Standard_Integer)val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : UnspecifiedValue
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_UnspecifiedValue StepElement_MeasureOrUnspecifiedValue::UnspecifiedValue () const
|
||||
{
|
||||
Handle(StepElement_MeasureOrUnspecifiedValueMember) SelMem = Handle(StepElement_MeasureOrUnspecifiedValueMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return StepElement_Unspecified;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("UNSPECIFIED_VALUE");
|
||||
if(name->IsDifferent(nameitem)) return StepElement_Unspecified;
|
||||
Standard_Integer numit = SelMem->Enum();
|
||||
StepElement_UnspecifiedValue val;
|
||||
switch(numit) {
|
||||
case 1 : val = StepElement_Unspecified; break;
|
||||
default : return StepElement_Unspecified;break;
|
||||
}
|
||||
return val;
|
||||
}
|
32
src/StepElement/StepElement_MeasureOrUnspecifiedValueMember.cdl
Executable file
32
src/StepElement/StepElement_MeasureOrUnspecifiedValueMember.cdl
Executable file
@@ -0,0 +1,32 @@
|
||||
-- File: StepElement_MeasureOrUnspecifiedValueMember.cdl
|
||||
-- Created: Tue Dec 10 18:12:58 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class MeasureOrUnspecifiedValueMember from StepElement
|
||||
inherits SelectNamed from StepData
|
||||
|
||||
---Purpose: Representation of member for STEP SELECT type MeasureOrUnspecifiedValue
|
||||
|
||||
is
|
||||
Create returns MeasureOrUnspecifiedValueMember from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
HasName (me) returns Boolean is redefined;
|
||||
---Purpose: Returns True if has name
|
||||
|
||||
Name (me) returns CString is redefined;
|
||||
---Purpose: Returns set name
|
||||
|
||||
SetName (me : mutable; name : CString) returns Boolean is redefined;
|
||||
---Purpose: Set name
|
||||
|
||||
Matches (me; name : CString) returns Boolean is redefined;
|
||||
---Purpose : Tells if the name of a SelectMember matches a given one;
|
||||
|
||||
fields
|
||||
|
||||
mycase : Integer;
|
||||
|
||||
end MeasureOrUnspecifiedValueMember;
|
89
src/StepElement/StepElement_MeasureOrUnspecifiedValueMember.cxx
Executable file
89
src/StepElement/StepElement_MeasureOrUnspecifiedValueMember.cxx
Executable file
@@ -0,0 +1,89 @@
|
||||
// File: StepElement_MeasureOrUnspecifiedValueMember.cxx
|
||||
// Created: Tue Dec 10 18:12:58 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_MeasureOrUnspecifiedValueMember.ixx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
|
||||
static Standard_CString aContextDependedMeasure = "CONTEXT_DEPENDENT_MEASURE";
|
||||
static Standard_CString anUnspecifiedValue = "UNSPECIFIED_VALUE";
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_MeasureOrUnspecifiedValueMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValueMember::StepElement_MeasureOrUnspecifiedValueMember () : mycase(0)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : HasName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_MeasureOrUnspecifiedValueMember::HasName() const
|
||||
{
|
||||
return mycase >0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_CString StepElement_MeasureOrUnspecifiedValueMember::Name() const
|
||||
{
|
||||
switch(mycase) {
|
||||
case 1 : return aContextDependedMeasure;
|
||||
case 2 : return anUnspecifiedValue;
|
||||
default : break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CompareNames
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer CompareNames(const Standard_CString name,Standard_Integer &numen)
|
||||
{
|
||||
Standard_Integer thecase =0;
|
||||
if (!name || name[0] == '\0') thecase = 0;
|
||||
else if(!strcmp (name,aContextDependedMeasure)) {
|
||||
thecase = 1;
|
||||
}
|
||||
else if(!strcmp (name,anUnspecifiedValue)) {
|
||||
thecase = 2;
|
||||
}
|
||||
return thecase;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_MeasureOrUnspecifiedValueMember::SetName(const Standard_CString name)
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
mycase = CompareNames(name,numit);
|
||||
if(numit) SetInteger(numit);
|
||||
return (mycase >0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Matches
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_MeasureOrUnspecifiedValueMember::Matches(const Standard_CString name) const
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
Standard_Integer thecase = CompareNames(name,numit);
|
||||
return (mycase==thecase);
|
||||
}
|
42
src/StepElement/StepElement_Surface3dElementDescriptor.cdl
Executable file
42
src/StepElement/StepElement_Surface3dElementDescriptor.cdl
Executable file
@@ -0,0 +1,42 @@
|
||||
-- File: StepElement_Surface3dElementDescriptor.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class Surface3dElementDescriptor from StepElement
|
||||
inherits ElementDescriptor from StepElement
|
||||
|
||||
---Purpose: Representation of STEP entity Surface3dElementDescriptor
|
||||
|
||||
uses
|
||||
ElementOrder from StepElement,
|
||||
HAsciiString from TCollection,
|
||||
HArray1OfHSequenceOfSurfaceElementPurposeMember from StepElement,
|
||||
Element2dShape from StepElement
|
||||
|
||||
is
|
||||
Create returns Surface3dElementDescriptor from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aElementDescriptor_TopologyOrder: ElementOrder from StepElement;
|
||||
aElementDescriptor_Description: HAsciiString from TCollection;
|
||||
aPurpose: HArray1OfHSequenceOfSurfaceElementPurposeMember from StepElement;
|
||||
aShape: Element2dShape from StepElement);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Purpose (me) returns HArray1OfHSequenceOfSurfaceElementPurposeMember from StepElement;
|
||||
---Purpose: Returns field Purpose
|
||||
SetPurpose (me: mutable; Purpose: HArray1OfHSequenceOfSurfaceElementPurposeMember from StepElement);
|
||||
---Purpose: Set field Purpose
|
||||
|
||||
Shape (me) returns Element2dShape from StepElement;
|
||||
---Purpose: Returns field Shape
|
||||
SetShape (me: mutable; Shape: Element2dShape from StepElement);
|
||||
---Purpose: Set field Shape
|
||||
|
||||
fields
|
||||
thePurpose: HArray1OfHSequenceOfSurfaceElementPurposeMember from StepElement;
|
||||
theShape: Element2dShape from StepElement;
|
||||
|
||||
end Surface3dElementDescriptor;
|
74
src/StepElement/StepElement_Surface3dElementDescriptor.cxx
Executable file
74
src/StepElement/StepElement_Surface3dElementDescriptor.cxx
Executable file
@@ -0,0 +1,74 @@
|
||||
// File: StepElement_Surface3dElementDescriptor.cxx
|
||||
// Created: Thu Dec 12 17:29:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_Surface3dElementDescriptor.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_Surface3dElementDescriptor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_Surface3dElementDescriptor::StepElement_Surface3dElementDescriptor ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_Surface3dElementDescriptor::Init (const StepElement_ElementOrder aElementDescriptor_TopologyOrder,
|
||||
const Handle(TCollection_HAsciiString) &aElementDescriptor_Description,
|
||||
const Handle(StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember) &aPurpose,
|
||||
const StepElement_Element2dShape aShape)
|
||||
{
|
||||
StepElement_ElementDescriptor::Init(aElementDescriptor_TopologyOrder,
|
||||
aElementDescriptor_Description);
|
||||
|
||||
thePurpose = aPurpose;
|
||||
|
||||
theShape = aShape;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Purpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember) StepElement_Surface3dElementDescriptor::Purpose () const
|
||||
{
|
||||
return thePurpose;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_Surface3dElementDescriptor::SetPurpose (const Handle(StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember) &aPurpose)
|
||||
{
|
||||
thePurpose = aPurpose;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Shape
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_Element2dShape StepElement_Surface3dElementDescriptor::Shape () const
|
||||
{
|
||||
return theShape;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetShape
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_Surface3dElementDescriptor::SetShape (const StepElement_Element2dShape aShape)
|
||||
{
|
||||
theShape = aShape;
|
||||
}
|
45
src/StepElement/StepElement_SurfaceElementProperty.cdl
Executable file
45
src/StepElement/StepElement_SurfaceElementProperty.cdl
Executable file
@@ -0,0 +1,45 @@
|
||||
-- File: StepElement_SurfaceElementProperty.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class SurfaceElementProperty from StepElement
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: Representation of STEP entity SurfaceElementProperty
|
||||
|
||||
uses
|
||||
HAsciiString from TCollection,
|
||||
SurfaceSectionField from StepElement
|
||||
|
||||
is
|
||||
Create returns SurfaceElementProperty from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aPropertyId: HAsciiString from TCollection;
|
||||
aDescription: HAsciiString from TCollection;
|
||||
aSection: SurfaceSectionField from StepElement);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
PropertyId (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns field PropertyId
|
||||
SetPropertyId (me: mutable; PropertyId: HAsciiString from TCollection);
|
||||
---Purpose: Set field PropertyId
|
||||
|
||||
Description (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns field Description
|
||||
SetDescription (me: mutable; Description: HAsciiString from TCollection);
|
||||
---Purpose: Set field Description
|
||||
|
||||
Section (me) returns SurfaceSectionField from StepElement;
|
||||
---Purpose: Returns field Section
|
||||
SetSection (me: mutable; Section: SurfaceSectionField from StepElement);
|
||||
---Purpose: Set field Section
|
||||
|
||||
fields
|
||||
thePropertyId: HAsciiString from TCollection;
|
||||
theDescription: HAsciiString from TCollection;
|
||||
theSection: SurfaceSectionField from StepElement;
|
||||
|
||||
end SurfaceElementProperty;
|
93
src/StepElement/StepElement_SurfaceElementProperty.cxx
Executable file
93
src/StepElement/StepElement_SurfaceElementProperty.cxx
Executable file
@@ -0,0 +1,93 @@
|
||||
// File: StepElement_SurfaceElementProperty.cxx
|
||||
// Created: Thu Dec 12 17:29:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_SurfaceElementProperty.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_SurfaceElementProperty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_SurfaceElementProperty::StepElement_SurfaceElementProperty ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceElementProperty::Init (const Handle(TCollection_HAsciiString) &aPropertyId,
|
||||
const Handle(TCollection_HAsciiString) &aDescription,
|
||||
const Handle(StepElement_SurfaceSectionField) &aSection)
|
||||
{
|
||||
|
||||
thePropertyId = aPropertyId;
|
||||
|
||||
theDescription = aDescription;
|
||||
|
||||
theSection = aSection;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : PropertyId
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_SurfaceElementProperty::PropertyId () const
|
||||
{
|
||||
return thePropertyId;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetPropertyId
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceElementProperty::SetPropertyId (const Handle(TCollection_HAsciiString) &aPropertyId)
|
||||
{
|
||||
thePropertyId = aPropertyId;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Description
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_SurfaceElementProperty::Description () const
|
||||
{
|
||||
return theDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDescription
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceElementProperty::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
|
||||
{
|
||||
theDescription = aDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Section
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_SurfaceSectionField) StepElement_SurfaceElementProperty::Section () const
|
||||
{
|
||||
return theSection;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSection
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceElementProperty::SetSection (const Handle(StepElement_SurfaceSectionField) &aSection)
|
||||
{
|
||||
theSection = aSection;
|
||||
}
|
47
src/StepElement/StepElement_SurfaceElementPurpose.cdl
Executable file
47
src/StepElement/StepElement_SurfaceElementPurpose.cdl
Executable file
@@ -0,0 +1,47 @@
|
||||
-- File: StepElement_SurfaceElementPurpose.cdl
|
||||
-- Created: Tue Dec 10 18:13:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class SurfaceElementPurpose from StepElement
|
||||
inherits SelectType from StepData
|
||||
|
||||
---Purpose: Representation of STEP SELECT type SurfaceElementPurpose
|
||||
|
||||
uses
|
||||
SelectMember from StepData,
|
||||
EnumeratedSurfaceElementPurpose from StepElement,
|
||||
HAsciiString from TCollection
|
||||
|
||||
is
|
||||
Create returns SurfaceElementPurpose from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
CaseNum (me; ent: Transient) returns Integer;
|
||||
---Purpose: Recognizes a kind of SurfaceElementPurpose select type
|
||||
-- return 0
|
||||
|
||||
CaseMem (me; ent: SelectMember from StepData) returns Integer is redefined;
|
||||
---Purpose: Recognizes a items of select member SurfaceElementPurposeMember
|
||||
-- 1 -> EnumeratedSurfaceElementPurpose
|
||||
-- 2 -> ApplicationDefinedElementPurpose
|
||||
-- 0 else
|
||||
|
||||
|
||||
NewMember(me) returns SelectMember from StepData is redefined;
|
||||
---Purpose: Returns a new select member the type SurfaceElementPurposeMember
|
||||
|
||||
SetEnumeratedSurfaceElementPurpose(me: in out; aVal :EnumeratedSurfaceElementPurpose from StepElement);
|
||||
---Purpose: Set Value for EnumeratedSurfaceElementPurpose
|
||||
|
||||
EnumeratedSurfaceElementPurpose (me) returns EnumeratedSurfaceElementPurpose from StepElement;
|
||||
---Purpose: Returns Value as EnumeratedSurfaceElementPurpose (or Null if another type)
|
||||
|
||||
SetApplicationDefinedElementPurpose(me: in out; aVal :HAsciiString from TCollection);
|
||||
---Purpose: Set Value for ApplicationDefinedElementPurpose
|
||||
|
||||
ApplicationDefinedElementPurpose (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns Value as ApplicationDefinedElementPurpose (or Null if another type)
|
||||
|
||||
end SurfaceElementPurpose;
|
123
src/StepElement/StepElement_SurfaceElementPurpose.cxx
Executable file
123
src/StepElement/StepElement_SurfaceElementPurpose.cxx
Executable file
@@ -0,0 +1,123 @@
|
||||
// File: StepElement_SurfaceElementPurpose.cxx
|
||||
// Created: Tue Dec 10 18:13:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_SurfaceElementPurpose.ixx>
|
||||
#include <StepElement_SurfaceElementPurposeMember.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_SurfaceElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_SurfaceElementPurpose::StepElement_SurfaceElementPurpose ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_SurfaceElementPurpose::CaseNum (const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseMem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_SurfaceElementPurpose::CaseMem (const Handle(StepData_SelectMember)& ent) const
|
||||
{
|
||||
if(ent.IsNull()) return 0;
|
||||
if(ent->Matches("EnumeratedSurfaceElementPurpose")) return 1;
|
||||
else if(ent->Matches("ApplicationDefinedElementPurpose")) return 2;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepData_SelectMember) StepElement_SurfaceElementPurpose::NewMember() const
|
||||
{
|
||||
return new StepElement_SurfaceElementPurposeMember;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetEnumeratedSurfaceElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceElementPurpose::SetEnumeratedSurfaceElementPurpose (const StepElement_EnumeratedSurfaceElementPurpose val)
|
||||
{
|
||||
Handle(StepElement_SurfaceElementPurposeMember) SelMem = Handle(StepElement_SurfaceElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("EnumeratedSurfaceElementPurpose");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetEnum((Standard_Integer)val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : EnumeratedSurfaceElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_EnumeratedSurfaceElementPurpose StepElement_SurfaceElementPurpose::EnumeratedSurfaceElementPurpose () const
|
||||
{
|
||||
Handle(StepElement_SurfaceElementPurposeMember) SelMem = Handle(StepElement_SurfaceElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return StepElement_MembraneDirect;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("EnumeratedSurfaceElementPurpose");
|
||||
if(name->IsDifferent(nameitem)) return StepElement_MembraneDirect;
|
||||
Standard_Integer numit = SelMem->Enum();
|
||||
StepElement_EnumeratedSurfaceElementPurpose val;
|
||||
switch(numit) {
|
||||
case 1 : val = StepElement_MembraneDirect; break;
|
||||
case 2 : val = StepElement_MembraneShear; break;
|
||||
case 3 : val = StepElement_BendingDirect; break;
|
||||
case 4 : val = StepElement_BendingTorsion; break;
|
||||
case 5 : val = StepElement_NormalToPlaneShear; break;
|
||||
default : return StepElement_MembraneDirect;break;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetApplicationDefinedElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceElementPurpose::SetApplicationDefinedElementPurpose (const Handle(TCollection_HAsciiString) &val)
|
||||
{
|
||||
Handle(StepElement_SurfaceElementPurposeMember) SelMem = Handle(StepElement_SurfaceElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ApplicationDefinedElementPurpose");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetString(val->ToCString());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ApplicationDefinedElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_SurfaceElementPurpose::ApplicationDefinedElementPurpose () const
|
||||
{
|
||||
Handle(StepElement_SurfaceElementPurposeMember) SelMem = Handle(StepElement_SurfaceElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ApplicationDefinedElementPurpose");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Handle(TCollection_HAsciiString) val = new TCollection_HAsciiString;
|
||||
val->AssignCat(SelMem->String());
|
||||
return val;
|
||||
}
|
32
src/StepElement/StepElement_SurfaceElementPurposeMember.cdl
Executable file
32
src/StepElement/StepElement_SurfaceElementPurposeMember.cdl
Executable file
@@ -0,0 +1,32 @@
|
||||
-- File: StepElement_SurfaceElementPurposeMember.cdl
|
||||
-- Created: Tue Dec 10 18:13:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class SurfaceElementPurposeMember from StepElement
|
||||
inherits SelectNamed from StepData
|
||||
|
||||
---Purpose: Representation of member for STEP SELECT type SurfaceElementPurpose
|
||||
|
||||
is
|
||||
Create returns SurfaceElementPurposeMember from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
HasName (me) returns Boolean is redefined;
|
||||
---Purpose: Returns True if has name
|
||||
|
||||
Name (me) returns CString is redefined;
|
||||
---Purpose: Returns set name
|
||||
|
||||
SetName (me : mutable; name : CString) returns Boolean is redefined;
|
||||
---Purpose: Set name
|
||||
|
||||
Matches (me; name : CString) returns Boolean is redefined;
|
||||
---Purpose : Tells if the name of a SelectMember matches a given one;
|
||||
|
||||
fields
|
||||
|
||||
mycase : Integer;
|
||||
|
||||
end SurfaceElementPurposeMember;
|
89
src/StepElement/StepElement_SurfaceElementPurposeMember.cxx
Executable file
89
src/StepElement/StepElement_SurfaceElementPurposeMember.cxx
Executable file
@@ -0,0 +1,89 @@
|
||||
// File: StepElement_SurfaceElementPurposeMember.cxx
|
||||
// Created: Tue Dec 10 18:13:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_SurfaceElementPurposeMember.ixx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Standard_CString ESEP = "ENUMERATED_SURFACE_ELEMENT_PURPOSE";
|
||||
static Standard_CString ADEP = "APPLICATION_DEFINED_ELEMENT_PURPOSE";
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_SurfaceElementPurposeMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_SurfaceElementPurposeMember::StepElement_SurfaceElementPurposeMember () : mycase(0)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : HasName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_SurfaceElementPurposeMember::HasName() const
|
||||
{
|
||||
return mycase >0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_CString StepElement_SurfaceElementPurposeMember::Name() const
|
||||
{
|
||||
switch(mycase) {
|
||||
case 1 : return ESEP;
|
||||
case 2 : return ADEP;
|
||||
default : break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CompareNames
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer CompareNames(const Standard_CString name,Standard_Integer &numen)
|
||||
{
|
||||
Standard_Integer thecase =0;
|
||||
if (!name || name[0] == '\0') thecase = 0;
|
||||
else if(!strcmp (name,ESEP)) {
|
||||
thecase = 1;
|
||||
}
|
||||
else if(!strcmp (name,ADEP)) {
|
||||
thecase = 1;
|
||||
}
|
||||
return thecase;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_SurfaceElementPurposeMember::SetName(const Standard_CString name)
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
mycase = CompareNames(name,numit);
|
||||
if(numit) SetInteger(numit);
|
||||
return (mycase >0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Matches
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_SurfaceElementPurposeMember::Matches(const Standard_CString name) const
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
Standard_Integer thecase = CompareNames(name,numit);
|
||||
return (mycase==thecase);
|
||||
}
|
44
src/StepElement/StepElement_SurfaceSection.cdl
Executable file
44
src/StepElement/StepElement_SurfaceSection.cdl
Executable file
@@ -0,0 +1,44 @@
|
||||
-- File: StepElement_SurfaceSection.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class SurfaceSection from StepElement
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: Representation of STEP entity SurfaceSection
|
||||
|
||||
uses
|
||||
MeasureOrUnspecifiedValue from StepElement
|
||||
|
||||
is
|
||||
Create returns SurfaceSection from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aOffset: MeasureOrUnspecifiedValue from StepElement;
|
||||
aNonStructuralMass: MeasureOrUnspecifiedValue from StepElement;
|
||||
aNonStructuralMassOffset: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Offset (me) returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field Offset
|
||||
SetOffset (me: mutable; Offset: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field Offset
|
||||
|
||||
NonStructuralMass (me) returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field NonStructuralMass
|
||||
SetNonStructuralMass (me: mutable; NonStructuralMass: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field NonStructuralMass
|
||||
|
||||
NonStructuralMassOffset (me) returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field NonStructuralMassOffset
|
||||
SetNonStructuralMassOffset (me: mutable; NonStructuralMassOffset: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field NonStructuralMassOffset
|
||||
|
||||
fields
|
||||
theOffset: MeasureOrUnspecifiedValue from StepElement;
|
||||
theNonStructuralMass: MeasureOrUnspecifiedValue from StepElement;
|
||||
theNonStructuralMassOffset: MeasureOrUnspecifiedValue from StepElement;
|
||||
|
||||
end SurfaceSection;
|
93
src/StepElement/StepElement_SurfaceSection.cxx
Executable file
93
src/StepElement/StepElement_SurfaceSection.cxx
Executable file
@@ -0,0 +1,93 @@
|
||||
// File: StepElement_SurfaceSection.cxx
|
||||
// Created: Thu Dec 12 17:29:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_SurfaceSection.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_SurfaceSection
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_SurfaceSection::StepElement_SurfaceSection ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSection::Init (const StepElement_MeasureOrUnspecifiedValue &aOffset,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMassOffset)
|
||||
{
|
||||
|
||||
theOffset = aOffset;
|
||||
|
||||
theNonStructuralMass = aNonStructuralMass;
|
||||
|
||||
theNonStructuralMassOffset = aNonStructuralMassOffset;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Offset
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue StepElement_SurfaceSection::Offset () const
|
||||
{
|
||||
return theOffset;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetOffset
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSection::SetOffset (const StepElement_MeasureOrUnspecifiedValue &aOffset)
|
||||
{
|
||||
theOffset = aOffset;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NonStructuralMass
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue StepElement_SurfaceSection::NonStructuralMass () const
|
||||
{
|
||||
return theNonStructuralMass;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetNonStructuralMass
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSection::SetNonStructuralMass (const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass)
|
||||
{
|
||||
theNonStructuralMass = aNonStructuralMass;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NonStructuralMassOffset
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue StepElement_SurfaceSection::NonStructuralMassOffset () const
|
||||
{
|
||||
return theNonStructuralMassOffset;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetNonStructuralMassOffset
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSection::SetNonStructuralMassOffset (const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMassOffset)
|
||||
{
|
||||
theNonStructuralMassOffset = aNonStructuralMassOffset;
|
||||
}
|
16
src/StepElement/StepElement_SurfaceSectionField.cdl
Executable file
16
src/StepElement/StepElement_SurfaceSectionField.cdl
Executable file
@@ -0,0 +1,16 @@
|
||||
-- File: StepElement_SurfaceSectionField.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class SurfaceSectionField from StepElement
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: Representation of STEP entity SurfaceSectionField
|
||||
|
||||
is
|
||||
Create returns SurfaceSectionField from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
end SurfaceSectionField;
|
17
src/StepElement/StepElement_SurfaceSectionField.cxx
Executable file
17
src/StepElement/StepElement_SurfaceSectionField.cxx
Executable file
@@ -0,0 +1,17 @@
|
||||
// File: StepElement_SurfaceSectionField.cxx
|
||||
// Created: Thu Dec 12 17:29:04 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_SurfaceSectionField.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_SurfaceSectionField
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_SurfaceSectionField::StepElement_SurfaceSectionField ()
|
||||
{
|
||||
}
|
||||
|
30
src/StepElement/StepElement_SurfaceSectionFieldConstant.cdl
Executable file
30
src/StepElement/StepElement_SurfaceSectionFieldConstant.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: StepElement_SurfaceSectionFieldConstant.cdl
|
||||
-- Created: Thu Dec 12 17:29:04 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class SurfaceSectionFieldConstant from StepElement
|
||||
inherits SurfaceSectionField from StepElement
|
||||
|
||||
---Purpose: Representation of STEP entity SurfaceSectionFieldConstant
|
||||
|
||||
uses
|
||||
SurfaceSection from StepElement
|
||||
|
||||
is
|
||||
Create returns SurfaceSectionFieldConstant from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aDefinition: SurfaceSection from StepElement);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Definition (me) returns SurfaceSection from StepElement;
|
||||
---Purpose: Returns field Definition
|
||||
SetDefinition (me: mutable; Definition: SurfaceSection from StepElement);
|
||||
---Purpose: Set field Definition
|
||||
|
||||
fields
|
||||
theDefinition: SurfaceSection from StepElement;
|
||||
|
||||
end SurfaceSectionFieldConstant;
|
48
src/StepElement/StepElement_SurfaceSectionFieldConstant.cxx
Executable file
48
src/StepElement/StepElement_SurfaceSectionFieldConstant.cxx
Executable file
@@ -0,0 +1,48 @@
|
||||
// File: StepElement_SurfaceSectionFieldConstant.cxx
|
||||
// Created: Thu Dec 12 17:29:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_SurfaceSectionFieldConstant.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_SurfaceSectionFieldConstant
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_SurfaceSectionFieldConstant::StepElement_SurfaceSectionFieldConstant ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSectionFieldConstant::Init (const Handle(StepElement_SurfaceSection) &aDefinition)
|
||||
{
|
||||
// StepElement_SurfaceSectionField::Init();
|
||||
|
||||
theDefinition = aDefinition;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Definition
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_SurfaceSection) StepElement_SurfaceSectionFieldConstant::Definition () const
|
||||
{
|
||||
return theDefinition;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDefinition
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSectionFieldConstant::SetDefinition (const Handle(StepElement_SurfaceSection) &aDefinition)
|
||||
{
|
||||
theDefinition = aDefinition;
|
||||
}
|
37
src/StepElement/StepElement_SurfaceSectionFieldVarying.cdl
Executable file
37
src/StepElement/StepElement_SurfaceSectionFieldVarying.cdl
Executable file
@@ -0,0 +1,37 @@
|
||||
-- File: StepElement_SurfaceSectionFieldVarying.cdl
|
||||
-- Created: Thu Dec 12 17:29:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class SurfaceSectionFieldVarying from StepElement
|
||||
inherits SurfaceSectionField from StepElement
|
||||
|
||||
---Purpose: Representation of STEP entity SurfaceSectionFieldVarying
|
||||
|
||||
uses
|
||||
HArray1OfSurfaceSection from StepElement
|
||||
|
||||
is
|
||||
Create returns SurfaceSectionFieldVarying from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aDefinitions: HArray1OfSurfaceSection from StepElement;
|
||||
aAdditionalNodeValues: Boolean);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Definitions (me) returns HArray1OfSurfaceSection from StepElement;
|
||||
---Purpose: Returns field Definitions
|
||||
SetDefinitions (me: mutable; Definitions: HArray1OfSurfaceSection from StepElement);
|
||||
---Purpose: Set field Definitions
|
||||
|
||||
AdditionalNodeValues (me) returns Boolean;
|
||||
---Purpose: Returns field AdditionalNodeValues
|
||||
SetAdditionalNodeValues (me: mutable; AdditionalNodeValues: Boolean);
|
||||
---Purpose: Set field AdditionalNodeValues
|
||||
|
||||
fields
|
||||
theDefinitions: HArray1OfSurfaceSection from StepElement;
|
||||
theAdditionalNodeValues: Boolean;
|
||||
|
||||
end SurfaceSectionFieldVarying;
|
71
src/StepElement/StepElement_SurfaceSectionFieldVarying.cxx
Executable file
71
src/StepElement/StepElement_SurfaceSectionFieldVarying.cxx
Executable file
@@ -0,0 +1,71 @@
|
||||
// File: StepElement_SurfaceSectionFieldVarying.cxx
|
||||
// Created: Thu Dec 12 16:29:14 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_SurfaceSectionFieldVarying.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_SurfaceSectionFieldVarying
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_SurfaceSectionFieldVarying::StepElement_SurfaceSectionFieldVarying ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSectionFieldVarying::Init (const Handle(StepElement_HArray1OfSurfaceSection) &aDefinitions,
|
||||
const Standard_Boolean aAdditionalNodeValues)
|
||||
{
|
||||
//StepElement_SurfaceSectionField::Init();
|
||||
|
||||
theDefinitions = aDefinitions;
|
||||
|
||||
theAdditionalNodeValues = aAdditionalNodeValues;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Definitions
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_HArray1OfSurfaceSection) StepElement_SurfaceSectionFieldVarying::Definitions () const
|
||||
{
|
||||
return theDefinitions;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDefinitions
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSectionFieldVarying::SetDefinitions (const Handle(StepElement_HArray1OfSurfaceSection) &aDefinitions)
|
||||
{
|
||||
theDefinitions = aDefinitions;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : AdditionalNodeValues
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_SurfaceSectionFieldVarying::AdditionalNodeValues () const
|
||||
{
|
||||
return theAdditionalNodeValues;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetAdditionalNodeValues
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_SurfaceSectionFieldVarying::SetAdditionalNodeValues (const Standard_Boolean aAdditionalNodeValues)
|
||||
{
|
||||
theAdditionalNodeValues = aAdditionalNodeValues;
|
||||
}
|
47
src/StepElement/StepElement_UniformSurfaceSection.cdl
Executable file
47
src/StepElement/StepElement_UniformSurfaceSection.cdl
Executable file
@@ -0,0 +1,47 @@
|
||||
-- File: StepElement_UniformSurfaceSection.cdl
|
||||
-- Created: Thu Dec 12 17:29:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class UniformSurfaceSection from StepElement
|
||||
inherits SurfaceSection from StepElement
|
||||
|
||||
---Purpose: Representation of STEP entity UniformSurfaceSection
|
||||
|
||||
uses
|
||||
MeasureOrUnspecifiedValue from StepElement
|
||||
|
||||
is
|
||||
Create returns UniformSurfaceSection from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aSurfaceSection_Offset: MeasureOrUnspecifiedValue from StepElement;
|
||||
aSurfaceSection_NonStructuralMass: MeasureOrUnspecifiedValue from StepElement;
|
||||
aSurfaceSection_NonStructuralMassOffset: MeasureOrUnspecifiedValue from StepElement;
|
||||
aThickness: Real;
|
||||
aBendingThickness: MeasureOrUnspecifiedValue from StepElement;
|
||||
aShearThickness: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Thickness (me) returns Real;
|
||||
---Purpose: Returns field Thickness
|
||||
SetThickness (me: mutable; Thickness: Real);
|
||||
---Purpose: Set field Thickness
|
||||
|
||||
BendingThickness (me) returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field BendingThickness
|
||||
SetBendingThickness (me: mutable; BendingThickness: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field BendingThickness
|
||||
|
||||
ShearThickness (me) returns MeasureOrUnspecifiedValue from StepElement;
|
||||
---Purpose: Returns field ShearThickness
|
||||
SetShearThickness (me: mutable; ShearThickness: MeasureOrUnspecifiedValue from StepElement);
|
||||
---Purpose: Set field ShearThickness
|
||||
|
||||
fields
|
||||
theThickness: Real;
|
||||
theBendingThickness: MeasureOrUnspecifiedValue from StepElement;
|
||||
theShearThickness: MeasureOrUnspecifiedValue from StepElement;
|
||||
|
||||
end UniformSurfaceSection;
|
99
src/StepElement/StepElement_UniformSurfaceSection.cxx
Executable file
99
src/StepElement/StepElement_UniformSurfaceSection.cxx
Executable file
@@ -0,0 +1,99 @@
|
||||
// File: StepElement_UniformSurfaceSection.cxx
|
||||
// Created: Thu Dec 12 17:29:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_UniformSurfaceSection.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_UniformSurfaceSection
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_UniformSurfaceSection::StepElement_UniformSurfaceSection ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_UniformSurfaceSection::Init (const StepElement_MeasureOrUnspecifiedValue &aSurfaceSection_Offset,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aSurfaceSection_NonStructuralMass,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aSurfaceSection_NonStructuralMassOffset,
|
||||
const Standard_Real aThickness,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aBendingThickness,
|
||||
const StepElement_MeasureOrUnspecifiedValue &aShearThickness)
|
||||
{
|
||||
StepElement_SurfaceSection::Init(aSurfaceSection_Offset,
|
||||
aSurfaceSection_NonStructuralMass,
|
||||
aSurfaceSection_NonStructuralMassOffset);
|
||||
|
||||
theThickness = aThickness;
|
||||
|
||||
theBendingThickness = aBendingThickness;
|
||||
|
||||
theShearThickness = aShearThickness;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Thickness
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Real StepElement_UniformSurfaceSection::Thickness () const
|
||||
{
|
||||
return theThickness;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetThickness
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_UniformSurfaceSection::SetThickness (const Standard_Real aThickness)
|
||||
{
|
||||
theThickness = aThickness;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : BendingThickness
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue StepElement_UniformSurfaceSection::BendingThickness () const
|
||||
{
|
||||
return theBendingThickness;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetBendingThickness
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_UniformSurfaceSection::SetBendingThickness (const StepElement_MeasureOrUnspecifiedValue &aBendingThickness)
|
||||
{
|
||||
theBendingThickness = aBendingThickness;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ShearThickness
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_MeasureOrUnspecifiedValue StepElement_UniformSurfaceSection::ShearThickness () const
|
||||
{
|
||||
return theShearThickness;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetShearThickness
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_UniformSurfaceSection::SetShearThickness (const StepElement_MeasureOrUnspecifiedValue &aShearThickness)
|
||||
{
|
||||
theShearThickness = aShearThickness;
|
||||
}
|
42
src/StepElement/StepElement_Volume3dElementDescriptor.cdl
Executable file
42
src/StepElement/StepElement_Volume3dElementDescriptor.cdl
Executable file
@@ -0,0 +1,42 @@
|
||||
-- File: StepElement_Volume3dElementDescriptor.cdl
|
||||
-- Created: Thu Dec 12 17:29:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class Volume3dElementDescriptor from StepElement
|
||||
inherits ElementDescriptor from StepElement
|
||||
|
||||
---Purpose: Representation of STEP entity Volume3dElementDescriptor
|
||||
|
||||
uses
|
||||
ElementOrder from StepElement,
|
||||
HAsciiString from TCollection,
|
||||
HArray1OfVolumeElementPurposeMember from StepElement,
|
||||
Volume3dElementShape from StepElement
|
||||
|
||||
is
|
||||
Create returns Volume3dElementDescriptor from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
Init (me: mutable; aElementDescriptor_TopologyOrder: ElementOrder from StepElement;
|
||||
aElementDescriptor_Description: HAsciiString from TCollection;
|
||||
aPurpose: HArray1OfVolumeElementPurposeMember from StepElement;
|
||||
aShape: Volume3dElementShape from StepElement);
|
||||
---Purpose: Initialize all fields (own and inherited)
|
||||
|
||||
Purpose (me) returns HArray1OfVolumeElementPurposeMember from StepElement;
|
||||
---Purpose: Returns field Purpose
|
||||
SetPurpose (me: mutable; Purpose: HArray1OfVolumeElementPurposeMember from StepElement);
|
||||
---Purpose: Set field Purpose
|
||||
|
||||
Shape (me) returns Volume3dElementShape from StepElement;
|
||||
---Purpose: Returns field Shape
|
||||
SetShape (me: mutable; Shape: Volume3dElementShape from StepElement);
|
||||
---Purpose: Set field Shape
|
||||
|
||||
fields
|
||||
thePurpose: HArray1OfVolumeElementPurposeMember from StepElement;
|
||||
theShape: Volume3dElementShape from StepElement;
|
||||
|
||||
end Volume3dElementDescriptor;
|
74
src/StepElement/StepElement_Volume3dElementDescriptor.cxx
Executable file
74
src/StepElement/StepElement_Volume3dElementDescriptor.cxx
Executable file
@@ -0,0 +1,74 @@
|
||||
// File: StepElement_Volume3dElementDescriptor.cxx
|
||||
// Created: Thu Dec 12 17:29:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_Volume3dElementDescriptor.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_Volume3dElementDescriptor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_Volume3dElementDescriptor::StepElement_Volume3dElementDescriptor ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_Volume3dElementDescriptor::Init (const StepElement_ElementOrder aElementDescriptor_TopologyOrder,
|
||||
const Handle(TCollection_HAsciiString) &aElementDescriptor_Description,
|
||||
const Handle(StepElement_HArray1OfVolumeElementPurposeMember) &aPurpose,
|
||||
const StepElement_Volume3dElementShape aShape)
|
||||
{
|
||||
StepElement_ElementDescriptor::Init(aElementDescriptor_TopologyOrder,
|
||||
aElementDescriptor_Description);
|
||||
|
||||
thePurpose = aPurpose;
|
||||
|
||||
theShape = aShape;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Purpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepElement_HArray1OfVolumeElementPurposeMember) StepElement_Volume3dElementDescriptor::Purpose () const
|
||||
{
|
||||
return thePurpose;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_Volume3dElementDescriptor::SetPurpose (const Handle(StepElement_HArray1OfVolumeElementPurposeMember) &aPurpose)
|
||||
{
|
||||
thePurpose = aPurpose;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Shape
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_Volume3dElementShape StepElement_Volume3dElementDescriptor::Shape () const
|
||||
{
|
||||
return theShape;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetShape
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_Volume3dElementDescriptor::SetShape (const StepElement_Volume3dElementShape aShape)
|
||||
{
|
||||
theShape = aShape;
|
||||
}
|
47
src/StepElement/StepElement_VolumeElementPurpose.cdl
Executable file
47
src/StepElement/StepElement_VolumeElementPurpose.cdl
Executable file
@@ -0,0 +1,47 @@
|
||||
-- File: StepElement_VolumeElementPurpose.cdl
|
||||
-- Created: Tue Dec 10 18:13:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class VolumeElementPurpose from StepElement
|
||||
inherits SelectType from StepData
|
||||
|
||||
---Purpose: Representation of STEP SELECT type VolumeElementPurpose
|
||||
|
||||
uses
|
||||
SelectMember from StepData,
|
||||
EnumeratedVolumeElementPurpose from StepElement,
|
||||
HAsciiString from TCollection
|
||||
|
||||
is
|
||||
Create returns VolumeElementPurpose from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
CaseNum (me; ent: Transient) returns Integer;
|
||||
---Purpose: Recognizes a kind of VolumeElementPurpose select type
|
||||
-- return 0
|
||||
|
||||
CaseMem (me; ent: SelectMember from StepData) returns Integer is redefined;
|
||||
---Purpose: Recognizes a items of select member VolumeElementPurposeMember
|
||||
-- 1 -> EnumeratedVolumeElementPurpose
|
||||
-- 2 -> ApplicationDefinedElementPurpose
|
||||
-- 0 else
|
||||
|
||||
|
||||
NewMember(me) returns SelectMember from StepData is redefined;
|
||||
---Purpose: Returns a new select member the type VolumeElementPurposeMember
|
||||
|
||||
SetEnumeratedVolumeElementPurpose(me: in out; aVal :EnumeratedVolumeElementPurpose from StepElement);
|
||||
---Purpose: Set Value for EnumeratedVolumeElementPurpose
|
||||
|
||||
EnumeratedVolumeElementPurpose (me) returns EnumeratedVolumeElementPurpose from StepElement;
|
||||
---Purpose: Returns Value as EnumeratedVolumeElementPurpose (or Null if another type)
|
||||
|
||||
SetApplicationDefinedElementPurpose(me: in out; aVal :HAsciiString from TCollection);
|
||||
---Purpose: Set Value for ApplicationDefinedElementPurpose
|
||||
|
||||
ApplicationDefinedElementPurpose (me) returns HAsciiString from TCollection;
|
||||
---Purpose: Returns Value as ApplicationDefinedElementPurpose (or Null if another type)
|
||||
|
||||
end VolumeElementPurpose;
|
119
src/StepElement/StepElement_VolumeElementPurpose.cxx
Executable file
119
src/StepElement/StepElement_VolumeElementPurpose.cxx
Executable file
@@ -0,0 +1,119 @@
|
||||
// File: StepElement_VolumeElementPurpose.cxx
|
||||
// Created: Tue Dec 10 18:13:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_VolumeElementPurpose.ixx>
|
||||
#include <StepElement_VolumeElementPurposeMember.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_VolumeElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_VolumeElementPurpose::StepElement_VolumeElementPurpose ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_VolumeElementPurpose::CaseNum (const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseMem
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepElement_VolumeElementPurpose::CaseMem (const Handle(StepData_SelectMember)& ent) const
|
||||
{
|
||||
if(ent.IsNull()) return 0;
|
||||
if(ent->Matches("EnumeratedVolumeElementPurpose")) return 1;
|
||||
else if(ent->Matches("ApplicationDefinedElementPurpose")) return 2;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepData_SelectMember) StepElement_VolumeElementPurpose::NewMember() const
|
||||
{
|
||||
return new StepElement_VolumeElementPurposeMember;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetEnumeratedVolumeElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_VolumeElementPurpose::SetEnumeratedVolumeElementPurpose (const StepElement_EnumeratedVolumeElementPurpose val)
|
||||
{
|
||||
Handle(StepElement_VolumeElementPurposeMember) SelMem = Handle(StepElement_VolumeElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("EnumeratedVolumeElementPurpose");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetEnum((Standard_Integer)val);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : EnumeratedVolumeElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_EnumeratedVolumeElementPurpose StepElement_VolumeElementPurpose::EnumeratedVolumeElementPurpose () const
|
||||
{
|
||||
Handle(StepElement_VolumeElementPurposeMember) SelMem = Handle(StepElement_VolumeElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return StepElement_StressDisplacement;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("EnumeratedVolumeElementPurpose");
|
||||
if(name->IsDifferent(nameitem)) return StepElement_StressDisplacement;
|
||||
Standard_Integer numit = SelMem->Enum();
|
||||
StepElement_EnumeratedVolumeElementPurpose val;
|
||||
switch(numit) {
|
||||
case 1 : val = StepElement_StressDisplacement; break;
|
||||
default : return StepElement_StressDisplacement;break;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetApplicationDefinedElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepElement_VolumeElementPurpose::SetApplicationDefinedElementPurpose (const Handle(TCollection_HAsciiString) &val)
|
||||
{
|
||||
Handle(StepElement_VolumeElementPurposeMember) SelMem = Handle(StepElement_VolumeElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ApplicationDefinedElementPurpose");
|
||||
SelMem->SetName(name->ToCString());
|
||||
SelMem->SetString(val->ToCString());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ApplicationDefinedElementPurpose
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepElement_VolumeElementPurpose::ApplicationDefinedElementPurpose () const
|
||||
{
|
||||
Handle(StepElement_VolumeElementPurposeMember) SelMem = Handle(StepElement_VolumeElementPurposeMember)::DownCast(Value());
|
||||
if(SelMem.IsNull()) return 0;
|
||||
Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString;
|
||||
name->AssignCat(SelMem->Name());
|
||||
Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ApplicationDefinedElementPurpose");
|
||||
if(name->IsDifferent(nameitem)) return 0;
|
||||
Handle(TCollection_HAsciiString) val = new TCollection_HAsciiString;
|
||||
val->AssignCat(SelMem->String());
|
||||
return val;
|
||||
}
|
32
src/StepElement/StepElement_VolumeElementPurposeMember.cdl
Executable file
32
src/StepElement/StepElement_VolumeElementPurposeMember.cdl
Executable file
@@ -0,0 +1,32 @@
|
||||
-- File: StepElement_VolumeElementPurposeMember.cdl
|
||||
-- Created: Tue Dec 10 18:13:05 2002
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class VolumeElementPurposeMember from StepElement
|
||||
inherits SelectNamed from StepData
|
||||
|
||||
---Purpose: Representation of member for STEP SELECT type VolumeElementPurpose
|
||||
|
||||
is
|
||||
Create returns VolumeElementPurposeMember from StepElement;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
HasName (me) returns Boolean is redefined;
|
||||
---Purpose: Returns True if has name
|
||||
|
||||
Name (me) returns CString is redefined;
|
||||
---Purpose: Returns set name
|
||||
|
||||
SetName (me : mutable; name : CString) returns Boolean is redefined;
|
||||
---Purpose: Set name
|
||||
|
||||
Matches (me; name : CString) returns Boolean is redefined;
|
||||
---Purpose : Tells if the name of a SelectMember matches a given one;
|
||||
|
||||
fields
|
||||
|
||||
mycase : Integer;
|
||||
|
||||
end VolumeElementPurposeMember;
|
89
src/StepElement/StepElement_VolumeElementPurposeMember.cxx
Executable file
89
src/StepElement/StepElement_VolumeElementPurposeMember.cxx
Executable file
@@ -0,0 +1,89 @@
|
||||
// File: StepElement_VolumeElementPurposeMember.cxx
|
||||
// Created: Tue Dec 10 18:13:05 2002
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <StepElement_VolumeElementPurposeMember.ixx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Standard_CString EVEP = "ENUMERATED_VOLUME_ELEMENT_PURPOSE";
|
||||
static Standard_CString ADEP = "APPLICATION_DEFINED_ELEMENT_PURPOSE";
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : StepElement_VolumeElementPurposeMember
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepElement_VolumeElementPurposeMember::StepElement_VolumeElementPurposeMember () : mycase(0)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : HasName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_VolumeElementPurposeMember::HasName() const
|
||||
{
|
||||
return mycase >0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_CString StepElement_VolumeElementPurposeMember::Name() const
|
||||
{
|
||||
switch(mycase) {
|
||||
case 1 : return EVEP;
|
||||
case 2 : return ADEP;
|
||||
default : break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CompareNames
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer CompareNames(const Standard_CString name,Standard_Integer &numen)
|
||||
{
|
||||
Standard_Integer thecase =0;
|
||||
if (!name || name[0] == '\0') thecase = 0;
|
||||
else if(!strcmp (name,EVEP)) {
|
||||
thecase = 1;
|
||||
}
|
||||
else if(!strcmp (name,ADEP)) {
|
||||
thecase = 1;
|
||||
}
|
||||
return thecase;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_VolumeElementPurposeMember::SetName(const Standard_CString name)
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
mycase = CompareNames(name,numit);
|
||||
if(numit) SetInteger(numit);
|
||||
return (mycase >0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Matches
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepElement_VolumeElementPurposeMember::Matches(const Standard_CString name) const
|
||||
{
|
||||
Standard_Integer numit =0;
|
||||
Standard_Integer thecase = CompareNames(name,numit);
|
||||
return (mycase==thecase);
|
||||
}
|
Reference in New Issue
Block a user