17 #ifndef GZ_RENDERING_BASEMARKER_HH_
18 #define GZ_RENDERING_BASEMARKER_HH_
20 #include <gz/utils/SuppressWarning.hh>
30 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
44 public:
virtual void PreRender()
override;
47 public:
virtual void Destroy()
override;
50 public:
virtual void SetLifetime(
const
51 std::chrono::steady_clock::duration &_lifetime)
override;
54 public:
virtual std::chrono::steady_clock::duration Lifetime()
58 public:
virtual void SetType(
const MarkerType _markerType)
override;
61 public:
virtual MarkerType Type()
const override;
64 public:
virtual void SetSize(
double _size)
override;
67 public:
virtual double Size()
const override;
70 public:
virtual void SetLayer(int32_t _layer)
override;
73 public:
virtual int32_t Layer()
const override;
76 public:
virtual void ClearPoints()
override;
79 public:
virtual void AddPoint(
double _x,
88 public:
virtual void SetPoint(
unsigned int _index,
92 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
93 protected: std::chrono::steady_clock::duration lifetime =
94 std::chrono::steady_clock::duration::zero();
95 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
98 protected: int32_t layer = 0;
101 protected:
bool markerDirty =
false;
108 protected:
double size = 1.0;
128 const std::chrono::steady_clock::duration &_lifetime)
130 this->lifetime = _lifetime;
131 this->markerDirty =
true;
138 return this->lifetime;
145 this->layer = _layer;
146 this->markerDirty =
true;
160 this->markerType = _markerType;
161 this->markerDirty =
true;
168 return this->markerType;
176 this->markerDirty =
true;