]> SALOME platform Git repositories - modules/med.git/blob - src/MEDCalc/cmp/MEDPresentationManager_i.cxx
Salome HOME
[Huge] Introducing MEDCalc
[modules/med.git] / src / MEDCalc / cmp / MEDPresentationManager_i.cxx
1 // Copyright (C) 2011-2015  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #include "MEDPresentationManager_i.hxx"
21
22 MEDPresentationManager_i* MEDPresentationManager_i::_instance = NULL;
23
24 MEDPresentationManager_i*
25 MEDPresentationManager_i::getInstance() {
26   if ( _instance == NULL )
27     _instance = new MEDPresentationManager_i();
28   return _instance;
29 }
30
31 MEDPresentationManager_i::MEDPresentationManager_i()
32 {
33 }
34
35 MEDPresentationManager_i::~MEDPresentationManager_i()
36 {
37   /*
38   std::vector<MEDPresentation*>::iterator itr = this->_presentations.begin();
39   for ( ; itr != this->_presentations.end(); ++itr) {
40     delete *itr;
41     *itr = NULL;
42   }
43   this->_presentations.clear();
44   */
45 }
46
47 #include <iostream>
48
49 void
50 MEDPresentationManager_i::MakeScalarMap(const MEDCALC::ScalarMapParameters& params)
51 {
52   std::cout << "MEDPresentationManager_i::MakeScalarMap: Not implemented yet\n";
53 }