0029902: Data Exchange, XCAF - provide extended Material definition for visualization...
[occt.git] / src / BinMXCAFDoc / BinMXCAFDoc_DimensionDriver.cxx
CommitLineData
5df609e7 1// Created on:
2// Created by:
3// Copyright (c) 2015 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16
17#include <BinMXCAFDoc_DimensionDriver.hxx>
18#include <BinObjMgt_Persistent.hxx>
83ae3591 19#include <Message_Messenger.hxx>
5df609e7 20#include <Standard_Type.hxx>
21#include <TCollection_HAsciiString.hxx>
22#include <TColStd_Array1OfReal.hxx>
23#include <TColStd_HArray1OfReal.hxx>
24#include <TDF_Attribute.hxx>
25#include <XCAFDoc_Dimension.hxx>
26
27IMPLEMENT_STANDARD_RTTIEXT(BinMXCAFDoc_DimensionDriver,BinMDF_ADriver)
28
29//=======================================================================
30//function : Constructor
31//purpose :
32//=======================================================================
83ae3591 33BinMXCAFDoc_DimensionDriver::BinMXCAFDoc_DimensionDriver (const Handle(Message_Messenger)& theMsgDriver)
5df609e7 34: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Dimension)->Name())
35{
36}
37
38//=======================================================================
39//function : NewEmpty
40//purpose :
41//=======================================================================
42Handle(TDF_Attribute) BinMXCAFDoc_DimensionDriver::NewEmpty() const
43{
44 return new XCAFDoc_Dimension();
45}
46
47//=======================================================================
48//function : Paste
49//purpose :
50//=======================================================================
51Standard_Boolean BinMXCAFDoc_DimensionDriver::Paste (const BinObjMgt_Persistent& /*theSource*/,
52 const Handle(TDF_Attribute)& /*theTarget*/,
53 BinObjMgt_RRelocationTable& /*theRelocTable*/) const
54{
55 //Handle(XCAFDoc_Dimension) anAtt = Handle(XCAFDoc_Dimension)::DownCast(theTarget);
56 return Standard_True;
57}
58
59//=======================================================================
60//function : Paste
61//purpose :
62//=======================================================================
63void BinMXCAFDoc_DimensionDriver::Paste (const Handle(TDF_Attribute)& /*theSource*/,
64 BinObjMgt_Persistent& /*theTarget*/,
65 BinObjMgt_SRelocationTable& /*theRelocTable*/) const
66{
67 //Handle(XCAFDoc_Dimension) anAtt = Handle(XCAFDoc_Dimension)::DownCast(theSource);
68}