src/toolsets/viewtoolset.h

changeset 1437
1a77c6156db7
parent 1390
3eace926af7f
equal deleted inserted replaced
1436:241d3e452b32 1437:1a77c6156db7
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #pragma once 19 #pragma once
20 #include "toolset.h" 20 #include "toolset.h"
21 #include "glrenderer.h"
21 22
22 class ViewToolset : public Toolset 23 class ViewToolset : public Toolset
23 { 24 {
24 Q_OBJECT 25 Q_OBJECT
25 26
46 Q_INVOKABLE void setCullDepth(); 47 Q_INVOKABLE void setCullDepth();
47 Q_INVOKABLE void visibilityHide(); 48 Q_INVOKABLE void visibilityHide();
48 Q_INVOKABLE void visibilityReveal(); 49 Q_INVOKABLE void visibilityReveal();
49 Q_INVOKABLE void visibilityToggle(); 50 Q_INVOKABLE void visibilityToggle();
50 Q_INVOKABLE void wireframe(); 51 Q_INVOKABLE void wireframe();
52
53 Q_INVOKABLE void newTopCamera();
54 Q_INVOKABLE void newFrontCamera();
55 Q_INVOKABLE void newLeftCamera();
56 Q_INVOKABLE void newBottomCamera();
57 Q_INVOKABLE void newBackCamera();
58 Q_INVOKABLE void newRightCamera();
59 Q_INVOKABLE void newFreeCamera();
60 Q_INVOKABLE void selectTopCamera();
61 Q_INVOKABLE void selectFrontCamera();
62 Q_INVOKABLE void selectLeftCamera();
63 Q_INVOKABLE void selectBottomCamera();
64 Q_INVOKABLE void selectBackCamera();
65 Q_INVOKABLE void selectRightCamera();
66 Q_INVOKABLE void selectFreeCamera();
67
68 private:
69 void createNewCamera(gl::CameraType cameraType);
70 void selectCamera(gl::CameraType cameraType);
51 }; 71 };

mercurial