CustusX
22.04-rc5
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
cxSyncedValue.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 "
cxSyncedValue.h
"
13
14
namespace
cx
15
{
16
17
SyncedValue::SyncedValue
(QVariant val) :
18
mValue(val)
19
{
20
}
21
SyncedValuePtr
SyncedValue::create
(QVariant val)
22
{
23
return
SyncedValuePtr
(
new
SyncedValue
(val));
24
}
25
void
SyncedValue::set
(QVariant val)
26
{
27
if
(mValue == val)
28
return
;
29
mValue = val;
30
emit
changed
();
31
}
32
QVariant
SyncedValue::get
()
const
33
{
34
return
mValue;
35
}
36
37
38
}
//namespace cx
cx::SyncedValue::get
QVariant get() const
Definition:
cxSyncedValue.cpp:32
cxSyncedValue.h
cx::SyncedValue::set
void set(QVariant val)
Definition:
cxSyncedValue.cpp:25
cx::SyncedValue::SyncedValue
SyncedValue(QVariant val=QVariant())
Definition:
cxSyncedValue.cpp:17
cx::SyncedValue::create
static SyncedValuePtr create(QVariant val=QVariant())
Definition:
cxSyncedValue.cpp:21
cx::SyncedValue::changed
void changed()
cx::SyncedValuePtr
boost::shared_ptr< class SyncedValue > SyncedValuePtr
Definition:
cxViewGroup.h:30
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
CX
source
resource
core
utilities
cxSyncedValue.cpp
Generated on Thu Jun 16 2022 21:30:02 for CustusX by
1.8.11