X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FMPrsStd%2FMPrsStd_AISPresentationRetrievalDriver.cxx;h=00312ad8868d7e21261e81c9e25cacad1f0b7019;hb=fff263bd14b304ea80804d5e589abe2a5780015d;hpb=56a9db93fe242d08726b982838db2bcf08bc66e3 diff --git a/src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver.cxx b/src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver.cxx deleted file mode 100644 index 00312ad886..0000000000 --- a/src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver.cxx +++ /dev/null @@ -1,76 +0,0 @@ -// Created on: 1999-07-08 -// Created by: Sergey RUIN -// Copyright (c) 1999-1999 Matra Datavision -// Copyright (c) 1999-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 -#include -#include -#include - -//======================================================================= -//function : MPrsStd_AISPresentationRetrievalDriver -//purpose : -//======================================================================= - -MPrsStd_AISPresentationRetrievalDriver::MPrsStd_AISPresentationRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver) -{} - -Standard_Integer MPrsStd_AISPresentationRetrievalDriver::VersionNumber() const -{ return 0; } - -Handle(Standard_Type) MPrsStd_AISPresentationRetrievalDriver::SourceType() const -{ return STANDARD_TYPE(PPrsStd_AISPresentation); } - -Handle(TDF_Attribute) MPrsStd_AISPresentationRetrievalDriver::NewEmpty() const -{ return new TPrsStd_AISPresentation; } - -void MPrsStd_AISPresentationRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source, - const Handle(TDF_Attribute)& Target, - const Handle(MDF_RRelocationTable)& /*RelocTable*/) const -{ - Handle(PPrsStd_AISPresentation) S = Handle(PPrsStd_AISPresentation)::DownCast (Source); - Handle(TPrsStd_AISPresentation) T = Handle(TPrsStd_AISPresentation)::DownCast (Target); - - T->SetDisplayed( S->IsDisplayed() ); - - TCollection_ExtendedString extstr = (S->GetDriverGUID())->Convert(); - Standard_GUID guid( extstr.ToExtString() ); - - T->SetDriverGUID( guid ); - - if( S->Color() != -1 ) T->SetColor( (Quantity_NameOfColor)(S->Color()) ); - else T->UnsetColor(); - - if( S->Material() != -1 ) T->SetMaterial( (Graphic3d_NameOfMaterial)(S->Material()) ); - else T->UnsetMaterial(); - - if( S->Transparency() != -1. ) T->SetTransparency( S->Transparency() ); - else T->UnsetTransparency(); - - if( S->Width() != -1. ) T->SetWidth( S->Width() ); - else T->UnsetWidth(); - -#ifdef OCCT_DEBUG - cout << "AISPresentationRetrievalDriver " << "retrieved DriverGUID ==> "; - guid.ShallowDump(cout); - cout << endl; -#endif -} -