mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027336: Update STEP entities, according to AP242
Add header and parameter for AP242. Update entities: product_definition_relationship styled_item Update select types: security_classification_item person_and_organization_item organization_item group_item external_identification_item document_reference_item date_item approval_item external_identification_item draughting_callout_element value_qualifier invisibility_context update gdt tests. fix compilation warnings.
This commit is contained in:
@@ -14,32 +14,54 @@
|
||||
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <StepAP214_AppliedExternalIdentificationAssignment.hxx>
|
||||
#include <StepAP214_DocumentReferenceItem.hxx>
|
||||
#include <StepBasic_Approval.hxx>
|
||||
#include <StepBasic_CharacterizedObject.hxx>
|
||||
#include <StepBasic_ExternallyDefinedItem.hxx>
|
||||
#include <StepBasic_Group.hxx>
|
||||
#include <StepBasic_GroupRelationship.hxx>
|
||||
#include <StepBasic_ProductCategory.hxx>
|
||||
#include <StepBasic_ProductDefinition.hxx>
|
||||
#include <StepBasic_ProductDefinitionContext.hxx>
|
||||
#include <StepBasic_ProductDefinitionRelationship.hxx>
|
||||
#include <StepRepr_AssemblyComponentUsage.hxx>
|
||||
#include <StepRepr_DescriptiveRepresentationItem.hxx>
|
||||
#include <StepRepr_MaterialDesignation.hxx>
|
||||
#include <StepRepr_MeasureRepresentationItem.hxx>
|
||||
#include <StepRepr_PropertyDefinition.hxx>
|
||||
#include <StepRepr_Representation.hxx>
|
||||
#include <StepRepr_RepresentationItem.hxx>
|
||||
#include <StepRepr_ShapeAspect.hxx>
|
||||
#include <StepRepr_ShapeAspectRelationship.hxx>
|
||||
#include <StepShape_DimensionalSize.hxx>
|
||||
|
||||
StepAP214_DocumentReferenceItem::StepAP214_DocumentReferenceItem () { }
|
||||
|
||||
Standard_Integer StepAP214_DocumentReferenceItem::CaseNum(const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
if (ent.IsNull()) return 0;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_Approval))) return 1;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_DescriptiveRepresentationItem))) return 2;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_MaterialDesignation))) return 3;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 4;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 5;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 6;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 7;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 8;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 9;
|
||||
return 0;
|
||||
if (ent.IsNull()) return 0;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_Approval))) return 1;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_DescriptiveRepresentationItem))) return 2;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_MaterialDesignation))) return 3;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 4;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 5;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 6;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 7;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 8;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 9;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedExternalIdentificationAssignment))) return 10;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_AssemblyComponentUsage))) return 11;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_CharacterizedObject))) return 12;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalSize))) return 13;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_ExternallyDefinedItem))) return 14;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_Group))) return 15;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_GroupRelationship))) return 16;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_MeasureRepresentationItem))) return 17;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductCategory))) return 18;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionContext))) return 19;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepRepr_RepresentationItem))) return 20;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,3 +93,36 @@ Handle(StepRepr_ShapeAspect) StepAP214_DocumentReferenceItem::ShapeAspect() con
|
||||
|
||||
Handle(StepRepr_ShapeAspectRelationship) StepAP214_DocumentReferenceItem::ShapeAspectRelationship() const
|
||||
{ return GetCasted(StepRepr_ShapeAspectRelationship,Value()); }
|
||||
|
||||
Handle(StepAP214_AppliedExternalIdentificationAssignment) StepAP214_DocumentReferenceItem::AppliedExternalIdentificationAssignment() const
|
||||
{ return GetCasted(StepAP214_AppliedExternalIdentificationAssignment,Value()); }
|
||||
|
||||
Handle(StepRepr_AssemblyComponentUsage) StepAP214_DocumentReferenceItem::AssemblyComponentUsage() const
|
||||
{ return GetCasted(StepRepr_AssemblyComponentUsage,Value()); }
|
||||
|
||||
Handle(StepBasic_CharacterizedObject) StepAP214_DocumentReferenceItem::CharacterizedObject() const
|
||||
{ return GetCasted(StepBasic_CharacterizedObject,Value()); }
|
||||
|
||||
Handle(StepShape_DimensionalSize) StepAP214_DocumentReferenceItem::DimensionalSize() const
|
||||
{ return GetCasted(StepShape_DimensionalSize,Value()); }
|
||||
|
||||
Handle(StepBasic_ExternallyDefinedItem) StepAP214_DocumentReferenceItem::ExternallyDefinedItem() const
|
||||
{ return GetCasted(StepBasic_ExternallyDefinedItem,Value()); }
|
||||
|
||||
Handle(StepBasic_Group) StepAP214_DocumentReferenceItem::Group() const
|
||||
{ return GetCasted(StepBasic_Group,Value()); }
|
||||
|
||||
Handle(StepBasic_GroupRelationship) StepAP214_DocumentReferenceItem::GroupRelationship() const
|
||||
{ return GetCasted(StepBasic_GroupRelationship,Value()); }
|
||||
|
||||
Handle(StepRepr_MeasureRepresentationItem) StepAP214_DocumentReferenceItem::MeasureRepresentationItem() const
|
||||
{ return GetCasted(StepRepr_MeasureRepresentationItem,Value()); }
|
||||
|
||||
Handle(StepBasic_ProductCategory) StepAP214_DocumentReferenceItem::ProductCategory() const
|
||||
{ return GetCasted(StepBasic_ProductCategory,Value()); }
|
||||
|
||||
Handle(StepBasic_ProductDefinitionContext) StepAP214_DocumentReferenceItem::ProductDefinitionContext() const
|
||||
{ return GetCasted(StepBasic_ProductDefinitionContext,Value()); }
|
||||
|
||||
Handle(StepRepr_RepresentationItem) StepAP214_DocumentReferenceItem::RepresentationItem() const
|
||||
{ return GetCasted(StepRepr_RepresentationItem,Value()); }
|
||||
|
Reference in New Issue
Block a user