~ubuntu-branches/ubuntu/oneiric/ginkgocadx/oneiric

« back to all changes in this revision

Viewing changes to src/cadxcore/main/controllers/controladorcarga.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  
 
3
 *  $Id: controladorcarga.h 3518 2011-03-16 13:53:24Z carlos $
 
4
 *  Ginkgo CADx Project
 
5
 *
 
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
 
7
 *  http://ginkgo-cadx.com
 
8
 *
 
9
 *  This file is licensed under LGPL v3 license.
 
10
 *  See License.txt for details
 
11
 *
 
12
 *
 
13
 */
 
14
#pragma once
 
15
#include <api/api.h>
 
16
#include <api/icontroladorcarga.h>
 
17
 
 
18
class wxCriticalSection;
 
19
namespace GNC {
 
20
        namespace GCS {
 
21
 
 
22
                class EXTAPI ControladorCarga : public IControladorCarga {
 
23
                public:
 
24
                        virtual vtkSmartPointer<vtkImageData> CargarITKMultidimensional(IComando* cmd, ListaRutas& listaFicheros, int* orientacion, double* spacing = NULL);
 
25
                        virtual vtkSmartPointer<vtkImageData> CargarITK(IComando* cmd, std::string& path, int* orientacion, double* spacing = NULL);
 
26
                        
 
27
                        virtual void CargaAsincrona(GNC::GCS::IVista* pVista, GnkPtr<GIL::IModeloIntegracion>& ModeloIntegracion, const std::string& uidEstudioDiagnostico);
 
28
 
 
29
                        static ControladorCarga *Instance();
 
30
                        static void FreeInstance();
 
31
 
 
32
                        //region Creacion y destruccion de componente de carga en streaming
 
33
                        virtual GNC::GCS::IStreamingLoader* NewLoader();
 
34
                        virtual void FreeLoader(GNC::GCS::IStreamingLoader** loader);
 
35
                        //endregion
 
36
                
 
37
                protected:
 
38
                        vtkSmartPointer<vtkImageData> CargarITKMultidimensionalRGB(IComando* cmd, ListaRutas& listaFicheros, double* spacing = NULL);
 
39
                        vtkSmartPointer<vtkImageData> CargarITKMultidimensionalUnsignedShort(IComando* cmd, ListaRutas& listaFicheros, int* orientacion,double* spacing = NULL);
 
40
 
 
41
                        ControladorCarga();
 
42
                        ~ControladorCarga();
 
43
                        static ControladorCarga* m_psInstancia;
 
44
                        static wxCriticalSection* m_pCriticalSection;
 
45
                };
 
46
        }
 
47
}