TChannelDataBucket Class Reference
[MCImage]
List of all members.
Detailed Description
TChannelDataBucket is used to access part of the data of an IShChannel. Here is an example:
TMCArray<real> distanceBuffer;
distanceBuffer.SetElemCount( (tileRect.GetWidth()+fMaxRadius*4) * (tileRect.GetHeight()+fMaxRadius*4) );
int32 rmax= fMaxRadius;
TMCRect rect(outputRect.left-2*rmax,outputRect.top-2*rmax,outputRect.right+2*rmax,outputRect.bottom+2*rmax);
TChannelDataBucket distanceBucket;
fZBuffer->GetData(rect, &distanceBucket,(void*)distanceBuffer.BaseAddress(), eTileRead | kDataReplicateBorders);
const uint32 width = outputRect.GetWidth();
const uint32 height = outputRect.GetHeight();
real* dist= NULL;
for (uint32 y= rmax; y < (height+3*rmax); y++)
{
dist= (real*)distanceBucket.RowPtr32(y);
for (uint32 x= rmax; x < (width+3*rmax); x++)
{
gShellThreadUtilities->YieldProcesses(15);
const real pixelDistance= dist[x];
}
}
fZBuffer->UnGetData(&distanceBucket,false);
Constructor & Destructor Documentation
TChannelDataBucket::TChannelDataBucket |
( |
|
) |
[inline] |
TChannelDataBucket::TChannelDataBucket |
( |
TMCPixelBucket * |
pbuck |
) |
[inline] |
Member Function Documentation
real32 TChannelDataBucket::GetGamma |
( |
void |
|
) |
const [inline] |
TMCPoint TChannelDataBucket::GetOrigin |
( |
void |
|
) |
const [inline] |
void* TChannelDataBucket::GetPrivateData |
( |
void |
|
) |
const [inline] |
TMCRect TChannelDataBucket::OffsetRect |
( |
void |
|
) |
const [inline] |
void TChannelDataBucket::SetGamma |
( |
const real32 |
g |
) |
[inline] |
void TChannelDataBucket::SetOrigin |
( |
const TMCPoint & |
p |
) |
[inline] |
void TChannelDataBucket::SetPrivateData |
( |
void * |
data |
) |
[inline] |
Member Data Documentation
gamma used to interpret 8-bit data
origin of the pixelbucket
private data used by MCImage channel API
The documentation for this class was generated from the following file: