-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gui: add virtual method containsViewProvider to MDIView and re-implem…
…ent it in some sub-classes Improve Document::setActiveView to not always switch to the first 3D view but check the currently active view before
- Loading branch information
Showing
8 changed files
with
73 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -968,6 +968,15 @@ SbBool View3DInventorViewer::hasViewProvider(ViewProvider* pcProvider) const | |
return _ViewProviderSet.find(pcProvider) != _ViewProviderSet.end(); | ||
} | ||
|
||
SbBool View3DInventorViewer::containsViewProvider(const ViewProvider* vp) const | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wwmayer
Author
Contributor
|
||
{ | ||
SoSearchAction sa; | ||
sa.setNode(const_cast<ViewProvider*>(vp)->getRoot()); | ||
sa.setSearchingAll(true); | ||
sa.apply(getSoRenderManager()->getSceneGraph()); | ||
return sa.getPath() != nullptr; | ||
} | ||
|
||
/// adds an ViewProvider to the view, e.g. from a feature | ||
void View3DInventorViewer::addViewProvider(ViewProvider* pcProvider) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@wwmayer Any reason to use SoSearchAction instead of just call hasViewProvider() function above? I am asking because for larger scene this causes noticeable slow down.