RayZaler 0.1
The free opto-mechanical simulation framework
LensletArray.h
1//
2// Copyright (c) 2024 Gonzalo José Carracedo Carballal
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU Lesser General Public License as
6// published by the Free Software Foundation, either version 3 of the
7// License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU Lesser General Public License for more details.
13//
14// You should have received a copy of the GNU Lesser General Public
15// License along with this program. If not, see
16// <http://www.gnu.org/licenses/>
17//
18
19#ifndef _RAY_PROCESSORS_LENSLET_ARRAY_H
20#define _RAY_PROCESSORS_LENSLET_ARRAY_H
21
22#include <RayTracingEngine.h>
23
24namespace RZ {
25 class ReferenceFrame;
26
28 Real m_lensletRadius;
29 Real m_rCurv = 1;
30 Real m_convex = true;
31 Real m_center = .866;
32 Real m_K = 0;
33
34 bool m_dirty = true;
35
36 void recalculateDimensions();
37
38 public:
39 Real
40 lensletRadius() const
41 {
42 return m_lensletRadius;
43 }
44
46 void setCurvatureRadius(Real);
47 void setRefractiveIndex(Real, Real);
48 void setConvex(bool);
49 void setWidth(Real);
50 void setConicConstant(Real);
51 void setHeight(Real);
52 void setCols(unsigned);
53 void setRows(unsigned);
54 virtual std::string name() const override;
55 };
56}
57
58#endif // _RAY_PROCESSORS_LENSLET_ARRAY_H
Definition: LensletArray.h:27
Definition: MediumBoundary.h:35