summaryrefslogtreecommitdiff
path: root/src/IGESDraw/IGESDraw_ConnectPoint.cxx
blob: bb2f9904ff2e33c3a165e9d55bd406cfd60e8cb3 (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
127
128
129
130
131
132
133
134
135
136
137
//--------------------------------------------------------------------
//
//  File Name : IGESDraw_ConnectPoint.cxx
//  Date      :
//  Author    : CKY / Contract Toubro-Larsen
//  Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------

#include <IGESDraw_ConnectPoint.ixx>
#include <gp_GTrsf.hxx>


    IGESDraw_ConnectPoint::IGESDraw_ConnectPoint ()    {  }


    void IGESDraw_ConnectPoint::Init
  (const gp_XYZ&                                aPoint,
   const Handle(IGESData_IGESEntity)&           aDisplaySymbol,
   const Standard_Integer                       aTypeFlag,
   const Standard_Integer                       aFunctionFlag,
   const Handle(TCollection_HAsciiString)&      aFunctionIdentifier,
   const Handle(IGESGraph_TextDisplayTemplate)& anIdentifierTemplate,
   const Handle(TCollection_HAsciiString)&      aFunctionName,
   const Handle(IGESGraph_TextDisplayTemplate)& aFunctionTemplate,
   const Standard_Integer                       aPointIdentifier,
   const Standard_Integer                       aFunctionCode,
   const Standard_Integer                       aSwapFlag,
   const Handle(IGESData_IGESEntity)&           anOwnerSubfigure)
{
  thePoint              = aPoint;
  theDisplaySymbol      = aDisplaySymbol;
  theTypeFlag           = aTypeFlag;
  theFunctionFlag       = aFunctionFlag;
  theFunctionIdentifier = aFunctionIdentifier;
  theIdentifierTemplate = anIdentifierTemplate;
  theFunctionName       = aFunctionName;
  theFunctionTemplate   = aFunctionTemplate;
  thePointIdentifier    = aPointIdentifier;
  theFunctionCode       = aFunctionCode;
  theSwapFlag           = aSwapFlag;
  theOwnerSubfigure     = anOwnerSubfigure;
  InitTypeAndForm(132,0);
}

    gp_Pnt IGESDraw_ConnectPoint::Point () const
{
  gp_Pnt tempPoint(thePoint);
  return tempPoint;
}

    gp_Pnt IGESDraw_ConnectPoint::TransformedPoint () const
{
  gp_XYZ tempPoint = thePoint;
  if (HasTransf()) Location().Transforms(tempPoint);
  gp_Pnt tempRes(tempPoint);

  return (tempRes);
}

    Standard_Boolean IGESDraw_ConnectPoint::HasDisplaySymbol () const
{
  return (! theDisplaySymbol.IsNull());
}

    Handle(IGESData_IGESEntity) IGESDraw_ConnectPoint::DisplaySymbol () const
{
  return theDisplaySymbol;
}

    Standard_Integer IGESDraw_ConnectPoint::TypeFlag () const
{
  return theTypeFlag;
}

    Standard_Integer IGESDraw_ConnectPoint::FunctionFlag () const
{
  return theFunctionFlag;
}

    Handle(TCollection_HAsciiString) IGESDraw_ConnectPoint::FunctionIdentifier
  () const
{
  return theFunctionIdentifier;
}

    Standard_Boolean IGESDraw_ConnectPoint::HasIdentifierTemplate () const
{
  return (! theIdentifierTemplate.IsNull());
}

    Handle(IGESGraph_TextDisplayTemplate)
    IGESDraw_ConnectPoint::IdentifierTemplate () const
{
  return theIdentifierTemplate;
}

    Handle(TCollection_HAsciiString) IGESDraw_ConnectPoint::FunctionName () const
{
  return theFunctionName;
}

    Standard_Boolean IGESDraw_ConnectPoint::HasFunctionTemplate () const
{
  return (! theFunctionTemplate.IsNull());
}

    Handle(IGESGraph_TextDisplayTemplate)
    IGESDraw_ConnectPoint::FunctionTemplate () const
{
  return theFunctionTemplate;
}

    Standard_Integer IGESDraw_ConnectPoint::PointIdentifier () const
{
  return thePointIdentifier;
}

    Standard_Integer IGESDraw_ConnectPoint::FunctionCode () const
{
  return theFunctionCode;
}

    Standard_Boolean IGESDraw_ConnectPoint::SwapFlag () const
{
  return theSwapFlag;
}

    Standard_Boolean IGESDraw_ConnectPoint::HasOwnerSubfigure () const
{
  return (! theOwnerSubfigure.IsNull());
}

    Handle(IGESData_IGESEntity)  IGESDraw_ConnectPoint::OwnerSubfigure () const
{
  return theOwnerSubfigure;
}