Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
e618f79d
Commit
e618f79d
authored
13 years ago
by
Niklaus Johner
Browse files
Options
Downloads
Patches
Plain Diff
Added periodic_cell_sizes_ and periodic_cell_angles_ as members of the
CoordFrame class
parent
b327739c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/base/src/coord_frame.hh
+14
-1
14 additions, 1 deletion
modules/mol/base/src/coord_frame.hh
with
14 additions
and
1 deletion
modules/mol/base/src/coord_frame.hh
+
14
−
1
View file @
e618f79d
...
...
@@ -31,15 +31,28 @@
namespace
ost
{
namespace
mol
{
class
DLLEXPORT_OST_MOL
CoordFrame
:
public
geom
::
Vec3List
{
private:
geom
::
Vec3
periodic_cell_sizes_
;
geom
::
Vec3
periodic_cell_angles_
;
public:
typedef
geom
::
Vec3List
base_type
;
CoordFrame
()
:
base_type
()
{}
CoordFrame
()
:
base_type
()
{}
CoordFrame
(
size_t
size
,
const
geom
::
Vec3
&
value
=
geom
::
Vec3
())
:
base_type
(
size
,
value
)
{}
CoordFrame
(
base_type
::
iterator
b
,
base_type
::
iterator
e
)
:
base_type
(
b
,
e
)
{
}
CoordFrame
(
const
base_type
&
rhs
)
:
base_type
(
rhs
)
{
}
CoordFrame
(
const
std
::
vector
<
geom
::
Vec3
>&
rhs
)
:
base_type
(
rhs
)
{
}
CoordFrame
(
const
std
::
vector
<
geom
::
Vec3
>&
rhs
,
const
geom
::
Vec3
box_size
,
const
geom
::
Vec3
box_angles
)
:
base_type
(
rhs
)
{
this
->
periodic_cell_sizes_
=
box_size
;
this
->
periodic_cell_angles_
=
box_angles
;
}
geom
::
Vec3
GetCellSize
()
{
return
this
->
periodic_cell_sizes_
;
}
geom
::
Vec3
GetCellAngles
()
{
return
this
->
periodic_cell_angles_
;
}
geom
::
Vec3
GetAtomPos
(
const
AtomHandle
&
atom
);
geom
::
Vec3
GetAtomPos
(
int
atom_index
);
Real
GetDistanceBetwAtoms
(
const
AtomHandle
&
a1
,
const
AtomHandle
&
a2
);
...
...
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