blob: 4fbd665ec2f8ca644a23762bd460e63a993401db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
//--------------------------------------------------------------------
//
// File Name : IGESAppli_Flow.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESAppli_Flow.ixx>
#include <Standard_DimensionMismatch.hxx>
IGESAppli_Flow::IGESAppli_Flow () { }
void IGESAppli_Flow::Init
(const Standard_Integer nbContextFlags,
const Standard_Integer aFlowType, const Standard_Integer aFuncFlag,
const Handle(IGESData_HArray1OfIGESEntity)& allFlowAssocs,
const Handle(IGESDraw_HArray1OfConnectPoint)& allConnectPoints,
const Handle(IGESData_HArray1OfIGESEntity)& allJoins,
const Handle(Interface_HArray1OfHAsciiString)& allFlowNames,
const Handle(IGESGraph_HArray1OfTextDisplayTemplate)& allTextDisps,
const Handle(IGESData_HArray1OfIGESEntity)& allContFlowAssocs)
{
theNbContextFlags = nbContextFlags;
theTypeOfFlow = aFlowType;
theFunctionFlag = aFuncFlag;
theFlowAssociativities = allFlowAssocs;
theConnectPoints = allConnectPoints;
theJoins = allJoins;
theFlowNames = allFlowNames;
theTextDisplayTemplates = allTextDisps;
theContFlowAssociativities = allContFlowAssocs;
InitTypeAndForm(402,18);
}
Standard_Boolean IGESAppli_Flow::OwnCorrect ()
{
if (theNbContextFlags == 2) return Standard_False;
theNbContextFlags = 2;
return Standard_True;
}
Standard_Integer IGESAppli_Flow::NbContextFlags () const
{
return theNbContextFlags;
}
Standard_Integer IGESAppli_Flow::NbFlowAssociativities () const
{
return (theFlowAssociativities.IsNull() ? 0 : theFlowAssociativities->Length());
}
Standard_Integer IGESAppli_Flow::NbConnectPoints () const
{
return (theConnectPoints.IsNull() ? 0 : theConnectPoints->Length());
}
Standard_Integer IGESAppli_Flow::NbJoins () const
{
return (theJoins.IsNull() ? 0 : theJoins->Length());
}
Standard_Integer IGESAppli_Flow::NbFlowNames () const
{
return (theFlowNames.IsNull() ? 0 : theFlowNames->Length());
}
Standard_Integer IGESAppli_Flow::NbTextDisplayTemplates () const
{
return (theTextDisplayTemplates.IsNull() ? 0 : theTextDisplayTemplates->Length());
}
Standard_Integer IGESAppli_Flow::NbContFlowAssociativities () const
{
return (theContFlowAssociativities.IsNull() ? 0 : theContFlowAssociativities->Length());
}
Standard_Integer IGESAppli_Flow::TypeOfFlow () const
{
return theTypeOfFlow;
}
Standard_Integer IGESAppli_Flow::FunctionFlag () const
{
return theFunctionFlag;
}
Handle(IGESData_IGESEntity) IGESAppli_Flow::FlowAssociativity
(const Standard_Integer Index) const
{
return theFlowAssociativities->Value(Index);
}
Handle(IGESDraw_ConnectPoint) IGESAppli_Flow::ConnectPoint
(const Standard_Integer Index) const
{
return theConnectPoints->Value(Index);
}
Handle(IGESData_IGESEntity) IGESAppli_Flow::Join
(const Standard_Integer Index) const
{
return theJoins->Value(Index);
}
Handle(TCollection_HAsciiString) IGESAppli_Flow::FlowName
(const Standard_Integer Index) const
{
return theFlowNames->Value(Index);
}
Handle(IGESGraph_TextDisplayTemplate) IGESAppli_Flow::TextDisplayTemplate
(const Standard_Integer Index) const
{
return theTextDisplayTemplates->Value(Index);
}
Handle(IGESData_IGESEntity) IGESAppli_Flow::ContFlowAssociativity
(const Standard_Integer Index) const
{
return theContFlowAssociativities->Value(Index);
}
|