Fork me on GitHub

source: svn/trunk/Utilities/Hector/include/H_RectangularAperture.h@ 149

Last change on this file since 149 was 3, checked in by Xavier Rouby, 16 years ago

first commit

File size: 1.1 KB
RevLine 
[3]1#ifndef _H_RectangularAperture_
2#define _H_RectangularAperture_
3
4/*
5---- Hector the simulator ----
6 A fast simulator of particles through generic beamlines.
7 J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be
8
9 http://www.fynu.ucl.ac.be/hector.html
10
11 Centre de Physique des Particules et de Phénoménologie (CP3)
12 Université Catholique de Louvain (UCL)
13*/
14
15/// \file H_RectangularAperture.h
16/// \brief Defines the rectangular aperture of beamline elements.
17
18// local #includes
19#include "H_Aperture.h"
20
21/// Rectangular apertures
22class H_RectangularAperture : public H_Aperture {
23
24 public:
25 /// Constructors and destructor
26 //@{
27 H_RectangularAperture():H_Aperture(RECTANGULAR,0,0,0,0,0,0) {}
28 H_RectangularAperture(const float,const float,const float,const float);
29 ~H_RectangularAperture() {return;};
30 H_RectangularAperture* clone() const;
31 //@}
32 /// Checks whether the point is inside the aperture or not
33 virtual bool isInside(const float, const float) const;
34 /// Draws the aperture shape.
35 virtual void draw(const float scale=1) const;
36 virtual void printProperties() const;
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.