xsi_factory.h
Go to the documentation of this file.
00001 //*****************************************************************************
00011 //*****************************************************************************
00012 
00013 #if (_MSC_VER > 1000) || defined(SGI_COMPILER)
00014 #pragma once
00015 #endif
00016 
00017 #ifndef __XSI_FACTORY_H__
00018 #define __XSI_FACTORY_H__
00019 
00020 #include "sicppsdk.h"
00021 #include <xsi_siobject.h>
00022 #include "xsi_status.h"
00023 #include "xsi_value.h"
00024 
00025 namespace XSI {
00026 
00027 class CustomOperator;
00028 class CString;
00029 
00030 //*************************************************************************
00060 //*************************************************************************
00061 class SICPPSDKDECL Factory : public SIObject
00062 {
00063 public:
00065     Factory();
00066 
00068     ~Factory();
00069 
00073     Factory(const CRef& in_ref);
00074 
00078     Factory(const Factory& in_obj);
00079 
00084     bool IsA( siClassID in_ClassID) const;
00085 
00089     siClassID GetClassID() const;
00090 
00096     Factory& operator=(const Factory& in_obj);
00097 
00103     Factory& operator=(const CRef& in_ref);
00104 
00115     CRef CreateObject( const CString& name, CStatus* pst = 0 );
00116 
00123     CRef CreateObjectFromPreset( const CString& presetname, const CString& family = L"", CStatus* pst = 0 );
00124 
00134     CRef CreateObjectFromFile( const CString& in_filename, CStatus* out_st = 0 );
00135 
00145     CRef CreateScriptedOp( const CString& name=L"", const CString& code=L"", const CString& language=L"", CStatus* pst = 0 );
00146 
00155     CRef CreateScriptedOpFromFile( const CString& name, const CString& filename, const CString& language = L"", CStatus* pst = 0 );
00156 
00190     CRef CreateParamDef(
00191         const CString& in_scriptname,
00192         CValue::DataType in_type,
00193         INT in_capabilities,
00194         const CString& in_name,
00195         const CString& in_description,
00196         const CValue& in_default,
00197         const CValue& in_min,
00198         const CValue& in_max,
00199         const CValue& in_suggestedmin,
00200         const CValue& in_suggestedmax,
00201         CStatus* pst = 0 );
00202 
00226     CRef CreateParamDef(
00227         const CString& in_scriptname,
00228         CValue::DataType in_type,
00229         const CValue& in_default,
00230         const CValue& in_min,
00231         const CValue& in_max,
00232         CStatus* pst = 0 );
00233 
00253     CRef CreateParamDef(
00254         const CString& in_scriptname,
00255         CValue::DataType in_type,
00256         const CValue& in_default,
00257         CStatus* pst = 0 );
00258 
00277     CRef CreateFCurveParamDef( const CString& in_scriptname, CStatus* pst = 0) ;
00278 
00289     CRef CreateGridParamDef( const CString& in_scriptname, CStatus* pst = 0 ) ;
00290 
00297     CRef CreateTimeTransport( CStatus* pst = 0 );
00305     CRef CreateICENodeDef( const CString& in_name, const CString& in_description = CString(), CStatus* pst = 0 ) ;
00306 
00324     CRef CreateShaderDef( const CString& in_parserName, const CString& in_className, ULONG in_major, ULONG in_minor );
00325 
00331     CStatus RemoveShaderDef( const CRef& in_shaderdef );
00332 
00333 
00338     CRef CreateShaderParamDefOptions();
00339 
00340 private:
00341 
00342     void* m_ptr;
00343 };
00344 
00345 };
00346 
00347 #endif //__XSI_FACTORY_H__