OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
EngineTraceSimpleRecorder Class Reference

#include <EngineTraceSimpleRecorder.h>

Inheritance diagram for EngineTraceSimpleRecorder:
ProxyOpenGLContext PlatformEventFilter PlatformApplicationAware

Public Member Functions

 EngineTraceSimpleRecorder ()
 
virtual ~EngineTraceSimpleRecorder ()
 
void startRecording ()
 
std::vector< std::unique_ptr< PlatformEvent > > finishRecording ()
 
bool isRecording () const
 

Private Member Functions

virtual void swapBuffers () override
 
virtual bool event (const PlatformEvent *event) override
 
- Private Member Functions inherited from ProxyOpenGLContext
 ProxyOpenGLContext (PlatformOpenGLContext *base=nullptr)
 
virtual ~ProxyOpenGLContext ()=default
 
virtual bool bind () override
 
virtual bool unbind () override
 
virtual void * nativeHandle () override
 
virtual void swapBuffers () override
 
virtual void * getProcAddress (const char *name) override
 
- Private Member Functions inherited from ProxyBase< PlatformOpenGLContext >
 ProxyBase (PlatformOpenGLContext *base)
 
PlatformOpenGLContextbase () const
 
void setBase (PlatformOpenGLContext *base)
 
PlatformOpenGLContextnonNullBase () const
 
- Private Member Functions inherited from PlatformOpenGLContext
virtual ~PlatformOpenGLContext ()=default
 
virtual bool bind ()=0
 
virtual bool unbind ()=0
 
virtual void * nativeHandle ()=0
 
virtual void swapBuffers ()=0
 
virtual void * getProcAddress (const char *name)=0
 
- Private Member Functions inherited from PlatformEventFilter
 PlatformEventFilter (std::initializer_list< PlatformEventType > eventTypes)
 
 PlatformEventFilter (PlatformEventWildcard eventTypes)
 
virtual bool event (const PlatformEvent *event)
 
const std::vector< PlatformEventTypeeventTypes () const
 
virtual bool keyPressEvent (const PlatformKeyEvent *event)
 
virtual bool keyReleaseEvent (const PlatformKeyEvent *event)
 
virtual bool mouseMoveEvent (const PlatformMouseEvent *event)
 
virtual bool mousePressEvent (const PlatformMouseEvent *event)
 
virtual bool mouseReleaseEvent (const PlatformMouseEvent *event)
 
virtual bool wheelEvent (const PlatformWheelEvent *event)
 
virtual bool moveEvent (const PlatformMoveEvent *event)
 
virtual bool resizeEvent (const PlatformResizeEvent *event)
 
virtual bool activationEvent (const PlatformWindowEvent *event)
 
virtual bool closeEvent (const PlatformWindowEvent *event)
 
virtual bool gamepadConnectionEvent (const PlatformGamepadEvent *event)
 
virtual bool gamepadKeyPressEvent (const PlatformGamepadKeyEvent *event)
 
virtual bool gamepadKeyReleaseEvent (const PlatformGamepadKeyEvent *event)
 
virtual bool gamepadAxisEvent (const PlatformGamepadAxisEvent *event)
 
virtual bool nativeEvent (const PlatformNativeEvent *event)
 
virtual bool textInputEvent (const PlatformTextInputEvent *event)
 
- Private Member Functions inherited from PlatformApplicationAware
 ~PlatformApplicationAware ()=default
 
PlatformApplicationapplication () const
 
template<class T >
T * component () const
 
virtual void installNotify ()
 
virtual void removeNotify ()
 

Private Attributes

bool _recording = false
 
std::vector< std::unique_ptr< PlatformEvent > > _events
 

Friends

class PlatformIntrospection
 

Detailed Description

Component that can be used to record events.

Note that this component is intentionally very dumb. Calling startRecording starts recording events right away, and calling finishRecording just returns everything that was recorded.

See also
EngineTraceRecorder

Constructor & Destructor Documentation

◆ EngineTraceSimpleRecorder()

EngineTraceSimpleRecorder::EngineTraceSimpleRecorder ( )

◆ ~EngineTraceSimpleRecorder()

EngineTraceSimpleRecorder::~EngineTraceSimpleRecorder ( )
virtualdefault

Member Function Documentation

◆ event()

bool EngineTraceSimpleRecorder::event ( const PlatformEvent event)
overrideprivatevirtual

Reimplemented from PlatformEventFilter.

◆ finishRecording()

std::vector< std::unique_ptr< PlatformEvent > > EngineTraceSimpleRecorder::finishRecording ( )
Returns
Recorded events.

◆ isRecording()

bool EngineTraceSimpleRecorder::isRecording ( ) const
inline

◆ startRecording()

void EngineTraceSimpleRecorder::startRecording ( )

Starts trace recording.

◆ swapBuffers()

void EngineTraceSimpleRecorder::swapBuffers ( )
overrideprivatevirtual

Reimplemented from ProxyOpenGLContext.

Friends And Related Function Documentation

◆ PlatformIntrospection

friend class PlatformIntrospection
friend

Member Data Documentation

◆ _events

std::vector<std::unique_ptr<PlatformEvent> > EngineTraceSimpleRecorder::_events
private

◆ _recording

bool EngineTraceSimpleRecorder::_recording = false
private

The documentation for this class was generated from the following files: