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
79691221
Commit
79691221
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
MaskPattern -> local
parent
298f0d13
No related branches found
No related tags found
1 merge request
!2134
rename some files and directories in GUI/View
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Device/Mask/MaskStack.cpp
+14
-0
14 additions, 0 deletions
Device/Mask/MaskStack.cpp
Device/Mask/MaskStack.h
+4
-11
4 additions, 11 deletions
Device/Mask/MaskStack.h
with
18 additions
and
11 deletions
Device/Mask/MaskStack.cpp
+
14
−
0
View file @
79691221
...
@@ -18,6 +18,16 @@
...
@@ -18,6 +18,16 @@
#include
"Device/Data/Datafield.h"
#include
"Device/Data/Datafield.h"
#include
"Device/Mask/IShape2D.h"
#include
"Device/Mask/IShape2D.h"
struct
MaskPattern
{
MaskPattern
(
IShape2D
*
shape_
,
bool
doMask_
,
bool
in_bins_
);
MaskPattern
(
const
MaskPattern
&
)
=
delete
;
~
MaskPattern
();
MaskPattern
*
clone
()
const
;
IShape2D
*
shape
;
// cloneable
bool
doMask
;
bool
inBins
;
};
MaskPattern
::
MaskPattern
(
IShape2D
*
shape_
,
bool
doMask_
,
bool
in_bins_
)
MaskPattern
::
MaskPattern
(
IShape2D
*
shape_
,
bool
doMask_
,
bool
in_bins_
)
:
shape
(
shape_
)
:
shape
(
shape_
)
,
doMask
(
doMask_
)
,
doMask
(
doMask_
)
...
@@ -36,6 +46,10 @@ MaskPattern* MaskPattern::clone() const
...
@@ -36,6 +46,10 @@ MaskPattern* MaskPattern::clone() const
}
}
MaskStack
::
MaskStack
()
=
default
;
MaskStack
::
MaskStack
(
const
MaskStack
&
)
=
default
;
MaskStack
::~
MaskStack
()
=
default
;
void
MaskStack
::
maskToStack
(
const
IShape2D
&
shape
,
bool
mask_value
,
bool
in_bins
)
void
MaskStack
::
maskToStack
(
const
IShape2D
&
shape
,
bool
mask_value
,
bool
in_bins
)
{
{
m_stack
.
emplace_back
(
new
MaskPattern
(
shape
.
clone
(),
mask_value
,
in_bins
));
m_stack
.
emplace_back
(
new
MaskPattern
(
shape
.
clone
(),
mask_value
,
in_bins
));
...
...
This diff is collapsed.
Click to expand it.
Device/Mask/MaskStack.h
+
4
−
11
View file @
79691221
...
@@ -23,22 +23,15 @@
...
@@ -23,22 +23,15 @@
class
IShape2D
;
class
IShape2D
;
class
Frame
;
class
Frame
;
struct
MaskPattern
;
class
MaskPattern
{
public:
MaskPattern
(
IShape2D
*
shape_
,
bool
doMask_
,
bool
in_bins_
);
MaskPattern
(
const
MaskPattern
&
)
=
delete
;
~
MaskPattern
();
MaskPattern
*
clone
()
const
;
IShape2D
*
shape
;
// cloneable
bool
doMask
;
bool
inBins
;
};
//! Collection of detector masks.
//! Collection of detector masks.
class
MaskStack
{
class
MaskStack
{
public:
public:
MaskStack
();
MaskStack
(
const
MaskStack
&
);
~
MaskStack
();
//! Add mask to the stack of detector masks.
//! Add mask to the stack of detector masks.
//! Argument mask_value=true means that the area will be excluded from the analysis.
//! Argument mask_value=true means that the area will be excluded from the analysis.
void
maskToStack
(
const
IShape2D
&
shape
,
bool
mask_value
,
bool
in_bins
);
void
maskToStack
(
const
IShape2D
&
shape
,
bool
mask_value
,
bool
in_bins
);
...
...
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