| 1 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
|
| 3 |
/*************************************************************************** |
| 4 |
* Copyright (c) 2023 Werner Mayer <wmayer[at]users.sourceforge.net> * |
| 5 |
* * |
| 6 |
* This file is part of FreeCAD. * |
| 7 |
* * |
| 8 |
* FreeCAD is free software: you can redistribute it and/or modify it * |
| 9 |
* under the terms of the GNU Lesser General Public License as * |
| 10 |
* published by the Free Software Foundation, either version 2.1 of the * |
| 11 |
* License, or (at your option) any later version. * |
| 12 |
* * |
| 13 |
* FreeCAD is distributed in the hope that it will be useful, but * |
| 14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * |
| 16 |
* Lesser General Public License for more details. * |
| 17 |
* * |
| 18 |
* You should have received a copy of the GNU Lesser General Public * |
| 19 |
* License along with FreeCAD. If not, see * |
| 20 |
* <https://www.gnu.org/licenses/>. * |
| 21 |
* * |
| 22 |
**************************************************************************/ |
| 23 |
|
| 24 |
#ifndef GUI_CAMERA_H |
| 25 |
#define GUI_CAMERA_H |
| 26 |
|
| 27 |
#include <Inventor/SbRotation.h> |
| 28 |
#include <Base/Rotation.h> |
| 29 |
#include <FCGlobal.h> |
| 30 |
|
| 31 |
namespace Gui |
| 32 |
{ |
| 33 |
|
| 34 |
class GuiExport Camera |
| 35 |
{ |
| 36 |
public: |
| 37 |
enum Orientation |
| 38 |
{ |
| 39 |
Top, |
| 40 |
Bottom, |
| 41 |
Front, |
| 42 |
Rear, |
| 43 |
Right, |
| 44 |
Left, |
| 45 |
Isometric, |
| 46 |
Dimetric, |
| 47 |
Trimetric, |
| 48 |
}; |
| 49 |
|
| 50 |
static SbRotation top(); |
| 51 |
static SbRotation bottom(); |
| 52 |
static SbRotation front(); |
| 53 |
static SbRotation rear(); |
| 54 |
static SbRotation right(); |
| 55 |
static SbRotation left(); |
| 56 |
static SbRotation isometric(); |
| 57 |
static SbRotation dimetric(); |
| 58 |
static SbRotation trimetric(); |
| 59 |
|
| 60 |
static SbRotation rotation(Orientation view); |
| 61 |
static Base::Rotation convert(Orientation view); |
| 62 |
static Base::Rotation convert(const SbRotation&); |
| 63 |
static SbRotation convert(const Base::Rotation&); |
| 64 |
}; |
| 65 |
|
| 66 |
} // namespace Gui |
| 67 |
|
| 68 |
#endif // GUI_CAMERA_H |