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
0d8fb8f8
Commit
0d8fb8f8
authored
14 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
global variables are *EVIL*
parent
91297c11
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/alg/src/construct_cbeta.cc
+5
-4
5 additions, 4 deletions
modules/mol/alg/src/construct_cbeta.cc
modules/mol/alg/src/construct_cbeta.hh
+6
-6
6 additions, 6 deletions
modules/mol/alg/src/construct_cbeta.hh
with
11 additions
and
10 deletions
modules/mol/alg/src/construct_cbeta.cc
+
5
−
4
View file @
0d8fb8f8
...
...
@@ -12,14 +12,16 @@ namespace detail {
class
CBetaInserter
:
public
EntityVisitor
{
public:
CBetaInserter
(
mol
::
EntityHandle
ent
);
CBetaInserter
(
mol
::
EntityHandle
ent
,
bool
include_gly
);
virtual
bool
VisitResidue
(
const
mol
::
ResidueHandle
&
res
);
private:
XCSEditor
edi_
;
bool
include_gly_
;
};
CBetaInserter
::
CBetaInserter
(
mol
::
EntityHandle
ent
)
{
CBetaInserter
::
CBetaInserter
(
mol
::
EntityHandle
ent
,
bool
include_gly
)
{
edi_
=
ent
.
EditXCS
(
BUFFERED_EDIT
);
include_gly_
=
include_gly
;
}
bool
CBetaInserter
::
VisitResidue
(
const
mol
::
ResidueHandle
&
res
)
...
...
@@ -53,8 +55,7 @@ bool CBetaInserter::VisitResidue(const mol::ResidueHandle& res)
// ensure that C-betas are added to the view as well
void
ConstructCBetas
(
mol
::
EntityHandle
&
entity_handle
,
bool
include_gly
)
{
include_gly_
=
include_gly
;
detail
::
CBetaInserter
cbi
(
entity_handle
);
detail
::
CBetaInserter
cbi
(
entity_handle
,
include_gly
);
entity_handle
.
Apply
(
cbi
);
}
...
...
This diff is collapsed.
Click to expand it.
modules/mol/alg/src/construct_cbeta.hh
+
6
−
6
View file @
0d8fb8f8
...
...
@@ -26,16 +26,16 @@ namespace ost { namespace mol { namespace alg {
geom
::
Vec3
DLLEXPORT_OST_MOL_ALG
CBetaPosition
(
const
ResidueHandle
&
residue
,
Real
bond_length
=
1.5
);
Real
bond_length
=
1.5
);
geom
::
Vec3
DLLEXPORT_OST_MOL_ALG
CBetaPosition
(
const
geom
::
Vec3
&
n_pos
,
const
geom
::
Vec3
&
ca_pos
,
const
geom
::
Vec3
&
c_pos
,
Real
bond_length
=
1.5
);
const
geom
::
Vec3
&
ca_pos
,
const
geom
::
Vec3
&
c_pos
,
Real
bond_length
=
1.5
);
void
DLLEXPORT_OST_MOL_ALG
ConstructCBetas
(
EntityHandle
&
entity_handle
,
bool
include_gly
=
false
);
void
DLLEXPORT_OST_MOL_ALG
ConstructCBetas
(
EntityHandle
&
entity_handle
,
bool
include_gly
=
false
);
bool
include_gly_
;
}}}
// ns
...
...
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