ColorRGB.h

00001 #ifndef __COLORRGB_H__
00002 #define __COLORRGB_H__
00003 
00004 #include "SL_Float.h"           // CSLFloatProxy
00005 #include <SIBCVector.h>         // CSIBCVector3D
00006 #include <SIBCColor.h>          // CSIBCColorf
00007 class CCOLLADATemplate;
00008 
00010 
00013 class XSIEXPORT CSLColorRGBProxy
00014 {
00015 public:
00016 
00023     CSLColorRGBProxy
00024     ( 
00025         CdotXSITemplate *in_pTemplate,
00026         SI_Long in_lIndexR,
00027         SI_Long in_lIndexG,
00028         SI_Long in_lIndexB
00029     );
00030 
00035     CSLColorRGBProxy& operator =(const CSIBCColorf &in_rColor);
00036 
00039     operator CSIBCColorf();
00040 
00044     CSLFloatProxy& R();
00045 
00049     CSLFloatProxy& G();
00050 
00054     CSLFloatProxy& B();
00055 
00056     void    Connect ( CdotXSITemplate *in_pTemplate, SI_Long in_lIndexR, SI_Long in_lIndexG, SI_Long in_lIndexB );
00057     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[] );
00058 
00059 protected:
00060     CSLFloatProxy m_fR;
00061     CSLFloatProxy m_fG;
00062     CSLFloatProxy m_fB;
00063 };
00064 
00065 #endif //__COLORRGB_H__