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