Skip to content
Snippets Groups Projects
Commit 4f020657 authored by Timothée Couble's avatar Timothée Couble
Browse files

[refact] Add on close data trigger in core manager

Move the onClose python applogic methods in c++ LidarCoreManager.
parent 701f58c9
No related branches found
No related tags found
No related merge requests found
Pipeline #299821 canceled
Pipeline: LidarView

#299822

    ......@@ -489,6 +489,21 @@ void lqLidarCoreManager::onEnableCrashAnalysis(bool crashAnalysisEnabled)
    Settings->setValue("LidarPlugin/MainWindow/EnableCrashAnalysis", crashAnalysisEnabled);
    }
    //-----------------------------------------------------------------------------
    void lqLidarCoreManager::onCloseAllData()
    {
    // Remove lidars
    RemoveAllProxyTypeFromPipelineBrowser<vtkLidarReader>();
    RemoveAllProxyTypeFromPipelineBrowser<vtkLidarStream>();
    RemoveAllProxyTypeFromPipelineBrowser<vtkPositionOrientationPacketReader>();
    // Reset Camera
    this->onResetCameraToForwardView();
    // WIP Disable actions
    this->runPython("lv.disableSaveActions()\n");
    }
    //-----------------------------------------------------------------------------
    void lqLidarCoreManager::onResetDefaultSettings()
    {
    ......
    ......@@ -98,6 +98,7 @@ public Q_SLOTS:
    void onEnableCrashAnalysis(bool crashAnalysisEnabled);
    void onCloseAllData();
    void onResetDefaultSettings();
    void onMeasurementGrid(bool gridVisible);
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment