VR-Engage  2.2
Loading...
Searching...
No Matches
glstudioSarFilenameUpdater.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file glstudioSarFilenameUpdater.h
7//! \brief Defines the GLStudio updater for SAR image filenames
8//! \ingroup sarClient
9
10
11#pragma once
12
13#include "sarClientPlugin.h"
14
15#include <vrvGlStudioShared/DtGlStudioObjectAttributeUpdater.h>
16
17//! \brief Updates SAR image filename for GLStudio displays
18//!
19//! This class provides a GLStudio attribute updater that supplies the
20//! current Synthetic Aperture Radar (SAR) image filename to GLStudio elements.
21//! It allows GLStudio displays to show the latest captured SAR image.
22//! \ingroup sarClient
23class DT_DLL_sarClient DtGlStudioSarFilenameUpdater : public makVrv::DtGlStudioObjectAttributeUpdater
24{
25public:
26 //! \brief Default constructor
28
29 //! \brief Virtual destructor
31
32 //! \brief Checks if the filename has been updated
33 //! \return True if the filename has changed, false otherwise
34 virtual bool isDirty() override;
35
36 //! \brief Returns the current SAR image filename
37 //! \param time Current simulation time (not used)
38 //! \return The current SAR image filename
39 virtual std::string value(double time) override { return myFilename; }
40
41protected:
42 //! \brief Current SAR image filename
43 //!
44 //! Defaults to "../userData/radarFx/capture/default.bmp"
45 std::string myFilename;
46
47 //! \brief Flag indicating if this is the first tick
49};
50
51//! \brief Creator for registering the SAR filename updater
52//!
53//! Factory class that creates instances of DtGlStudioSarFilenameUpdater.
54//! Used to register the updater with the GLStudio attribute updater system.
55//! \ingroup sarClient
56class DT_DLL_sarClient DtGlStudioSARFilenameUpdaterCreator : public makVrv::DtGlStudioAttributeUpdaterCreator
57{
58public:
59 //! \brief Default constructor
61
62 //! \brief Virtual destructor
64
65 //! \brief Creates a new instance of the SAR filename updater
66 //! \return Pointer to a newly created SAR filename updater
67 virtual makVrv::DtGlStudioAttributeUpdater* create() const override;
68};
virtual makVrv::DtGlStudioAttributeUpdater * create() const override
Creates a new instance of the SAR filename updater.
DtGlStudioSARFilenameUpdaterCreator()
Default constructor.
virtual ~DtGlStudioSARFilenameUpdaterCreator() override
Virtual destructor.
virtual bool isDirty() override
Checks if the filename has been updated.
bool myFirstTick
Flag indicating if this is the first tick.
Definition glstudioSarFilenameUpdater.h:48
virtual std::string value(double time) override
Returns the current SAR image filename.
Definition glstudioSarFilenameUpdater.h:39
virtual ~DtGlStudioSarFilenameUpdater() override
Virtual destructor.
DtGlStudioSarFilenameUpdater()
Default constructor.
std::string myFilename
Current SAR image filename.
Definition glstudioSarFilenameUpdater.h:45
Defines DLL export macros for the SAR client plugin.
#define DT_DLL_sarClient
Definition sarClientPlugin.h:19