Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
83ad6ee8
Commit
83ad6ee8
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm inheritance from INode
parent
56474136
No related branches found
No related tags found
2 merge requests
!907
Core cleanup
,
!905
mv class Instrument out of core
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/Model/Device/Instrument.cpp
+0
-9
0 additions, 9 deletions
GUI/Model/Device/Instrument.cpp
GUI/Model/Device/Instrument.h
+2
-7
2 additions, 7 deletions
GUI/Model/Device/Instrument.h
with
2 additions
and
16 deletions
GUI/Model/Device/Instrument.cpp
+
0
−
9
View file @
83ad6ee8
...
...
@@ -35,15 +35,6 @@ void Instrument::setDetector(const IDetector& detector)
m_detector
.
reset
(
detector
.
clone
());
}
std
::
vector
<
const
INode
*>
Instrument
::
nodeChildren
()
const
{
std
::
vector
<
const
INode
*>
result
;
result
.
push_back
(
m_beam
.
get
());
if
(
m_detector
)
result
.
push_back
(
m_detector
.
get
());
return
result
;
}
const
IDetector
*
Instrument
::
getDetector
()
const
{
return
m_detector
.
get
();
...
...
This diff is collapsed.
Click to expand it.
GUI/Model/Device/Instrument.h
+
2
−
7
View file @
83ad6ee8
...
...
@@ -16,7 +16,6 @@
#ifndef BORNAGAIN_GUI_MODEL_DEVICE_INSTRUMENT_H
#define BORNAGAIN_GUI_MODEL_DEVICE_INSTRUMENT_H
#include
"Param/Node/INode.h"
#include
<memory>
class
Beam
;
...
...
@@ -24,13 +23,11 @@ class IDetector;
//! Assembles beam, detector and their relative positions with respect to the sample.
class
Instrument
:
public
INode
{
class
Instrument
{
public:
Instrument
(
const
Beam
&
beam
,
const
IDetector
&
detector
);
Instrument
(
const
Instrument
&
other
);
~
Instrument
()
override
;
std
::
string
className
()
const
final
{
return
"Instrument"
;
}
~
Instrument
();
Beam
&
beam
()
{
return
*
m_beam
;
}
const
Beam
&
beam
()
const
{
return
*
m_beam
;
}
...
...
@@ -43,8 +40,6 @@ public:
//! Sets the detector (axes can be overwritten later)
void
setDetector
(
const
IDetector
&
detector
);
std
::
vector
<
const
INode
*>
nodeChildren
()
const
override
;
protected
:
std
::
unique_ptr
<
Beam
>
m_beam
;
std
::
unique_ptr
<
IDetector
>
m_detector
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment