blob: ddc83b3ac92ae1fc43534e82de6d3c216eeb22e4 (
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
|
//--------------------------------------------------------------------
//
// File Name : IGESSolid_SelectedComponent.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESSolid_SelectedComponent.ixx>
#include <gp_GTrsf.hxx>
IGESSolid_SelectedComponent::IGESSolid_SelectedComponent () { }
void IGESSolid_SelectedComponent::Init
(const Handle(IGESSolid_BooleanTree)& anEntity, const gp_XYZ& SelectPnt)
{
theEntity = anEntity;
theSelectPoint = SelectPnt;
InitTypeAndForm(182,0);
}
Handle(IGESSolid_BooleanTree) IGESSolid_SelectedComponent::Component () const
{
return theEntity;
}
gp_Pnt IGESSolid_SelectedComponent::SelectPoint () const
{
return gp_Pnt(theSelectPoint);
}
gp_Pnt IGESSolid_SelectedComponent::TransformedSelectPoint () const
{
if (!HasTransf()) return gp_Pnt(theSelectPoint);
else
{
gp_XYZ tmp = theSelectPoint;
Location().Transforms(tmp);
return gp_Pnt(tmp);
}
}
|