ovassvepCTrainerFlickeringObject.h 1.28 KB
Newer Older
OpenViBE Posse's avatar
OpenViBE Posse committed
1 2 3
#ifndef __OpenViBEApplication_CTrainerFlickeringObject_H__
#define __OpenViBEApplication_CTrainerFlickeringObject_H__

OpenViBE Posse's avatar
OpenViBE Posse committed
4
#include <openvibe/ov_all.h>
OpenViBE Posse's avatar
OpenViBE Posse committed
5
#include <toolkit/ovtk_all.h>
OpenViBE Posse's avatar
OpenViBE Posse committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <Ogre.h>

#include "../ovassvepCSSVEPFlickeringObject.h"
#include "../ovassvepCBasicPainter.h"

/**
 */
namespace OpenViBESSVEP
{
	class CTrainerApplication;

	class CTrainerFlickeringObject : public CSSVEPFlickeringObject
	{
		public:
20
			static CTrainerFlickeringObject* createTrainerFlickeringObject( uint32_t );
OpenViBE Posse's avatar
OpenViBE Posse committed
21 22 23
			static void initialize( CTrainerApplication* poApplication );

			void connectToNode( Ogre::SceneNode* poSceneNode );
24
			void setTarget( bool bIsTarget );
OpenViBE Posse's avatar
OpenViBE Posse committed
25

26
			bool isTarget()
OpenViBE Posse's avatar
OpenViBE Posse committed
27 28 29 30 31 32 33 34
			{
				return m_poPointer->getVisible();
			}

		private:
			static CTrainerApplication* m_poApplication;
			static Ogre::SceneNode* m_poParentNode;
			static CBasicPainter* m_poPainter;
35 36
			static float m_f32TargetWidth;
			static float m_f32TargetHeight;
OpenViBE Posse's avatar
OpenViBE Posse committed
37 38 39
			static Ogre::ColourValue m_oLightColour;
			static Ogre::ColourValue m_oDarkColour;

40
			CTrainerFlickeringObject( float f32PosX, float f32PosY, Ogre::ColourValue oColour, OpenViBE::uint8 ui8LitFrames, uint8_t ui8DarkFrames );
OpenViBE Posse's avatar
OpenViBE Posse committed
41 42 43 44 45 46 47 48 49


			Ogre::SceneNode* m_poElementNode;
			Ogre::MovableObject* m_poPointer;
	};
}


#endif // __OpenViBEApplication_CTrainerFlickeringObject_H__