#include <swfplace.h>
Inheritance diagram for FlashPlaceObject:
Public Member Functions | |
FlashPlaceObject () | |
Default constructor. Ensure that all the variables are set to values that won't cause problems. | |
~FlashPlaceObject () | |
Default destructor. | |
FlashPlaceObject * | GetNext (void) |
Gets a pointer to the next item in the list. | |
void | SetNext (FlashPlaceObject *pNext) |
Sets mpNext (the pointer to the next item in the list) to the FlashPlaceObject pointed to by pNext. | |
FlashPlaceObject * | AddNext (void) |
Creates a new item, adds it to the list after this node, and returns a pointer to this item. | |
FlashPlaceObject * | GetLast (void) |
Gets a pointer to the previous item in the list. | |
void | SetLast (FlashPlaceObject *pLast) |
Sets mpLast (the pointer to the previous item in the list) to the FlashPlaceObject pointed to by pLast. | |
void | SetType (FlashType Type) |
Sets mToRender, a record of what kind of Flash record to write to the file. | |
FlashType | GetType (void) |
Reveals whether this place object is being used to display a particular kind of Flash file record. | |
void | SetPosition (DocCoord Point) |
Sets the position at which the image should be rendered. | |
DocCoord | GetPosition (void) |
Sets the initial position to render the object at. | |
void | SetID (WORD ID) |
Sets mID. | |
WORD | GetID (void) |
Returns the ID of the object to be placed. | |
WORD | GetRawID (void) |
Returns the raw ID of the object to be placed. (i.e. the value contained in mID.). | |
void | SetDoTransform (BOOL State) |
The way the Flash render region code for buttons has been set up mean that buttons with roll-over states must be placed at (0,0). Unfortunately, if I set the co-ordinates to this value, they are transformed when this class is processed, so I'm putting this value in to alert the filter that I want to use THIS value in the final image. | |
BOOL | GetDoTransform (void) |
Allows the filter to determine whether or not a transform should be applied to the position co-ordinates for this PlaceObject tag. | |
Static Public Member Functions | |
static void | ResetStatics (void) |
Sets all the static member variables to zero. | |
static void | IncBitmapCount (void) |
Increases mBitmapCount. | |
static void | IncFontCount (void) |
Increases mFontCount. | |
static void | IncTextCount (void) |
Increases mTextCount. | |
static void | IncShapeCount (void) |
Increases mShapeCount. | |
static void | IncSpriteCount (void) |
Increases mSpriteCount. | |
static void | DecSpriteCount (void) |
Decreases mSpriteCount. | |
static void | IncButtonCount (void) |
Increases mButtonCount. | |
static WORD | GetBitmapCount (void) |
Access function to the static member variable mBitmapCount. | |
static WORD | GetFontCount (void) |
Access function to the static member variable mFontCount. | |
static WORD | GetTextCount (void) |
Access function to the static member variable mTextCount. | |
static WORD | GetShapeCount (void) |
Access function to the static member variable mShapeCount. | |
static WORD | GetSpriteCount (void) |
Access function to the static member variable mSpriteCount. | |
static WORD | GetButtonCount (void) |
Access function to the static member variable mButtonCount. | |
Private Attributes | |
WORD | mID |
DocCoord | mPosition |
FlashPlaceObject * | mpNext |
FlashPlaceObject * | mpLast |
FlashType | mToRender |
BOOL | mDoTransform |
Static Private Attributes | |
static WORD | mBitmapCount = 0 |
static WORD | mFontCount = 0 |
static WORD | mTextCount = 0 |
static WORD | mShapeCount = 0 |
static WORD | mSpriteCount = 0 |
static WORD | mButtonCount = 0 |
Definition at line 134 of file swfplace.h.
|
Default constructor. Ensure that all the variables are set to values that won't cause problems.
Definition at line 125 of file swfplace.cpp. 00126 { 00127 // Generate initial settings. 00128 DocCoord DefaultPosition ( 0, 0 ); 00129 00130 // And set them. 00131 mToRender = FLASH_SHAPE; 00132 mID = 0; 00133 mPosition = DefaultPosition; 00134 mpNext = NULL; 00135 mpLast = NULL; 00136 mDoTransform = FALSE; 00137 }
|
|
Default destructor.
Definition at line 151 of file swfplace.cpp.
|
|
Creates a new item, adds it to the list after this node, and returns a pointer to this item.
Definition at line 204 of file swfplace.cpp. 00205 { 00206 // Do a recursive call: If there is a next object, call the AddNext function within this, 00207 // and attempt to create the new object there. 00208 if ( mpNext != NULL ) 00209 { 00210 return mpNext->AddNext (); 00211 } 00212 else 00213 { 00214 mpNext = new FlashPlaceObject; 00215 ASSERT ( mpNext != NULL ); 00216 mpNext->SetLast ( this ); 00217 return mpNext; 00218 } 00219 }
|
|
Decreases mSpriteCount.
Definition at line 557 of file swfplace.cpp. 00558 { 00559 // Only decrease the sprite count if it is greated than zero, since it is an unsigned 00560 // value. 00561 if ( mSpriteCount > 0 ) 00562 mSpriteCount --; 00563 }
|
|
Access function to the static member variable mBitmapCount.
Definition at line 594 of file swfplace.cpp. 00595 { 00596 return mBitmapCount; 00597 }
|
|
Access function to the static member variable mButtonCount.
Definition at line 679 of file swfplace.cpp. 00680 { 00681 return mButtonCount; 00682 }
|
|
Allows the filter to determine whether or not a transform should be applied to the position co-ordinates for this PlaceObject tag.
Definition at line 432 of file swfplace.cpp. 00433 { 00434 return mDoTransform; 00435 }
|
|
Access function to the static member variable mFontCount.
Definition at line 611 of file swfplace.cpp. 00612 { 00613 return mFontCount; 00614 }
|
|
Returns the ID of the object to be placed.
Definition at line 354 of file swfplace.cpp. 00355 { 00356 WORD ID = mID; 00357 00358 // Use a switch to determine what the ID value should be. 00359 if ( mToRender == FLASH_TEXT ) 00360 { 00361 ID += FLASH_FIRST_ID + mBitmapCount + mFontCount; 00362 } 00363 else if ( mToRender == FLASH_SHAPE ) 00364 { 00365 ID += FLASH_FIRST_ID + mBitmapCount + mFontCount + mTextCount; 00366 } 00367 else if ( mToRender == FLASH_SPRITE ) 00368 { 00369 ID += FLASH_FIRST_ID + mBitmapCount + mFontCount + mTextCount + mShapeCount; 00370 } 00371 else if ( mToRender == FLASH_BUTTON ) 00372 { 00373 ID += FLASH_FIRST_ID + mBitmapCount + mFontCount + mTextCount + mShapeCount 00374 + mSpriteCount; 00375 } 00376 00377 return ID; 00378 }
|
|
Gets a pointer to the previous item in the list.
Definition at line 233 of file swfplace.cpp. 00234 { 00235 return mpLast; 00236 }
|
|
Gets a pointer to the next item in the list.
Definition at line 168 of file swfplace.cpp. 00169 { 00170 return mpNext; 00171 }
|
|
Sets the initial position to render the object at.
Definition at line 320 of file swfplace.cpp. 00321 { 00322 return mPosition; 00323 }
|
|
Returns the raw ID of the object to be placed. (i.e. the value contained in mID.).
Definition at line 393 of file swfplace.cpp. 00394 { 00395 return mID; 00396 }
|
|
Access function to the static member variable mShapeCount.
Definition at line 645 of file swfplace.cpp. 00646 { 00647 return mShapeCount; 00648 }
|
|
Access function to the static member variable mSpriteCount.
Definition at line 662 of file swfplace.cpp. 00663 { 00664 return mSpriteCount; 00665 }
|
|
Access function to the static member variable mTextCount.
Definition at line 628 of file swfplace.cpp. 00629 { 00630 return mTextCount; 00631 }
|
|
Reveals whether this place object is being used to display a particular kind of Flash file record.
Definition at line 286 of file swfplace.cpp. 00287 { 00288 return mToRender; 00289 }
|
|
Increases mBitmapCount.
Definition at line 472 of file swfplace.cpp. 00473 { 00474 mBitmapCount ++; 00475 }
|
|
Increases mButtonCount.
Definition at line 577 of file swfplace.cpp. 00578 { 00579 mButtonCount ++; 00580 }
|
|
Increases mFontCount.
Definition at line 489 of file swfplace.cpp. 00490 { 00491 mFontCount ++; 00492 }
|
|
Increases mShapeCount.
Definition at line 523 of file swfplace.cpp. 00524 { 00525 mShapeCount ++; 00526 }
|
|
Increases mSpriteCount.
Definition at line 540 of file swfplace.cpp. 00541 { 00542 mSpriteCount ++; 00543 }
|
|
Increases mTextCount.
Definition at line 506 of file swfplace.cpp. 00507 { 00508 mTextCount ++; 00509 }
|
|
Sets all the static member variables to zero.
Definition at line 449 of file swfplace.cpp. 00450 { 00451 // Reset the counter variables. 00452 mBitmapCount = 0; 00453 mFontCount = 0; 00454 mTextCount = 0; 00455 mShapeCount = 0; 00456 mSpriteCount = 0; 00457 mButtonCount = 0; 00458 }
|
|
The way the Flash render region code for buttons has been set up mean that buttons with roll-over states must be placed at (0,0). Unfortunately, if I set the co-ordinates to this value, they are transformed when this class is processed, so I'm putting this value in to alert the filter that I want to use THIS value in the final image.
Definition at line 414 of file swfplace.cpp. 00415 { 00416 mDoTransform = State; 00417 }
|
|
Sets mID.
Definition at line 337 of file swfplace.cpp.
|
|
Sets mpLast (the pointer to the previous item in the list) to the FlashPlaceObject pointed to by pLast.
Definition at line 251 of file swfplace.cpp. 00252 { 00253 mpLast = pLast; 00254 }
|
|
Sets mpNext (the pointer to the next item in the list) to the FlashPlaceObject pointed to by pNext.
Definition at line 186 of file swfplace.cpp. 00187 { 00188 mpNext = pNext; 00189 }
|
|
Sets the position at which the image should be rendered.
Definition at line 303 of file swfplace.cpp. 00304 { 00305 mPosition = Point; 00306 }
|
|
Sets mToRender, a record of what kind of Flash record to write to the file.
Definition at line 268 of file swfplace.cpp.
|
|
Definition at line 188 of file swfplace.h. |
|
Definition at line 193 of file swfplace.h. |
|
Definition at line 185 of file swfplace.h. |
|
Definition at line 189 of file swfplace.h. |
|
Definition at line 180 of file swfplace.h. |
|
Definition at line 183 of file swfplace.h. |
|
Definition at line 182 of file swfplace.h. |
|
Definition at line 181 of file swfplace.h. |
|
Definition at line 191 of file swfplace.h. |
|
Definition at line 192 of file swfplace.h. |
|
Definition at line 190 of file swfplace.h. |
|
Definition at line 184 of file swfplace.h. |