Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/cameraman.h @ 10404

Last change on this file since 10404 was 10404, checked in by patrick, 19 years ago

correct fading

File size: 1.4 KB
Line 
1#ifndef _CAMERAMAN_H
2#define _CAMERAMAN_H
3
4
5#include <vector>
6#include "base_object.h"
7
8class BlackScreen;
9class Camera;
10class PNode;
11
12class CameraMan : public BaseObject {
13  ObjectListDeclaration(CameraMan);
14
15  private:
16    Camera* currentCam;
17    float nearClip;
18    float farClip;
19    BlackScreen* fadeToBlack;
20
21  public:
22    std::vector<Camera*> cameras;
23    CameraMan(const TiXmlElement* root = NULL);
24    void setCam(int CameraNo);
25    void setCam(const std::string& camName);
26    void setCam(Camera* camera);
27
28    void createCam(const TiXmlElement* root);
29    void moveCam(int x, int y, int z,  int camNo);
30    void moveCurrCam(int x, int y, int z);
31    void changeTarget(int camNo, const std::string& className,const std::string& objectName);
32    void changeTarget(const std::string& camName,const std::string& className, const std::string& objectName);
33    void changeCurrTarget(const std::string& className, const std::string& objectName);
34    void atachCurrTarget(PNode* target);
35    void jumpCam(int x, int y, int z, int camNo);
36    void jumpCurrCam(int x, int y, int z);
37    void changeSpeed(float speed);
38    void setClipRegion(float nearClip, float farClip);
39    void togglFade();
40
41    void cameraInfo();
42
43    /// LOADING
44    virtual void loadParams(const TiXmlElement* root);
45
46    /// POLLING
47    float getCurrCameraCoorX();
48    float getCurrCameraCoorY();
49    float getCurrCameraCoorZ();
50    bool cameraIsInVector(Camera* camera);
51
52};
53
54#endif /* _CAMERAMAN_H */
Note: See TracBrowser for help on using the repository browser.