~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/visualizator/visualizator/wxvtk/gwaveformview.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-10-24 21:28:17 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131024212817-ej1skb9og09d3ht6
Tags: 3.5.0.1137.31+dfsg-1
New upstream release [October 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
*  $Id: gwaveformview.cpp $
4
4
*  Ginkgo CADx Project
5
5
*
6
 
*  Copyright 2008-12 MetaEmotion S.L. All rights reserved.
 
6
*  Copyright 2008-14 MetaEmotion S.L. All rights reserved.
7
7
*  http://ginkgo-cadx.com
8
8
*
9
9
*  This file is licensed under LGPL v3 license.
39
39
#include <api/toolsystem/itoolcontroller.h>
40
40
#include <api/toolsystem/itool.h>
41
41
 
42
 
 
43
42
#define ANNOTATOR_TEXT_COLOR 0.1f, 0.1f, 0.1f, 1.0f
44
43
 
45
44
#define ID_BUTTON_METADATA 0
146
145
                        pToolBar->AddTool(HCore_SecondaryCapture, (GNC::GCS::IWidgetsContract*) Delegate);
147
146
                        //tools
148
147
                        pToolBar->AddTool(HCore_ShowDicomTags, (GNC::GCS::IViewContract*) View);
149
 
                        pToolBar->AddTool(HCore_ShowHistory, (GNC::GCS::IViewContract*) View);
 
148
                        pToolBar->AddTool(HCore_ShowHistory, (GNC::GCS::IViewContract*) View);
150
149
                        pToolBar->AddTool(HCore_PACSUpload, (GNC::GCS::IViewContract*) View);
151
150
                        pToolBar->AddTool(HCore_Deshacer, (GNC::GCS::IViewContract*) View);
152
151
                        m_pSizerTools->Add(pToolBar->CreateNewToolBar(this, GNC::GCS::ITool::TFamiliaVisualizacion), 0, wxEXPAND);
194
193
                        Thaw();
195
194
                }
196
195
 
197
 
 
198
196
                GWaveformView::~GWaveformView()
199
197
                {
200
198
                        this->Disconnect(wxEVT_CHILD_FOCUS, wxChildFocusEventHandler(GWaveformView::OnFocus),NULL,this);
235
233
                        if(ViewImage2D != NULL) {
236
234
                                // FIXME: Comprobar si el pipeline esta conectado.
237
235
                                ViewImage2D->SetupPipeline();
238
 
 
239
236
                                
240
237
                                WECG = new GNKVisualizator::Widgets::WECG(GetManager(), 0);
241
238
                                        GetManager()->InsertarWidget(WECG, false);
263
260
                        }
264
261
                }
265
262
 
266
 
                
267
263
                void GWaveformView::StopPipeline()
268
264
                {
269
265
                        m_pManager->OcultarTodosLosWidgets(true, 666);
303
299
                        }
304
300
                }
305
301
        
306
 
                void GWaveformView::OnComboGroup(wxCommandEvent &event)
 
302
                void GWaveformView::OnComboGroup(wxCommandEvent &)
307
303
                {
308
304
                        View->GetECGStudy()->SetIndexOfActualMultiplexGroup(m_pComboGroups->GetSelection());
309
305
                        WECG->Reload(View->GetECGStudy()->GetListOfChannels());
330
326
                        }
331
327
                }
332
328
 
333
 
                void GWaveformView::OnShowHideCornerAnnotations(wxCommandEvent &event)
 
329
                void GWaveformView::OnShowHideCornerAnnotations(wxCommandEvent &)
334
330
                {
335
331
                        m_pManager->MostrarOcultarAnotador();                   
336
332
                        GNC::GCS::IEntorno::Instance()->GetControladorEventos()->ProcesarEvento(new GNC::GCS::Events::EventoRender(View));
337
333
                }
338
334
 
339
 
 
340
335
                //IAnotador
341
336
                std::string GWaveformView::GetDICOMTag(std::string tagId)
342
337
                {
346
341
                        return str;
347
342
                }
348
343
 
349
 
                std::string GWaveformView::GetTopLeftAnnotation(GNC::GCS::Contexto3D* c)
 
344
                std::string GWaveformView::GetTopLeftAnnotation(GNC::GCS::Contexto3D*)
350
345
                {
351
346
                        if (!this->ViewImage2D->IsInstalledAndInitialized() || View == NULL)
352
347
                                return "";
365
360
                        return os.str();
366
361
                }
367
362
 
368
 
                std::string GWaveformView::GetTopRightAnnotation(GNC::GCS::Contexto3D* c)
 
363
                std::string GWaveformView::GetTopRightAnnotation(GNC::GCS::Contexto3D*)
369
364
                {
370
365
                        if (!this->ViewImage2D->IsInstalledAndInitialized() || View == NULL)
371
366
                                return "";
417
412
                        return os.str();
418
413
                }
419
414
 
420
 
                std::string GWaveformView::GetBottomLeftAnnotation(GNC::GCS::Contexto3D* c)
 
415
                std::string GWaveformView::GetBottomLeftAnnotation(GNC::GCS::Contexto3D*)
421
416
                {
422
417
                        
423
418
                        if (!this->ViewImage2D->IsInstalledAndInitialized() || View == NULL)
467
462
                        return os.str();
468
463
                }
469
464
 
470
 
                std::string GWaveformView::GetBottomRightAnnotation(GNC::GCS::Contexto3D* c)
 
465
                std::string GWaveformView::GetBottomRightAnnotation(GNC::GCS::Contexto3D*)
471
466
                {
472
467
                        if (!this->ViewImage2D->IsInstalledAndInitialized() || View == NULL)
473
468
                                return "";
476
471
                        return os.str();
477
472
                }
478
473
 
479
 
                std::string GWaveformView::GetPatientPosition(GNC::GCS::Contexto3D* c)
 
474
                std::string GWaveformView::GetPatientPosition(GNC::GCS::Contexto3D*)
480
475
                {
481
476
                        return "";
482
477
                }
483
478
 
484
 
                std::string GWaveformView::GetAnotacionPosicion(GNC::GCS::Vector* pPosicionRaton)
 
479
                std::string GWaveformView::GetAnotacionPosicion(const GNC::GCS::Vector3D& /*wP*/, GNC::GCS::Contexto3D*)
485
480
                {
486
481
                        return "";
487
482
                }
488
483
 
489
484
                //end ianotador
490
485
 
491
 
                void GWaveformView::OnFocus(wxChildFocusEvent &event)
 
486
                void GWaveformView::OnFocus(wxChildFocusEvent &)
492
487
                {
493
488
                        if (View != NULL) {
494
489
                                View->OnFocus();