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
Merge requests
!532
Reduce SessionItem signaling
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Reduce SessionItem signaling
ReduceSessionItemSignalingAndMore
into
develop
Overview
1
Commits
15
Pipelines
2
Changes
1
Merged
m.puchner
requested to merge
ReduceSessionItemSignalingAndMore
into
develop
3 years ago
Overview
1
Commits
15
Pipelines
2
Changes
1
Expand
reduce SessionItem signaling regarding sample items
cleanup/simplify code
fix warning
0
0
Merge request reports
Viewing commit
e4816af7
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e4816af7
docu
· e4816af7
Matthias Puchner
authored
3 years ago
GUI/Model/Sample/ParticleLayoutItem.h
+
20
−
4
Options
@@ -34,7 +34,19 @@ public:
ParticleLayoutItem
();
DoubleDescriptor
totalDensity
()
const
;
//! The density value which belonging only to the layout.
//!
//! This is the editable value. If an interference is present, this value may not be the one to
//! be used for building the domain layout or to be presented. For the correct value-to-use,
//! whether an interference is present or not, use totalDensity().
DoubleDescriptor
ownDensity
()
const
;
//! The real density.
//!
//! Returns ownDensity() if the interference is not influencing the density. If the
//! interference is defining the density, this is the interference-calculated density.
double
totalDensity
()
const
;
DoubleDescriptor
weight
()
const
;
QVector
<
ItemWithParticles
*>
particles
()
const
;
@@ -46,10 +58,14 @@ public:
void
setInterference
(
InterferenceItem
*
interference
);
void
removeInterference
();
void
updateDensityValue
();
// #baMigration Use only while not migrated from SessionModel!
void
enableDensity
(
bool
b
);
private
:
void
updateDensityAppearance
();
//! Returns whether total density is defined by the currently selected interference.
//!
//! Two dimensional interference calculates density automatically; in these cases the "own"
//! total density value should not be edited but set by the one from the interference.
bool
totalDensityIsDefinedByInterference
()
const
;
};
template
<
typename
T
>
T
*
ParticleLayoutItem
::
createInterference
()
Loading