3 #include "GEOMImpl_Template.hxx"
4 #include "GEOM_Function.hxx"
5 #include <TopoDS_Shape.hxx>
7 //=======================================================================
10 //=======================================================================
11 const Standard_GUID& GEOMImpl_Template::GetID()
13 static Standard_GUID aTemplate("Insert the correct GUID here");
18 //=======================================================================
19 //function : GEOMImpl_Template
21 //=======================================================================
23 GEOMImpl_Template::GEOMImpl_Template()
27 //=======================================================================
30 //=======================================================================
31 Standard_Integer GEOMImpl_Template::Execute(TFunction_Logbook& log) const
33 if (Label().IsNull()) return 0;
34 Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction(Label());
35 if(aFunction.IsNull()) return 0;
37 //Add implemetation here
39 log.SetTouched(Label());
44 //=======================================================================
45 //function : GEOMImpl_Template_Type_
47 //=======================================================================
48 Standard_EXPORT Handle_Standard_Type& GEOMImpl_Template_Type_()
51 static Handle_Standard_Type aType1 = STANDARD_TYPE(TFunction_Driver);
52 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TFunction_Driver);
53 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
54 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
55 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
56 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
59 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
60 static Handle_Standard_Type _aType = new Standard_Type("GEOMImpl_Template",
61 sizeof(GEOMImpl_Template),
63 (Standard_Address)_Ancestors,
64 (Standard_Address)NULL);
69 //=======================================================================
72 //=======================================================================
74 const Handle(GEOMImpl_Template) Handle(GEOMImpl_Template)::DownCast(const Handle(Standard_Transient)& AnObject)
76 Handle(GEOMImpl_Template) _anOtherObject;
78 if (!AnObject.IsNull()) {
79 if (AnObject->IsKind(STANDARD_TYPE(GEOMImpl_Template))) {
80 _anOtherObject = Handle(GEOMImpl_Template)((Handle(GEOMImpl_Template)&)AnObject);
84 return _anOtherObject ;