0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- manual
[occt.git] / src / IGESDraw / IGESDraw_ConnectPoint.cxx
CommitLineData
b311480e 1// Created by: CKY / Contract Toubro-Larsen
2// Copyright (c) 1993-1999 Matra Datavision
973c2be1 3// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
7fd59977 6//
d5f74e42 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
973c2be1 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.
7fd59977 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
16//--------------------------------------------------------------------
7fd59977 17//--------------------------------------------------------------------
18
7fd59977 19#include <gp_GTrsf.hxx>
42cf5bc1 20#include <gp_Pnt.hxx>
21#include <gp_XYZ.hxx>
22#include <IGESData_IGESEntity.hxx>
23#include <IGESDraw_ConnectPoint.hxx>
24#include <IGESGraph_TextDisplayTemplate.hxx>
25#include <Standard_Type.hxx>
26#include <TCollection_HAsciiString.hxx>
7fd59977 27
b311480e 28IGESDraw_ConnectPoint::IGESDraw_ConnectPoint () { }
7fd59977 29
30
31 void IGESDraw_ConnectPoint::Init
32 (const gp_XYZ& aPoint,
33 const Handle(IGESData_IGESEntity)& aDisplaySymbol,
34 const Standard_Integer aTypeFlag,
35 const Standard_Integer aFunctionFlag,
36 const Handle(TCollection_HAsciiString)& aFunctionIdentifier,
37 const Handle(IGESGraph_TextDisplayTemplate)& anIdentifierTemplate,
38 const Handle(TCollection_HAsciiString)& aFunctionName,
39 const Handle(IGESGraph_TextDisplayTemplate)& aFunctionTemplate,
40 const Standard_Integer aPointIdentifier,
41 const Standard_Integer aFunctionCode,
42 const Standard_Integer aSwapFlag,
43 const Handle(IGESData_IGESEntity)& anOwnerSubfigure)
44{
45 thePoint = aPoint;
46 theDisplaySymbol = aDisplaySymbol;
47 theTypeFlag = aTypeFlag;
48 theFunctionFlag = aFunctionFlag;
49 theFunctionIdentifier = aFunctionIdentifier;
50 theIdentifierTemplate = anIdentifierTemplate;
51 theFunctionName = aFunctionName;
52 theFunctionTemplate = aFunctionTemplate;
53 thePointIdentifier = aPointIdentifier;
54 theFunctionCode = aFunctionCode;
55 theSwapFlag = aSwapFlag;
56 theOwnerSubfigure = anOwnerSubfigure;
57 InitTypeAndForm(132,0);
58}
59
60 gp_Pnt IGESDraw_ConnectPoint::Point () const
61{
62 gp_Pnt tempPoint(thePoint);
63 return tempPoint;
64}
65
66 gp_Pnt IGESDraw_ConnectPoint::TransformedPoint () const
67{
68 gp_XYZ tempPoint = thePoint;
69 if (HasTransf()) Location().Transforms(tempPoint);
70 gp_Pnt tempRes(tempPoint);
71
72 return (tempRes);
73}
74
75 Standard_Boolean IGESDraw_ConnectPoint::HasDisplaySymbol () const
76{
77 return (! theDisplaySymbol.IsNull());
78}
79
80 Handle(IGESData_IGESEntity) IGESDraw_ConnectPoint::DisplaySymbol () const
81{
82 return theDisplaySymbol;
83}
84
85 Standard_Integer IGESDraw_ConnectPoint::TypeFlag () const
86{
87 return theTypeFlag;
88}
89
90 Standard_Integer IGESDraw_ConnectPoint::FunctionFlag () const
91{
92 return theFunctionFlag;
93}
94
95 Handle(TCollection_HAsciiString) IGESDraw_ConnectPoint::FunctionIdentifier
96 () const
97{
98 return theFunctionIdentifier;
99}
100
101 Standard_Boolean IGESDraw_ConnectPoint::HasIdentifierTemplate () const
102{
103 return (! theIdentifierTemplate.IsNull());
104}
105
106 Handle(IGESGraph_TextDisplayTemplate)
107 IGESDraw_ConnectPoint::IdentifierTemplate () const
108{
109 return theIdentifierTemplate;
110}
111
112 Handle(TCollection_HAsciiString) IGESDraw_ConnectPoint::FunctionName () const
113{
114 return theFunctionName;
115}
116
117 Standard_Boolean IGESDraw_ConnectPoint::HasFunctionTemplate () const
118{
119 return (! theFunctionTemplate.IsNull());
120}
121
122 Handle(IGESGraph_TextDisplayTemplate)
123 IGESDraw_ConnectPoint::FunctionTemplate () const
124{
125 return theFunctionTemplate;
126}
127
128 Standard_Integer IGESDraw_ConnectPoint::PointIdentifier () const
129{
130 return thePointIdentifier;
131}
132
133 Standard_Integer IGESDraw_ConnectPoint::FunctionCode () const
134{
135 return theFunctionCode;
136}
137
138 Standard_Boolean IGESDraw_ConnectPoint::SwapFlag () const
139{
140 return theSwapFlag;
141}
142
143 Standard_Boolean IGESDraw_ConnectPoint::HasOwnerSubfigure () const
144{
145 return (! theOwnerSubfigure.IsNull());
146}
147
148 Handle(IGESData_IGESEntity) IGESDraw_ConnectPoint::OwnerSubfigure () const
149{
150 return theOwnerSubfigure;
151}