mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-15 12:07:41 +08:00
50 lines
1.8 KiB
C++
Executable File
50 lines
1.8 KiB
C++
Executable File
// File: StepRepr_ConfigurationDesignItem.cxx
|
|
// Created: Fri Nov 26 16:26:26 1999
|
|
// Author: Andrey BETENEV
|
|
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
|
// Copyright: Matra Datavision 1999
|
|
|
|
#include <StepRepr_ConfigurationDesignItem.ixx>
|
|
|
|
//=======================================================================
|
|
//function : StepRepr_ConfigurationDesignItem
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
StepRepr_ConfigurationDesignItem::StepRepr_ConfigurationDesignItem ()
|
|
{
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : CaseNum
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_Integer StepRepr_ConfigurationDesignItem::CaseNum (const Handle(Standard_Transient)& ent) const
|
|
{
|
|
if (ent.IsNull()) return 0;
|
|
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 1;
|
|
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 2;
|
|
return 0;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ProductDefinition
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Handle(StepBasic_ProductDefinition) StepRepr_ConfigurationDesignItem::ProductDefinition () const
|
|
{
|
|
return Handle(StepBasic_ProductDefinition)::DownCast(Value());
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ProductDefinitionFormation
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Handle(StepBasic_ProductDefinitionFormation) StepRepr_ConfigurationDesignItem::ProductDefinitionFormation () const
|
|
{
|
|
return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value());
|
|
}
|