svvitch
digital signage player
|
コンテントクラス. More...
#include <Content.h>
Public Member Functions | |
Content (Renderer &renderer, int splitType, float x=0, float y=0, float w=0, float h=0) | |
コンストラクタ | |
virtual | ‾Content () |
デストラクタ | |
virtual void | initialize () |
初期化 | |
virtual bool | open (const MediaItemPtr media, const int offset=0) |
ファイルをオープンします | |
virtual const string | opened () const |
ファイルの準備が完了しているかどうか | |
virtual void | play () |
再生 | |
virtual void | pause () |
ポーズ | |
virtual void | stop () |
停止 | |
virtual bool | useFastStop () |
再生終了時にすぐさま停止するかどうか | |
virtual void | rewind () |
頭だしする | |
virtual const bool | playing () const |
再生中かどうか | |
virtual const bool | finished () |
終了したかどうか | |
virtual void | close () |
クローズします | |
void | notifyKey (const int keycode, const bool shift, const bool ctrl) |
キー入力の通知 | |
virtual void | process (const DWORD &frame) |
1フレームに1度だけ処理される | |
virtual void | draw (const DWORD &frame) |
描画 | |
virtual void | preview (const DWORD &frame) |
プレビュー描画 | |
virtual const int | current () const |
現在のフレーム | |
virtual const int | duration () const |
長さ(フレーム数) | |
virtual void | setPosition (float x, float y) |
位置設定 | |
virtual void | getPosition (float &x, float &y) |
位置取得 | |
virtual void | setBounds (float w, float h) |
領域設定 | |
virtual const bool | contains (float x, float y) const |
指定位置が領域範囲内かどうか | |
void | set (const string &key, const string &value) |
パラメータを設定します | |
void | set (const string &key, const float &value) |
パラメータを設定します | |
void | set (const string &key, const unsigned int &value) |
パラメータを設定します | |
const string & | get (const string &key, const string &defaultValue="") const |
パラメータを取得します | |
const DWORD | getDW (const string &key, const DWORD &defaultValue=0) const |
パラメータを取得します | |
const int | getI (const string &key, const int &defaultValue=0) const |
パラメータを取得します | |
const float | getF (const string &key, const float &defaultValue=0) const |
パラメータを取得します | |
Public Attributes | |
ActiveMethod< void, void, Content > | activeClose |
Protected Attributes | |
Poco::Logger & | _log |
Renderer & | _renderer |
int | _splitType |
string | _mediaID |
bool | _playing |
int | _duration |
int | _current |
int | _keycode |
bool | _shift |
bool | _ctrl |
HashMap< string, string > | _properties |
float | _x |
float | _y |
float | _w |
float | _h |
コンテントクラス.
<Scene>の中で描画される際の最小単位です。 汎用的なコンポーネントとして利用したいものは<Content>にすべきです
Content::Content | ( | Renderer & | renderer, |
int | splitType, | ||
float | x = 0 , |
||
float | y = 0 , |
||
float | w = 0 , |
||
float | h = 0 |
||
) |
コンストラクタ
Definition at line 7 of file Content.cpp.
void Content::close | ( | ) | [virtual] |
クローズします
ファイルをクローズします
Reimplemented in CvContent, ComContent, FFMovieContent, CaptureContent, TextContent, ImageContent, MixContent, DSContent, and MFContent.
Definition at line 61 of file Content.cpp.
const bool Content::contains | ( | float | x, |
float | y | ||
) | const [virtual] |
指定位置が領域範囲内かどうか
Definition at line 114 of file Content.cpp.
const int Content::current | ( | ) | const [virtual] |
void Content::draw | ( | const DWORD & | frame | ) | [virtual] |
描画
Reimplemented in ComContent, CvContent, TextContent, FFMovieContent, CaptureContent, ImageContent, MixContent, DSContent, Container, and MFContent.
Definition at line 77 of file Content.cpp.
const int Content::duration | ( | ) | const [virtual] |
const bool Content::finished | ( | ) | [virtual] |
終了したかどうか
Reimplemented in CvContent, ComContent, FFMovieContent, CaptureContent, TextContent, ImageContent, MixContent, DSContent, Container, and MFContent.
Definition at line 56 of file Content.cpp.
const string & Content::get | ( | const string & | key, |
const string & | defaultValue = "" |
||
) | const |
const DWORD Content::getDW | ( | const string & | key, |
const DWORD & | defaultValue = 0 |
||
) | const |
パラメータを取得します
Definition at line 139 of file Content.cpp.
const float Content::getF | ( | const string & | key, |
const float & | defaultValue = 0 |
||
) | const |
const int Content::getI | ( | const string & | key, |
const int & | defaultValue = 0 |
||
) | const |
パラメータを取得します
Definition at line 150 of file Content.cpp.
void Content::getPosition | ( | float & | x, |
float & | y | ||
) | [virtual] |
void Content::initialize | ( | ) | [virtual] |
初期化
Reimplemented in CvContent, CaptureContent, FFMovieContent, TextContent, MixContent, ImageContent, DSContent, FlashContent, IEContent, MFContent, and Container.
Definition at line 18 of file Content.cpp.
void Content::notifyKey | ( | const int | keycode, |
const bool | shift, | ||
const bool | ctrl | ||
) |
bool Content::open | ( | const MediaItemPtr | media, |
const int | offset = 0 |
||
) | [virtual] |
ファイルをオープンします
Reimplemented in ComContent, CvContent, CaptureContent, FFMovieContent, TextContent, MixContent, ImageContent, DSContent, FlashContent, IEContent, and MFContent.
Definition at line 21 of file Content.cpp.
const string Content::opened | ( | ) | const [virtual] |
ファイルの準備が完了しているかどうか
Definition at line 26 of file Content.cpp.
void Content::pause | ( | ) | [virtual] |
void Content::play | ( | ) | [virtual] |
再生
Reimplemented in ComContent, CvContent, CaptureContent, FFMovieContent, TextContent, MixContent, ImageContent, DSContent, Container, and MFContent.
Definition at line 30 of file Content.cpp.
const bool Content::playing | ( | ) | const [virtual] |
再生中かどうか
Reimplemented in CvContent, ComContent, CaptureContent, ImageContent, MixContent, DSContent, and MFContent.
Definition at line 52 of file Content.cpp.
void Content::preview | ( | const DWORD & | frame | ) | [virtual] |
void Content::process | ( | const DWORD & | frame | ) | [virtual] |
1フレームに1度だけ処理される
Reimplemented in CvContent, ComContent, TextContent, FFMovieContent, CaptureContent, ImageContent, MixContent, DSContent, Container, and MFContent.
Definition at line 73 of file Content.cpp.
void Content::rewind | ( | ) | [virtual] |
void Content::set | ( | const string & | key, |
const string & | value | ||
) |
void Content::set | ( | const string & | key, |
const float & | value | ||
) |
パラメータを設定します
Definition at line 123 of file Content.cpp.
void Content::set | ( | const string & | key, |
const unsigned int & | value | ||
) |
パラメータを設定します
Definition at line 127 of file Content.cpp.
void Content::setBounds | ( | float | w, |
float | h | ||
) | [virtual] |
void Content::setPosition | ( | float | x, |
float | y | ||
) | [virtual] |
void Content::stop | ( | ) | [virtual] |
停止
Reimplemented in ComContent, CvContent, CaptureContent, FFMovieContent, TextContent, ImageContent, MixContent, DSContent, Container, and MFContent.
Definition at line 37 of file Content.cpp.
bool Content::useFastStop | ( | ) | [virtual] |
再生終了時にすぐさま停止するかどうか
Reimplemented in ComContent, CvContent, CaptureContent, MixContent, and Container.
Definition at line 41 of file Content.cpp.
Content::‾Content | ( | ) | [virtual] |
bool Content::_ctrl [protected] |
int Content::_current [protected] |
int Content::_duration [protected] |
float Content::_h [protected] |
int Content::_keycode [protected] |
Poco::Logger& Content::_log [protected] |
string Content::_mediaID [protected] |
bool Content::_playing [protected] |
Reimplemented in CvContent, CaptureContent, MixContent, and ImageContent.
HashMap<string, string> Content::_properties [protected] |
Renderer& Content::_renderer [protected] |
bool Content::_shift [protected] |
int Content::_splitType [protected] |
float Content::_w [protected] |
float Content::_x [protected] |
float Content::_y [protected] |
ActiveMethod<void, void, Content> Content::activeClose |