Gui: Add alignToSelection() method and command
This commit is contained in:
@@ -408,6 +408,10 @@ bool View3DInventor::onMsg(const char* pMsg, const char** ppReturn)
|
||||
getGuiDocument()->saveCopy();
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("AlignToSelection", pMsg) == 0) {
|
||||
_viewer->alignToSelection();
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("ZoomIn", pMsg) == 0) {
|
||||
View3DInventorViewer* viewer = getViewer();
|
||||
viewer->navigationStyle()->zoomIn();
|
||||
@@ -511,6 +515,9 @@ bool View3DInventor::onHasMsg(const char* pMsg) const
|
||||
else if(strncmp("Dump",pMsg,4) == 0) {
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("AlignToSelection", pMsg) == 0) {
|
||||
return true;
|
||||
}
|
||||
if (strcmp("ZoomIn", pMsg) == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user