blob: bbac319132004d97d3c3ca7320204eb2d8fd4da6 (
plain) (
tree)
|
|
/*
* 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_ */
|