PixelLightAPI  .
Public Member Functions | Protected Member Functions
PLEngine::Camcorder Class Reference

Camcorder interaction component. More...

#include <Camcorder.h>

Inheritance diagram for PLEngine::Camcorder:
Inheritance graph
[legend]

List of all members.

Public Member Functions

PL_API Camcorder (EngineApplication &cApplication)
 Constructor.
virtual PL_API ~Camcorder ()
 Destructor.
PL_API EngineApplicationGetApplication () const
 Returns the owner application.
PL_API void StartRecord (const PLCore::String &sName)
 Starts the record.
PL_API bool IsRecording () const
 Returns whether or not recording is currently active.
PL_API void StopRecord ()
 Stops the record.
PL_API void StartPlayback (const PLCore::String &sName)
 Starts the playback.
PL_API bool IsPlaying () const
 Returns whether or not playback is currently active.
PL_API void StopPlayback ()
 Stops the playback.
PL_API void Update ()
 Updates the camcorder component.
virtual PL_API bool Unload () override
 Unloads the loadable.
virtual PL_API PLCore::String GetLoadableTypeName () const override
 Returns the loadable type name.

Protected Member Functions

virtual PL_API bool CallLoadable (PLCore::File &cFile, PLCore::Loader &cLoader, const PLCore::String &sMethod, const PLCore::String &sParams) override
 Calls the loadable in order to load or save.

Detailed Description

Camcorder interaction component.

Note:
  • Do not perform playback if the current camera is using physics...

Constructor & Destructor Documentation

PL_API PLEngine::Camcorder::Camcorder ( EngineApplication cApplication)

Constructor.

Parameters:
[in]cApplicationOwner application
virtual PL_API PLEngine::Camcorder::~Camcorder ( ) [virtual]

Destructor.


Member Function Documentation

Returns the owner application.

Returns:
The owner application
PL_API void PLEngine::Camcorder::StartRecord ( const PLCore::String sName)

Starts the record.

Parameters:
[in]sNameRecord name, if empty string, no recording can be started
Note:
  • The currently used application camera will be recorded
  • If playback is currently enabled, the playback will be stopped at once
PL_API bool PLEngine::Camcorder::IsRecording ( ) const

Returns whether or not recording is currently active.

Returns:
'true' if recording is currently active, else 'false'

Stops the record.

PL_API void PLEngine::Camcorder::StartPlayback ( const PLCore::String sName)

Starts the playback.

Parameters:
[in]sNameRecord name, must be valid
Note:
  • The currently used application camera will be feed with the recorded data
  • If recording is currently enabled, the recording will be stopped at once
PL_API bool PLEngine::Camcorder::IsPlaying ( ) const

Returns whether or not playback is currently active.

Returns:
'true' if playback is currently active, else 'false'

Stops the playback.

PL_API void PLEngine::Camcorder::Update ( )

Updates the camcorder component.

virtual PL_API bool PLEngine::Camcorder::Unload ( ) [override, virtual]

Unloads the loadable.

Returns:
'true' if all went fine, else 'false'

Reimplemented from PLCore::Loadable.

virtual PL_API PLCore::String PLEngine::Camcorder::GetLoadableTypeName ( ) const [override, virtual]

Returns the loadable type name.

Returns:
The loadable type name

Reimplemented from PLCore::Loadable.

virtual PL_API bool PLEngine::Camcorder::CallLoadable ( PLCore::File cFile,
PLCore::Loader cLoader,
const PLCore::String sMethod,
const PLCore::String sParams 
) [override, protected, virtual]

Calls the loadable in order to load or save.

Parameters:
[in]cFileFile to load from, MUST be opened
[in]cLoaderLoader to use
[in]sMethodName of the method to use
[in]sParamsMethod parameters
Returns:
'true' if all went fine, else 'false'
Note:
  • The default implementation is empty and will return always 'false'

Reimplemented from PLCore::Loadable.


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:30
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported