Skip to content

Commit 93a0795

Browse files
committed
linux fixes
1 parent 78d3556 commit 93a0795

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/OpenCOVER/plugins/hlrs/LamurePointCloud/Lamure.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static opencover::FileHandler handler = {
102102
};
103103

104104

105-
Lamure::Lamure() :coVRPlugin(COVER_PLUGIN_NAME), opencover::ui::Owner("Lamure", opencover::cover->ui)
105+
Lamure::Lamure() :coVRPlugin(COVER_PLUGIN_NAME), opencover::ui::Owner("LamurePlugin", opencover::cover->ui)
106106
{
107107
fprintf(stderr, "LamurePlugin\n");
108108
opencover::coVRFileManager::instance()->registerFileHandler(&handler);
@@ -214,6 +214,9 @@ int Lamure::unloadBvh(const char* filename, const char* covise_key)
214214

215215

216216
bool Lamure::init2() {
217+
if(initialized)
218+
return false;
219+
initialized = true;
217220
std::cout << "init2()" << std::endl;
218221

219222
plugin->loadSettingsFromCovise();
@@ -257,6 +260,7 @@ bool Lamure::init2() {
257260
opencover::coVRNavigationManager::instance()->setNavMode("Point");
258261
if (m_settings.use_initial_view || m_settings.use_initial_navigation)
259262
plugin->applyInitialTransforms();
263+
return true;
260264
}
261265

262266

src/OpenCOVER/plugins/hlrs/LamurePointCloud/Lamure.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ class Lamure : public opencover::coVRPlugin, public opencover::ui::Owner
266266
ModelInfo& getModelInfo() { return m_model_info; }
267267
RenderInfo& getRenderInfo() { return m_render_info; }
268268
Trackball& getTrackball() { return m_trackball; }
269+
bool initialized = false;
269270
bool getProvValid() const { return prov_valid; }
270271
lamure::ren::Data_Provenance& getDataProvenance() { return m_data_provenance; }
271272

src/OpenCOVER/plugins/hlrs/LamurePointCloud/LamureUI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <algorithm>
77
#include <iostream>
88

9-
LamureUI::LamureUI(Lamure* plugin, const std::string& name) : opencover::ui::Owner(name, opencover::cover->ui), m_plugin(plugin)
9+
LamureUI::LamureUI(Lamure* plugin, const std::string& name) : m_plugin(plugin)
1010
{
1111

1212
}
@@ -18,7 +18,7 @@ LamureUI::~LamureUI()
1818

1919
void LamureUI::setupUi() {
2020
std::cout << "LamureUI::setupUi()" << std::endl;
21-
m_lamure_menu = new opencover::ui::Menu("Lamure", this);
21+
m_lamure_menu = new opencover::ui::Menu("Lamure", m_plugin);
2222
m_lamure_menu->setText("Lamure");
2323
m_lamure_menu->allowRelayout(true);
2424

src/OpenCOVER/plugins/hlrs/LamurePointCloud/LamureUI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class Lamure;
1717

18-
class LamureUI : public opencover::ui::Owner {
18+
class LamureUI {
1919
public:
2020
LamureUI(Lamure* lamure_plugin, const std::string& name);
2121
~LamureUI();

0 commit comments

Comments
 (0)