svvitch
digital signage player
MainScene Class Reference

メインシーンクラス. More...

#include <MainScene.h>

Inheritance diagram for MainScene:
Collaboration diagram for MainScene:

List of all members.

Public Member Functions

 MainScene (Renderer &renderer)
virtual ‾MainScene ()
bool initialize ()
 初期化
WorkspacegetWorkspace ()
 設定されているWorkspaceを取得します
void notifyKey (const int keycode, const bool shift, const bool ctrl)
bool stackPrepareContent (string &playlistID, int i=0)
 切替用コンテンツをスタックします
const void setDescription (const string &description)
 説明設定
const string getPlaylistText (const string &playlistID)
 プレイリストテキスト取得
bool setPlaylistText (const string &playlistID, const string &text)
 プレイリストテキスト設定
void setBrightness (int i)
 輝度設定
void setAction (string &action)
 遷移アクション設定
void setTransition (string &transition)
 トランジション設定
bool switchContent ()
 手動で切替を行います このメソッドはメインスレッドをブロックするのでメインスレッドからはactiveSwitchContent()で呼出すこと
bool addStock (const string &path, File file, bool copy=false)
void clearStock ()
bool flushStock ()
void addDelayedUpdateFile (File &file)
 遅延更新ファイルを追加します
void removeDelayedUpdateFile (File &file)
 遅延更新ファイルを追加します
void updateDelayedFiles ()
 遅延更新ファイルを更新します
bool updateWorkspace ()
 workspace更新
virtual void process ()
 毎フレームで行う処理
virtual void draw1 ()
 フレーム描画 コンテンツなどのメイン描画系
virtual void draw2 ()
 フレーム描画 主にステータス系
void drawConsole (string text)
 コンソール表示

Public Attributes

ActiveMethod< bool,
PlayParameters, MainScene
activePrepareContent
 切替用コンテンツの準備(アクティブ版)
ActiveMethod< bool, void,
MainScene
activeSwitchContent
 切替用コンテンツに切替(アクティブ版)
ActiveMethod< void, string,
MainScene
activeCopyRemote
 リモートコピー (アクティブ版)
ActiveMethod< void, string,
MainScene
activeAddRemovableMedia
 リムーバブルメディアの追加(アクティブ版)

Private Member Functions

void execDelayedRelease ()
 コンテンツの遅延解放を行います
void pushDelayedRelease (ContainerPtr c)
 コンテンツの遅延解放を行います
void preparedStanbyMedia ()
 スタンバイメディアの準備
void preparedFont (WorkspacePtr workspace)
 フォントの準備
void run ()
bool prepareContent (const PlayParameters &args)
 切替用コンテンツの準備
bool prepareNextContent (const PlayParameters &args)
 次再生コンテンツを準備します
bool preparePlaylist (ContainerPtr container, const string &playlistID, const int i, const bool round=false)
 Containerに指定されたプレイリストのコンテンツを準備します
bool prepareMedia (ContainerPtr container, MediaItemPtr media, const string &templatedText)
void addRemovableMedia (const string &driveLetter)
int copyFiles (const string &src, const string &dst)
void copyRemote (const string &remote)
 リモートコピー
bool copyRemoteFile (const string &remote, const string &path, Path &out, bool equalityCheck=false)
void setRemoteStatus (const string &remote, const string &name, const string &value)

Private Attributes

Poco::FastMutex _lock
Poco::FastMutex _workspaceLock
Poco::FastMutex _delayedUpdateLock
WorkspacePtr _workspace
WorkspacePtr _updatedWorkspace
DWORD _frame
bool _startup
bool _autoStart
int _brightness
vector< ContainerPtr_contents
int _currentContent
bool _preparing
PlayParameters _playCurrent
 再生コンテンツ情報
LPDIRECT3DTEXTURE9 _description
 説明
LPDIRECT3DTEXTURE9 _playlistName
 プレイリスト名
LPDIRECT3DTEXTURE9 _currentName
 再生中のコンテンツ名
vector< PlayParameters_nextStack
int _nextStackTime
PlayParameters _playNext
 次再生コンテンツ情報
LPDIRECT3DTEXTURE9 _nextPlaylistName
 次のプレイリスト名
LPDIRECT3DTEXTURE9 _nextName
 次のコンテンツ名
vector< PlayParameters_prepareStack
int _prepareStackTime
PlayParameters _playPrepared
 切替準備コンテンツ
ContainerPtr _prepared
 切替準備コンテンツ情報
LPDIRECT3DTEXTURE9 _preparedPlaylistName
 切替準備のプレイリスト名
LPDIRECT3DTEXTURE9 _preparedName
 切替準備のコンテンツ名
int _playCount
 再生回数
bool _doPrepareNext
bool _preparingNext
bool _doSwitchNext
 切替フラグ
bool _doSwitchPrepared
 切替準備コンテンツの切替フラグ
TransitionPtr _transition
 トランジション
string _nowTime
 現在時刻
int _timeSecond
 現在時刻の秒
bool _initializing
bool _running
string _castLogDate
Poco::FileOutputStream * _castLog
map< string, File > _stock
 更新ストックファイル
LPDIRECT3DTEXTURE9 _removableIcon
 USBアイコン
float _removableIconAlpha
string _addRemovable
float _removableAlpha
float _removableCover
unsigned long _copySize
unsigned long _currentCopySize
int _copyProgress
int _currentCopyProgress
int _copyRemoteFiles
string _copyingRemote
bool _delayedCopy
vector< File > _delayUpdateFiles
vector< DelayedRelease_delayReleases
queue< string > _deletes
map< string, ContainerPtr_stanbyMedias
 スタンバイメディア
string _interruptted
ContainerPtr _interrupttedContent
DWORD _messageFrame
 メッセージ
queue< string > _messages
ActiveMethod< bool,
PlayParameters, MainScene
activePrepareNextContent
 リモートディレクトリのコピー

Detailed Description

メインシーンクラス.

デジタルサイネージプレイヤの基本的な機能を提供します

Definition at line 98 of file MainScene.h.


Constructor & Destructor Documentation

MainScene::MainScene ( Renderer renderer)

Definition at line 52 of file MainScene.cpp.

Here is the call graph for this function:


Member Function Documentation

void MainScene::addDelayedUpdateFile ( File &  file)

遅延更新ファイルを追加します

Definition at line 803 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainScene::addRemovableMedia ( const string &  driveLetter) [private]

Definition at line 1115 of file MainScene.cpp.

Here is the call graph for this function:

bool MainScene::addStock ( const string &  path,
File  file,
bool  copy = false 
)

Definition at line 706 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 739 of file MainScene.cpp.

Here is the caller graph for this function:

int MainScene::copyFiles ( const string &  src,
const string &  dst 
) [private]

Definition at line 1204 of file MainScene.cpp.

Here is the caller graph for this function:

void MainScene::copyRemote ( const string &  remote) [private]

リモートコピー

Definition at line 896 of file MainScene.cpp.

Here is the call graph for this function:

bool MainScene::copyRemoteFile ( const string &  remote,
const string &  path,
Path &  out,
bool  equalityCheck = false 
) [private]

Definition at line 1026 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainScene::draw1 ( ) [virtual]

フレーム描画 コンテンツなどのメイン描画系

Reimplemented from Scene.

Definition at line 1747 of file MainScene.cpp.

Here is the call graph for this function:

void MainScene::draw2 ( ) [virtual]

フレーム描画 主にステータス系

Reimplemented from Scene.

Definition at line 1773 of file MainScene.cpp.

Here is the call graph for this function:

void MainScene::drawConsole ( string  text)

コンソール表示

Definition at line 1907 of file MainScene.cpp.

Here is the caller graph for this function:

void MainScene::execDelayedRelease ( ) [private]

コンテンツの遅延解放を行います

Definition at line 113 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 754 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const string MainScene::getPlaylistText ( const string &  playlistID)

プレイリストテキスト取得

Definition at line 398 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

設定されているWorkspaceを取得します

Definition at line 256 of file MainScene.cpp.

bool MainScene::initialize ( ) [virtual]

初期化

Reimplemented from Scene.

Definition at line 144 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainScene::notifyKey ( const int  keycode,
const bool  shift,
const bool  ctrl 
) [virtual]

Reimplemented from Scene.

Definition at line 261 of file MainScene.cpp.

bool MainScene::prepareContent ( const PlayParameters args) [private]

切替用コンテンツの準備

Definition at line 430 of file MainScene.cpp.

Here is the call graph for this function:

void MainScene::preparedFont ( WorkspacePtr  workspace) [private]

フォントの準備

Definition at line 223 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainScene::preparedStanbyMedia ( ) [private]

スタンバイメディアの準備

Definition at line 236 of file MainScene.cpp.

Here is the caller graph for this function:

bool MainScene::prepareMedia ( ContainerPtr  container,
MediaItemPtr  media,
const string &  templatedText 
) [private]

Definition at line 519 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MainScene::prepareNextContent ( const PlayParameters args) [private]

次再生コンテンツを準備します

Definition at line 270 of file MainScene.cpp.

Here is the call graph for this function:

bool MainScene::preparePlaylist ( ContainerPtr  container,
const string &  playlistID,
const int  i,
const bool  round = false 
) [private]

Containerに指定されたプレイリストのコンテンツを準備します

Definition at line 495 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainScene::process ( ) [virtual]

毎フレームで行う処理

Reimplemented from Scene.

Definition at line 1244 of file MainScene.cpp.

Here is the call graph for this function:

コンテンツの遅延解放を行います

Definition at line 140 of file MainScene.cpp.

Here is the caller graph for this function:

void MainScene::removeDelayedUpdateFile ( File &  file)

遅延更新ファイルを追加します

Definition at line 811 of file MainScene.cpp.

Here is the caller graph for this function:

void MainScene::run ( ) [private]
void MainScene::setAction ( string &  action)

遷移アクション設定

Definition at line 422 of file MainScene.cpp.

Here is the caller graph for this function:

void MainScene::setBrightness ( int  i)

輝度設定

Definition at line 418 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const void MainScene::setDescription ( const string &  description)

説明設定

Definition at line 385 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MainScene::setPlaylistText ( const string &  playlistID,
const string &  text 
)

プレイリストテキスト設定

Definition at line 407 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainScene::setRemoteStatus ( const string &  remote,
const string &  name,
const string &  value 
) [private]

Definition at line 1105 of file MainScene.cpp.

Here is the caller graph for this function:

void MainScene::setTransition ( string &  transition)

トランジション設定

Definition at line 426 of file MainScene.cpp.

Here is the caller graph for this function:

bool MainScene::stackPrepareContent ( string &  playlistID,
int  i = 0 
)

切替用コンテンツをスタックします

Definition at line 372 of file MainScene.cpp.

Here is the caller graph for this function:

手動で切替を行います このメソッドはメインスレッドをブロックするのでメインスレッドからはactiveSwitchContent()で呼出すこと

Definition at line 700 of file MainScene.cpp.

Here is the caller graph for this function:

遅延更新ファイルを更新します

Definition at line 820 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

workspace更新

Definition at line 855 of file MainScene.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

MainScene::‾MainScene ( ) [virtual]

Definition at line 70 of file MainScene.cpp.

Here is the call graph for this function:


Member Data Documentation

string MainScene::_addRemovable [private]

Definition at line 180 of file MainScene.h.

bool MainScene::_autoStart [private]

Definition at line 110 of file MainScene.h.

int MainScene::_brightness [private]

Definition at line 111 of file MainScene.h.

Poco::FileOutputStream* MainScene::_castLog [private]

Definition at line 172 of file MainScene.h.

string MainScene::_castLogDate [private]

Definition at line 171 of file MainScene.h.

Definition at line 113 of file MainScene.h.

string MainScene::_copyingRemote [private]

Definition at line 188 of file MainScene.h.

int MainScene::_copyProgress [private]

Definition at line 185 of file MainScene.h.

Definition at line 187 of file MainScene.h.

unsigned long MainScene::_copySize [private]

Definition at line 183 of file MainScene.h.

Definition at line 114 of file MainScene.h.

Definition at line 186 of file MainScene.h.

unsigned long MainScene::_currentCopySize [private]

Definition at line 184 of file MainScene.h.

LPDIRECT3DTEXTURE9 MainScene::_currentName [private]

再生中のコンテンツ名

Definition at line 125 of file MainScene.h.

bool MainScene::_delayedCopy [private]

Definition at line 189 of file MainScene.h.

Poco::FastMutex MainScene::_delayedUpdateLock [private]

Definition at line 103 of file MainScene.h.

Definition at line 192 of file MainScene.h.

vector<File> MainScene::_delayUpdateFiles [private]

Definition at line 190 of file MainScene.h.

queue<string> MainScene::_deletes [private]

Definition at line 193 of file MainScene.h.

LPDIRECT3DTEXTURE9 MainScene::_description [private]

説明

Definition at line 121 of file MainScene.h.

bool MainScene::_doPrepareNext [private]

Definition at line 154 of file MainScene.h.

bool MainScene::_doSwitchNext [private]

切替フラグ

Definition at line 157 of file MainScene.h.

切替準備コンテンツの切替フラグ

Definition at line 159 of file MainScene.h.

DWORD MainScene::_frame [private]

Definition at line 108 of file MainScene.h.

bool MainScene::_initializing [private]

Definition at line 168 of file MainScene.h.

string MainScene::_interruptted [private]

Definition at line 197 of file MainScene.h.

Definition at line 198 of file MainScene.h.

Poco::FastMutex MainScene::_lock [private]

Definition at line 101 of file MainScene.h.

DWORD MainScene::_messageFrame [private]

メッセージ

Definition at line 201 of file MainScene.h.

queue<string> MainScene::_messages [private]

Definition at line 202 of file MainScene.h.

LPDIRECT3DTEXTURE9 MainScene::_nextName [private]

次のコンテンツ名

Definition at line 136 of file MainScene.h.

LPDIRECT3DTEXTURE9 MainScene::_nextPlaylistName [private]

次のプレイリスト名

Definition at line 134 of file MainScene.h.

Definition at line 127 of file MainScene.h.

Definition at line 128 of file MainScene.h.

string MainScene::_nowTime [private]

現在時刻

Definition at line 164 of file MainScene.h.

int MainScene::_playCount [private]

再生回数

Definition at line 153 of file MainScene.h.

再生コンテンツ情報

Definition at line 118 of file MainScene.h.

LPDIRECT3DTEXTURE9 MainScene::_playlistName [private]

プレイリスト名

Definition at line 123 of file MainScene.h.

次再生コンテンツ情報

Definition at line 131 of file MainScene.h.

切替準備コンテンツ

Definition at line 142 of file MainScene.h.

切替準備コンテンツ情報

Definition at line 145 of file MainScene.h.

LPDIRECT3DTEXTURE9 MainScene::_preparedName [private]

切替準備のコンテンツ名

Definition at line 150 of file MainScene.h.

LPDIRECT3DTEXTURE9 MainScene::_preparedPlaylistName [private]

切替準備のプレイリスト名

Definition at line 148 of file MainScene.h.

Definition at line 138 of file MainScene.h.

Definition at line 139 of file MainScene.h.

bool MainScene::_preparing [private]

Definition at line 115 of file MainScene.h.

bool MainScene::_preparingNext [private]

Definition at line 155 of file MainScene.h.

float MainScene::_removableAlpha [private]

Definition at line 181 of file MainScene.h.

float MainScene::_removableCover [private]

Definition at line 182 of file MainScene.h.

LPDIRECT3DTEXTURE9 MainScene::_removableIcon [private]

USBアイコン

Definition at line 178 of file MainScene.h.

Definition at line 179 of file MainScene.h.

bool MainScene::_running [private]

Definition at line 169 of file MainScene.h.

map<string, ContainerPtr> MainScene::_stanbyMedias [private]

スタンバイメディア

Definition at line 196 of file MainScene.h.

bool MainScene::_startup [private]

Definition at line 109 of file MainScene.h.

map<string, File> MainScene::_stock [private]

更新ストックファイル

Definition at line 175 of file MainScene.h.

int MainScene::_timeSecond [private]

現在時刻の秒

Definition at line 166 of file MainScene.h.

トランジション

Definition at line 161 of file MainScene.h.

Definition at line 106 of file MainScene.h.

Definition at line 105 of file MainScene.h.

Poco::FastMutex MainScene::_workspaceLock [private]

Definition at line 102 of file MainScene.h.

ActiveMethod<void, string, MainScene> MainScene::activeAddRemovableMedia

リムーバブルメディアの追加(アクティブ版)

Definition at line 316 of file MainScene.h.

ActiveMethod<void, string, MainScene> MainScene::activeCopyRemote

リモートコピー (アクティブ版)

Definition at line 313 of file MainScene.h.

切替用コンテンツの準備(アクティブ版)

Definition at line 283 of file MainScene.h.

リモートディレクトリのコピー

次再生コンテンツを準備(アクティブ版)

Definition at line 245 of file MainScene.h.

ActiveMethod<bool, void, MainScene> MainScene::activeSwitchContent

切替用コンテンツに切替(アクティブ版)

Definition at line 292 of file MainScene.h.


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