mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0023654: Problem with displaying vertices in OCC view after closing all OCC views and opening new one
Fixed graphic structure recompute after closing view. Removed collector and all corresponding logic and methods from AIS_InteractiveContext. Method AIS_InteractiveContext::Erase() now hide object from viewer without deleting resources. Erased objects now properly recomputed after closing view. Samples update Removed useless method AIS_InteractiveContext::EraseMode() Documentation update Warnings fix Regressions fix
This commit is contained in:
@@ -404,7 +404,7 @@ void Application::open()
|
||||
}
|
||||
|
||||
// Display the voxels
|
||||
myViewer->getIC()->EraseAll(false, false);
|
||||
myViewer->getIC()->EraseAll(false);
|
||||
Voxel_DS* ds = myBoolVoxels;
|
||||
if (!ds)
|
||||
ds = myColorVoxels;
|
||||
@@ -848,7 +848,7 @@ void Application::testROctBoolDS()
|
||||
|
||||
|
||||
// Display
|
||||
myViewer->getIC()->EraseAll(false, false);
|
||||
myViewer->getIC()->EraseAll(false);
|
||||
initPrs();
|
||||
myVoxels->SetBoolVoxels(0);
|
||||
myVoxels->SetColorVoxels(0);
|
||||
@@ -1506,7 +1506,7 @@ void Application::convert(const int ivoxel)
|
||||
}
|
||||
}
|
||||
|
||||
myViewer->getIC()->EraseAll(false, false);
|
||||
myViewer->getIC()->EraseAll(false);
|
||||
|
||||
Voxel_DS* ds = myBoolVoxels;
|
||||
if (!ds)
|
||||
@@ -1757,7 +1757,7 @@ void Application::displayColorScale()
|
||||
|
||||
void Application::displayWaves()
|
||||
{
|
||||
myViewer->getIC()->EraseAll(false, false);
|
||||
myViewer->getIC()->EraseAll(false);
|
||||
|
||||
// Make voxels
|
||||
if (myBoolVoxels)
|
||||
@@ -1902,7 +1902,7 @@ void Application::sphere()
|
||||
|
||||
void Application::load(const TopoDS_Shape& S)
|
||||
{
|
||||
myViewer->getIC()->EraseAll(false, false);
|
||||
myViewer->getIC()->EraseAll(false);
|
||||
|
||||
// Delete voxels of previous shape.
|
||||
if (myBoolVoxels)
|
||||
@@ -1948,7 +1948,7 @@ void Application::load(const TopoDS_Shape& S)
|
||||
|
||||
void Application::displayCut()
|
||||
{
|
||||
myViewer->getIC()->EraseAll(false, false);
|
||||
myViewer->getIC()->EraseAll(false);
|
||||
|
||||
// Make a sphere with a lot of toruses,
|
||||
// cut the toruses from the sphere.
|
||||
@@ -2043,7 +2043,7 @@ void Application::displayCut()
|
||||
|
||||
void Application::displayCollisions()
|
||||
{
|
||||
myViewer->getIC()->EraseAll(false, false);
|
||||
myViewer->getIC()->EraseAll(false);
|
||||
|
||||
// Make a big box with a lot of small spheres inside.
|
||||
double x = 0.0, y = 0.0, z = 0.0, xlen = 100.0, ylen = 100.0, zlen = 100.0, r = 10.0;
|
||||
|
Reference in New Issue
Block a user