Fraxinus
2023.01.05-dev+develop.0da12
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 Jan 5 2023 02:05:41 for Fraxinus by
1.8.11