0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / BinMXCAFDoc / BinMXCAFDoc_VisMaterialToolDriver.cxx
CommitLineData
a4815d55 1// Copyright (c) 2019 OPEN CASCADE SAS
2//
3// This file is part of Open CASCADE Technology software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
13
14#include <BinMXCAFDoc_VisMaterialToolDriver.hxx>
15
16#include <XCAFDoc_VisMaterialTool.hxx>
17
18IMPLEMENT_STANDARD_RTTIEXT(BinMXCAFDoc_VisMaterialToolDriver, BinMDF_ADriver)
19
20//=======================================================================
21//function : BinMXCAFDoc_VisMaterialToolDriver
22//purpose :
23//=======================================================================
24BinMXCAFDoc_VisMaterialToolDriver::BinMXCAFDoc_VisMaterialToolDriver (const Handle(Message_Messenger)& theMsgDriver)
25: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(XCAFDoc_VisMaterialTool)->Name())
26{
27 //
28}
29
30//=======================================================================
31//function : NewEmpty
32//purpose :
33//=======================================================================
34Handle(TDF_Attribute) BinMXCAFDoc_VisMaterialToolDriver::NewEmpty() const
35{
36 return new XCAFDoc_VisMaterialTool();
37}
38
39//=======================================================================
40//function : Paste
41//purpose :
42//=======================================================================
43Standard_Boolean BinMXCAFDoc_VisMaterialToolDriver::Paste (const BinObjMgt_Persistent& ,
44 const Handle(TDF_Attribute)& ,
45 BinObjMgt_RRelocationTable& ) const
46{
47 return Standard_True;
48}
49
50//=======================================================================
51//function : Paste
52//purpose :
53//=======================================================================
54void BinMXCAFDoc_VisMaterialToolDriver::Paste (const Handle(TDF_Attribute)& ,
55 BinObjMgt_Persistent& ,
56 BinObjMgt_SRelocationTable& ) const
57{
58 //
59}