VariantParameter.h

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 _VARIANTPARAMETER_H
00025 #define _VARIANTPARAMETER_H
00026 
00027 #include "Template.h"
00028 
00029 class CSLXSICustomParamInfo;
00030 class CSLCOLLADAScene;
00031 
00039 class XSIEXPORT CSLVariantParameter : public CSLAnimatableType
00040 {
00041 public:
00046     CSLVariantParameter
00047     ( 
00048         CdotXSITemplate *in_pTemplate, 
00049         SI_Int in_nValueIndex 
00050     );
00051     
00053     virtual ~CSLVariantParameter();
00054     
00058     CSLAnimatableType::EElementType ValueType();
00059 
00060 
00061     SI_TinyVariant* GetValue();
00062 
00066     SI_Void SetValue( SI_TinyVariant* in_pNewVal );
00067 
00071     virtual CSLVariantParameter::EElementType Type(){ return CSLVariantParameter::SI_VARIANT_TYPE; }
00072 
00078     virtual CSLXSICustomParamInfo* CustomParamInfo(){ return (CSLXSICustomParamInfo *)NULL; }
00079 
00083     virtual SI_Float GetFloatValue();
00084 
00088     virtual SI_Void SetFloatValue(SI_Float in_fValue);
00089 };
00090 
00091 
00100 class XSIEXPORT CSLCustomParameter :
00101     public CSLVariantParameter
00102 {
00103 public:
00108     CSLCustomParameter
00109     ( 
00110         CdotXSITemplate *in_pTemplate, 
00111         SI_Int in_nValueIndex 
00112     );
00113     
00115     virtual ~CSLCustomParameter();
00116 
00118     // Custom parameter information
00120 
00124     CSLXSICustomParamInfo* CustomParamInfo();
00125 
00129     CSLXSICustomParamInfo* ConnectCustomParamInfo( CSLXSICustomParamInfo *in_pCustomParamInfo );
00130 
00131 private:
00132     CSLXSICustomParamInfo *m_pCustomParamInfo;
00133 };
00134 
00135 #endif