You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
777 B
C++
33 lines
777 B
C++
|
1 month ago
|
#include "vtkPixelTransfer.h"
|
||
|
|
|
||
|
|
//-----------------------------------------------------------------------------
|
||
|
|
int vtkPixelTransfer::Blit(
|
||
|
|
const vtkPixelExtent &srcWholeExt,
|
||
|
|
const vtkPixelExtent &srcExt,
|
||
|
|
const vtkPixelExtent &destWholeExt,
|
||
|
|
const vtkPixelExtent &destExt,
|
||
|
|
int nSrcComps,
|
||
|
|
int srcType,
|
||
|
|
void *srcData,
|
||
|
|
int nDestComps,
|
||
|
|
int destType,
|
||
|
|
void *destData)
|
||
|
|
{
|
||
|
|
// first layer of dispatch
|
||
|
|
switch(srcType)
|
||
|
|
{
|
||
|
|
vtkTemplateMacro(
|
||
|
|
return vtkPixelTransfer::Blit(
|
||
|
|
srcWholeExt,
|
||
|
|
srcExt,
|
||
|
|
destWholeExt,
|
||
|
|
destExt,
|
||
|
|
nSrcComps,
|
||
|
|
(VTK_TT*)srcData,
|
||
|
|
nDestComps,
|
||
|
|
destType,
|
||
|
|
destData));
|
||
|
|
}
|
||
|
|
return 0;
|
||
|
|
}
|