RayZaler 0.1
The free opto-mechanical simulation framework
RZGLModel.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 _RZ_GL_MODEL_H
20#define _RZ_GL_MODEL_H
21
22#include <GLModel.h>
23#include <list>
24
25namespace RZ {
26 class Element;
27 class OMModel;
28
29 class RZGLModel : public GLModel {
30 OMModel *m_model = nullptr; // Borrowed
31 bool m_showApertures = false;
32 bool m_showElements = true;
33 Element *m_bbElement = nullptr;
34
35 void displayModel(OMModel *);
36
37 public:
38 virtual void display() override;
39 void pushOptoMechanicalModel(OMModel *);
40 void setShowApertures(bool);
41 void setShowElements(bool);
42 void setHighlightedBoundingBox(Element *);
43
44 inline OMModel *
45 omModel() const
46 {
47 return m_model;
48 }
49 };
50}
51
52#endif // _RZ_GL_MODEL_H
Definition: Element.h:173
Definition: GLModel.h:37
Definition: OMModel.h:204
Definition: RZGLModel.h:29