File: renderer.h

package info (click to toggle)
gfan 0.5%2Bdfsg-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,296 kB
  • ctags: 5,612
  • sloc: cpp: 39,675; makefile: 453; sh: 1
file content (28 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (8)
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
#ifndef RENDERER_H_INCLUDED
#define RENDERER_H_INCLUDED

#include "polynomial.h"
#include <stdio.h>

class StandardMonomialRenderer
{
  FILE *f;
  int numberOfDrawingsPerLine;
  int maxEntry;
  int boxSize;
  int position;
  int getOffsetX();
  int getOffsetY();
  bool isInInitialIdeal(const PolynomialSet &s,int x, int y, int z);
  int trace(const PolynomialSet &s, int x, int y, int z, int d);
  void putPoint(float x, float y, int rotation, float size);
  void drawQuad(int x, int y, int z, int rotation, int color, int intensity=25);
 public:
  StandardMonomialRenderer(FILE *f);
  void render(const PolynomialSet &p);
  void setMaxEntry(int maxEntry);
  void setBoxSize(int boxSize);
  void setNumberOfDrawingsPerLine(int numberOfDrawingsPerLine);
};

#endif