~ubuntu-branches/ubuntu/utopic/ginkgocadx/utopic-proposed

« back to all changes in this revision

Viewing changes to src/lightvisualizator/lightvisualizator/controllers/lightvisualizatorcontroller.cpp

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2012-01-29 12:02:54 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120129120254-nu7giync5p156icb
Tags: 2.8.0.4602-1
New upstream version (adapted patch, removed patch applied upstream)
Closes: #657827

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  $Id: lightvisualizatorcontroller.cpp 4365 2011-11-03 14:01:58Z carlos $
3
 
 *  Proyecto Ginkgo
4
 
 *
5
 
 *  Copyright 2008 MetaEmotion S.L. All rights reserved.
6
 
 *
7
 
 */
 
2
*  $Id: lightvisualizatorcontroller.cpp 4555 2012-01-17 10:03:03Z tovar $
 
3
*  Proyecto Ginkgo
 
4
*
 
5
*  Copyright 2008 MetaEmotion S.L. All rights reserved.
 
6
*
 
7
*/
8
8
#include <api/globals.h>
9
9
#include <vector>
10
10
#include <set>
61
61
                //returns true if this mode supports this pair of modality-transfer syntax
62
62
                virtual bool SupportsModalityFile(const std::string &modalidad, const std::string& transferSyntax){
63
63
                        for(TipoListaModalidades::iterator it = m_listaModalidades.begin(); it!= m_listaModalidades.end(); ++it){
64
 
                                if((*it) == modalidad){                                 
 
64
                                if((*it) == modalidad && !(transferSyntax == "1.2.840.10008.1.2.4.100" || transferSyntax == "1.2.840.10008.1.2.4.101")){
65
65
                                        return true;
66
66
                                }
67
67
                        }
78
78
                }
79
79
 
80
80
                m_pEntorno = pEntorno;
81
 
                //name
82
 
                m_Nombre = EXT_DESCRIPTION;
83
 
                //copyright
84
 
                m_CopyRight = EXT_COPYRIGHT;
85
 
                //author
86
 
                m_Author = EXT_PROVIDER;
87
 
                m_VersionMayor = EXT_VERSION;
88
 
                m_VersionMinor = EXT_SUBVERSION;
89
 
                m_VersionRelease = EXT_RELEASE;
90
 
                m_CodeName = EXT_CODENAME;
91
 
                
92
 
                std::ostringstream ostr;
93
 
                ostr << m_VersionMayor << "." << m_VersionMinor << "." << m_VersionRelease << " " << m_CodeName;
94
 
                m_Version = ostr.str();
95
 
 
96
 
                
 
81
 
 
82
 
 
83
 
97
84
                GNC::GCS::IControladorHerramientas* cH = pEntorno->GetControladorHerramientas();
98
85
                cH->RegistrarHerramienta(new LightVisualizator::ToolWindowLevelLight());
99
86
        }
116
103
                for (int i = 0; i < m_ListaModos.size(); ++i) {
117
104
                        delete m_ListaModos[i];
118
105
                }
119
 
 
120
 
                if (m_Bitmap != NULL) {
121
 
                        delete m_Bitmap;
122
 
                        m_Bitmap = NULL;
123
 
                }
124
106
        }
125
107
 
126
108
        //It's mandatory to implement this method, here you have to register views of this module (Controller modes), this will register LightVisualizatorView .
127
 
         void LightVisualizatorController::RegistrarVistas()
128
 
         {
129
 
                 GNC::GCS::ModoControlador::TipoListaModalidades listaModalidades;
 
109
        void LightVisualizatorController::RegistrarVistas()
 
110
        {
 
111
                GNC::GCS::ModoControlador::TipoListaModalidades listaModalidades;
130
112
                listaModalidades.push_back(std::string("MR")); //resonancia
131
113
                listaModalidades.push_back(std::string("CR")); //computed radiography
132
114
                listaModalidades.push_back(std::string("US")); //ultrasonido
179
161
                GNC::GCS::ModoControlador::TipoListaUIDsImportacion listaUIDsImportacion;
180
162
 
181
163
                m_ListaModos.push_back(new LightVisualizatorControllerMode(0, EXT_DESCRIPTION, listaModalidades, listaUIDsImportacion, true));
182
 
         }
 
164
        }
183
165
 
184
166
 
185
167
        //it's call by Ginkgo CADx core when this extension has to open a series with required module and required Diagnostic Study UID, returns an IVista (view)
283
265
        {
284
266
        }
285
267
};
286
 
 
287
 
 
288
 
 
289