Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Edit arc by dragging
[modules/shaper.git]
/
src
/
NewGeom
/
NewGeom_SalomeViewer.cpp
diff --git
a/src/NewGeom/NewGeom_SalomeViewer.cpp
b/src/NewGeom/NewGeom_SalomeViewer.cpp
index ef6d6c539b87bca1b16f6a6850c9a54f12a3bc41..8fe9bd862ce0662f02e3b90a5385616ca6f2b78d 100644
(file)
--- a/
src/NewGeom/NewGeom_SalomeViewer.cpp
+++ b/
src/NewGeom/NewGeom_SalomeViewer.cpp
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
#include "NewGeom_SalomeViewer.h"
#include "NewGeom_OCCSelector.h"
#include "NewGeom_SalomeViewer.h"
#include "NewGeom_OCCSelector.h"
@@
-231,7
+233,7
@@
void NewGeom_SalomeViewer::setViewProjection(double theX, double theY, double th
Handle(V3d_View) aView3d = aVFrame->getViewPort()->getView();
if (!aView3d.IsNull()) {
aView3d->SetProj(theX, theY, theZ);
Handle(V3d_View) aView3d = aVFrame->getViewPort()->getView();
if (!aView3d.IsNull()) {
aView3d->SetProj(theX, theY, theZ);
- aView3d->FitAll(0.01, true
, true
);
+ aView3d->FitAll(0.01, true);
aView3d->SetZSize(0.);
}
}
aView3d->SetZSize(0.);
}
}
@@
-263,3
+265,12
@@
void NewGeom_SalomeViewer::clearSelectionFilters()
aContext->RemoveFilters();
}
}
aContext->RemoveFilters();
}
}
+
+//***************************************
+void NewGeom_SalomeViewer::update()
+{
+ Handle(AIS_InteractiveContext) aContext = AISContext();
+ if (!aContext.IsNull()) {
+ aContext->UpdateCurrentViewer();
+ }
+}