// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
+#include <XCAFDoc_DocumentTool.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <XCAFDoc_ColorTool.hxx>
#include <XCAFDoc_ClippingPlaneTool.hxx>
#include <XCAFDoc_DimTolTool.hxx>
-#include <XCAFDoc_DocumentTool.hxx>
#include <XCAFDoc_LayerTool.hxx>
#include <XCAFDoc_MaterialTool.hxx>
#include <XCAFDoc_NotesTool.hxx>
#include <XCAFDoc_ShapeTool.hxx>
#include <XCAFDoc_ViewTool.hxx>
+#include <XCAFDoc_VisMaterialTool.hxx>
IMPLEMENT_STANDARD_RTTIEXT(XCAFDoc_DocumentTool,TDF_Attribute)
return L;
}
+//=======================================================================
+//function : VisMaterialLabel
+//purpose :
+//=======================================================================
+TDF_Label XCAFDoc_DocumentTool::VisMaterialLabel (const TDF_Label& theLabel)
+{
+ TDF_Label aLabel = DocLabel (theLabel).FindChild (10, Standard_True);
+ TDataStd_Name::Set (aLabel, "VisMaterials");
+ return aLabel;
+}
+
//=======================================================================
//function : ShapeTool
//purpose :
return XCAFDoc_ColorTool::Set(ColorsLabel(acces));
}
+//=======================================================================
+//function : VisMaterialTool
+//purpose :
+//=======================================================================
+Handle(XCAFDoc_VisMaterialTool) XCAFDoc_DocumentTool::VisMaterialTool (const TDF_Label& theLabel)
+{
+ return XCAFDoc_VisMaterialTool::Set (VisMaterialLabel (theLabel));
+}
//=======================================================================
//function : LayerTool