source: trunk/packages/vizservers/nanovis/NvCamera.h @ 1194

Last change on this file since 1194 was 953, checked in by gah, 16 years ago

remove warnings from compile

File size: 1.7 KB
Line 
1
2/*
3 * ----------------------------------------------------------------------
4 * NvCamera.h : NvCamera class
5 *
6 * ======================================================================
7 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
8 *           Purdue Rendering and Perceptualization Lab (PURPL)
9 *
10 *  Copyright (c) 2004-2006  Purdue Research Foundation
11 *
12 *  See the file "license.terms" for information on usage and
13 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14 * ======================================================================
15 */
16
17#ifndef _CAMERA_H_
18#define _CAMERA_H_
19
20#include "Vector3.h"
21
22class NvCamera {
23
24public:
25    Vector3 location;           //Location of the camera in the scene
26    Vector3 target;             //Location the camera is looking at. 
27                                //location and target: two points define the
28                                //line-of-sight
29    Vector3 angle;              //rotation angles of camera along x, y, z
30    int width;                  //screen size
31    int height;                 //screen size
32    int startX;
33    int startY;
34
35    ~NvCamera();
36    NvCamera(int startx, int starty, int w, int h,
37             double loc_x, double loc_y, double loc_z,
38             double target_x, double target_y, double target_z,
39             int angle_x, int angle_y, int angle_z);
40    void move(double loc_x, double loc_y, double loc_z); //move location of camera
41    void aim(double target_x, double target_y, double target_z); //change target point
42    void rotate(double angle_x, double angle_y, double angle_z); //change target point
43    void activate(); //make the camera setting active, this has to be called
44                     //before drawing things.
45    void set_screen_size(int startx, int starty, int w, int h);
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.