Salome HOME
Provide view transformation signal in Salome viewer
[modules/shaper.git] / src / GeomAPI / GeomAPI_Interface.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomAPI_Interface.cpp
4 // Created:     23 Apr 2014
5 // Author:      Mikhail PONIKAROV
6
7 #include <GeomAPI_Interface.h>
8
9 GeomAPI_Interface::GeomAPI_Interface()
10 {
11   myImpl = 0;
12 }
13
14 GeomAPI_Interface::GeomAPI_Interface(void* theImpl)
15 {
16   myImpl = theImpl;
17 }
18
19 GeomAPI_Interface::~GeomAPI_Interface()
20 {
21   if (myImpl) {
22     delete myImpl;
23     myImpl = 0;
24   }
25 }
26
27 void GeomAPI_Interface::setImpl(void* theImpl)
28 {
29   if (myImpl)
30     delete myImpl;
31   myImpl = theImpl;
32 }