-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV: Updated stable to latest default
--HG-- branch : stable
- Loading branch information
Showing
944 changed files
with
6,397 additions
and
2,570 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
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
@@ -577,7 +577,7 @@ int main(int argc, char **argv) | |
osg::ref_ptr<osgEarth::Map> map = simExamples::createDefaultExampleMap(); | ||
|
||
// SDK viewer to display the scene | ||
osg::ref_ptr<simVis::Viewer> viewer = new simVis::Viewer(simVis::Viewer::WINDOWED, 200, 100, 1024, 768); | ||
osg::ref_ptr<simVis::Viewer> viewer = new simVis::Viewer(); | ||
viewer->getViewer()->setThreadingModel(osgViewer::ViewerBase::ThreadingModel::SingleThreaded); | ||
viewer->setMap(map.get()); | ||
viewer->setNavigationMode(simVis::NAVMODE_ROTATEPAN); | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
@@ -136,13 +136,13 @@ class ControlPanel : public GUI::BaseGui | |
|
||
// Horizontal width | ||
float horzSize = horzSize_; | ||
IMGUI_ADD_ROW(ImGui::SliderFloat, "Horiz. Size", &horzSize_, 1.f, 400.f, "%.3f", ImGuiSliderFlags_AlwaysClamp); | ||
IMGUI_ADD_ROW(ImGui::SliderFloat, "Horiz. Size", &horzSize_, .01f, 400.f, "%.3f", ImGuiSliderFlags_AlwaysClamp); | ||
if (horzSize != horzSize_) | ||
needUpdate = true; | ||
|
||
// Vertical size | ||
float vertSize = vertSize_; | ||
IMGUI_ADD_ROW(ImGui::SliderFloat, "Vert. Size", &vertSize_, 1.f, 200.f, "%.3f", ImGuiSliderFlags_AlwaysClamp); | ||
IMGUI_ADD_ROW(ImGui::SliderFloat, "Vert. Size", &vertSize_, .01f, 200.f, "%.3f", ImGuiSliderFlags_AlwaysClamp); | ||
if (vertSize != vertSize_) | ||
needUpdate = true; | ||
|
||
|
@@ -495,12 +495,12 @@ ui::Control* createUI(AppData& app) | |
|
||
r++; | ||
grid->setControl(c, r, new ui::LabelControl("Horiz. Size")); | ||
app.horizSlider_ = grid->setControl(c+1, r, new ui::HSliderControl(1.0, 400.0, 45.0, applyUI.get())); | ||
app.horizSlider_ = grid->setControl(c+1, r, new ui::HSliderControl(.01, 400.0, 45.0, applyUI.get())); | ||
app.horizLabel_ = grid->setControl(c+2, r, new ui::LabelControl(app.horizSlider_.get())); | ||
|
||
r++; | ||
grid->setControl(c, r, new ui::LabelControl("Vert. Size")); | ||
app.vertSlider_ = grid->setControl(c+1, r, new ui::HSliderControl(1.0, 200.0, 45.0, applyUI.get())); | ||
app.vertSlider_ = grid->setControl(c+1, r, new ui::HSliderControl(.01, 200.0, 45.0, applyUI.get())); | ||
app.vertLabel_ = grid->setControl(c+2, r, new ui::LabelControl(app.vertSlider_.get())); | ||
|
||
r++; | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
@@ -442,7 +442,7 @@ int main(int argc, char **argv) | |
osg::ref_ptr<osgEarth::Map> map = simExamples::createDefaultExampleMap(); | ||
|
||
// SDK viewer to display the scene | ||
osg::ref_ptr<simVis::Viewer> viewer = new simVis::Viewer(simVis::Viewer::WINDOWED, 200, 100, 1024, 768); | ||
osg::ref_ptr<simVis::Viewer> viewer = new simVis::Viewer(); | ||
viewer->getViewer()->setThreadingModel(osgViewer::ViewerBase::ThreadingModel::SingleThreaded); | ||
viewer->setMap(map.get()); | ||
viewer->setNavigationMode(simVis::NAVMODE_ROTATEPAN); | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
@@ -590,6 +590,12 @@ int main(int argc, char **argv) | |
/// add some stock OSG handlers | ||
viewer->installDebugHandlers(); | ||
|
||
return viewer->run(); | ||
const int status = viewer->run(); | ||
|
||
// clean up resources held in static containers | ||
s_attachments.clear(); | ||
s_overlayNodes.clear(); | ||
|
||
return status; | ||
} | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
@@ -50,7 +50,6 @@ | |
#include "simVis/Scenario.h" | ||
#include "simVis/SceneManager.h" | ||
#include "simVis/Viewer.h" | ||
#include "simVis/GOG/GOG.h" | ||
#include "simVis/GOG/GogNodeInterface.h" | ||
#include "simVis/GOG/Loader.h" | ||
#include "simUtil/ExampleResources.h" | ||
|
@@ -528,7 +527,7 @@ int main(int argc, char** argv) | |
osg::ArgumentParser ap(&argc, argv); | ||
|
||
// start up a SIMDIS viewer | ||
osg::ref_ptr<simVis::Viewer> viewer = new simVis::Viewer(simVis::Viewer::WINDOWED, 100, 100, 800, 800); | ||
osg::ref_ptr<simVis::Viewer> viewer = new simVis::Viewer(); | ||
viewer->setMap(map.get()); | ||
osg::ref_ptr<simVis::SceneManager> scene = viewer->getSceneManager(); | ||
|
||
|
@@ -570,11 +569,10 @@ int main(int argc, char** argv) | |
// add the gog file vector layers. | ||
for (const std::string& gogFile : gogFiles) | ||
{ | ||
|
||
simCore::GOG::Parser parser; | ||
simVis::GOG::Loader loader(parser, scene->getMapNode()); | ||
// sets a default reference location for relative GOGs: | ||
loader.setReferencePosition(simVis::GOG::BSTUR.position()); | ||
loader.setReferencePosition(simCore::GOG::BSTUR); | ||
|
||
std::ifstream is(simCore::streamFixUtf8(gogFile)); | ||
if (!is.is_open()) | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Washington, D.C. 20375-5339 | ||
* | ||
* License for source code is in accompanying LICENSE.txt file. If you did | ||
* not receive a LICENSE.txt with this code, email simdis@enews.nrl.navy.mil. | ||
* not receive a LICENSE.txt with this code, email [email protected]. | ||
* | ||
* The U.S. Government retains all rights to use, duplicate, distribute, | ||
* disclose, or release this software. | ||
|
Oops, something went wrong.