NorMIT-nav  22.09
An IGT application
cxToolImagePreviewWidget.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
13 
14 
15 #include "cxTrackerConfiguration.h"
16 #include "cxTrackingService.h"
17 
18 namespace cx
19 {
21  ImagePreviewWidget(parent),
22  mTrackingService(trackingService)
23 {
24  this->setToolTip("Preview of a Tool Image");
26 }
27 
29 {}
30 
31 void ToolImagePreviewWidget::previewFileSlot(const QString& absoluteFilePath)
32 {
33  TrackerConfigurationPtr config = mTrackingService->getConfiguration();
34  const QString imageAbsoluteFilePath = config->getTool(absoluteFilePath).mPictureFilename;
35  ImagePreviewWidget::previewFileSlot(imageAbsoluteFilePath);
36 }
37 }//namespace cx
cx::ToolImagePreviewWidget::~ToolImagePreviewWidget
virtual ~ToolImagePreviewWidget()
Definition: cxToolImagePreviewWidget.cpp:28
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::TrackerConfigurationPtr
boost::shared_ptr< class TrackerConfiguration > TrackerConfigurationPtr
Definition: cxTrackerConfiguration.h:24
cx::ToolImagePreviewWidget::ToolImagePreviewWidget
ToolImagePreviewWidget(TrackingServicePtr trackingService, QWidget *parent)
Definition: cxToolImagePreviewWidget.cpp:20
cxToolImagePreviewWidget.h
cx::ImagePreviewWidget::setSize
void setSize(int width, int height)
Definition: cxImagePreviewWidget.cpp:39
cx::TrackingServicePtr
boost::shared_ptr< class TrackingService > TrackingServicePtr
Definition: cxToolFilterWidget.h:27
cx::ToolImagePreviewWidget::previewFileSlot
virtual void previewFileSlot(const QString &absoluteFilePath)
Definition: cxToolImagePreviewWidget.cpp:31
cxTrackerConfiguration.h
cx::ImagePreviewWidget::previewFileSlot
virtual void previewFileSlot(const QString &absoluteFilePath)
Definition: cxImagePreviewWidget.cpp:44
cxTrackingService.h
cx::ImagePreviewWidget
Widget for displaying images.
Definition: cxImagePreviewWidget.h:29