|
Katana Plug-in APIs 0.1
|
00001 // Copyright (c) 2013 The Foundry Visionmongers Ltd. All Rights Reserved. 00002 00003 #ifndef FNRENDEROUTPUTUTILS_CAMERAINFO_H 00004 #define FNRENDEROUTPUTUTILS_CAMERAINFO_H 00005 00006 #include "FnRenderOutputUtils/suite/FnRenderOutputUtilsSuite.h" 00007 #include "FnRenderOutputUtils/FnRenderOutputUtilsAPI.h" 00008 #include "FnRenderOutputUtils/ns.h" 00009 00010 #include <vector> 00011 00012 FNRENDEROUTPUTUTILS_NAMESPACE_ENTER 00013 { 00014 namespace RenderOutputUtils 00015 { 00016 00023 class FNRENDEROUTPUTUTILS_API CameraInfo 00024 { 00025 public: 00026 00027 CameraInfo(CameraInfoHandle handle); 00028 ~CameraInfo(); 00029 00030 CameraInfo(const CameraInfo& rhs); 00031 CameraInfo& operator=(const CameraInfo& rhs); 00032 00036 bool isValid() const {return _handle != 0x0;} 00037 00041 float getFov() const; 00042 00046 float getNear() const; 00047 00051 float getFar() const; 00052 00056 float getLeft() const; 00057 00061 float getRight() const; 00062 00066 float getTop() const; 00067 00071 float getBottom() const; 00072 00076 int getOrtho() const; 00077 00081 float getOrthoWidth() const; 00082 00086 double* getXForm() const; 00087 00088 protected: 00089 void acceptHandle(const CameraInfo &rhs); 00090 00091 private: 00092 CameraInfoHandle _handle; 00093 00094 }; 00099 } // namespace RenderOutputUtils 00100 } 00101 FNRENDEROUTPUTUTILS_NAMESPACE_EXIT 00102 00103 #endif //RenderOutputUtilsCameraInfo_H
1.7.3