00001 //*************************************************************************************** 00002 // 00003 // File supervisor: Softimage 3D Games & 3D Bridge team 00004 // 00005 // (c) Copyright 2001-2002 Avid Technology, Inc. . All rights reserved. 00006 // 00007 //*************************************************************************************** 00008 00009 /**************************************************************************************** 00010 THIS CODE IS PUBLISHED AS A SAMPLE ONLY AND IS PROVIDED "AS IS". 00011 IN NO EVENT SHALL SOFTIMAGE, AVID TECHNOLOGY, INC. AND/OR THEIR RESPECTIVE 00012 SUPPLIERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 00013 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00014 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 00015 CONNECTION WITH THE USE OR PERFORMANCE OF THIS CODE . 00016 00017 COPYRIGHT NOTICE. Copyright © 1999-2002 Avid Technology Inc. . All rights reserved. 00018 00019 SOFTIMAGE is a registered trademark of Avid Technology Inc. or its subsidiaries 00020 or divisions. Windows NT is a registered trademark of Microsoft Corp. All other 00021 trademarks contained herein are the property of their respective owners. 00022 ****************************************************************************************/ 00023 00024 #ifndef _DOUBLE_H 00025 #define _DOUBLE_H 00026 00027 #include <SIBCMath.h> // SI_EPSILON 00028 #include "AnimatableType.h" // CSLAnimatableType 00029 class CCOLLADATemplate; 00030 class CSLCOLLADAScene; 00031 00033 class XSIEXPORT CSLDoubleProxy : public CSLAnimatableType 00034 { 00035 public: 00043 CSLDoubleProxy(CdotXSITemplate *in_pTemplate, SI_Int in_nIndex, SI_Double in_dThreshold = SI_EPSILON); 00044 00049 CSLDoubleProxy& operator =(const CSLDoubleProxy &in_Value); 00050 00055 CSLDoubleProxy& operator =(const SI_Double &in_Value); 00056 00065 SI_Bool operator ==(const CSLDoubleProxy &in_ToCompare); 00066 00075 SI_Bool operator ==(const SI_Double &in_ToCompare); 00076 00078 operator SI_Double(); 00079 00084 SI_Double Threshold(); 00085 00110 void SetThreshold( SI_Double in_dThreshold ); 00111 00115 virtual EElementType Type(); 00116 00120 virtual SI_Float GetFloatValue(); 00121 00125 virtual SI_Void SetFloatValue(SI_Float in_fValue); 00126 00132 virtual SI_Error Connect (CdotXSITemplate *in_pTemplate, SI_Int in_nIndex ); 00133 00134 private: 00135 CSLDoubleProxy( CSLDoubleProxy &in_pBasicType ){} 00136 SI_Bool Equal( SI_Double in_Double1, SI_Double in_Double2 ); 00137 00138 SI_Double m_dThreshold; 00139 SI_Double* m_pValue; 00140 }; 00141 00142 #endif