00001
00002
00012
00013
00014 #ifndef __COLORRGB_H__
00015 #define __COLORRGB_H__
00016
00017 #include "SL_Float.h"
00018 #include <SIBCVector.h>
00019 #include <SIBCColor.h>
00020 class CCOLLADATemplate;
00021
00024 class XSIEXPORT CSLColorRGBProxy
00025 {
00026 public:
00027
00034 CSLColorRGBProxy
00035 (
00036 CdotXSITemplate *in_pTemplate,
00037 SI_Long in_lIndexR,
00038 SI_Long in_lIndexG,
00039 SI_Long in_lIndexB
00040 );
00041
00046 CSLColorRGBProxy& operator =(const CSIBCColorf &in_rColor);
00047
00050 operator CSIBCColorf();
00051
00055 CSLFloatProxy& R();
00056
00060 CSLFloatProxy& G();
00061
00065 CSLFloatProxy& B();
00066
00067 void Connect ( CdotXSITemplate *in_pTemplate, SI_Long in_lIndexR, SI_Long in_lIndexG, SI_Long in_lIndexB );
00068 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[] );
00069
00070 protected:
00071 CSLFloatProxy m_fR;
00072 CSLFloatProxy m_fG;
00073 CSLFloatProxy m_fB;
00074 };
00075
00076 #endif //__COLORRGB_H__