| 
                Last change
                  on this file since 10389 was
                  10388,
                  checked in by snellen, 19 years ago
           | 
        
        
          | 
               
made camera and cameraman scriptable 
 
           | 
        
        | 
            File size:
            999 bytes
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [10192] | 1 | #ifndef _CAMERAMAN_H | 
|---|
 | 2 | #define _CAMERAMAN_H | 
|---|
 | 3 |  | 
|---|
 | 4 | #include "p_node.h" | 
|---|
| [10197] | 5 | #include "camera.h" | 
|---|
| [10206] | 6 | #include <vector> | 
|---|
| [10272] | 7 | #include "base_object.h" | 
|---|
| [10330] | 8 | #include "blackscreen.h" | 
|---|
| [10192] | 9 |  | 
|---|
| [10343] | 10 | class CameraMan : public BaseObject { | 
|---|
 | 11 |   ObjectListDeclaration(CameraMan); | 
|---|
| [10192] | 12 |  | 
|---|
 | 13 |   private: | 
|---|
| [10197] | 14 |     Camera* currentCam; | 
|---|
| [10272] | 15 |     float nearClip; | 
|---|
 | 16 |     float farClip; | 
|---|
| [10342] | 17 |     BlackScreen* fadeToBlack; | 
|---|
| [10192] | 18 |  | 
|---|
 | 19 |   public: | 
|---|
| [10257] | 20 |     std::vector<Camera*> cameras; | 
|---|
| [10343] | 21 |     CameraMan(); | 
|---|
| [10193] | 22 |     void setCam(int CameraNo); | 
|---|
| [10192] | 23 |     void createCam(); | 
|---|
| [10204] | 24 |     void moveCam(int x, int y, int z,  int camNo); | 
|---|
 | 25 |     void moveCurrCam(int x, int y, int z); | 
|---|
| [10388] | 26 |     void changeTarget(int camNo, const std::string& className,const std::string& objectName); | 
|---|
 | 27 |     void changeCurrTarget(const std::string& className, const std::string& objectName); | 
|---|
| [10236] | 28 |     void atachCurrTarget(PNode* target); | 
|---|
| [10199] | 29 |     void jumpCam(int x, int y, int z, int camNo); | 
|---|
| [10204] | 30 |     void jumpCurrCam(int x, int y, int z); | 
|---|
 | 31 |     void changeSpeed(float speed); | 
|---|
| [10272] | 32 |     void setClipRegion(float nearClip, float farClip); | 
|---|
| [10330] | 33 |     void togglFade(); | 
|---|
| [10192] | 34 |  | 
|---|
 | 35 | }; | 
|---|
 | 36 |  | 
|---|
| [10195] | 37 | #endif /* _CAMERAMAN_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.