37SEnvironmentComponent::SEnvironmentComponent(
SEnvironment* parent,
const std::string& environmentComponentName) :
SData(environmentComponentName)
44SEnvironmentComponent::SEnvironmentComponent() :
SData(
"")
53 OGRE_EXCEPT(Ogre::Exception::ERR_INTERNAL_ERROR,
"Did you call \"Cleanup\" function in the SEnvironmentComponent inherited class destructor?",
"SEnvironmentComponent::~SEnvironmentComponent");
70 if(isEnable == enableComponent)
73 isEnable = enableComponent;
88 ViewportList::iterator iSearchedViewport = viewportList.find(viewport);
89 if(iSearchedViewport == viewportList.end())
91 viewportList.insert(viewport);
95 OGRE_EXCEPT(Ogre::Exception::ERR_DUPLICATE_ITEM,
"The viewport already exist in the list of associated viewports!",
"SEnvironmentComponent::RegisterViewport");
100 ViewportList::iterator iSearchedViewport = viewportList.find(viewport);
101 if(iSearchedViewport != viewportList.end())
104 viewportList.erase(iSearchedViewport);
107 OGRE_EXCEPT(Ogre::Exception::ERR_ITEM_NOT_FOUND,
"Cannot find the viewport in the list of associated viewports!",
"SEnvironmentComponent::UnregisterViewport");
118 ViewportList::iterator iViewport = viewportListCopy.begin();
119 while(iViewport != viewportListCopy.end())
void RegisterViewport(SViewPort *viewport)
ViewportList GetRegisteredViewports()
void UnregisterCamera(Ogre::Camera *cam)
virtual void RegisterViewportImpl(SViewPort *viewport)=0
virtual void UnregisterCameraImpl(Ogre::Camera *cam)
virtual void UpdateCamera(SViewPort *viewport)
virtual void UnregisterViewportImpl(SViewPort *viewport)=0
virtual ~SEnvironmentComponent()
std::set< SViewPort * > ViewportList
SEnvironment * parentEnvironment
void UnregisterViewport(SViewPort *viewport)
virtual void SetEnableImpl(const bool &enableComponent)=0
void SetEnable(const bool &enableComponent)
SEnvironment * GetEnvironment()