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
|
//--------------------------------------------------------------------
//
// File Name : IGESSolid_SelectedComponent.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESSolid_ToolSelectedComponent.ixx>
#include <IGESData_ParamCursor.hxx>
#include <IGESSolid_BooleanTree.hxx>
#include <gp_XYZ.hxx>
#include <gp_Pnt.hxx>
#include <IGESData_Dump.hxx>
#include <Interface_Macros.hxx>
IGESSolid_ToolSelectedComponent::IGESSolid_ToolSelectedComponent () { }
void IGESSolid_ToolSelectedComponent::ReadOwnParams
(const Handle(IGESSolid_SelectedComponent)& ent,
const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const
{
Handle(IGESSolid_BooleanTree) tempEntity;
gp_XYZ tempSelectPoint;
//Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
PR.ReadEntity(IR, PR.Current(), "Boolean Tree Entity",
STANDARD_TYPE(IGESSolid_BooleanTree), tempEntity); //szv#4:S4163:12Mar99 `st=` not needed
PR.ReadXYZ(PR.CurrentList(1, 3), "Select Point", tempSelectPoint); //szv#4:S4163:12Mar99 `st=` not needed
DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
ent->Init(tempEntity, tempSelectPoint);
}
void IGESSolid_ToolSelectedComponent::WriteOwnParams
(const Handle(IGESSolid_SelectedComponent)& ent, IGESData_IGESWriter& IW) const
{
IW.Send(ent->Component());
IW.Send(ent->SelectPoint().X());
IW.Send(ent->SelectPoint().Y());
IW.Send(ent->SelectPoint().Z());
}
void IGESSolid_ToolSelectedComponent::OwnShared
(const Handle(IGESSolid_SelectedComponent)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->Component());
}
void IGESSolid_ToolSelectedComponent::OwnCopy
(const Handle(IGESSolid_SelectedComponent)& another,
const Handle(IGESSolid_SelectedComponent)& ent, Interface_CopyTool& TC) const
{
DeclareAndCast(IGESSolid_BooleanTree, tempEntity,
TC.Transferred(another->Component()));
gp_XYZ tempSelectPoint = another->SelectPoint().XYZ();
ent->Init (tempEntity, tempSelectPoint);
}
IGESData_DirChecker IGESSolid_ToolSelectedComponent::DirChecker
(const Handle(IGESSolid_SelectedComponent)& /* ent */ ) const
{
IGESData_DirChecker DC(182, 0);
DC.Structure (IGESData_DefVoid);
DC.LineFont (IGESData_DefVoid);
DC.LineWeight (IGESData_DefVoid);
DC.Color (IGESData_DefAny);
DC.BlankStatusIgnored ();
DC.UseFlagRequired (3);
DC.HierarchyStatusIgnored ();
return DC;
}
void IGESSolid_ToolSelectedComponent::OwnCheck
(const Handle(IGESSolid_SelectedComponent)& /* ent */,
const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
{
}
void IGESSolid_ToolSelectedComponent::OwnDump
(const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
S << "IGESSolid_SelectedComponent" << endl;
// the heading for boolean tree is in BooleanTree OwnDump
S << "Boolean Tree Entity : " << endl;
dumper.Dump(ent->Component(),S, (level <= 4) ? 0 : 1);
S << "Seleted Point : ";
IGESData_DumpXYZL(S,level, ent->SelectPoint(), ent->Location());
S << endl;
}
|