Skip to content
Snippets Groups Projects
Commit 39505633 authored by MelanieCarriere's avatar MelanieCarriere Committed by MelanieCarriere
Browse files

[api] Add a boolean parameter to be able to have the sensor information concisely

The status bar of LidarView is the lower part of Lidarview.
This contains :
- The pcap filename
- Information about the sensor displayed in Lidarview
- The paraview progress bar
- The application logo

The pcap filename was cropped if it was too long (longer than 43 characters).
This is too short from the clients point of view.

'GetSensorInformation' was called to display the sensor information part.
For some sensor, this can be very long.
By shorting this part we can allow more space to the pcap name.
parent 11a030bb
No related branches found
No related tags found
1 merge request!146[feature] Add a function to Get the sensor information concisely
Pipeline #201562 failed
Pipeline: LidarView

#201563

    ...@@ -112,9 +112,10 @@ public: ...@@ -112,9 +112,10 @@ public:
    /** /**
    * @brief GetSensorInformation return information to display to the user * @brief GetSensorInformation return information to display to the user
    * @param shortVersion True to have a succinct version of the sensor information
    * @return * @return
    */ */
    virtual std::string GetSensorInformation() = 0; virtual std::string GetSensorInformation(bool shortVersion = false) = 0;
    /** /**
    * @brief CreateNewFrameInformation create a new frame information * @brief CreateNewFrameInformation create a new frame information
    ......
    ...@@ -35,9 +35,9 @@ int vtkLidarReader::FillOutputPortInformation(int port, vtkInformation* info) ...@@ -35,9 +35,9 @@ int vtkLidarReader::FillOutputPortInformation(int port, vtkInformation* info)
    } }
    //----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
    std::string vtkLidarReader::GetSensorInformation() std::string vtkLidarReader::GetSensorInformation(bool shortVersion)
    { {
    return this->Interpreter->GetSensorInformation(); return this->Interpreter->GetSensorInformation(shortVersion);
    } }
    //----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
    ......
    ...@@ -44,8 +44,9 @@ public: ...@@ -44,8 +44,9 @@ public:
    /** /**
    * @brief GetSensorInformation return some sensor information used for display purposes * @brief GetSensorInformation return some sensor information used for display purposes
    * @param shortVersion True to have a succinct version of the sensor information
    */ */
    virtual std::string GetSensorInformation(); virtual std::string GetSensorInformation(bool shortVersion = false);
    /** /**
    * @copydoc vtkLidarPacketInterpreter::CalibrationFileName * @copydoc vtkLidarPacketInterpreter::CalibrationFileName
    ......
    ...@@ -43,9 +43,9 @@ int vtkLidarStream::FillOutputPortInformation(int port, vtkInformation* info) ...@@ -43,9 +43,9 @@ int vtkLidarStream::FillOutputPortInformation(int port, vtkInformation* info)
    } }
    //----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
    std::string vtkLidarStream::GetSensorInformation() std::string vtkLidarStream::GetSensorInformation(bool shortVersion)
    { {
    return this->GetLidarInterpreter()->GetSensorInformation(); return this->GetLidarInterpreter()->GetSensorInformation(shortVersion);
    } }
    //----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
    ......
    ...@@ -30,8 +30,9 @@ public: ...@@ -30,8 +30,9 @@ public:
    /** /**
    * @brief GetSensorInformation return some sensor information used for display purposes * @brief GetSensorInformation return some sensor information used for display purposes
    * @param shortVersion True to have a succinct version of the sensor information
    */ */
    virtual std::string GetSensorInformation(); virtual std::string GetSensorInformation(bool shortVersion = false);
    /** /**
    * @copydoc vtkLidarPacketInterpreter::CalibrationFileName * @copydoc vtkLidarPacketInterpreter::CalibrationFileName
    ......
    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