CustusX  22.04-rc5
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
ToolImagePreviewWidget(TrackingServicePtr trackingService, QWidget *parent)
boost::shared_ptr< class TrackingService > TrackingServicePtr
Widget for displaying images.
virtual void previewFileSlot(const QString &absoluteFilePath)
boost::shared_ptr< class TrackerConfiguration > TrackerConfigurationPtr
virtual void previewFileSlot(const QString &absoluteFilePath)
void setSize(int width, int height)
Namespace for all CustusX production code.