svvitch
digital signage player
Content Class Reference

コンテントクラス. More...

#include <Content.h>

Inheritance diagram for Content:
Collaboration diagram for Content:

List of all members.

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, ContentactiveClose

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

Detailed Description

コンテントクラス.

<Scene>の中で描画される際の最小単位です。 汎用的なコンポーネントとして利用したいものは<Content>にすべきです

Definition at line 25 of file Content.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

現在のフレーム

Definition at line 87 of file Content.cpp.

Here is the caller graph for this function:

void Content::draw ( const DWORD &  frame) [virtual]
const int Content::duration ( ) const [virtual]

長さ(フレーム数)

Definition at line 94 of file Content.cpp.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

const string & Content::get ( const string &  key,
const string &  defaultValue = "" 
) const

パラメータを取得します

Definition at line 131 of file Content.cpp.

Here is the caller graph for this function:

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

パラメータを取得します

Definition at line 161 of file Content.cpp.

Here is the caller graph for this function:

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]

位置取得

Definition at line 104 of file Content.cpp.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

void Content::notifyKey ( const int  keycode,
const bool  shift,
const bool  ctrl 
)

キー入力の通知

Reimplemented in Container.

Definition at line 66 of file Content.cpp.

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.

Here is the call graph for this function:

Here is the caller graph for this function:

const string Content::opened ( ) const [virtual]

ファイルの準備が完了しているかどうか

Definition at line 26 of file Content.cpp.

Here is the caller graph for this function:

void Content::pause ( ) [virtual]

ポーズ

Reimplemented in FFMovieContent, and Container.

Definition at line 34 of file Content.cpp.

void Content::play ( ) [virtual]
const bool Content::playing ( ) const [virtual]

再生中かどうか

Reimplemented in CvContent, ComContent, CaptureContent, ImageContent, MixContent, DSContent, and MFContent.

Definition at line 52 of file Content.cpp.

Here is the caller graph for this function:

void Content::preview ( const DWORD &  frame) [virtual]

プレビュー描画

Reimplemented in Container.

Definition at line 81 of file Content.cpp.

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.

Here is the caller graph for this function:

void Content::rewind ( ) [virtual]

頭だしする

Reimplemented in Container.

Definition at line 45 of file Content.cpp.

void Content::set ( const string &  key,
const string &  value 
)

パラメータを設定します

Definition at line 118 of file Content.cpp.

Here is the caller graph for this function:

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]

領域設定

Definition at line 109 of file Content.cpp.

Here is the caller graph for this function:

void Content::setPosition ( float  x,
float  y 
) [virtual]

位置設定

Definition at line 99 of file Content.cpp.

Here is the caller graph for this function:

void Content::stop ( ) [virtual]
bool Content::useFastStop ( ) [virtual]

再生終了時にすぐさま停止するかどうか

Reimplemented in ComContent, CvContent, CaptureContent, MixContent, and Container.

Definition at line 41 of file Content.cpp.

Content::‾Content ( ) [virtual]

デストラクタ

Definition at line 13 of file Content.cpp.

Here is the call graph for this function:


Member Data Documentation

bool Content::_ctrl [protected]

Definition at line 44 of file Content.h.

int Content::_current [protected]

Definition at line 40 of file Content.h.

int Content::_duration [protected]

Definition at line 39 of file Content.h.

float Content::_h [protected]

Definition at line 47 of file Content.h.

int Content::_keycode [protected]

Definition at line 42 of file Content.h.

Poco::Logger& Content::_log [protected]

Definition at line 31 of file Content.h.

string Content::_mediaID [protected]

Definition at line 36 of file Content.h.

bool Content::_playing [protected]

Reimplemented in CvContent, CaptureContent, MixContent, and ImageContent.

Definition at line 37 of file Content.h.

HashMap<string, string> Content::_properties [protected]

Definition at line 46 of file Content.h.

Definition at line 32 of file Content.h.

bool Content::_shift [protected]

Definition at line 43 of file Content.h.

int Content::_splitType [protected]

Definition at line 34 of file Content.h.

float Content::_w [protected]

Definition at line 47 of file Content.h.

float Content::_x [protected]

Definition at line 47 of file Content.h.

float Content::_y [protected]

Definition at line 47 of file Content.h.

ActiveMethod<void, void, Content> Content::activeClose

Definition at line 89 of file Content.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines