0022627: Change OCCT memory management defaults
[occt.git] / src / IFSelect / IFSelect_ModelModifier.gxx
CommitLineData
7fd59977 1//#include <IFSelect_ModelModifier.ixx>
2#include <Interface_Check.hxx>
3
4 IFSelect_ModelModifier::IFSelect_ModelModifier (const Standard_Boolean grf)
5 : IFSelect_Modifier (grf) { }
6
7 void IFSelect_ModelModifier::Perform
8 (IFSelect_ContextModif& ctx,
9 const Handle(Interface_InterfaceModel)& target,
10 const Handle(Interface_Protocol)& protocol,
11 Interface_CopyTool& TC) const
12{
13 ctx.TraceModifier(this);
14 Handle(Model) targ = Handle(Model)::DownCast(target);
15 Handle(Proto) prot = Handle(Proto)::DownCast(protocol);
16 if (targ.IsNull()) {
17 ctx.CCheck()->AddFail("Model to Modify : unproper type");
18 return;
19 }
20 PerformProtocol (ctx,targ,prot,TC);
21}
22
23 void IFSelect_ModelModifier::PerformProtocol
24 (IFSelect_ContextModif& ctx,
25 const Handle(Model)& target,
26 const Handle(Proto)& protocol,
27 Interface_CopyTool& TC) const
28{ ctx.SetProtocol(protocol); Performing (ctx,target,TC); }