0030480: Visualization - Clear of Select3D_SensitiveGroup does not update internal...
[occt.git] / src / ShapeAlgo / ShapeAlgo.cxx
CommitLineData
b311480e 1// Created on: 2000-02-07
2// Created by: data exchange team
973c2be1 3// Copyright (c) 2000-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
42cf5bc1 16
17#include <ShapeAlgo.hxx>
18#include <ShapeAlgo_AlgoContainer.hxx>
7fd59977 19#include <ShapeExtend.hxx>
20
21static Handle(ShapeAlgo_AlgoContainer) theContainer;
22
23//=======================================================================
24//function : Init
25//purpose :
26//=======================================================================
27
28 void ShapeAlgo::Init()
29{
30 static Standard_Boolean init = Standard_False;
31 if (init) return;
32 init = Standard_True;
33 theContainer = new ShapeAlgo_AlgoContainer;
34
35 // initialization of Standard Shape Healing
36 ShapeExtend::Init();
37}
38
39//=======================================================================
40//function : SetAlgoContainer
41//purpose :
42//=======================================================================
43
44 void ShapeAlgo::SetAlgoContainer(const Handle(ShapeAlgo_AlgoContainer)& aContainer)
45{
46 theContainer = aContainer;
47}
48
49//=======================================================================
50//function : AlgoContainer
51//purpose :
52//=======================================================================
53
54 Handle(ShapeAlgo_AlgoContainer) ShapeAlgo::AlgoContainer()
55{
56 return theContainer;
57}