MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSTelemedProbe.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#include "mitkUSTelemedProbe.h"
15
16mitk::USTelemedProbe::USTelemedProbe(Usgfw2Lib::IProbe* probe, Usgfw2Lib::IUsgDataView* dataView)
17 : m_UsgProbe(probe), m_UsgDataView(dataView)
18{
19 BSTR probeName;
20 probe->get_Name(&probeName);
21 SetName(telemed::ConvertWcharToString(probeName));
22}
23
25{
26 SAFE_RELEASE(m_UsgProbe);
27 SAFE_RELEASE(m_UsgDataView);
28}
29
31{
32 return m_UsgProbe;
33}
34
35Usgfw2Lib::IUsgDataView* mitk::USTelemedProbe::GetUsgDataView()
36{
37 return m_UsgDataView;
38}
Usgfw2Lib::IUsgDataView * GetUsgDataView()
Usgfw2Lib::IProbe * GetUsgProbe()
USTelemedProbe(Usgfw2Lib::IProbe *probe, Usgfw2Lib::IUsgDataView *dataView)
#define SAFE_RELEASE(x)
std::string ConvertWcharToString(const BSTR input)