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
22e82fb1
Commit
22e82fb1
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
GUIDomainSampleVisitor: no camel case in local vars
parent
2c92b9db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!226
Annotations to GUIDomainSampleVisitor and other copy edits
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/Models/GUIDomainSampleVisitor.cpp
+15
-15
15 additions, 15 deletions
GUI/Models/GUIDomainSampleVisitor.cpp
with
15 additions
and
15 deletions
GUI/Models/GUIDomainSampleVisitor.cpp
+
15
−
15
View file @
22e82fb1
...
@@ -511,8 +511,8 @@ void GUIDomainSampleVisitor::visit(const RotationX* sample)
...
@@ -511,8 +511,8 @@ void GUIDomainSampleVisitor::visit(const RotationX* sample)
ASSERT
(
parent
);
ASSERT
(
parent
);
TransformationItem
*
transformation_item
=
parent
->
createTransformationItem
();
TransformationItem
*
transformation_item
=
parent
->
createTransformationItem
();
XRotationItem
*
rot
ationI
tem
=
transformation_item
->
setRotationType
<
XRotationItem
>
();
XRotationItem
*
rot
_i
tem
=
transformation_item
->
setRotationType
<
XRotationItem
>
();
rot
ationI
tem
->
setAngleValue
(
Units
::
rad2deg
(
sample
->
getAngle
()));
rot
_i
tem
->
setAngleValue
(
Units
::
rad2deg
(
sample
->
getAngle
()));
m_levelToParentItem
[
depth
()]
=
transformation_item
;
m_levelToParentItem
[
depth
()]
=
transformation_item
;
}
}
...
@@ -522,8 +522,8 @@ void GUIDomainSampleVisitor::visit(const RotationY* sample)
...
@@ -522,8 +522,8 @@ void GUIDomainSampleVisitor::visit(const RotationY* sample)
ASSERT
(
parent
);
ASSERT
(
parent
);
TransformationItem
*
transformation_item
=
parent
->
createTransformationItem
();
TransformationItem
*
transformation_item
=
parent
->
createTransformationItem
();
YRotationItem
*
rot
ationI
tem
=
transformation_item
->
setRotationType
<
YRotationItem
>
();
YRotationItem
*
rot
_i
tem
=
transformation_item
->
setRotationType
<
YRotationItem
>
();
rot
ationI
tem
->
setAngleValue
(
Units
::
rad2deg
(
sample
->
getAngle
()));
rot
_i
tem
->
setAngleValue
(
Units
::
rad2deg
(
sample
->
getAngle
()));
m_levelToParentItem
[
depth
()]
=
transformation_item
;
m_levelToParentItem
[
depth
()]
=
transformation_item
;
}
}
...
@@ -533,8 +533,8 @@ void GUIDomainSampleVisitor::visit(const RotationZ* sample)
...
@@ -533,8 +533,8 @@ void GUIDomainSampleVisitor::visit(const RotationZ* sample)
ASSERT
(
parent
);
ASSERT
(
parent
);
TransformationItem
*
transformation_item
=
parent
->
createTransformationItem
();
TransformationItem
*
transformation_item
=
parent
->
createTransformationItem
();
ZRotationItem
*
rot
ationI
tem
=
transformation_item
->
setRotationType
<
ZRotationItem
>
();
ZRotationItem
*
rot
_i
tem
=
transformation_item
->
setRotationType
<
ZRotationItem
>
();
rot
ationI
tem
->
setAngleValue
(
Units
::
rad2deg
(
sample
->
getAngle
()));
rot
_i
tem
->
setAngleValue
(
Units
::
rad2deg
(
sample
->
getAngle
()));
m_levelToParentItem
[
depth
()]
=
transformation_item
;
m_levelToParentItem
[
depth
()]
=
transformation_item
;
}
}
...
@@ -544,10 +544,10 @@ void GUIDomainSampleVisitor::visit(const RotationEuler* sample)
...
@@ -544,10 +544,10 @@ void GUIDomainSampleVisitor::visit(const RotationEuler* sample)
ASSERT
(
parent
);
ASSERT
(
parent
);
TransformationItem
*
transformation_item
=
parent
->
createTransformationItem
();
TransformationItem
*
transformation_item
=
parent
->
createTransformationItem
();
EulerRotationItem
*
rot
ationI
tem
=
transformation_item
->
setRotationType
<
EulerRotationItem
>
();
EulerRotationItem
*
rot
_i
tem
=
transformation_item
->
setRotationType
<
EulerRotationItem
>
();
rot
ationI
tem
->
setAlphaValue
(
Units
::
rad2deg
(
sample
->
getAlpha
()));
rot
_i
tem
->
setAlphaValue
(
Units
::
rad2deg
(
sample
->
getAlpha
()));
rot
ationI
tem
->
setBetaValue
(
Units
::
rad2deg
(
sample
->
getBeta
()));
rot
_i
tem
->
setBetaValue
(
Units
::
rad2deg
(
sample
->
getBeta
()));
rot
ationI
tem
->
setGammaValue
(
Units
::
rad2deg
(
sample
->
getGamma
()));
rot
_i
tem
->
setGammaValue
(
Units
::
rad2deg
(
sample
->
getGamma
()));
m_levelToParentItem
[
depth
()]
=
transformation_item
;
m_levelToParentItem
[
depth
()]
=
transformation_item
;
}
}
...
@@ -563,20 +563,20 @@ ExternalProperty GUIDomainSampleVisitor::createMaterialFromDomain(const Material
...
@@ -563,20 +563,20 @@ ExternalProperty GUIDomainSampleVisitor::createMaterialFromDomain(const Material
return
GUI
::
Model
::
MaterialItemUtils
::
materialProperty
(
*
material
);
return
GUI
::
Model
::
MaterialItemUtils
::
materialProperty
(
*
material
);
complex_t
material_data
=
material
->
materialData
();
complex_t
material_data
=
material
->
materialData
();
MaterialItem
*
mat
erialI
tem
(
nullptr
);
MaterialItem
*
mat
_i
tem
(
nullptr
);
if
(
material
->
typeID
()
==
MATERIAL_TYPES
::
RefractiveMaterial
)
{
if
(
material
->
typeID
()
==
MATERIAL_TYPES
::
RefractiveMaterial
)
{
mat
erialI
tem
=
m_materialModel
->
addRefractiveMaterial
(
materialName
,
material_data
.
real
(),
mat
_i
tem
=
m_materialModel
->
addRefractiveMaterial
(
materialName
,
material_data
.
real
(),
material_data
.
imag
());
material_data
.
imag
());
}
else
if
(
material
->
typeID
()
==
MATERIAL_TYPES
::
MaterialBySLD
)
{
}
else
if
(
material
->
typeID
()
==
MATERIAL_TYPES
::
MaterialBySLD
)
{
mat
erialI
tem
=
m_materialModel
->
addSLDMaterial
(
materialName
,
material_data
.
real
(),
mat
_i
tem
=
m_materialModel
->
addSLDMaterial
(
materialName
,
material_data
.
real
(),
material_data
.
imag
());
material_data
.
imag
());
}
else
{
}
else
{
throw
Error
(
"GUI::Model::ObjectBuilder::createMaterialFromDomain() -> Error. "
throw
Error
(
"GUI::Model::ObjectBuilder::createMaterialFromDomain() -> Error. "
"Unsupported material"
);
"Unsupported material"
);
}
}
mat
erialI
tem
->
setMagnetization
(
material
->
magnetization
());
mat
_i
tem
->
setMagnetization
(
material
->
magnetization
());
return
GUI
::
Model
::
MaterialItemUtils
::
materialProperty
(
*
mat
erialI
tem
);
return
GUI
::
Model
::
MaterialItemUtils
::
materialProperty
(
*
mat
_i
tem
);
}
}
// Function CreateIParticle, used only by GUIDomainSampleVisitor::InsertIParticle
// Function CreateIParticle, used only by GUIDomainSampleVisitor::InsertIParticle
...
...
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