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
fe3e41ee
Commit
fe3e41ee
authored
8 months ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
profiles and lattices now PolyPtr
parent
7af55910
No related branches found
No related tags found
1 merge request
!2696
PolyItem -> PolyPtr, with BaseItem as separate template parameter
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/Model/Sample/InterferenceItems.h
+13
-13
13 additions, 13 deletions
GUI/Model/Sample/InterferenceItems.h
with
13 additions
and
13 deletions
GUI/Model/Sample/InterferenceItems.h
+
13
−
13
View file @
fe3e41ee
...
...
@@ -16,7 +16,7 @@
#define BORNAGAIN_GUI_MODEL_SAMPLE_INTERFERENCEITEMS_H
#include
"GUI/Model/Descriptor/DoubleProperty.h"
#include
"GUI/Model/Descriptor/Poly
Item
.h"
#include
"GUI/Model/Descriptor/Poly
Ptr
.h"
#include
"GUI/Model/Sample/Lattice2DCatalog.h"
#include
"GUI/Model/Sample/Lattice2DItems.h"
#include
"GUI/Model/Sample/ProfileCatalogs.h"
...
...
@@ -62,13 +62,13 @@ public:
const
DoubleProperty
&
rotationAngle
()
const
{
return
m_rotation_angle
;
}
void
setRotationAngle
(
double
v
)
{
m_rotation_angle
.
setDVal
(
v
);
}
PolyItem
<
Profile1DCatalog
>&
decayFunctionSelection
()
{
return
m_decay_function
;
}
Poly
Ptr
<
Profile1D
Item
,
Profile1DCatalog
>&
decayFunctionSelection
()
{
return
m_decay_function
;
}
void
setDecayFunctionType
(
Profile1DItem
*
p
)
{
m_decay_function
.
setCertainItem
(
p
);
}
private
:
DoubleProperty
m_length
;
DoubleProperty
m_rotation_angle
;
PolyItem
<
Profile1DCatalog
>
m_decay_function
;
Poly
Ptr
<
Profile1D
Item
,
Profile1DCatalog
>
m_decay_function
;
};
// ------------------------------------------------------------------------------------------------
...
...
@@ -76,7 +76,7 @@ private:
class
Interference2DAbstractLatticeItem
:
public
InterferenceItem
{
public:
Lattice2DItem
*
latticeTypeItem
()
const
{
return
m_lattice_type
.
certainItem
();
}
PolyItem
<
Lattice2DCatalog
>&
latticeTypeSelection
()
{
return
m_lattice_type
;
}
Poly
Ptr
<
Lattice2D
Item
,
Lattice2DCatalog
>&
latticeTypeSelection
()
{
return
m_lattice_type
;
}
void
setLatticeType
(
Lattice2DItem
*
p
)
{
m_lattice_type
.
setCertainItem
(
p
);
}
bool
xiIntegration
()
const
{
return
m_xi_integration
;
}
...
...
@@ -89,7 +89,7 @@ protected:
explicit
Interference2DAbstractLatticeItem
(
bool
xiIntegration
);
bool
m_xi_integration
;
PolyItem
<
Lattice2DCatalog
>
m_lattice_type
;
Poly
Ptr
<
Lattice2D
Item
,
Lattice2DCatalog
>
m_lattice_type
;
};
// ------------------------------------------------------------------------------------------------
...
...
@@ -102,11 +102,11 @@ public:
void
writeTo
(
QXmlStreamWriter
*
w
)
const
override
;
void
readFrom
(
QXmlStreamReader
*
r
)
override
;
PolyItem
<
Profile2DCatalog
>&
decayFunctionSelection
()
{
return
m_decay_function
;
}
Poly
Ptr
<
Profile2D
Item
,
Profile2DCatalog
>&
decayFunctionSelection
()
{
return
m_decay_function
;
}
void
setDecayFunctionType
(
Profile2DItem
*
p
)
{
m_decay_function
.
setCertainItem
(
p
);
}
protected
:
PolyItem
<
Profile2DCatalog
>
m_decay_function
;
Poly
Ptr
<
Profile2D
Item
,
Profile2DCatalog
>
m_decay_function
;
};
// ------------------------------------------------------------------------------------------------
...
...
@@ -131,18 +131,18 @@ public:
const
DoubleProperty
&
domainSize2
()
const
{
return
m_domain_size2
;
}
void
setDomainSize2
(
double
size
)
{
m_domain_size2
.
setDVal
(
size
);
}
PolyItem
<
Profile2DCatalog
>&
probabilityDistributionSelection1
()
{
return
m_pdf1
;
}
Poly
Ptr
<
Profile2D
Item
,
Profile2DCatalog
>&
probabilityDistributionSelection1
()
{
return
m_pdf1
;
}
void
setPDF1Type
(
Profile2DItem
*
p
)
{
m_pdf1
.
setCertainItem
(
p
);
}
PolyItem
<
Profile2DCatalog
>&
probabilityDistributionSelection2
()
{
return
m_pdf2
;
}
Poly
Ptr
<
Profile2D
Item
,
Profile2DCatalog
>&
probabilityDistributionSelection2
()
{
return
m_pdf2
;
}
void
setPDF2Type
(
Profile2DItem
*
p
)
{
m_pdf2
.
setCertainItem
(
p
);
}
private
:
DoubleProperty
m_damping_length
;
DoubleProperty
m_domain_size1
;
DoubleProperty
m_domain_size2
;
PolyItem
<
Profile2DCatalog
>
m_pdf1
;
PolyItem
<
Profile2DCatalog
>
m_pdf2
;
Poly
Ptr
<
Profile2D
Item
,
Profile2DCatalog
>
m_pdf1
;
Poly
Ptr
<
Profile2D
Item
,
Profile2DCatalog
>
m_pdf2
;
};
// ------------------------------------------------------------------------------------------------
...
...
@@ -215,7 +215,7 @@ public:
const
DoubleProperty
&
kappa
()
const
{
return
m_kappa
;
}
void
setKappa
(
double
v
)
{
m_kappa
.
setDVal
(
v
);
}
PolyItem
<
Profile1DCatalog
>&
probabilityDistributionSelection
()
{
return
m_pdf
;
}
Poly
Ptr
<
Profile1D
Item
,
Profile1DCatalog
>&
probabilityDistributionSelection
()
{
return
m_pdf
;
}
void
setPDFType
(
Profile1DItem
*
p
)
{
m_pdf
.
setCertainItem
(
p
);
}
private
:
...
...
@@ -223,7 +223,7 @@ private:
DoubleProperty
m_damping_length
;
DoubleProperty
m_domain_size
;
DoubleProperty
m_kappa
;
PolyItem
<
Profile1DCatalog
>
m_pdf
;
Poly
Ptr
<
Profile1D
Item
,
Profile1DCatalog
>
m_pdf
;
};
#endif // BORNAGAIN_GUI_MODEL_SAMPLE_INTERFERENCEITEMS_H
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