0027807: Units are lost during import presentation of GDT.
[occt.git] / src / StepRepr / StepRepr_CharacterizedDefinition.hxx
CommitLineData
42cf5bc1 1// Created on: 2000-05-11
2// Created by: data exchange team
3// Copyright (c) 2000-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _StepRepr_CharacterizedDefinition_HeaderFile
17#define _StepRepr_CharacterizedDefinition_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_DefineAlloc.hxx>
21#include <Standard_Handle.hxx>
22
23#include <StepData_SelectType.hxx>
24#include <Standard_Integer.hxx>
25class Standard_Transient;
26class StepBasic_CharacterizedObject;
27class StepBasic_ProductDefinition;
28class StepBasic_ProductDefinitionRelationship;
29class StepRepr_ProductDefinitionShape;
30class StepRepr_ShapeAspect;
31class StepRepr_ShapeAspectRelationship;
32class StepBasic_DocumentFile;
33
34
35//! Representation of STEP SELECT type CharacterizedDefinition
36class StepRepr_CharacterizedDefinition : public StepData_SelectType
37{
38public:
39
40 DEFINE_STANDARD_ALLOC
41
42
43 //! Empty constructor
44 Standard_EXPORT StepRepr_CharacterizedDefinition();
45
46 //! Recognizes a kind of CharacterizedDefinition select type
47 //! 1 -> CharacterizedObject from StepBasic
48 //! 2 -> ProductDefinition from StepBasic
49 //! 3 -> ProductDefinitionRelationship from StepBasic
50 //! 4 -> ProductDefinitionShape from StepRepr
51 //! 5 -> ShapeAspect from StepRepr
52 //! 6 -> ShapeAspectRelationship from StepRepr
53 //! 7 -> DocumentFile from StepBasic
54 //! 0 else
55 Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
56
57 //! Returns Value as CharacterizedObject (or Null if another type)
58 Standard_EXPORT Handle(StepBasic_CharacterizedObject) CharacterizedObject() const;
59
60 //! Returns Value as ProductDefinition (or Null if another type)
61 Standard_EXPORT Handle(StepBasic_ProductDefinition) ProductDefinition() const;
62
63 //! Returns Value as ProductDefinitionRelationship (or Null if another type)
64 Standard_EXPORT Handle(StepBasic_ProductDefinitionRelationship) ProductDefinitionRelationship() const;
65
66 //! Returns Value as ProductDefinitionShape (or Null if another type)
67 Standard_EXPORT Handle(StepRepr_ProductDefinitionShape) ProductDefinitionShape() const;
68
69 //! Returns Value as ShapeAspect (or Null if another type)
70 Standard_EXPORT Handle(StepRepr_ShapeAspect) ShapeAspect() const;
71
72 //! Returns Value as ShapeAspectRelationship (or Null if another type)
73 Standard_EXPORT Handle(StepRepr_ShapeAspectRelationship) ShapeAspectRelationship() const;
74
75 //! Returns Value as DocumentFile (or Null if another type)
76 Standard_EXPORT Handle(StepBasic_DocumentFile) DocumentFile() const;
77
78
79
80
81protected:
82
83
84
85
86
87private:
88
89
90
91
92
93};
94
95
96
97
98
99
100
101#endif // _StepRepr_CharacterizedDefinition_HeaderFile