Lines Matching refs:pNode
64 OctreeNode* pNode = pActNode; in ~ImpNodeCache() local
66 pActNode = pNode->pNextInCache; in ~ImpNodeCache()
67 delete pNode; in ~ImpNodeCache()
222 PNODE pNode; in ImplReduce() local
230 pNode = pReduce[ i ]; in ImplReduce()
231 pReduce[ i ] = pNode->pNext; in ImplReduce()
235 if ( pNode->pChild[ i ] ) in ImplReduce()
237 PNODE pChild = pNode->pChild[ i ]; in ImplReduce()
242 pNode->nCount += pChild->nCount; in ImplReduce()
244 pNodeCache->ImplReleaseNode( pNode->pChild[ i ] ); in ImplReduce()
245 pNode->pChild[ i ] = NULL; in ImplReduce()
250 pNode->bLeaf = sal_True; in ImplReduce()
251 pNode->nRed = nRedSum; in ImplReduce()
252 pNode->nGreen = nGreenSum; in ImplReduce()
253 pNode->nBlue = nBlueSum; in ImplReduce()
259 void Octree::CreatePalette( PNODE pNode ) in CreatePalette() argument
261 if( pNode->bLeaf ) in CreatePalette()
263 pNode->nPalIndex = nPalIndex; in CreatePalette()
264 aPal[ nPalIndex++ ] = BitmapColor( (sal_uInt8) ( (double) pNode->nRed / pNode->nCount ), in CreatePalette()
265 (sal_uInt8) ( (double) pNode->nGreen / pNode->nCount ), in CreatePalette()
266 (sal_uInt8) ( (double) pNode->nBlue / pNode->nCount ) ); in CreatePalette()
269 if( pNode->pChild[ i ] ) in CreatePalette()
270 CreatePalette( pNode->pChild[ i ] ); in CreatePalette()
276 void Octree::GetPalIndex( PNODE pNode ) in GetPalIndex() argument
278 if ( pNode->bLeaf ) in GetPalIndex()
279 nPalIndex = pNode->nPalIndex; in GetPalIndex()
288 GetPalIndex( pNode->pChild[ nIndex ] ); in GetPalIndex()