#include <nodeabmp.h>
Inheritance diagram for NodeAnimatingBitmap:
Public Member Functions | |
NodeAnimatingBitmap () | |
NodeAnimatingBitmap (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
virtual | ~NodeAnimatingBitmap () |
virtual String | Describe (BOOL Plural, BOOL Verbose) |
To return a description of the NodeBitmap object in either the singular or the plural. This method is called by the DescribeRange method. The description will always begin with a lower case letter. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual Node * | SimpleCopy () |
Makes a copy of all the data in the node. | |
void | CopyNodeContents (NodeAnimatingBitmap *pCopy) |
virtual void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
virtual KernelBitmap * | EnumerateBitmaps (UINT32 Count) |
Find out what bitmaps, if any, are used by this node. | |
virtual KernelBitmapRef * | GetBitmapRef () |
virtual KernelBitmap * | GetBitmap () |
Get the bitmap referenced by this node. | |
Private Member Functions | |
BOOL | AllocBitmapRefs (INT32 nCount) |
Private Attributes | |
KernelBitmapRef * | m_pBmpRefs |
UINT32 | m_nBmpCount |
UINT32 | m_nCurrentBmp |
Definition at line 111 of file nodeabmp.h.
|
Definition at line 114 of file nodeabmp.cpp. 00115 : m_pBmpRefs(0), 00116 m_nBmpCount(0) 00117 { 00118 00119 }
|
|
Definition at line 123 of file nodeabmp.cpp. 00125 : NodeBitmap(ContextNode, Direction, Locked, Mangled, Marked, Selected), 00126 m_pBmpRefs(0), 00127 m_nBmpCount(0) 00128 { 00129 00130 }
|
|
Definition at line 134 of file nodeabmp.cpp.
|
|
Definition at line 231 of file nodeabmp.cpp. 00232 { 00233 ERROR3IF(m_pBmpRefs != 0, "Bitmaps already allocated in NodeAnimatingBitmap::AllocBitmapRefs"); 00234 ERROR3IF(nCount <= 0, "Invalid count in NodeAnimatingBitmap::AllocBitmapRefs"); 00235 m_pBmpRefs = new KernelBitmapRef[nCount]; 00236 return m_pBmpRefs != 0; 00237 }
|
|
Definition at line 165 of file nodeabmp.cpp. 00166 { 00167 // Copy the base class followed by members specific to this derived class. 00168 NodeBitmap::CopyNodeContents(pCopy); 00169 if (pCopy->AllocBitmapRefs(m_nBmpCount)) 00170 for (UINT32 i = 0; i < m_nBmpCount; i++) 00171 pCopy->m_pBmpRefs[i] = m_pBmpRefs[i]; 00172 }
|
|
To return a description of the NodeBitmap object in either the singular or the plural. This method is called by the DescribeRange method. The description will always begin with a lower case letter.
Reimplemented from NodeBitmap. Definition at line 141 of file nodeabmp.cpp. 00142 { 00143 // TEMP: this is candy-floss for now. 00144 return NodeBitmap::Describe(Plural, Verbose); 00145 }
|
|
Find out what bitmaps, if any, are used by this node.
This function supports nodes that use more than one bitmap - you call this function repeatedly and keep incrementing the Count parameter that you pass in each time by 1. You should stop calling it when it returns NULL, as this indicates that no more bitmaps are used by this node. Count should start off as 0 for the first call. Note that this function can (and often will) return NULL for the first call, as many nodes don't use bitmaps, obviously.
Reimplemented from NodeBitmap. Definition at line 199 of file nodeabmp.cpp. 00200 { 00201 return (nCount < m_nBmpCount) ? m_pBmpRefs[nCount].GetBitmap() : 0; 00202 }
|
|
Get the bitmap referenced by this node.
Reimplemented from NodeBitmap. Definition at line 213 of file nodeabmp.cpp. 00214 { 00215 KernelBitmap* pBitmap = m_pBmpRefs[m_nCurrentBmp].GetBitmap(); 00216 if (pBitmap && pBitmap->HasBeenDeleted()) 00217 { 00218 // If necessary (due to the crud that is the bitmap system) use the default bitmap instead. 00219 ERROR2IF(pBitmap->GetParentBitmapList() == NULL, NULL, "Deleted bitmap has no parent list"); 00220 pBitmap = pBitmap->GetParentBitmapList()->FindDefaultBitmap(); 00221 00222 // There should always be a default bitmap in the list 00223 ERROR2IF(pBitmap == NULL, 0L, "Couldn't find the default bitmap"); 00224 } 00225 00226 return pBitmap; 00227 }
|
|
Reimplemented from NodeBitmap. Definition at line 206 of file nodeabmp.cpp. 00207 { 00208 return &m_pBmpRefs[m_nCurrentBmp]; 00209 }
|
|
For finding the size of the node.
Reimplemented from NodeBitmap. Definition at line 149 of file nodeabmp.cpp.
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeBitmap. Definition at line 188 of file nodeabmp.cpp. 00189 { 00190 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 00191 ENSURE(IS_A(pNodeCopy, NodeAnimatingBitmap), "PolyCopyNodeContents given wrong dest node type"); 00192 00193 if (IS_A(pNodeCopy, NodeAnimatingBitmap)) 00194 CopyNodeContents((NodeAnimatingBitmap*)pNodeCopy); 00195 }
|
|
Makes a copy of all the data in the node.
Reimplemented from NodeBitmap. Definition at line 156 of file nodeabmp.cpp. 00157 { 00158 NodeAnimatingBitmap* pCopy = new NodeAnimatingBitmap; 00159 if (pCopy) CopyNodeContents(pCopy); 00160 return pCopy; 00161 }
|
|
Definition at line 147 of file nodeabmp.h. |
|
Definition at line 148 of file nodeabmp.h. |
|
Definition at line 146 of file nodeabmp.h. |