| // Copyright (c) 1999-2014 OPEN CASCADE SAS | |
| // | |
| // This file is part of Open CASCADE Technology software library. | |
| // | |
| // This library is free software; you can redistribute it and/or modify it under | |
| // the terms of the GNU Lesser General Public License version 2.1 as published | |
| // by the Free Software Foundation, with special exception defined in the file | |
| // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT | |
| // distribution for complete text of the license and disclaimer of any warranty. | |
| // | |
| // Alternatively, this file may be used under the terms of Open CASCADE | |
| // commercial license or contractual agreement. | |
| #include <MoniTool_Macros.hxx> | |
| #include <Standard_Transient.hxx> | |
| #include <StepAP214_AutoDesignReferencingItem.hxx> | |
| #include <StepBasic_Approval.hxx> | |
| #include <StepBasic_DocumentRelationship.hxx> | |
| #include <StepBasic_ProductCategory.hxx> | |
| #include <StepBasic_ProductDefinition.hxx> | |
| #include <StepBasic_ProductDefinitionRelationship.hxx> | |
| #include <StepRepr_ExternallyDefinedRepresentation.hxx> | |
| #include <StepRepr_MappedItem.hxx> | |
| #include <StepRepr_MaterialDesignation.hxx> | |
| #include <StepRepr_PropertyDefinition.hxx> | |
| #include <StepRepr_Representation.hxx> | |
| #include <StepRepr_RepresentationRelationship.hxx> | |
| #include <StepRepr_ShapeAspect.hxx> | |
| #include <StepVisual_PresentationArea.hxx> | |
| #include <StepVisual_PresentationView.hxx> | |
| StepAP214_AutoDesignReferencingItem::StepAP214_AutoDesignReferencingItem() = default; | |
| int StepAP214_AutoDesignReferencingItem::CaseNum(const occ::handle<Standard_Transient>& ent) const | |
| { | |
| if (ent.IsNull()) | |
| { | |
| return 0; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepBasic_Approval))) | |
| { | |
| return 1; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepBasic_DocumentRelationship))) | |
| { | |
| return 2; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepRepr_ExternallyDefinedRepresentation))) | |
| { | |
| return 3; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepRepr_MappedItem))) | |
| { | |
| return 4; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepRepr_MaterialDesignation))) | |
| { | |
| return 5; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepVisual_PresentationArea))) | |
| { | |
| return 6; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepVisual_PresentationView))) | |
| { | |
| return 7; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductCategory))) | |
| { | |
| return 8; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) | |
| { | |
| return 9; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) | |
| { | |
| return 10; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) | |
| { | |
| return 11; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) | |
| { | |
| return 12; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepRepr_RepresentationRelationship))) | |
| { | |
| return 13; | |
| } | |
| if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) | |
| { | |
| return 14; | |
| } | |
| return 0; | |
| } | |
| occ::handle<StepBasic_Approval> StepAP214_AutoDesignReferencingItem::Approval() const | |
| { | |
| return GetCasted(StepBasic_Approval, Value()); | |
| } | |
| occ::handle<StepBasic_DocumentRelationship> StepAP214_AutoDesignReferencingItem:: | |
| DocumentRelationship() const | |
| { | |
| return GetCasted(StepBasic_DocumentRelationship, Value()); | |
| } | |
| occ::handle<StepRepr_ExternallyDefinedRepresentation> StepAP214_AutoDesignReferencingItem:: | |
| ExternallyDefinedRepresentation() const | |
| { | |
| return GetCasted(StepRepr_ExternallyDefinedRepresentation, Value()); | |
| } | |
| occ::handle<StepRepr_MappedItem> StepAP214_AutoDesignReferencingItem::MappedItem() const | |
| { | |
| return GetCasted(StepRepr_MappedItem, Value()); | |
| } | |
| occ::handle<StepRepr_MaterialDesignation> StepAP214_AutoDesignReferencingItem::MaterialDesignation() | |
| const | |
| { | |
| return GetCasted(StepRepr_MaterialDesignation, Value()); | |
| } | |
| occ::handle<StepVisual_PresentationArea> StepAP214_AutoDesignReferencingItem::PresentationArea() | |
| const | |
| { | |
| return GetCasted(StepVisual_PresentationArea, Value()); | |
| } | |
| occ::handle<StepVisual_PresentationView> StepAP214_AutoDesignReferencingItem::PresentationView() | |
| const | |
| { | |
| return GetCasted(StepVisual_PresentationView, Value()); | |
| } | |
| occ::handle<StepBasic_ProductCategory> StepAP214_AutoDesignReferencingItem::ProductCategory() const | |
| { | |
| return GetCasted(StepBasic_ProductCategory, Value()); | |
| } | |
| occ::handle<StepBasic_ProductDefinition> StepAP214_AutoDesignReferencingItem::ProductDefinition() | |
| const | |
| { | |
| return GetCasted(StepBasic_ProductDefinition, Value()); | |
| } | |
| occ::handle<StepBasic_ProductDefinitionRelationship> StepAP214_AutoDesignReferencingItem:: | |
| ProductDefinitionRelationship() const | |
| { | |
| return GetCasted(StepBasic_ProductDefinitionRelationship, Value()); | |
| } | |
| occ::handle<StepRepr_PropertyDefinition> StepAP214_AutoDesignReferencingItem::PropertyDefinition() | |
| const | |
| { | |
| return GetCasted(StepRepr_PropertyDefinition, Value()); | |
| } | |
| occ::handle<StepRepr_Representation> StepAP214_AutoDesignReferencingItem::Representation() const | |
| { | |
| return GetCasted(StepRepr_Representation, Value()); | |
| } | |
| occ::handle<StepRepr_RepresentationRelationship> StepAP214_AutoDesignReferencingItem:: | |
| RepresentationRelationship() const | |
| { | |
| return GetCasted(StepRepr_RepresentationRelationship, Value()); | |
| } | |
| occ::handle<StepRepr_ShapeAspect> StepAP214_AutoDesignReferencingItem::ShapeAspect() const | |
| { | |
| return GetCasted(StepRepr_ShapeAspect, Value()); | |
| } |