svvitch
digital signage player
TextContent Class Reference

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

#include <TextContent.h>

Inheritance diagram for TextContent:
Collaboration diagram for TextContent:

List of all members.

Public Member Functions

 TextContent (Renderer &renderer, int splitType, float x=0, float y=0, float w=0, float h=0)
virtual ‾TextContent ()
bool open (const MediaItemPtr media, const int offset=0)
 ファイルをオープンします
void setReference (TextContent *text)
void play ()
 再生
void stop ()
 停止
const bool finished ()
 終了したかどうか
void close ()
 ファイルをクローズします
int getTextWidth ()
int getTextHeight ()
void setColor (DWORD c1, DWORD c2)
void setBorder1 (int size, DWORD col)
void setBorder2 (int size, DWORD col)
void setFont (string font)
void setFontHeight (int height, int desent=0)
void setTextStyle (string style)
void setAlign (string align)
void setFitBounds (bool fit)
void drawTexture (string text)
void process (const DWORD &frame)
 1フレームに1度だけ処理される
void draw (const DWORD &frame)
 描画

Private Member Functions

void initialize ()
 初期化
void drawText (string text, Gdiplus::Bitmap &bitmap, Gdiplus::Rect &rect)

Private Attributes

Poco::FastMutex _lock
Poco::FastMutex _initializeLock
LPDIRECT3DTEXTURE9 _texture
TextContent_referencedText
string _text
string _textFont
string _textStyle
int _textHeight
int _desent
Gdiplus::Color _c1
Gdiplus::Color _c2
Gdiplus::Color _b1
Gdiplus::REAL _borderSize1
Gdiplus::Color _b2
Gdiplus::REAL _borderSize2
int _ax
int _tw
int _th
int _iw
int _ih
int _cx
int _cy
int _cw
int _ch
int _sx
int _sy
string _move
bool _async
float _dx
float _dy
int _frameWait
string _align
bool _fitBounds
Gdiplus::FontFamily _ff [16]

Detailed Description

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

文字列をTrueTypeフォントでレンダリングし描画します

Definition at line 12 of file TextContent.h.


Constructor & Destructor Documentation

TextContent::TextContent ( Renderer renderer,
int  splitType,
float  x = 0,
float  y = 0,
float  w = 0,
float  h = 0 
)

Definition at line 17 of file TextContent.cpp.

Here is the call graph for this function:


Member Function Documentation

void TextContent::close ( ) [virtual]

ファイルをクローズします

Reimplemented from Content.

Definition at line 170 of file TextContent.cpp.

Here is the caller graph for this function:

void TextContent::draw ( const DWORD &  frame) [virtual]

描画

Reimplemented from Content.

Definition at line 271 of file TextContent.cpp.

Here is the call graph for this function:

void TextContent::drawText ( string  text,
Gdiplus::Bitmap &  bitmap,
Gdiplus::Rect &  rect 
) [private]

Definition at line 584 of file TextContent.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TextContent::drawTexture ( string  text)

Definition at line 480 of file TextContent.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const bool TextContent::finished ( ) [virtual]

終了したかどうか

Reimplemented from Content.

Definition at line 161 of file TextContent.cpp.

Definition at line 431 of file TextContent.cpp.

Definition at line 427 of file TextContent.cpp.

void TextContent::initialize ( ) [private, virtual]

初期化

Reimplemented from Content.

Definition at line 27 of file TextContent.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool TextContent::open ( const MediaItemPtr  media,
const int  offset = 0 
) [virtual]

ファイルをオープンします

Reimplemented from Content.

Definition at line 34 of file TextContent.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TextContent::play ( ) [virtual]

再生

Reimplemented from Content.

Definition at line 137 of file TextContent.cpp.

void TextContent::process ( const DWORD &  frame) [virtual]

1フレームに1度だけ処理される

Reimplemented from Content.

Definition at line 190 of file TextContent.cpp.

Here is the call graph for this function:

void TextContent::setAlign ( string  align)

Definition at line 467 of file TextContent.cpp.

void TextContent::setBorder1 ( int  size,
DWORD  col 
)

Definition at line 444 of file TextContent.cpp.

void TextContent::setBorder2 ( int  size,
DWORD  col 
)

Definition at line 449 of file TextContent.cpp.

void TextContent::setColor ( DWORD  c1,
DWORD  c2 
)

Definition at line 439 of file TextContent.cpp.

void TextContent::setFitBounds ( bool  fit)

Definition at line 435 of file TextContent.cpp.

void TextContent::setFont ( string  font)

Definition at line 454 of file TextContent.cpp.

void TextContent::setFontHeight ( int  height,
int  desent = 0 
)

Definition at line 458 of file TextContent.cpp.

Definition at line 131 of file TextContent.cpp.

Here is the caller graph for this function:

void TextContent::setTextStyle ( string  style)

Definition at line 463 of file TextContent.cpp.

void TextContent::stop ( ) [virtual]

停止

Reimplemented from Content.

Definition at line 157 of file TextContent.cpp.

TextContent::‾TextContent ( ) [virtual]

Definition at line 23 of file TextContent.cpp.

Here is the call graph for this function:


Member Data Documentation

string TextContent::_align [private]

Definition at line 46 of file TextContent.h.

bool TextContent::_async [private]

Definition at line 42 of file TextContent.h.

int TextContent::_ax [private]

Definition at line 30 of file TextContent.h.

Gdiplus::Color TextContent::_b1 [private]

Definition at line 26 of file TextContent.h.

Gdiplus::Color TextContent::_b2 [private]

Definition at line 28 of file TextContent.h.

Gdiplus::REAL TextContent::_borderSize1 [private]

Definition at line 27 of file TextContent.h.

Gdiplus::REAL TextContent::_borderSize2 [private]

Definition at line 29 of file TextContent.h.

Gdiplus::Color TextContent::_c1 [private]

Definition at line 24 of file TextContent.h.

Gdiplus::Color TextContent::_c2 [private]

Definition at line 25 of file TextContent.h.

int TextContent::_ch [private]

Definition at line 38 of file TextContent.h.

int TextContent::_cw [private]

Definition at line 37 of file TextContent.h.

int TextContent::_cx [private]

Definition at line 35 of file TextContent.h.

int TextContent::_cy [private]

Definition at line 36 of file TextContent.h.

int TextContent::_desent [private]

Definition at line 23 of file TextContent.h.

float TextContent::_dx [private]

Definition at line 43 of file TextContent.h.

float TextContent::_dy [private]

Definition at line 44 of file TextContent.h.

Gdiplus::FontFamily TextContent::_ff[16] [private]

Definition at line 48 of file TextContent.h.

bool TextContent::_fitBounds [private]

Definition at line 47 of file TextContent.h.

int TextContent::_frameWait [private]

Definition at line 45 of file TextContent.h.

int TextContent::_ih [private]

Definition at line 34 of file TextContent.h.

Poco::FastMutex TextContent::_initializeLock [private]

Definition at line 15 of file TextContent.h.

int TextContent::_iw [private]

Definition at line 33 of file TextContent.h.

Poco::FastMutex TextContent::_lock [private]

Definition at line 14 of file TextContent.h.

string TextContent::_move [private]

Definition at line 41 of file TextContent.h.

Definition at line 18 of file TextContent.h.

int TextContent::_sx [private]

Definition at line 39 of file TextContent.h.

int TextContent::_sy [private]

Definition at line 40 of file TextContent.h.

string TextContent::_text [private]

Definition at line 19 of file TextContent.h.

string TextContent::_textFont [private]

Definition at line 20 of file TextContent.h.

int TextContent::_textHeight [private]

Definition at line 22 of file TextContent.h.

string TextContent::_textStyle [private]

Definition at line 21 of file TextContent.h.

LPDIRECT3DTEXTURE9 TextContent::_texture [private]

Definition at line 17 of file TextContent.h.

int TextContent::_th [private]

Definition at line 32 of file TextContent.h.

int TextContent::_tw [private]

Definition at line 31 of file TextContent.h.


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