soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SCamera.h
1/*
2 * Copyright 2006 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8// Inspired by Rob Johnson's most excellent QuickDraw GX sample code
9
10#ifndef _SCamera_DEFINED_
11#define _SCamera_DEFINED_
12
13#include "SMatrix.h"
14
15SNSBEGIN
16class S3DView;
17class SOUI_EXP SCamera {
18 public:
19 SCamera();
20 ~SCamera();
21
22 void save();
23 void restore();
24
25 void translate(float x, float y, float z);
26 void rotateX(float deg);
27 void rotateY(float deg);
28 void rotateZ(float deg);
29
30 void setCameraLocation(float x, float y, float z);
31 float getCameraLocationX();
32 float getCameraLocationY();
33 float getCameraLocationZ();
34
35 void getMatrix(SMatrix *out) const;
36
37 private:
38 SCamera(const SCamera &);
39 SCamera &operator=(const SCamera &);
40
41 S3DView *m_priv;
42};
43SNSEND
44#endif