wPlot2D version: 0.1.0
A lightweight C++ library for clear and customizable 2D scientific plots.
Loading...
Searching...
No Matches
wNotchEntity.hpp
Go to the documentation of this file.
1/*
2+---------------------------------------------------------------------------------------------------------------------------------------------------+
3Created by Wilfried Koch.
4Copyright @ 2025 Wilfried Koch. All rights reserved.
5+---------------------------------------------------------------------------------------------------------------------------------------------------+
6*/
7
8#ifndef W_NOTCH_ENTITY_HPP
9#define W_NOTCH_ENTITY_HPP
10
12
13#pragma GCC diagnostic push
14#pragma GCC diagnostic ignored "-Wfloat-equal"
15#pragma GCC diagnostic ignored "-Wswitch-default"
16#include <SFML/Graphics.hpp>
17#pragma GCC diagnostic pop
18
19namespace wPlot2D
20{
21
22 enum class AxisType;
23
52 {
53 public:
58 NotchEntity( AxisType type );
59
63 virtual ~NotchEntity( ) = default;
64
74 void render( sf::RenderWindow& window );
75
76 private:
77 AxisType mAlignment;
78 };
79
80} // namespace wPlot2D
81
82#endif
Represents an entity in the ECS (Entity-Component System) architecture.
Definition wEntity.hpp:60
virtual ~NotchEntity()=default
Virtual destructor.
void render(sf::RenderWindow &window)
Renders the notch using SFML.
Definition wNotchEntity.cpp:35
NotchEntity(AxisType type)
Constructs a NotchEntity aligned to a given axis.
Definition wNotchEntity.cpp:23
Definition wAxisEntity.cpp:17
AxisType
Enum representing the type of axis to render.
Definition wAxisEntity.hpp:35