00001 00004 #ifndef FBXFILESDK_KFBXPLUGINS_KFBXCAMERASTEREO_H 00005 #define FBXFILESDK_KFBXPLUGINS_KFBXCAMERASTEREO_H 00006 00007 /************************************************************************************** 00008 00009 Copyright (C) 2001 - 2010 Autodesk, Inc. and/or its licensors. 00010 All Rights Reserved. 00011 00012 The coded instructions, statements, computer programs, and/or related material 00013 (collectively the "Data") in these files contain unpublished information 00014 proprietary to Autodesk, Inc. and/or its licensors, which is protected by 00015 Canada and United States of America federal copyright law and by international 00016 treaties. 00017 00018 The Data may not be disclosed or distributed to third parties, in whole or in 00019 part, without the prior written consent of Autodesk, Inc. ("Autodesk"). 00020 00021 THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY. 00022 ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO 00023 WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR ARISING 00024 BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES OF TITLE, 00025 NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE. 00026 WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION 00027 OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE. 00028 00029 IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS 00030 OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR EXPENSES 00031 OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE DAMAGES OR OTHER 00032 SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS OF PROFITS, REVENUE 00033 OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR DAMAGES OF ANY KIND), 00034 HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF LIABILITY, WHETHER DERIVED 00035 FROM CONTRACT, TORT (INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE), OR OTHERWISE, 00036 ARISING OUT OF OR RELATING TO THE DATA OR ITS USE OR ANY OTHER PERFORMANCE, 00037 WHETHER OR NOT AUTODESK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS 00038 OR DAMAGE. 00039 00040 **************************************************************************************/ 00041 #include <fbxfilesdk/fbxfilesdk_def.h> 00042 00043 #include <fbxfilesdk/kfbxplugins/kfbxcamera.h> 00044 00045 #include <fbxfilesdk/fbxfilesdk_nsbegin.h> 00046 00055 class KFBX_DLL KFbxCameraStereo : public KFbxCamera 00056 { 00057 KFBXOBJECT_DECLARE(KFbxCameraStereo, KFbxCamera); 00058 00059 public: 00061 virtual EAttributeType GetAttributeType() const; 00062 00064 void Reset(); 00065 00072 typedef enum 00073 { 00074 eNONE, 00075 eCONVERGED, 00076 eOFF_AXIS, 00077 ePARALLEL 00078 } ECameraStereo; 00079 00085 KFbxCamera* GetLeftCamera() const; 00086 00092 KFbxCamera* GetRightCamera() const; 00093 00100 bool SetLeftCamera(KFbxCamera* pCamera); 00101 00108 bool SetRightCamera(KFbxCamera* pCamera); 00109 00114 KFbxXMatrix GetLeftCameraLocalMatrix() const; 00115 00120 KFbxXMatrix GetLeftCameraGlobalMatrix() const; 00121 00126 KFbxXMatrix GetRightCameraLocalMatrix() const; 00127 00132 KFbxXMatrix GetRightCameraGlobalMatrix() const; 00133 00139 double ReevaluateLeftCameraFilmOffsetX() const; 00140 00146 double ReevaluateRightCameraFilmOffsetX() const; 00147 00149 // 00150 // Properties 00151 // 00153 00154 // ----------------------------------------------------------------------- 00155 // Stereo and Stereo Adjustments 00156 // ----------------------------------------------------------------------- 00157 00165 KFbxTypedProperty<ECameraStereo> Stereo; 00166 00174 KFbxTypedProperty<fbxDouble1> InteraxialSeparation; 00175 00183 KFbxTypedProperty<fbxDouble1> ZeroParallax; 00184 00193 KFbxTypedProperty<fbxDouble1> ToeInAdjust; 00194 00202 KFbxTypedProperty<fbxDouble1> FilmOffsetRightCam; 00203 00211 KFbxTypedProperty<fbxDouble1> FilmOffsetLeftCam; 00212 00220 KFbxTypedProperty<fbxReference> RightCamera; 00221 00229 KFbxTypedProperty<fbxReference> LeftCamera; 00230 00231 00233 // 00234 // WARNING! 00235 // 00236 // Anything beyond these lines may not be documented accurately and is 00237 // subject to change without notice. 00238 // 00240 00241 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00242 00249 KFbxTypedProperty<fbxString> PrecompFileName; 00250 00258 KFbxTypedProperty<fbxString> RelativePrecompFileName; 00259 00260 friend class KFbxGlobalCameraSettings; 00261 00262 public: 00270 bool ConnectProperties(); 00271 00272 protected: 00273 KFbxCameraStereo(KFbxSdkManager& pManager, char const* pName); 00274 virtual bool ConstructProperties(bool pForceSet); 00275 00279 virtual KStringList GetTypeFlags() const; 00280 00281 private: 00282 // no private members 00283 00284 friend class KFbxNode; 00285 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS 00286 }; 00287 00288 typedef KFbxCameraStereo* HKFbxCameraStereo; 00289 00290 inline EFbxType FbxTypeOf( KFbxCameraStereo::ECameraStereo const &pItem ) { return eENUM; } 00291 00292 #include <fbxfilesdk/fbxfilesdk_nsend.h> 00293 00294 #endif // FBXFILESDK_KFBXPLUGINS_KFBXCAMERASTEREO_H 00295