#include <XCAFDoc_ViewTool.hxx>
#include <XCAFDoc_VisMaterialTool.hxx>
-IMPLEMENT_STANDARD_RTTIEXT(XCAFDoc_DocumentTool,TDF_Attribute)
+IMPLEMENT_DERIVED_ATTRIBUTE_WITH_TYPE(XCAFDoc_DocumentTool,TDataStd_GenericEmpty,"xcaf","DocumentTool")
//=======================================================================
//function : GetID
return GetID();
}
-
-//=======================================================================
-//function : Restore
-//purpose :
-//=======================================================================
-
-void XCAFDoc_DocumentTool::Restore(const Handle(TDF_Attribute)& /* with */)
-{
-}
-
-
-//=======================================================================
-//function : NewEmpty
-//purpose :
-//=======================================================================
-
-Handle(TDF_Attribute) XCAFDoc_DocumentTool::NewEmpty() const
-{
- return new XCAFDoc_DocumentTool;
-}
-
-
//=======================================================================
-//function : Paste
+//function : AfterRetrieval
//purpose :
//=======================================================================
-void XCAFDoc_DocumentTool::Paste (const Handle(TDF_Attribute)& /* into */,
- const Handle(TDF_RelocationTable)& /* RT */) const
+Standard_Boolean XCAFDoc_DocumentTool::AfterRetrieval (const Standard_Boolean /* forceIt */)
{
+ Init();
+ return Standard_True;
}
Handle(TDataStd_TreeNode) aRootNode;
return RootL.FindAttribute (aRefGuid, aRootNode);
}
-
-//=======================================================================
-//function : DumpJson
-//purpose :
-//=======================================================================
-void XCAFDoc_DocumentTool::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
-{
- OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
-
- OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
-}