00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __COLORRGB_H__
00013 #define __COLORRGB_H__
00014
00015 #include "SL_Float.h"
00016 #include <SIBCVector.h>
00017 #include <SIBCColor.h>
00018 class CCOLLADATemplate;
00019
00022 class XSIEXPORT CSLColorRGBProxy
00023 {
00024 public:
00025
00032 CSLColorRGBProxy
00033 (
00034 CdotXSITemplate *in_pTemplate,
00035 SI_Long in_lIndexR,
00036 SI_Long in_lIndexG,
00037 SI_Long in_lIndexB
00038 );
00039
00044 CSLColorRGBProxy& operator =(const CSIBCColorf &in_rColor);
00045
00048 operator CSIBCColorf();
00049
00053 CSLFloatProxy& R();
00054
00058 CSLFloatProxy& G();
00059
00063 CSLFloatProxy& B();
00064
00065 void Connect ( CdotXSITemplate *in_pTemplate, SI_Long in_lIndexR, SI_Long in_lIndexG, SI_Long in_lIndexB );
00066 void Connect ( CSLTemplate *in_pTemplate, CCOLLADATemplate *in_pOwner, SI_Long in_lIndexR, SI_Long in_lIndexG, SI_Long in_lIndexB, CSLCOLLADAScene* in_pScene, int in_CurveType[], const char* in_XSIName[] );
00067
00068 protected:
00069 CSLFloatProxy m_fR;
00070 CSLFloatProxy m_fG;
00071 CSLFloatProxy m_fB;
00072 };
00073
00074 #endif //__COLORRGB_H__