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
99f238bb
Commit
99f238bb
authored
12 years ago
by
Ansgar Philippsen
Browse files
Options
Downloads
Patches
Plain Diff
fixed XCS Editor update in buffered mode; added ForceUpdate just in case
parent
aa1b5d11
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/mol/base/pymod/export_editors.cc
+3
-1
3 additions, 1 deletion
modules/mol/base/pymod/export_editors.cc
modules/mol/base/src/xcs_editor.cc
+6
-0
6 additions, 0 deletions
modules/mol/base/src/xcs_editor.cc
modules/mol/base/src/xcs_editor.hh
+4
-0
4 additions, 0 deletions
modules/mol/base/src/xcs_editor.hh
with
13 additions
and
1 deletion
modules/mol/base/pymod/export_editors.cc
+
3
−
1
View file @
99f238bb
...
...
@@ -266,7 +266,9 @@ void export_Editors()
.
def
(
"SetTransform"
,
set_transform1
)
.
def
(
"SetTransform"
,
set_transform2
)
.
def
(
"UpdateICS"
,
&
XCSEditor
::
UpdateICS
)
.
def
(
"__exit__"
,
&
XCSEditor
::
UpdateICS
)
.
def
(
"ForceUpdate"
,
&
XCSEditor
::
ForceUpdate
)
.
def
(
"__exit__"
,
&
XCSEditor
::
ForceUpdate
)
.
def
(
"__del__"
,
&
XCSEditor
::
ForceUpdate
)
;
class_
<
ICSEditor
,
bases
<
EditorBase
>
>
(
"ICSEditor"
,
no_init
)
...
...
This diff is collapsed.
Click to expand it.
modules/mol/base/src/xcs_editor.cc
+
6
−
0
View file @
99f238bb
...
...
@@ -218,6 +218,12 @@ void XCSEditor::Update()
}
}
void
XCSEditor
::
ForceUpdate
()
{
ent_
.
Impl
()
->
UpdateICSIfNeeded
();
ent_
.
Impl
()
->
UpdateOrganizerIfNeeded
();
}
void
XCSEditor
::
UpdateICS
()
{
ent_
.
Impl
()
->
UpdateICSIfNeeded
();
...
...
This diff is collapsed.
Click to expand it.
modules/mol/base/src/xcs_editor.hh
+
4
−
0
View file @
99f238bb
...
...
@@ -110,6 +110,10 @@ public:
/// \brief immediately update internal coordinate system
void
UpdateICS
();
/// \brief force spatial organizer and ics update
/// workaround for delayed dtor call from Python garbage collection
void
ForceUpdate
();
protected:
XCSEditor
(
const
EntityHandle
&
ent
,
EditMode
mode
);
...
...
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