X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FMXCAFDoc%2FMXCAFDoc_MaterialRetrievalDriver.cxx;h=7867682cc82858f23d5fa0a8ed1e40b3c19542b4;hb=fff263bd14b304ea80804d5e589abe2a5780015d;hpb=56a9db93fe242d08726b982838db2bcf08bc66e3 diff --git a/src/MXCAFDoc/MXCAFDoc_MaterialRetrievalDriver.cxx b/src/MXCAFDoc/MXCAFDoc_MaterialRetrievalDriver.cxx deleted file mode 100644 index 7867682cc8..0000000000 --- a/src/MXCAFDoc/MXCAFDoc_MaterialRetrievalDriver.cxx +++ /dev/null @@ -1,85 +0,0 @@ -// Created on: 2008-12-10 -// Created by: Pavel TELKOV -// Copyright (c) 2008-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - -#include -#include -#include - -#include -#include - - -//======================================================================= -//function : MCAFDoc_MaterialRetrievalDriver -//purpose : -//======================================================================= - -MXCAFDoc_MaterialRetrievalDriver::MXCAFDoc_MaterialRetrievalDriver - (const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver) -{} - -//======================================================================= -//function : VersionNumber -//purpose : -//======================================================================= - -Standard_Integer MXCAFDoc_MaterialRetrievalDriver::VersionNumber() const -{ return 0; } - -//======================================================================= -//function : SourceType -//purpose : -//======================================================================= - -Handle(Standard_Type) MXCAFDoc_MaterialRetrievalDriver::SourceType() const -{ - static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_Material); - return sourceType; -} - -//======================================================================= -//function : NewEmpty -//purpose : -//======================================================================= - -Handle(TDF_Attribute) MXCAFDoc_MaterialRetrievalDriver::NewEmpty() const -{ - return new XCAFDoc_Material(); -} - -//======================================================================= -//function : Paste -//purpose : -//======================================================================= - -void MXCAFDoc_MaterialRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source, - const Handle(TDF_Attribute)& Target, - const Handle(MDF_RRelocationTable)& /*RelocTable*/) const -{ - Handle(PXCAFDoc_Material) S = Handle(PXCAFDoc_Material)::DownCast (Source); - Handle(XCAFDoc_Material) T = Handle(XCAFDoc_Material)::DownCast (Target); - - Handle(TCollection_HAsciiString) aName, aDescr, aDensName, aDensValType; - if ( !S->GetName().IsNull() ) - aName = new TCollection_HAsciiString( (S->GetName())->Convert() ); - if ( !S->GetDescription().IsNull() ) - aDescr = new TCollection_HAsciiString( (S->GetDescription())->Convert() ); - if ( !S->GetDensName().IsNull() ) - aDensName = new TCollection_HAsciiString( (S->GetDensName())->Convert() ); - if ( !S->GetDensValType().IsNull() ) - aDensValType = new TCollection_HAsciiString( (S->GetDensValType())->Convert() ); - - T->Set(aName, aDescr, S->GetDensity(), aDensName, aDensValType); -}