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
fba46b85
Commit
fba46b85
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
getter implementation -> header
parent
bcdffe0e
No related branches found
No related tags found
1 merge request
!2150
rm Fourier display from GUI
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/Model/Axis/BasicAxisItem.cpp
+0
-21
0 additions, 21 deletions
GUI/Model/Axis/BasicAxisItem.cpp
GUI/Model/Axis/BasicAxisItem.h
+4
-4
4 additions, 4 deletions
GUI/Model/Axis/BasicAxisItem.h
with
4 additions
and
25 deletions
GUI/Model/Axis/BasicAxisItem.cpp
+
0
−
21
View file @
fba46b85
...
...
@@ -43,33 +43,17 @@ BasicAxisItem::BasicAxisItem(QObject* parent)
BasicAxisItem
::~
BasicAxisItem
()
=
default
;
int
BasicAxisItem
::
size
()
const
{
return
m_nbins
;
}
void
BasicAxisItem
::
resize
(
size_t
value
)
{
m_nbins
=
int
(
value
);
}
double
BasicAxisItem
::
min
()
const
{
return
m_min
;
}
void
BasicAxisItem
::
setMin
(
double
value
)
{
m_min
=
value
;
emit
axisRangeChanged
();
}
double
BasicAxisItem
::
max
()
const
{
return
m_max
;
}
void
BasicAxisItem
::
setMax
(
double
value
)
{
m_max
=
value
;
...
...
@@ -81,11 +65,6 @@ Scale BasicAxisItem::makeScale(std::string name) const
return
EquiScan
(
name
,
size
(),
Units
::
deg2rad
(
min
()),
Units
::
deg2rad
(
max
()));
}
bool
BasicAxisItem
::
isVisible
()
const
{
return
m_visible
;
}
void
BasicAxisItem
::
setVisible
(
bool
b
)
{
m_visible
=
b
;
...
...
This diff is collapsed.
Click to expand it.
GUI/Model/Axis/BasicAxisItem.h
+
4
−
4
View file @
fba46b85
...
...
@@ -33,16 +33,16 @@ public:
public:
Scale
makeScale
(
std
::
string
name
)
const
;
int
size
()
const
;
int
size
()
const
{
return
m_nbins
;
}
void
resize
(
size_t
value
);
double
min
()
const
;
double
min
()
const
{
return
m_min
;
}
void
setMin
(
double
value
);
double
max
()
const
;
double
max
()
const
{
return
m_max
;
}
void
setMax
(
double
value
);
bool
isVisible
()
const
;
bool
isVisible
()
const
{
return
m_visible
;
}
void
setVisible
(
bool
b
);
signals
:
...
...
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