1
0
Fork 0
mirror of https://github.com/noerw/concentric-clock synced 2025-07-11 00:00:21 +02:00
concentric-clock/src/SegmentRing.h
noerw ee7d52d6a3 introduce proper folder structure
files are organized in src/ res/ bin/ now, makefiles were adapted
2015-09-19 20:53:46 +02:00

27 lines
No EOL
1 KiB
C++

#pragma once
#include <SFML/Graphics.hpp>
#include <vector>
#include <string>
#include "CircularSector.h"
namespace CClock {
enum class ColorSchema { UNI, ALTERNATING, HALF };
class SegmentRing : public sf::Drawable, public sf::Transformable {
private:
std::vector<CircularSector> segments_;
std::vector<sf::Text> labels_;
public:
explicit SegmentRing();
explicit SegmentRing(double radius, double thickness, double spacing, unsigned int segmentCount,
unsigned int detailLevel = 30, ColorSchema colorSchema = ColorSchema::UNI,
sf::Color color1 = sf::Color::White, sf::Color color2 = sf::Color::White,
std::string labels[] = nullptr, sf::Font* font = nullptr, unsigned int textSize = 30, sf::Color textColor = sf::Color::Black);
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;
};
}