00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00035 #ifndef __SO3COMPOSITOR_H__
00036 #define __SO3COMPOSITOR_H__
00037
00038 #include "../SCOLBasic/SO3Std.h"
00039 #include "../SCOLBasic/SO3DataScol.h"
00040 #include "../SO3Renderer/SO3ViewPort.h"
00041
00042 namespace SO3
00043 {
00044
00045 class SCompositor : public SData, public Ogre::MaterialManager::Listener
00046 {
00047 public:
00048 protected:
00049 private:
00050 bool isEnable;
00051 SViewPort* parent;
00052 Ogre::MaterialPtr mBlackMat;
00053 Ogre::String scheme;
00054
00055 public:
00058 SCompositor(SViewPort* scolViewPort, std::string compositorName, std::string schemeName = "");
00059
00062 ~SCompositor();
00063
00066 bool GetEnable();
00067
00070 void SetEnable(bool enable);
00071
00074 SViewPort* GetParentViewPort();
00075
00078 virtual Ogre::Technique* handleSchemeNotFound(unsigned short schemeIndex, const Ogre::String& schemeName, Ogre::Material* originalMaterial, unsigned short lodIndex, const Ogre::Renderable* rend);
00079 protected:
00080 private:
00084 SCompositor();
00085
00089 void _AttachToParent();
00090
00094 void _DetachFromParent();
00095 };
00096
00097 }
00098
00099 #endif