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
90ece80d
Commit
90ece80d
authored
3 years ago
by
t.knopff
Browse files
Options
Downloads
Patches
Plain Diff
Make FootprintGaussianItem::P_VALUE private
parent
7b05692d
No related branches found
No related tags found
1 merge request
!92
Refactor model: instrument, footprint and background items
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GUI/Models/BeamItems.cpp
+1
-1
1 addition, 1 deletion
GUI/Models/BeamItems.cpp
GUI/Models/FootprintItems.cpp
+5
-0
5 additions, 0 deletions
GUI/Models/FootprintItems.cpp
GUI/Models/FootprintItems.h
+3
-1
3 additions, 1 deletion
GUI/Models/FootprintItems.h
with
9 additions
and
2 deletions
GUI/Models/BeamItems.cpp
+
1
−
1
View file @
90ece80d
...
@@ -217,7 +217,7 @@ FootprintItem* SpecularBeamItem::currentFootprintItem() const
...
@@ -217,7 +217,7 @@ FootprintItem* SpecularBeamItem::currentFootprintItem() const
void
SpecularBeamItem
::
setGaussianFootprint
(
double
value
)
void
SpecularBeamItem
::
setGaussianFootprint
(
double
value
)
{
{
setGroupPropertyType
<
FootprintGaussianItem
>
(
P_FOOPTPRINT
)
setGroupPropertyType
<
FootprintGaussianItem
>
(
P_FOOPTPRINT
)
->
set
ItemValue
(
FootprintGaussianItem
::
P_VALUE
,
value
);
->
set
GaussianFootprintValue
(
value
);
}
}
void
SpecularBeamItem
::
setSquareFootprint
(
double
value
)
void
SpecularBeamItem
::
setSquareFootprint
(
double
value
)
...
...
This diff is collapsed.
Click to expand it.
GUI/Models/FootprintItems.cpp
+
5
−
0
View file @
90ece80d
...
@@ -63,6 +63,11 @@ std::unique_ptr<IFootprintFactor> FootprintGaussianItem::createFootprint() const
...
@@ -63,6 +63,11 @@ std::unique_ptr<IFootprintFactor> FootprintGaussianItem::createFootprint() const
return
std
::
make_unique
<
FootprintGauss
>
(
getItemValue
(
P_VALUE
).
toDouble
());
return
std
::
make_unique
<
FootprintGauss
>
(
getItemValue
(
P_VALUE
).
toDouble
());
}
}
void
FootprintGaussianItem
::
setGaussianFootprintValue
(
double
value
)
{
setItemValue
(
P_VALUE
,
value
);
}
// Square footprint
// Square footprint
/* ------------------------------------------------ */
/* ------------------------------------------------ */
...
...
This diff is collapsed.
Click to expand it.
GUI/Models/FootprintItems.h
+
3
−
1
View file @
90ece80d
...
@@ -38,14 +38,16 @@ public:
...
@@ -38,14 +38,16 @@ public:
};
};
class
BA_CORE_API_
FootprintGaussianItem
:
public
FootprintItem
{
class
BA_CORE_API_
FootprintGaussianItem
:
public
FootprintItem
{
p
ublic
:
p
rivate
:
static
const
QString
P_VALUE
;
static
const
QString
P_VALUE
;
public:
static
const
QString
M_TYPE
;
static
const
QString
M_TYPE
;
FootprintGaussianItem
();
FootprintGaussianItem
();
virtual
~
FootprintGaussianItem
();
virtual
~
FootprintGaussianItem
();
std
::
unique_ptr
<
IFootprintFactor
>
createFootprint
()
const
override
;
std
::
unique_ptr
<
IFootprintFactor
>
createFootprint
()
const
override
;
void
setGaussianFootprintValue
(
double
value
);
};
};
class
BA_CORE_API_
FootprintSquareItem
:
public
FootprintItem
{
class
BA_CORE_API_
FootprintSquareItem
:
public
FootprintItem
{
...
...
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