0022922: Clean up warnings on uninitialized / unused variables
[occt.git] / src / IFSelect / IFSelect_ModifReorder.cxx
CommitLineData
7fd59977 1#include <IFSelect_ModifReorder.ixx>
2#include <Interface_ShareTool.hxx>
3#include <Interface_EntityIterator.hxx>
4
5 IFSelect_ModifReorder::IFSelect_ModifReorder (const Standard_Boolean rootlast)
6 : IFSelect_Modifier (Standard_True) { thertl = rootlast; }
7
8 void IFSelect_ModifReorder::Perform
9 (IFSelect_ContextModif& ctx, const Handle(Interface_InterfaceModel)& target,
10 const Handle(Interface_Protocol)& protocol, Interface_CopyTool& TC) const
11{
12 Interface_ShareTool sht (ctx.OriginalGraph());
13 Interface_EntityIterator list = sht.All (ctx.OriginalModel(),thertl);
14 target->ClearEntities();
15 for (list.Start(); list.More(); list.Next()) target->AddEntity (list.Value());
16}
17
18TCollection_AsciiString IFSelect_ModifReorder::Label () const
19{
20 Standard_CString astr = (Standard_CString ) ( thertl ? "Reorder, Roots last" : "Reorder, Roots first");
21 return TCollection_AsciiString( astr ) ;
22// ( thertl ? "Reorder, Roots last" : "Reorder, Roots first");
23}