SO3Engine
|
#include <SO3FlashWidget.h>
Public Member Functions | |
SFlashWidget (SScene *targetScene, const std::string &flashWidgetName, const int &xPos, const int &yPos, const unsigned short &widgetWidth, const unsigned short &widgetHeight, SViewPort *targetViewport, const unsigned int &widgetZOrder) | |
SFlashWidget (SScene *targetScene, const std::string &flashWidgetName, const int &xPos, const int &yPos, const unsigned short &widgetWidth, const unsigned short &widgetHeight, SViewPort *targetViewport) | |
SFlashWidget (SScene *targetScene, const std::string &flashWidgetName, const unsigned short &widgetWidth, const unsigned short &widgetHeight, SMaterial *targetMaterial, const unsigned short &targetTechnique, const unsigned short &targetPass, const unsigned short &targetTextureUnit) | |
void | CommonConstructorSequence (const bool &overlayedFlashControl) |
~SFlashWidget () | |
virtual void | LoadURL (const std::string &url) |
virtual void | LoadFile (const std::string &file) |
virtual void | InjectMouseMove (const int &xPos, const int &yPos, const MouseButtonId &button) |
virtual void | InjectMouseWheel (const int &scrollX, const int &scrollY, const int &relativeScroll) |
virtual void | InjectMouseDown (const int &xPos, const int &yPos, const MouseButtonId &button) |
virtual void | InjectTouchAdd (const int &xPos, const int &yPos, const int &touchid) |
virtual void | InjectTouchRemove (const int &touchid) |
virtual void | InjectTouchUpdate (const int &xPos, const int &yPos, const int &vx, const int &vy, const int &touchid) |
virtual void | InjectMouseUp (const int &xPos, const int &yPos, const MouseButtonId &button) |
virtual void | InjectKeyEvent (const UINT &msg, const ScolWindowHandle &hwnd, const WPARAM &wParam, const LPARAM &lParam) |
virtual void | InjectTextEvent (const std::string &utf8) |
FlashRenderQuality | GetRenderingQuality () |
void | SetRenderingQuality (const FlashRenderQuality &newQuality) |
void | Play () |
void | Stop () |
void | Rewind () |
void | Seek (const long &seekFrame) |
void | SetScaleMode (const FlashScaleMode &widgetScaleMode) |
FlashScaleMode | GetScaleMode () |
virtual void | RunScriptFunction (const std::string &functionName, const std::vector< std::string > &argumentList) |
Public Member Functions inherited from SO3::SWidget | |
SWidget (SScene *targetScene, const std::string &widgetName, const int &xPos, const int &yPos, const unsigned short &widgetWidth, const unsigned short &widgetHeight, SViewPort *targetViewport, const unsigned int &widgetZOrder, const std::string &widgetType) | |
SWidget (SScene *targetScene, const std::string &widgetName, const int &xPos, const int &yPos, const unsigned short &widgetWidth, const unsigned short &widgetHeight, SViewPort *targetViewport, const std::string &widgetType) | |
SWidget (SScene *targetScene, const std::string &widgetName, const unsigned short &widgetWidth, const unsigned short &widgetHeight, SMaterial *targetMaterial, const unsigned short &targetTechnique, const unsigned short &targetPass, const unsigned short &targetTextureUnit, const std::string &widgetType) | |
virtual | ~SWidget () |
SScene * | GetParentScene () |
std::string | GetType () |
unsigned short | GetWidth () |
unsigned short | GetHeight () |
SPoint< unsigned short > | GetSize () |
void | SetSize (const unsigned short &newWidth, const unsigned short &newHeight) |
void | SetSize (const SPoint< unsigned short > &newSize) |
float | GetTextureRatio () |
void | SetTextureRatio (const float &newRatio) |
bool | GetIsStereo () |
void | SetStereo (StereoMode state) |
void | SetStereoEye (bool isleft=true) |
SPoint< int > | GetPosition () |
void | SetPosition (const int &xPos, const int &yPos) |
void | SetPosition (const SPoint< int > &newPosition) |
void | Move (const SPoint< int > &relativeMove) |
void | SetCurrentViewport (Ogre::Viewport *vp) |
void | SetScale (const float width, const float height) |
SPoint< float > | GetScale () |
void | SetLeftOffset (const float left) |
void | SetTopOffset (const float top) |
SPoint< int > | GetRealPixelPosition () |
SPoint< unsigned short > | GetRealPixelSize () |
void | Show (const bool &fade=false, const unsigned short &fadeDurationMS=300) |
void | Hide (const bool &fade=false, const unsigned short &fadeDurationMS=300) |
bool | GetVisible () |
void | SetTransparency (const bool &enableTransparency) |
bool | GetTransparency () |
void | SetOpacity (const float &widgetOpacity) |
float | GetOpacity () |
void | SetIgnoreTransparentPixels (const bool &widgetIgnoreTransparentPixels, const float &tresholdColor=0.0f) |
bool | GetIgnoreTransparentPixels () |
float | GetIgnoreTransparentPixelsTreshold () |
void | SetZOrder (const unsigned short &newWidgetOrder) |
unsigned short | GetZOrder () |
void | TakeFocus () |
void | ReleaseFocus () |
bool | HasFocus () |
void | SetKeyboardEnable (const bool &enableKeyboardOnWidget) |
bool | GetKeyboardEnable () |
void | SetMouseEnable (const bool &enableMouseOnWidget) |
bool | GetMouseEnable () |
bool | GetMouseOver () |
bool | GetInputOver (int id) |
void | SetInputOver (int id, bool state) |
void | SetForeground (const bool &enableWidgetForeground) |
bool | GetForeground () |
void | SetTopOnFocus (const bool &enableWidgetTopOnFocus) |
bool | GetTopOnFocus () |
virtual void | loadResource (Ogre::Resource *resource) |
bool | GetUpdateOnFocusOnly () |
void | SetUpdateOnFocusOnly (const bool &activate) |
bool | GetIsOverlayed () |
bool | GetIs2DRect () |
virtual HCURSOR | GetCurrentMouseCursor () |
Public Member Functions inherited from SO3::SData | |
SData (const std::string &dataName) | |
virtual | ~SData () |
std::string | GetName () const |
SUserObjectBindings & | GetUserObjectBindings () |
const SUserObjectBindings & | GetUserObjectBindings () const |
Protected Member Functions | |
virtual void | SetFocusImpl (const bool &focusOnWidget) |
virtual void | SetTransparencyImpl (const bool &enableTransparency) |
virtual void | SetKeyboardEnableImpl (const bool &enableKeyboardOnWidget) |
virtual void | SetMouseEnableImpl (const bool &enableMouseOnWidget) |
virtual void | SetSizeImpl (const unsigned short &newWidth, const unsigned short &newHeight) |
virtual bool | CheckPixelAlpha (const int &posX, const int &posY) |
virtual void | setZOrder (unsigned short zorder) |
virtual unsigned short | getZOrder () |
virtual int | getRelativeX (int absX) |
virtual int | getRelativeY (int absY) |
virtual bool | isPointOverMe (int screenX, int screenY) |
virtual void | invalidateTotally () |
virtual void | handleFlashCall (const std::wstring &xmlString) |
virtual void | update () |
virtual void | load (const std::string &movieFilename, Hikari::HikariManager *hikariMgr, int type) |
virtual void | play () |
virtual void | stop () |
virtual void | rewind () |
virtual void | gotoFrame (long frameNum) |
virtual void | setLoop (bool shouldLoop) |
virtual void | setTransparent (bool isWidgetTransparent, bool useAlphaHack=false) |
virtual void | setQuality (short renderQuality) |
virtual void | setScaleMode (short widgetScaleMode) |
virtual void | setDraggable (bool widgetDraggable) |
virtual void | setIgnoreTransparentPixels (bool shouldIgnore, float threshold=0.04) |
virtual const std::string & | getName () const |
virtual const std::string & | getMaterialName () const |
virtual void | bind (const std::wstring &funcName, const Hikari::FlashDelegate &callback) |
virtual void | unbind (const std::wstring &funcName) |
virtual Hikari::FlashValue | callFunction (const std::wstring &funcName, const Hikari::Arguments &args=Hikari::Args()) |
virtual void | hide () |
virtual void | show () |
virtual bool | getVisibility () const |
virtual void | setOpacity (float opacity) |
virtual void | focus () |
virtual void | move (int deltaX, int deltaY) |
virtual void | getExtents (unsigned short &width, unsigned short &height) const |
virtual void | getUVScale (float &uScale, float &vScale) const |
virtual void | injectMouseMove (int xPos, int yPos, int btn) |
virtual void | injectMouseDown (int xPos, int yPos, int index) |
virtual void | injectMouseUp (int xPos, int yPos, int index) |
virtual void | injectMouseWheel (int relScroll, int xPos, int yPos) |
virtual void | handleKeyEvent (UINT msg, WPARAM wParam, LPARAM lParam) |
Protected Member Functions inherited from SO3::SWidget | |
bool | IsCompensateNPOT () const |
void | CreateTexture (bool alpha=true) |
std::string | CheckUrl (const std::string &url) |
Protected Member Functions inherited from Hikari::IFlashControl | |
IFlashControl () | |
virtual | ~IFlashControl () |
virtual FlashValue | callFunction (const std::wstring &funcName, const Arguments &args=Args())=0 |
Additional Inherited Members | |
Public Types inherited from SO3::SWidget | |
enum | StereoMode { MONO = 0 , SBS = 1 , TB = 2 , BT = 3 } |
Public Attributes inherited from SO3::SWidget | |
friend | SWidgetManager |
Protected Attributes inherited from SO3::SWidget | |
std::string | baseResourceName |
int | leftPos |
int | topPos |
float | leftOffset |
float | topOffset |
unsigned short | width |
unsigned short | height |
unsigned short | mTextureWidth |
The actual texture width allocated in ogre. | |
unsigned short | mTextureHeight |
The actual texture height allocated in ogre. | |
float | textureRatio |
Texture ratio compared to widget size, usually 1.0. | |
SScene * | scene |
SViewPort * | viewport |
Ogre::Viewport * | currentViewport |
Ogre::TexturePtr | renderingTexture |
bool | forceRenderingUpdate |
float | transparentTresholdColor |
bool | compensateNPOT |
Use to indicate if the texture size has be rounded to an exact pow2. | |
Ogre::Vector2 | xCoef |
Ogre::Vector2 | yCoef |
Protected Attributes inherited from SO3::SData | |
std::string | name |
Protected Attributes inherited from Hikari::IFlashControl | |
Hikari::Impl::FlashSite * | site |
Hikari::Impl::FlashHandler * | handler |
Hikari::Impl::RenderBuffer * | renderBuffer |
ShockwaveFlashObjects::IShockwaveFlash * | flashInterface |
IOleObject * | oleObject |
IOleInPlaceObjectWindowless * | windowlessObject |
HDC | mainContext |
HDC | altContext |
HBITMAP | mainBitmap |
HBITMAP | altBitmap |
HGDIOBJ | hOldMainBmp |
HGDIOBJ | hOldAltBmp |
BYTE * | mainBuffer |
BYTE * | altBuffer |
std::string | name |
int | zOrder |
int | initialZOrder |
int | currentZOrder |
int | comCount |
int | width |
int | height |
int | lastBufferSize |
RECT | dirtyBounds |
bool | isClean |
bool | isTotallyDirty |
bool | okayToDelete |
bool | compensateNPOT |
bool | isTransparent |
bool | isDraggable |
bool | isInputListener |
bool | isVisible |
bool | isBlocked |
bool | Foreground |
bool | topOnFocus |
bool | keyBoardEnable |
bool | mouseEnable |
bool | isOverlay |
int | scolFlags |
Definition at line 60 of file SO3FlashWidget.h.
SO3::SFlashWidget::SFlashWidget | ( | SScene * | targetScene, |
const std::string & | flashWidgetName, | ||
const int & | xPos, | ||
const int & | yPos, | ||
const unsigned short & | widgetWidth, | ||
const unsigned short & | widgetHeight, | ||
SViewPort * | targetViewport, | ||
const unsigned int & | widgetZOrder | ||
) |
Definition at line 47 of file SO3FlashWidget.cpp.
SO3::SFlashWidget::SFlashWidget | ( | SScene * | targetScene, |
const std::string & | flashWidgetName, | ||
const int & | xPos, | ||
const int & | yPos, | ||
const unsigned short & | widgetWidth, | ||
const unsigned short & | widgetHeight, | ||
SViewPort * | targetViewport | ||
) |
Definition at line 54 of file SO3FlashWidget.cpp.
SO3::SFlashWidget::SFlashWidget | ( | SScene * | targetScene, |
const std::string & | flashWidgetName, | ||
const unsigned short & | widgetWidth, | ||
const unsigned short & | widgetHeight, | ||
SMaterial * | targetMaterial, | ||
const unsigned short & | targetTechnique, | ||
const unsigned short & | targetPass, | ||
const unsigned short & | targetTextureUnit | ||
) |
Definition at line 61 of file SO3FlashWidget.cpp.
SO3::SFlashWidget::~SFlashWidget | ( | ) |
Destructor.
Definition at line 172 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 753 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Definition at line 763 of file SO3FlashWidget.cpp.
|
protectedvirtual |
return false if no pixel is under coordonates.
Implements SO3::SWidget.
Definition at line 893 of file SO3FlashWidget.cpp.
void SO3::SFlashWidget::CommonConstructorSequence | ( | const bool & | overlayedFlashControl | ) |
Common constructor sequence for every SFlashWidget constructor signature.
Definition at line 68 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 801 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 812 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 747 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 742 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 430 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 436 of file SO3FlashWidget.cpp.
FlashRenderQuality SO3::SFlashWidget::GetRenderingQuality | ( | ) |
Get the rendering quality of the flash widget
Definition at line 321 of file SO3FlashWidget.cpp.
FlashScaleMode SO3::SFlashWidget::GetScaleMode | ( | ) |
Return the scale mode used by this flash widget
Definition at line 356 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 817 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 792 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 424 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 679 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 469 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 851 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 782 of file SO3FlashWidget.cpp.
|
virtual |
Implements SO3::SWidget.
Definition at line 301 of file SO3FlashWidget.cpp.
|
virtual |
Injects mouse down events into this Widget. You must supply the current coordinates of the mouse in this Widget's own local coordinate space.
xPos | The absolute X-Value of the mouse, relative to this Widget's origin. |
yPos | The absolute Y-Value of the mouse, relative to this Widget's origin. |
Implements SO3::SWidget.
Definition at line 276 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 833 of file SO3FlashWidget.cpp.
|
virtual |
Injects the mouse's current coordinates (in this Widget's own local coordinate space) into this Widget.
xPos | The X-coordinate of the mouse, relative to this Widget's origin. |
yPos | The Y-coordinate of the mouse, relative to this Widget's origin. |
Implements SO3::SWidget.
Definition at line 266 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 827 of file SO3FlashWidget.cpp.
|
virtual |
Injects mouse up events into this Widget. You must supply the current coordinates of the mouse in this Widget's own local coordinate space.
xPos | The absolute X-Value of the mouse, relative to this Widget's origin. |
yPos | The absolute Y-Value of the mouse, relative to this Widget's origin. |
Implements SO3::SWidget.
Definition at line 281 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 839 of file SO3FlashWidget.cpp.
|
virtual |
Injects mouse wheel events into this Widget.
scrollX | scroll distance on X axis |
scrollY | scroll distance on Y axis |
Implements SO3::SWidget.
Definition at line 271 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 845 of file SO3FlashWidget.cpp.
|
virtual |
Implements SO3::SWidget.
Definition at line 306 of file SO3FlashWidget.cpp.
|
virtual |
Injects the touch add with current coordinates (in this Widget's own local coordinate space) into this Widget.
xPos | The X-coordinate of the touch point, relative to this Widget's origin. |
yPos | The Y-coordinate of the touch point, relative to this Widget's origin. |
touchid | the touch id |
Implements SO3::SWidget.
Definition at line 286 of file SO3FlashWidget.cpp.
|
virtual |
Injects touch remove down events into this Widget.
touchid | the touch id |
Implements SO3::SWidget.
Definition at line 291 of file SO3FlashWidget.cpp.
|
virtual |
Injects the touch update with current coordinates (in this Widget's own local coordinate space) into this Widget.
xPos | The X-coordinate of the touch point, relative to this Widget's origin. |
yPos | The Y-coordinate of the touch point, relative to this Widget's origin. |
vx | The X last move distance of the touch point, relative to this Widget's origin. |
vy | The Y last move distance of the touch point, relative to this Widget's origin. |
touchid | the touch id |
Implements SO3::SWidget.
Definition at line 296 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 448 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 442 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 659 of file SO3FlashWidget.cpp.
|
virtual |
Loads a local file.
Implements SO3::SWidget.
Definition at line 249 of file SO3FlashWidget.cpp.
|
virtual |
Implements SO3::SWidget.
Definition at line 241 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 807 of file SO3FlashWidget.cpp.
void SO3::SFlashWidget::Play | ( | ) |
Play the flash program.
Definition at line 331 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 664 of file SO3FlashWidget.cpp.
void SO3::SFlashWidget::Rewind | ( | ) |
Restart the flash program at the begining
Definition at line 341 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 674 of file SO3FlashWidget.cpp.
|
virtual |
Execute an action script function using the parameters passed in the list.
Implements SO3::SWidget.
Definition at line 373 of file SO3FlashWidget.cpp.
void SO3::SFlashWidget::Seek | ( | const long & | seekFrame | ) |
Position the flash program to the given frame
Definition at line 346 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 732 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Focus or unfocus widget implementation.
Implements SO3::SWidget.
Definition at line 310 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 737 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements SO3::SWidget.
Definition at line 401 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 684 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Enable mouse input on widget.
Implements SO3::SWidget.
Definition at line 407 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 797 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 698 of file SO3FlashWidget.cpp.
void SO3::SFlashWidget::SetRenderingQuality | ( | const FlashRenderQuality & | newQuality | ) |
Set the rendering quality of the flash widget
Definition at line 326 of file SO3FlashWidget.cpp.
void SO3::SFlashWidget::SetScaleMode | ( | const FlashScaleMode & | widgetScaleMode | ) |
Set the scale mode to be used by this flash widget
Definition at line 351 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 724 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements SO3::SWidget.
Definition at line 412 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements SO3::SWidget.
Definition at line 316 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 689 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 419 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 787 of file SO3FlashWidget.cpp.
void SO3::SFlashWidget::Stop | ( | ) |
Stop to play the flash program.
Definition at line 336 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 669 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 758 of file SO3FlashWidget.cpp.
|
protectedvirtual |
Implements Hikari::IFlashControl.
Definition at line 526 of file SO3FlashWidget.cpp.