NorMIT-nav
2023.01.05-dev+develop.0da12
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
12
#include "
cxToolImagePreviewWidget.h
"
13
14
15
#include "
cxTrackerConfiguration.h
"
16
#include "
cxTrackingService.h
"
17
18
namespace
cx
19
{
20
ToolImagePreviewWidget::ToolImagePreviewWidget
(
TrackingServicePtr
trackingService, QWidget* parent) :
21
ImagePreviewWidget
(parent),
22
mTrackingService(trackingService)
23
{
24
this->setToolTip(
"Preview of a Tool Image"
);
25
ImagePreviewWidget::setSize
(200, 200);
26
}
27
28
ToolImagePreviewWidget::~ToolImagePreviewWidget
()
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
CX
source
gui
utilities
cxToolImagePreviewWidget.cpp
Generated on Thu Jan 5 2023 03:15:51 for NorMIT-nav by
1.8.17