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
d1dace5f
Commit
d1dace5f
authored
13 years ago
by
Ansgar Philippsen
Browse files
Options
Downloads
Patches
Plain Diff
added temporary implementation to allow tube rendering with per-residue diameter
parent
2447ee5b
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/gfx/src/impl/backbone_trace.cc
+12
-2
12 additions, 2 deletions
modules/gfx/src/impl/backbone_trace.cc
with
12 additions
and
2 deletions
modules/gfx/src/impl/backbone_trace.cc
+
12
−
2
View file @
d1dace5f
...
@@ -84,11 +84,15 @@ public:
...
@@ -84,11 +84,15 @@ public:
// determine atom to add to list
// determine atom to add to list
mol
::
AtomHandle
ca
=
res
.
GetCentralAtom
();
mol
::
AtomHandle
ca
=
res
.
GetCentralAtom
();
if
(
ca
)
{
if
(
ca
)
{
float
rad
=
1.0
;
if
(
ca
.
HasProp
(
"trace_rad"
))
{
rad
=
ca
.
GetFloatProp
(
"trace_rad"
);
}
NodeEntry
entry
=
{
ca
,
GfxObj
::
Ele2Color
(
ca
.
GetElement
()),
NodeEntry
entry
=
{
ca
,
GfxObj
::
Ele2Color
(
ca
.
GetElement
()),
GfxObj
::
Ele2Color
(
ca
.
GetElement
()),
GfxObj
::
Ele2Color
(
ca
.
GetElement
()),
geom
::
Vec3
(),
// this will be set by the gfx trace obj
geom
::
Vec3
(),
// this will be set by the gfx trace obj
res
.
GetCentralNormal
(),
res
.
GetCentralNormal
(),
1.0
,
rad
,
geom
::
Vec3
(),
geom
::
Vec3
(),
geom
::
Vec3
(),
// for later use in NA rendering
geom
::
Vec3
(),
geom
::
Vec3
(),
geom
::
Vec3
(),
// for later use in NA rendering
false
,
id_counter_
++
};
false
,
id_counter_
++
};
list_
.
push_back
(
entry
);
list_
.
push_back
(
entry
);
...
@@ -164,7 +168,13 @@ void BackboneTrace::OnUpdatedPositions()
...
@@ -164,7 +168,13 @@ void BackboneTrace::OnUpdatedPositions()
for
(
NodeEntryListList
::
iterator
nitnit
=
node_list_list_
.
begin
();
nitnit
!=
node_list_list_
.
end
();
++
nitnit
)
{
for
(
NodeEntryListList
::
iterator
nitnit
=
node_list_list_
.
begin
();
nitnit
!=
node_list_list_
.
end
();
++
nitnit
)
{
NodeEntryList
&
nlist
=*
nitnit
;
NodeEntryList
&
nlist
=*
nitnit
;
for
(
NodeEntryList
::
iterator
nit
=
nlist
.
begin
();
nit
!=
nlist
.
end
();
++
nit
)
{
for
(
NodeEntryList
::
iterator
nit
=
nlist
.
begin
();
nit
!=
nlist
.
end
();
++
nit
)
{
nit
->
normal
=
nit
->
atom
.
GetResidue
().
GetCentralNormal
();
mol
::
AtomHandle
ca
=
nit
->
atom
;
nit
->
normal
=
ca
.
GetResidue
().
GetCentralNormal
();
if
(
ca
.
HasProp
(
"trace_rad"
))
{
nit
->
rad
=
ca
.
GetFloatProp
(
"trace_rad"
);
}
else
{
nit
->
rad
=
1.0
;
}
}
}
PrepList
(
nlist
);
PrepList
(
nlist
);
}
}
...
...
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