X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FPrs3d%2FPrs3d_Presentation.cxx;h=f3796a53873fd2fdccff06d2332efca73c872519;hb=7dd7c146e8b1cc67e848e95ecff57243d9ae0b53;hpb=faa0a9113319f1715de7ec53881f8384a353a25e diff --git a/src/Prs3d/Prs3d_Presentation.cxx b/src/Prs3d/Prs3d_Presentation.cxx deleted file mode 100644 index f3796a5387..0000000000 --- a/src/Prs3d/Prs3d_Presentation.cxx +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 1995-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 -#include -#include -#include -#include -#include -#include -#include - -IMPLEMENT_STANDARD_RTTIEXT(Prs3d_Presentation,Graphic3d_Structure) - -//======================================================================= -//function : Prs3d_Presentation -//purpose : -//======================================================================= -Prs3d_Presentation::Prs3d_Presentation (const Handle(Graphic3d_StructureManager)& theViewer, - const Standard_Boolean theToInit) -: Graphic3d_Structure (theViewer) -{ - if (!theToInit) - { - return; - } -} - -//======================================================================= -//function : Prs3d_Presentation -//purpose : -//======================================================================= -Prs3d_Presentation::Prs3d_Presentation (const Handle(Graphic3d_StructureManager)& theViewer, - const Handle(Prs3d_Presentation)& thePrs) -: Graphic3d_Structure (theViewer, thePrs) -{ - // -} - - -//======================================================================= -//function : Connect -//purpose : -//======================================================================= -void Prs3d_Presentation::Connect - ( const Handle(Prs3d_Presentation)& aPresentation) -{ - Graphic3d_Structure::Connect(aPresentation, Graphic3d_TOC_DESCENDANT); -} - - -//======================================================================= -//function : Remove -//purpose : -//======================================================================= -void Prs3d_Presentation::Remove (const Handle(Prs3d_Presentation)& aPresentation) -{ - Disconnect(aPresentation); -} - -//======================================================================= -//function : RemoveAll -//purpose : -//======================================================================= -void Prs3d_Presentation::RemoveAll () -{ - DisconnectAll(Graphic3d_TOC_DESCENDANT); -} - - -//======================================================================= -//function : CurrentGroup -//purpose : -//======================================================================= -Handle(Graphic3d_Group) Prs3d_Presentation::CurrentGroup () const -{ - if (Groups().IsEmpty()) - { - return const_cast(this)->NewGroup(); - } - return Groups().Last(); -} - -//======================================================================= -//function : Compute -//purpose : -//======================================================================= - -Handle(Graphic3d_Structure) Prs3d_Presentation:: - Compute(const Handle(Graphic3d_DataStructureManager)& /*aProjector*/) -{ - return this; -} - -//======================================================================= -//function : Compute -//purpose : -//======================================================================= - -void Prs3d_Presentation::Compute(const Handle(Graphic3d_DataStructureManager)& aDataStruct, - Handle(Graphic3d_Structure)& aStruct) -{ - Graphic3d_Structure::Compute(aDataStruct,aStruct ); -} - -//======================================================================= -//function : Compute -//purpose : -//======================================================================= - -Handle(Graphic3d_Structure) Prs3d_Presentation::Compute (const Handle(Graphic3d_DataStructureManager)& theDataStruc, - const Handle(Geom_Transformation)& theTrsf) -{ - return Graphic3d_Structure::Compute (theDataStruc, theTrsf); -} - -//======================================================================= -//function : Compute -//purpose : -//======================================================================= - -void Prs3d_Presentation::Compute (const Handle(Graphic3d_DataStructureManager)& theDataStruc, - const Handle(Geom_Transformation)& theTrsf, - Handle(Graphic3d_Structure)& theStruc) -{ - Graphic3d_Structure::Compute (theDataStruc, theTrsf, theStruc); -}