File: TechTreeArcs.h

package info (click to toggle)
freeorion 0.5.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 194,920 kB
  • sloc: cpp: 186,821; python: 40,979; ansic: 1,164; xml: 721; makefile: 32; sh: 7
file content (38 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef TECHTREEARCS_H
#define TECHTREEARCS_H

#include <memory>
#include <set>
#include <string>

class TechTreeLayout;

/// This class is responsible for drawing the lines
/// of a TechTreeLayout on screen.
class TechTreeArcs {
public:
    TechTreeArcs();

    TechTreeArcs(TechTreeArcs& other) = delete;

    TechTreeArcs(const TechTreeLayout& layout, const std::set<std::string>& techs_to_show);

    ~TechTreeArcs();

    TechTreeArcs& operator=(TechTreeArcs& other) = delete;

    void Render(double scale);

    /// Clears the arcs
    void Reset();
    /// Recalculates the arcs
    void Reset(const TechTreeLayout& layout, const std::set<std::string>& techs_to_show);

private:
    class Impl;

    std::unique_ptr<Impl> m_impl;
};


#endif