summaryrefslogtreecommitdiff
path: root/src/gui/ElementRenderer.h
blob: bbac319132004d97d3c3ca7320204eb2d8fd4da6 (plain) (blame)
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
39
40
41
42
/*
 * ElementRenderer.h
 *
 *  Created on: Apr 2, 2011
 *      Author: jakob
 */

#ifndef ELEMENTRENDERER_H_
#define ELEMENTRENDERER_H_

#include <stdlib.h>
#include "ElementVisitor.h"

namespace vhc {


class ElementRenderer: public ElementVisitor {

private:
	static const int SLICES = 100;
	static const int STACKS_PER_LENGTH = 20;

	void drawStraight(StraightElement* straight);

public:

	ElementRenderer();

	virtual ~ElementRenderer();

	virtual void visit(StraightElement* straight);

	virtual void visit(Quadrupole* quadrupole);

	virtual void visit(Dipole* dipole);

};


}

#endif /* ELEMENTRENDERER_H_ */