1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026371: Implementation of new entities for GD&T

Implement entities:
- DatumReferenceCompartment,
- DatumReferenceElement,
- DatumReferenceModifierWithValue,
- DatumSystem,
- GeneralDatumReference,

- ValueFormatTypeQualifier,

- NonUniformZoneDefinition,
- ProjectedZoneDefinition,
- RunoutZoneDefinition,
- RunoutZoneOrientation,
- ToleranceZone,
- ToleranceZoneDefinition,
- ToleranceZoneForm,
- ToleranceZoneTarget,

- GeometricToleranceWithDefinedAreaUnit,
- GeometricToleranceWithDefinedUnit,
- GeometricToleranceWithMaximumTolerance,
- GeometricToleranceWithModifiers,
- UnequallyDisposedGeometricTolerance,

- GeometricItemSpecificUsage,
- IdAttribute,
- IdAttributeSelect,
- ItemIdentifiedRepresentationUsage,
- ItemIdentifiedRepresentationUsageDefinition,

- Apex,
- CentreOfSymmetry,
- GeometricAlignment,
- ParallelOffset,
- PerpendicularTo,
- Tangent,

- AllAroundShapeAspect,
- BetweenShapeAspect,
- CompositeGroupShapeAspect,
- ContinuosShapeAspect,

- ReprItemAndLengthMeasureWithUnitAndQRI,
- ReprItemAndPlaneAngleMeasureWithUnitAndQRI,
- ReprItemAndPlaneAngleMeasureWithUnit,

- CompGroupShAspAndCompShAspAndDatumFeatAndShAsp,
- CompShAspAndDatumFeatAndShAsp,

- GeoTolAndGeoTolWthDatRef,
- GeoTolAndGeoTolWthDatRefAndGeoTolWthMod,
- GeoTolAndGeoTolWthMod,
- GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol,

- IntegerRepresentationItem,
- ValueRepresentationItem.

Modify entities:
- GeometricTolerance,
- GeometricToleranceWithDatumReference,
- ShapeDimensionRepresentation.

fix compilation error

fix compilation warning
This commit is contained in:
ika
2015-09-24 12:12:47 +03:00
committed by kgv
parent a576c3e54d
commit 28a73c1fe7
261 changed files with 15894 additions and 611 deletions

10
src/StepAP242/FILES Normal file
View File

@@ -0,0 +1,10 @@
StepAP242_GeometricItemSpecificUsage.cxx
StepAP242_GeometricItemSpecificUsage.hxx
StepAP242_IdAttribute.cxx
StepAP242_IdAttribute.hxx
StepAP242_IdAttributeSelect.cxx
StepAP242_IdAttributeSelect.hxx
StepAP242_ItemIdentifiedRepresentationUsage.cxx
StepAP242_ItemIdentifiedRepresentationUsage.hxx
StepAP242_ItemIdentifiedRepresentationUsageDefinition.cxx
StepAP242_ItemIdentifiedRepresentationUsageDefinition.hxx

View File

@@ -0,0 +1,18 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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 <StepAP242_GeometricItemSpecificUsage.hxx>
StepAP242_GeometricItemSpecificUsage::StepAP242_GeometricItemSpecificUsage () { }

View File

@@ -0,0 +1,38 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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.
#ifndef _StepAP242_GeometricItemSpecificUsage_HeaderFile
#define _StepAP242_GeometricItemSpecificUsage_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepAP242_ItemIdentifiedRepresentationUsage.hxx>
class StepAP242_GeometricItemSpecificUsage;
DEFINE_STANDARD_HANDLE(StepAP242_GeometricItemSpecificUsage, StepAP242_ItemIdentifiedRepresentationUsage)
//! Added for Dimensional Tolerances
class StepAP242_GeometricItemSpecificUsage : public StepAP242_ItemIdentifiedRepresentationUsage
{
public:
Standard_EXPORT StepAP242_GeometricItemSpecificUsage();
DEFINE_STANDARD_RTTI(StepAP242_GeometricItemSpecificUsage, StepAP242_ItemIdentifiedRepresentationUsage)
private:
};
#endif // _StepAP242_GeometricItemSpecificUsage_HeaderFile

View File

@@ -0,0 +1,37 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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 <StepAP242_IdAttribute.hxx>
//=======================================================================
//function : StepAP242_IdAttribute
//purpose :
//=======================================================================
StepAP242_IdAttribute::StepAP242_IdAttribute () {}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepAP242_IdAttribute::Init(
const Handle(TCollection_HAsciiString)& theAttributeValue,
const StepAP242_IdAttributeSelect& theIdentifiedItem)
{
// --- classe own fields ---
attributeValue = theAttributeValue;
identifiedItem = theIdentifiedItem;
}

View File

@@ -0,0 +1,70 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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.
#ifndef _StepAP242_IdAttribute_HeaderFile
#define _StepAP242_IdAttribute_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepAP242_IdAttributeSelect.hxx>
#include <MMgt_TShared.hxx>
class TCollection_HAsciiString;
class StepAP242_IdAttributeSelect;
class StepAP242_IdAttribute;
DEFINE_STANDARD_HANDLE(StepAP242_IdAttribute, MMgt_TShared)
class StepAP242_IdAttribute : public MMgt_TShared
{
public:
//! Returns a IdAttribute
Standard_EXPORT StepAP242_IdAttribute();
//! Init all field own and inherited
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& theAttributeValue, const StepAP242_IdAttributeSelect& theIdentifiedItem) ;
// Set field AttributeValue
inline void SetAttributeValue(const Handle(TCollection_HAsciiString)& theAttributeValue)
{
attributeValue = theAttributeValue;
}
//! Returns field AttributeValue
inline Handle(TCollection_HAsciiString) AttributeValue() const
{
return attributeValue;
}
//! Set field IdentifiedItem
inline void SetIdentifiedItem(const StepAP242_IdAttributeSelect& theIdentifiedItem)
{
identifiedItem = theIdentifiedItem;
}
//! Returns IdentifiedItem
inline StepAP242_IdAttributeSelect IdentifiedItem() const
{
return identifiedItem;
}
DEFINE_STANDARD_RTTI(StepAP242_IdAttribute, MMgt_TShared)
private:
Handle(TCollection_HAsciiString) attributeValue;
StepAP242_IdAttributeSelect identifiedItem;
};
#endif // _StepAP242_IdAttribute_HeaderFile

View File

@@ -0,0 +1,91 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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 <StepAP242_IdAttributeSelect.hxx>
#include <Interface_Macros.hxx>
#include <StepBasic_Action.hxx>
#include <StepBasic_Address.hxx>
#include <StepBasic_ApplicationContext.hxx>
#include <StepBasic_Group.hxx>
#include <StepBasic_ProductCategory.hxx>
#include <StepDimTol_GeometricTolerance.hxx>
#include <StepRepr_PropertyDefinition.hxx>
#include <StepRepr_Representation.hxx>
#include <StepRepr_ShapeAspect.hxx>
#include <StepRepr_ShapeAspectRelationship.hxx>
#include <StepShape_DimensionalSize.hxx>
//=======================================================================
//function : StepAP242_IdAttributeSelect
//purpose :
//=======================================================================
StepAP242_IdAttributeSelect::StepAP242_IdAttributeSelect () { }
//=======================================================================
//function : CaseNum
//purpose :
//=======================================================================
Standard_Integer StepAP242_IdAttributeSelect::CaseNum(const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepBasic_Action))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepBasic_Address))) return 2;
if (ent->IsKind(STANDARD_TYPE(StepBasic_ApplicationContext))) return 3;
if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalSize))) return 4;
if (ent->IsKind(STANDARD_TYPE(StepDimTol_GeometricTolerance))) return 5;
if (ent->IsKind(STANDARD_TYPE(StepBasic_Group))) return 6;
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductCategory))) return 8;
if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 9;
if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 10;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 11;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 12;
return 0;
}
Handle(StepBasic_Action) StepAP242_IdAttributeSelect::Action() const
{ return GetCasted(StepBasic_Action,Value()); }
Handle(StepBasic_Address) StepAP242_IdAttributeSelect::Address() const
{ return GetCasted(StepBasic_Address,Value()); }
Handle(StepBasic_ApplicationContext) StepAP242_IdAttributeSelect::ApplicationContext() const
{ return GetCasted(StepBasic_ApplicationContext,Value()); }
Handle(StepShape_DimensionalSize) StepAP242_IdAttributeSelect::DimensionalSize() const
{ return GetCasted(StepShape_DimensionalSize,Value()); }
Handle(StepDimTol_GeometricTolerance) StepAP242_IdAttributeSelect::GeometricTolerance() const
{ return GetCasted(StepDimTol_GeometricTolerance,Value()); }
Handle(StepBasic_Group) StepAP242_IdAttributeSelect::Group() const
{ return GetCasted(StepBasic_Group,Value()); }
Handle(StepBasic_ProductCategory) StepAP242_IdAttributeSelect::ProductCategory() const
{ return GetCasted(StepBasic_ProductCategory,Value()); }
Handle(StepRepr_PropertyDefinition) StepAP242_IdAttributeSelect::PropertyDefinition() const
{ return GetCasted(StepRepr_PropertyDefinition,Value()); }
Handle(StepRepr_Representation) StepAP242_IdAttributeSelect::Representation() const
{ return GetCasted(StepRepr_Representation,Value()); }
Handle(StepRepr_ShapeAspect) StepAP242_IdAttributeSelect::ShapeAspect() const
{ return GetCasted(StepRepr_ShapeAspect,Value()); }
Handle(StepRepr_ShapeAspectRelationship) StepAP242_IdAttributeSelect::ShapeAspectRelationship() const
{ return GetCasted(StepRepr_ShapeAspectRelationship,Value()); }

View File

@@ -0,0 +1,96 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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.
#ifndef _StepAP242_IdAttributeSelect_HeaderFile
#define _StepAP242_IdAttributeSelect_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <StepData_SelectType.hxx>
#include <Standard_Integer.hxx>
class Standard_Transient;
class StepBasic_Action;
class StepBasic_Address;
class StepBasic_ApplicationContext;
class StepShape_DimensionalSize;
class StepDimTol_GeometricTolerance;
class StepBasic_Group;
class StepBasic_ProductCategory;
class StepRepr_PropertyDefinition;
class StepRepr_Representation;
class StepRepr_ShapeAspect;
class StepRepr_ShapeAspectRelationship;
class StepAP242_IdAttributeSelect : public StepData_SelectType
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a IdAttributeSelect select type
Standard_EXPORT StepAP242_IdAttributeSelect();
//! Recognizes a IdAttributeSelect Kind Entity that is :
//! 1 -> Action
//! 2 -> Address
//! 3 -> ApplicationContext
//! 4 -> DimensionalSize
//! 5 -> GeometricTolerance
//! 6 -> Group
//! 7 -> Reserved for OrganizatonalProject (not implemented in OCCT)
//! 8 -> ProductCategory
//! 9 -> PropertyDefinition
//! 10 -> Representation
//! 11 -> ShapeAspect
//! 12 -> ShapeAspectRelationship
//! 0 else
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
//! returns Value as a Action (Null if another type)
Standard_EXPORT Handle(StepBasic_Action) Action() const;
//! returns Value as a Address (Null if another type)
Standard_EXPORT Handle(StepBasic_Address) Address() const;
//! returns Value as a ApplicationContext (Null if another type)
Standard_EXPORT Handle(StepBasic_ApplicationContext) ApplicationContext() const;
//! returns Value as a DimensionalSize (Null if another type)
Standard_EXPORT Handle(StepShape_DimensionalSize) DimensionalSize() const;
//! returns Value as a GeometricTolerance (Null if another type)
Standard_EXPORT Handle(StepDimTol_GeometricTolerance) GeometricTolerance() const;
//! returns Value as a Group (Null if another type)
Standard_EXPORT Handle(StepBasic_Group) Group() const;
//! returns Value as a ProductCategory (Null if another type)
Standard_EXPORT Handle(StepBasic_ProductCategory) ProductCategory() const;
//! returns Value as a PropertyDefinition (Null if another type)
Standard_EXPORT Handle(StepRepr_PropertyDefinition) PropertyDefinition() const;
//! returns Value as a Representation (Null if another type)
Standard_EXPORT Handle(StepRepr_Representation) Representation() const;
//! returns Value as a ShapeAspect (Null if another type)
Standard_EXPORT Handle(StepRepr_ShapeAspect) ShapeAspect() const;
//! returns Value as a ShapeAspectRelationship (Null if another type)
Standard_EXPORT Handle(StepRepr_ShapeAspectRelationship) ShapeAspectRelationship() const;
};
#endif // _StepAP242_IdAttributeSelect_HeaderFile

View File

@@ -0,0 +1,46 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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 <StepAP242_ItemIdentifiedRepresentationUsage.hxx>
#include <StepAP242_ItemIdentifiedRepresentationUsageDefinition.hxx>
#include <StepRepr_HArray1OfRepresentationItem.hxx>
//=======================================================================
//function : StepAP242_ItemIdentifiedRepresentationUsage
//purpose :
//=======================================================================
StepAP242_ItemIdentifiedRepresentationUsage::StepAP242_ItemIdentifiedRepresentationUsage () {}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepAP242_ItemIdentifiedRepresentationUsage::Init(
const Handle(TCollection_HAsciiString)& theName,
const Handle(TCollection_HAsciiString)& theDescription,
const StepAP242_ItemIdentifiedRepresentationUsageDefinition& theDefinition,
const Handle(StepRepr_Representation)& theUsedRepresentation,
const Handle(StepRepr_HArray1OfRepresentationItem)& theIdentifiedItem)
{
// --- classe own fields ---
name = theName;
description = theDescription;
definition = theDefinition;
usedRepresentation = theUsedRepresentation;
identifiedItem = theIdentifiedItem;
}

View File

@@ -0,0 +1,133 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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.
#ifndef _StepAP242_ItemIdentifiedRepresentationUsage_HeaderFile
#define _StepAP242_ItemIdentifiedRepresentationUsage_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <MMgt_TShared.hxx>
#include <StepAP242_ItemIdentifiedRepresentationUsageDefinition.hxx>
#include <Standard_Integer.hxx>
#include <StepRepr_HArray1OfRepresentationItem.hxx>
class TCollection_HAsciiString;
class StepRepr_Representation;
class StepAP242_ItemIdentifiedRepresentationUsageDefinition;
class StepRepr_RepresentationItem;
class StepAP242_ItemIdentifiedRepresentationUsage;
DEFINE_STANDARD_HANDLE(StepAP242_ItemIdentifiedRepresentationUsage, MMgt_TShared)
class StepAP242_ItemIdentifiedRepresentationUsage : public MMgt_TShared
{
public:
//! Returns a ItemIdentifiedRepresentationUsage
Standard_EXPORT StepAP242_ItemIdentifiedRepresentationUsage();
//! Init all fields own and inherited
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& theName, const Handle(TCollection_HAsciiString)& theDescription, const StepAP242_ItemIdentifiedRepresentationUsageDefinition& theDefinition, const Handle(StepRepr_Representation)& theUsedRepresentation, const Handle(StepRepr_HArray1OfRepresentationItem)& theIdentifiedItem) ;
//! Set field Name
inline void SetName(const Handle(TCollection_HAsciiString)& theName)
{
name = theName;
}
//! Returns field Name
inline Handle(TCollection_HAsciiString) Name() const
{
return name;
}
//! Set field Description
inline void SetDescription(const Handle(TCollection_HAsciiString)& theDescription)
{
description = theDescription;
}
//! Returns field Description
inline Handle(TCollection_HAsciiString) Description() const
{
return description;
}
//! Set field Definition
inline void SetDefinition(const StepAP242_ItemIdentifiedRepresentationUsageDefinition& theDefinition)
{
definition = theDefinition;
}
//! Returns field Definition
inline StepAP242_ItemIdentifiedRepresentationUsageDefinition Definition() const
{
return definition;
}
//! Set field UsedRepresentation
inline void SetUsedRepresentation(const Handle(StepRepr_Representation)& theUsedRepresentation)
{
usedRepresentation = theUsedRepresentation;
}
//! Retuns field UsedRepresentation
inline Handle(StepRepr_Representation) UsedRepresentation() const
{
return usedRepresentation;
}
//! Returns field IdentifiedItem
inline Handle(StepRepr_HArray1OfRepresentationItem) IdentifiedItem () const
{
return identifiedItem;
}
//! Returns number of identified items
inline Standard_Integer NbIdentifiedItem () const
{
return (identifiedItem.IsNull() ? 0 : identifiedItem->Length());
}
//! Set fiels IdentifiedItem
inline void SetIdentifiedItem (const Handle(StepRepr_HArray1OfRepresentationItem)& theIdentifiedItem)
{
identifiedItem = theIdentifiedItem;
}
//! Returns identified item with given number
inline Handle(StepRepr_RepresentationItem) IdentifiedItemValue
(const Standard_Integer num) const
{
return identifiedItem->Value(num);
}
//! Set identified item with given number
inline void SetIdentifiedItemValue (const Standard_Integer num, const Handle(StepRepr_RepresentationItem)& theItem)
{
identifiedItem->SetValue (num, theItem);
}
DEFINE_STANDARD_RTTI(StepAP242_ItemIdentifiedRepresentationUsage, MMgt_TShared)
private:
Handle(TCollection_HAsciiString) name;
Handle(TCollection_HAsciiString) description;
StepAP242_ItemIdentifiedRepresentationUsageDefinition definition;
Handle(StepRepr_Representation) usedRepresentation;
Handle(StepRepr_HArray1OfRepresentationItem) identifiedItem;
};
#endif // _StepAP242_ItemIdentifiedRepresentationUsage_HeaderFile

View File

@@ -0,0 +1,123 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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 <StepAP242_ItemIdentifiedRepresentationUsageDefinition.hxx>
#include <Interface_Macros.hxx>
#include <StepAP214_AppliedApprovalAssignment.hxx>
#include <StepAP214_AppliedDateAndTimeAssignment.hxx>
#include <StepAP214_AppliedDateAssignment.hxx>
#include <StepAP214_AppliedDocumentReference.hxx>
#include <StepAP214_AppliedExternalIdentificationAssignment.hxx>
#include <StepAP214_AppliedGroupAssignment.hxx>
#include <StepAP214_AppliedOrganizationAssignment.hxx>
#include <StepAP214_AppliedPersonAndOrganizationAssignment.hxx>
#include <StepAP214_AppliedSecurityClassificationAssignment.hxx>
#include <StepBasic_GeneralProperty.hxx>
#include <StepBasic_ProductDefinitionRelationship.hxx>
#include <StepDimTol_GeometricTolerance.hxx>
#include <StepRepr_PropertyDefinition.hxx>
#include <StepRepr_PropertyDefinitionRelationship.hxx>
#include <StepRepr_ShapeAspect.hxx>
#include <StepRepr_ShapeAspectRelationship.hxx>
#include <StepShape_DimensionalSize.hxx>
//=======================================================================
//function : StepAP242_ItemIdentifiedRepresentationUsageDefinition
//purpose :
//=======================================================================
StepAP242_ItemIdentifiedRepresentationUsageDefinition::
StepAP242_ItemIdentifiedRepresentationUsageDefinition () { }
//=======================================================================
//function : CaseNum
//purpose :
//=======================================================================
Standard_Integer StepAP242_ItemIdentifiedRepresentationUsageDefinition::
CaseNum(const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedApprovalAssignment))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedDateAndTimeAssignment))) return 2;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedDateAssignment))) return 3;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedDocumentReference))) return 4;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedExternalIdentificationAssignment))) return 5;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedGroupAssignment))) return 6;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedOrganizationAssignment))) return 7;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedPersonAndOrganizationAssignment))) return 8;
if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedSecurityClassificationAssignment))) return 9;
if (ent->IsKind(STANDARD_TYPE(StepShape_DimensionalSize))) return 10;
if (ent->IsKind(STANDARD_TYPE(StepBasic_GeneralProperty))) return 11;
if (ent->IsKind(STANDARD_TYPE(StepDimTol_GeometricTolerance))) return 12;
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 13;
if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 14;
if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinitionRelationship))) return 15;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 16;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 17;
return 0;
}
Handle(StepAP214_AppliedApprovalAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedApprovalAssignment() const
{ return GetCasted(StepAP214_AppliedApprovalAssignment,Value()); }
Handle(StepAP214_AppliedDateAndTimeAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedDateAndTimeAssignment() const
{ return GetCasted(StepAP214_AppliedDateAndTimeAssignment,Value()); }
Handle(StepAP214_AppliedDateAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedDateAssignment() const
{ return GetCasted(StepAP214_AppliedDateAssignment,Value()); }
Handle(StepAP214_AppliedDocumentReference) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedDocumentReference() const
{ return GetCasted(StepAP214_AppliedDocumentReference,Value()); }
Handle(StepAP214_AppliedExternalIdentificationAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedExternalIdentificationAssignment() const
{ return GetCasted(StepAP214_AppliedExternalIdentificationAssignment,Value()); }
Handle(StepAP214_AppliedGroupAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedGroupAssignment() const
{ return GetCasted(StepAP214_AppliedGroupAssignment,Value()); }
Handle(StepAP214_AppliedOrganizationAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedOrganizationAssignment() const
{ return GetCasted(StepAP214_AppliedOrganizationAssignment,Value()); }
Handle(StepAP214_AppliedPersonAndOrganizationAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedPersonAndOrganizationAssignment() const
{ return GetCasted(StepAP214_AppliedPersonAndOrganizationAssignment,Value()); }
Handle(StepAP214_AppliedSecurityClassificationAssignment) StepAP242_ItemIdentifiedRepresentationUsageDefinition::AppliedSecurityClassificationAssignment() const
{ return GetCasted(StepAP214_AppliedSecurityClassificationAssignment,Value()); }
Handle(StepShape_DimensionalSize) StepAP242_ItemIdentifiedRepresentationUsageDefinition::DimensionalSize() const
{ return GetCasted(StepShape_DimensionalSize,Value()); }
Handle(StepBasic_GeneralProperty) StepAP242_ItemIdentifiedRepresentationUsageDefinition::GeneralProperty() const
{ return GetCasted(StepBasic_GeneralProperty,Value()); }
Handle(StepDimTol_GeometricTolerance) StepAP242_ItemIdentifiedRepresentationUsageDefinition::GeometricTolerance() const
{ return GetCasted(StepDimTol_GeometricTolerance,Value()); }
Handle(StepBasic_ProductDefinitionRelationship) StepAP242_ItemIdentifiedRepresentationUsageDefinition::ProductDefinitionRelationship() const
{ return GetCasted(StepBasic_ProductDefinitionRelationship,Value()); }
Handle(StepRepr_PropertyDefinition) StepAP242_ItemIdentifiedRepresentationUsageDefinition::PropertyDefinition() const
{ return GetCasted(StepRepr_PropertyDefinition,Value()); }
Handle(StepRepr_PropertyDefinitionRelationship) StepAP242_ItemIdentifiedRepresentationUsageDefinition::PropertyDefinitionRelationship() const
{ return GetCasted(StepRepr_PropertyDefinitionRelationship,Value()); }
Handle(StepRepr_ShapeAspect) StepAP242_ItemIdentifiedRepresentationUsageDefinition::ShapeAspect() const
{ return GetCasted(StepRepr_ShapeAspect,Value()); }
Handle(StepRepr_ShapeAspectRelationship) StepAP242_ItemIdentifiedRepresentationUsageDefinition::ShapeAspectRelationship() const
{ return GetCasted(StepRepr_ShapeAspectRelationship,Value()); }

View File

@@ -0,0 +1,126 @@
// Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 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.
#ifndef _StepAP242_ItemIdentifiedRepresentationUsageDefinition_HeaderFile
#define _StepAP242_ItemIdentifiedRepresentationUsageDefinition_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <StepData_SelectType.hxx>
#include <Standard_Integer.hxx>
class Standard_Transient;
class StepAP214_AppliedApprovalAssignment;
class StepAP214_AppliedDateAndTimeAssignment;
class StepAP214_AppliedDateAssignment;
class StepAP214_AppliedDocumentReference;
class StepAP214_AppliedExternalIdentificationAssignment;
class StepAP214_AppliedGroupAssignment;
class StepAP214_AppliedOrganizationAssignment;
class StepAP214_AppliedPersonAndOrganizationAssignment;
class StepAP214_AppliedSecurityClassificationAssignment;
class StepShape_DimensionalSize;
class StepBasic_GeneralProperty;
class StepDimTol_GeometricTolerance;
class StepBasic_ProductDefinitionRelationship;
class StepRepr_PropertyDefinition;
class StepRepr_PropertyDefinitionRelationship;
class StepRepr_ShapeAspect;
class StepRepr_ShapeAspectRelationship;
class StepAP242_ItemIdentifiedRepresentationUsageDefinition : public StepData_SelectType
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ItemIdentifiedRepresentationUsageDefinition select type
Standard_EXPORT StepAP242_ItemIdentifiedRepresentationUsageDefinition();
//! Recognizes a ItemIdentifiedRepresentationUsageDefinition Kind Entity that is :
//! 1 -> AppliedApprovalAssignment
//! 2 -> AppliedDateAndTimeAssignment
//! 3 -> AppliedDateAssignment
//! 4 -> AppliedDocumentReference
//! 5 -> AppliedExternalIdentificationAssignment
//! 6 -> AppliedGroupAssignment
//! 7 -> AppliedOrganizationAssignment
//! 8 -> AppliedPersonAndOrganizationAssignment
//! 9 -> AppliedSecurityClassificationAssignment
//! 10 -> DimensionalSize
//! 11 -> GeneralProperty
//! 12 -> GeometricTolerance
//! 13 -> ProductDefinitionRelationship
//! 14 -> PropertyDefinition
//! 15 -> PropertyDefinitionRelationship
//! 16 -> ShapeAspect
//! 17 -> ShapeAspectRelationship
//! 0 else
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
//! returns Value as a AppliedApprovalAssignment (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedApprovalAssignment) AppliedApprovalAssignment() const;
//! returns Value as a AppliedDateAndTimeAssignment (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedDateAndTimeAssignment) AppliedDateAndTimeAssignment() const;
//! returns Value as a AppliedDateAssignment (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedDateAssignment) AppliedDateAssignment() const;
//! returns Value as a AppliedDocumentReference (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedDocumentReference) AppliedDocumentReference() const;
//! returns Value as a AppliedExternalIdentificationAssignment (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedExternalIdentificationAssignment) AppliedExternalIdentificationAssignment() const;
//! returns Value as a AppliedGroupAssignment (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedGroupAssignment) AppliedGroupAssignment() const;
//! returns Value as a AppliedOrganizationAssignment (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedOrganizationAssignment) AppliedOrganizationAssignment() const;
//! returns Value as a AppliedPersonAndOrganizationAssignment (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedPersonAndOrganizationAssignment) AppliedPersonAndOrganizationAssignment() const;
//! returns Value as a AppliedSecurityClassificationAssignment (Null if another type)
Standard_EXPORT Handle(StepAP214_AppliedSecurityClassificationAssignment) AppliedSecurityClassificationAssignment() const;
//! returns Value as a DimensionalSize (Null if another type)
Standard_EXPORT Handle(StepShape_DimensionalSize) DimensionalSize() const;
//! returns Value as a GeneralProperty (Null if another type)
Standard_EXPORT Handle(StepBasic_GeneralProperty) GeneralProperty() const;
//! returns Value as a GeometricTolerance (Null if another type)
Standard_EXPORT Handle(StepDimTol_GeometricTolerance) GeometricTolerance() const;
//! returns Value as a ProductDefinitionRelationship (Null if another type)
Standard_EXPORT Handle(StepBasic_ProductDefinitionRelationship) ProductDefinitionRelationship() const;
//! returns Value as a PropertyDefinition (Null if another type)
Standard_EXPORT Handle(StepRepr_PropertyDefinition) PropertyDefinition() const;
//! returns Value as a PropertyDefinitionRelationship (Null if another type)
Standard_EXPORT Handle(StepRepr_PropertyDefinitionRelationship) PropertyDefinitionRelationship() const;
//! returns Value as a ShapeAspect (Null if another type)
Standard_EXPORT Handle(StepRepr_ShapeAspect) ShapeAspect() const;
//! returns Value as a ShapeAspectRelationship (Null if another type)
Standard_EXPORT Handle(StepRepr_ShapeAspectRelationship) ShapeAspectRelationship() const;
};
#endif // _StepAP242_ItemIdentifiedRepresentationUsageDefinition_HeaderFile