Skip to content

File ViewerDlg.h

File List > GUI > ViewerDlg.h

Go to the documentation of this file

//=============================================================================
// Copyright (c) 2026 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
//
// This software is the confidential and proprietary information of FLIR
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
// shall not disclose such Confidential Information and shall use it only in
// accordance with the terms of the license agreement you entered into
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
//
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
// THIS SOFTWARE OR ITS DERIVATIVES.
//=============================================================================

#pragma once

#include "Spinnaker.h"

namespace Spinnaker
{
    namespace GUI
    {
        class SPINNAKER_API ViewerDlg
        {
          public:
            ViewerDlg(void);

            ~ViewerDlg(void);

            bool Connect(Spinnaker::CameraPtr camera);

            void StartStreaming();

            void StopStreaming();

            std::string GetTitle();

            void SetTitle(std::string title);

            void Disconnect();

            bool IsConnected();

            void Open();

            void Close();

          protected:
            Spinnaker::GUI_WPF::ImageDrawingWindow* m_pWPFViewer;
        };

    } // namespace GUI
} // namespace Spinnaker