File: IFSelect_ModelModifier.gxx

package info (click to toggle)
opencascade 6.2-7
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 444,652 kB
  • ctags: 256,750
  • sloc: cpp: 1,150,123; ansic: 225,762; tcl: 30,130; makefile: 12,619; sh: 7,958; xml: 3,981; lisp: 283; java: 212; csh: 203; perl: 15
file content (28 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (5)
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
//#include <IFSelect_ModelModifier.ixx>
#include <Interface_Check.hxx>

    IFSelect_ModelModifier::IFSelect_ModelModifier (const Standard_Boolean grf)
    : IFSelect_Modifier (grf)    {  }

    void  IFSelect_ModelModifier::Perform
  (IFSelect_ContextModif& ctx,
   const Handle(Interface_InterfaceModel)& target,
   const Handle(Interface_Protocol)& protocol,
   Interface_CopyTool& TC) const
{
  ctx.TraceModifier(this);
  Handle(Model) targ = Handle(Model)::DownCast(target);
  Handle(Proto) prot = Handle(Proto)::DownCast(protocol);
  if (targ.IsNull()) {
    ctx.CCheck()->AddFail("Model to Modify : unproper type");
    return;
  }
  PerformProtocol (ctx,targ,prot,TC);
}

    void  IFSelect_ModelModifier::PerformProtocol
  (IFSelect_ContextModif& ctx,
   const Handle(Model)& target,
   const Handle(Proto)& protocol,
   Interface_CopyTool& TC) const
{  ctx.SetProtocol(protocol);  Performing (ctx,target,TC);  }