File: Zooming.hpp

package info (click to toggle)
vite 1.2%2Bsvn%2Bgit4.c6c0ce7-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,544 kB
  • sloc: cpp: 32,343; makefile: 461; sh: 144; ansic: 67
file content (27 lines) | stat: -rw-r--r-- 530 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
#ifndef QUADTREE_HPP
#define QUADTREE_HPP

#include <QtOpenGL/QtOpenGL>

#include "../Formats/SymbolMatrix.hpp"

class Zooming
{
public:
    static const int DEFAULT_LEVEL = 10;
    static const int DEFAULT_LEVEL_POWER_2 = 1024;

public:
    Zooming(symbol_matrix_t* matrix);
    ~Zooming();

    GLfloat getColor(int x, int y);

    void move(double xStart, double xEnd, double yStart, double yEnd);

private:
    symbol_matrix_t *m_matrix;
    GLfloat          m_colors[DEFAULT_LEVEL_POWER_2][DEFAULT_LEVEL_POWER_2];
};

#endif