summaryrefslogtreecommitdiff
path: root/src/main/StraightElement.h
blob: 6de596a3bc88eaaf0b21f532448c88c59bbfad87 (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
/*
 * StraightElement.h
 *
 *  Created on: Mar 22, 2011
 *      Author: jakob
 */

#ifndef STRAIGHTELEMENT_H_
#define STRAIGHTELEMENT_H_

#include "Vector3D.h"
#include "Element.h"
#include "Particle.h"
#include "ElementVisitor.h"

namespace vhc {


class StraightElement: public Element {

public:

	StraightElement(const Vector3D& entry, const Vector3D& exit, double sectionRadius, Element* next = NULL);

	virtual ~StraightElement();

	virtual bool hasHit(const Particle& particle) const;

	virtual bool isPast(const Particle& particle) const;

	virtual std::string getType() const;
	virtual std::string toString() const;

	virtual void accept(const ElementVisitor& v) const;

	virtual StraightElement* clone() const;

};

}

#endif /* STRAIGHTELEMENT_H_ */