// 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 #include #include #include #include #include #include #include #include #include #include #include #include StepAP214_AutoDesignGroupedItem::StepAP214_AutoDesignGroupedItem () { } Standard_Integer StepAP214_AutoDesignGroupedItem::CaseNum(const Handle(Standard_Transient)& ent) const { if (ent.IsNull()) return 0; if (ent->IsKind(STANDARD_TYPE(StepShape_AdvancedBrepShapeRepresentation))) return 1; if (ent->IsKind(STANDARD_TYPE(StepShape_CsgShapeRepresentation))) return 2; if (ent->IsKind(STANDARD_TYPE(StepShape_FacetedBrepShapeRepresentation))) return 3; if (ent->IsKind(STANDARD_TYPE(StepShape_GeometricallyBoundedSurfaceShapeRepresentation))) return 4; if (ent->IsKind(STANDARD_TYPE(StepShape_GeometricallyBoundedWireframeShapeRepresentation))) return 5; if (ent->IsKind(STANDARD_TYPE(StepShape_ManifoldSurfaceShapeRepresentation))) return 6; if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 7; if (ent->IsKind(STANDARD_TYPE(StepRepr_RepresentationItem))) return 8; if (ent->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation))) return 9; if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 10; if (ent->IsKind(STANDARD_TYPE(StepVisual_TemplateInstance))) return 11; return 0; } Handle(StepShape_AdvancedBrepShapeRepresentation) StepAP214_AutoDesignGroupedItem::AdvancedBrepShapeRepresentation () const { return GetCasted(StepShape_AdvancedBrepShapeRepresentation,Value()); } Handle(StepShape_CsgShapeRepresentation) StepAP214_AutoDesignGroupedItem::CsgShapeRepresentation () const { return GetCasted(StepShape_CsgShapeRepresentation,Value()); } Handle(StepShape_FacetedBrepShapeRepresentation) StepAP214_AutoDesignGroupedItem::FacetedBrepShapeRepresentation () const { return GetCasted(StepShape_FacetedBrepShapeRepresentation,Value()); } Handle(StepShape_GeometricallyBoundedSurfaceShapeRepresentation) StepAP214_AutoDesignGroupedItem::GeometricallyBoundedSurfaceShapeRepresentation () const { return GetCasted(StepShape_GeometricallyBoundedSurfaceShapeRepresentation,Value()); } Handle(StepShape_GeometricallyBoundedWireframeShapeRepresentation) StepAP214_AutoDesignGroupedItem::GeometricallyBoundedWireframeShapeRepresentation () const { return GetCasted(StepShape_GeometricallyBoundedWireframeShapeRepresentation,Value()); } Handle(StepShape_ManifoldSurfaceShapeRepresentation) StepAP214_AutoDesignGroupedItem::ManifoldSurfaceShapeRepresentation () const { return GetCasted(StepShape_ManifoldSurfaceShapeRepresentation,Value()); } Handle(StepRepr_Representation) StepAP214_AutoDesignGroupedItem::Representation () const { return GetCasted(StepRepr_Representation,Value()); } Handle(StepRepr_RepresentationItem) StepAP214_AutoDesignGroupedItem::RepresentationItem () const { return GetCasted(StepRepr_RepresentationItem,Value()); } Handle(StepRepr_ShapeAspect) StepAP214_AutoDesignGroupedItem::ShapeAspect () const { return GetCasted(StepRepr_ShapeAspect,Value()); } Handle(StepShape_ShapeRepresentation) StepAP214_AutoDesignGroupedItem::ShapeRepresentation () const { return GetCasted(StepShape_ShapeRepresentation,Value()); } Handle(StepVisual_TemplateInstance) StepAP214_AutoDesignGroupedItem::TemplateInstance () const { return GetCasted(StepVisual_TemplateInstance,Value()); }