Commit 8b5ebe38 authored by Lisa Avila's avatar Lisa Avila

COMP: Fixing warnings about unused variables

parent 05d3e74a
......@@ -27,7 +27,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastCompositeGOHelper, "1.1");
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastCompositeGOHelper, "1.2");
vtkStandardNewMacro(vtkFixedPointVolumeRayCastCompositeGOHelper);
// Construct a new vtkFixedPointVolumeRayCastCompositeGOHelper with default values
......@@ -260,6 +260,7 @@ void vtkFixedPointCompositeGOHelperGenerateImageIndependentNN( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartGONN();
VTKKWRCHelper_InitializeCompositeMultiNN();
VTKKWRCHelper_InitializeCompositeGONN();
......@@ -677,6 +678,7 @@ void vtkFixedPointCompositeGOHelperGenerateImageIndependentTrilin( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartGOTrilin();
VTKKWRCHelper_InitializeCompositeMultiTrilin();
VTKKWRCHelper_InitializeCompositeMultiGOTrilin();
......
......@@ -27,7 +27,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastCompositeGOShadeHelper, "1.1");
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastCompositeGOShadeHelper, "1.2");
vtkStandardNewMacro(vtkFixedPointVolumeRayCastCompositeGOShadeHelper);
// Construct a new vtkFixedPointVolumeRayCastCompositeGOShadeHelper with default values
......@@ -274,6 +274,7 @@ void vtkFixedPointCompositeGOShadeHelperGenerateImageIndependentNN( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartGOShadeNN();
VTKKWRCHelper_InitializeCompositeMultiNN();
VTKKWRCHelper_InitializeCompositeShadeNN();
......@@ -747,6 +748,7 @@ void vtkFixedPointCompositeGOShadeHelperGenerateImageIndependentTrilin( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartGOShadeTrilin();
VTKKWRCHelper_InitializeCompositeMultiTrilin();
VTKKWRCHelper_InitializeCompositeMultiShadeTrilin();
......
......@@ -27,7 +27,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastCompositeHelper, "1.1");
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastCompositeHelper, "1.2");
vtkStandardNewMacro(vtkFixedPointVolumeRayCastCompositeHelper);
// Construct a new vtkFixedPointVolumeRayCastCompositeHelper with default values
......@@ -53,7 +53,7 @@ void vtkFixedPointCompositeHelperGenerateImageOneSimpleNN( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartNN();
VTKKWRCHelper_InitializeCompositeOneNN();
......@@ -96,7 +96,7 @@ void vtkFixedPointCompositeHelperGenerateImageOneNN( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartNN();
VTKKWRCHelper_InitializeCompositeOneNN();
......@@ -140,7 +140,7 @@ void vtkFixedPointCompositeHelperGenerateImageTwoDependentNN( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartNN();
VTKKWRCHelper_InitializeCompositeOneNN();
......@@ -197,7 +197,7 @@ void vtkFixedPointCompositeHelperGenerateImageFourDependentNN( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartNN();
VTKKWRCHelper_InitializeCompositeOneNN();
......@@ -253,6 +253,7 @@ void vtkFixedPointCompositeHelperGenerateImageIndependentNN( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartNN();
VTKKWRCHelper_InitializeCompositeMultiNN();
VTKKWRCHelper_SpaceLeapSetup();
......@@ -301,7 +302,7 @@ void vtkFixedPointCompositeHelperGenerateImageOneSimpleTrilin( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeCompositeOneTrilin();
......@@ -357,7 +358,7 @@ void vtkFixedPointCompositeHelperGenerateImageOneTrilin( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeCompositeOneTrilin();
......@@ -416,7 +417,7 @@ void vtkFixedPointCompositeHelperGenerateImageTwoDependentTrilin( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeCompositeMultiTrilin();
......@@ -493,7 +494,7 @@ void vtkFixedPointCompositeHelperGenerateImageFourDependentTrilin( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeCompositeMultiTrilin();
......@@ -571,6 +572,7 @@ void vtkFixedPointCompositeHelperGenerateImageIndependentTrilin( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeCompositeMultiTrilin();
VTKKWRCHelper_SpaceLeapSetup();
......
......@@ -27,7 +27,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastCompositeShadeHelper, "1.1");
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastCompositeShadeHelper, "1.2");
vtkStandardNewMacro(vtkFixedPointVolumeRayCastCompositeShadeHelper);
// Construct a new vtkFixedPointVolumeRayCastCompositeShadeHelper with default values
......@@ -255,6 +255,7 @@ void vtkFixedPointCompositeShadeHelperGenerateImageIndependentNN( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartShadeNN();
VTKKWRCHelper_InitializeCompositeMultiNN();
VTKKWRCHelper_InitializeCompositeShadeNN();
......@@ -625,6 +626,7 @@ void vtkFixedPointCompositeShadeHelperGenerateImageIndependentTrilin( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartShadeTrilin();
VTKKWRCHelper_InitializeCompositeMultiTrilin();
VTKKWRCHelper_InitializeCompositeMultiShadeTrilin();
......
......@@ -694,7 +694,6 @@ MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
int imageViewportSize[2]; \
int imageOrigin[2]; \
int dim[3]; \
float weights[4]; \
float shift[4]; \
float scale[4]; \
\
......@@ -703,10 +702,6 @@ MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
mapper->GetImageViewportSize(imageViewportSize); \
mapper->GetImageOrigin(imageOrigin); \
mapper->GetInput()->GetDimensions(dim); \
weights[0] = vol->GetProperty()->GetComponentWeight(0); \
weights[1] = vol->GetProperty()->GetComponentWeight(1); \
weights[2] = vol->GetProperty()->GetComponentWeight(2); \
weights[3] = vol->GetProperty()->GetComponentWeight(3); \
mapper->GetTableShift( shift ); \
mapper->GetTableScale( scale ); \
\
......@@ -733,6 +728,15 @@ MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
inc[2] = dim[0]*dim[1]*components;
//ETX
//BTX
#define VTKKWRCHelper_InitializeWeights() \
float weights[4]; \
weights[0] = vol->GetProperty()->GetComponentWeight(0); \
weights[1] = vol->GetProperty()->GetComponentWeight(1); \
weights[2] = vol->GetProperty()->GetComponentWeight(2); \
weights[3] = vol->GetProperty()->GetComponentWeight(3);
//ETX
//BTX
#define VTKKWRCHelper_InitializeVariablesGO() \
unsigned short *gradientOpacityTable[4]; \
......
......@@ -31,7 +31,7 @@ MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#include <math.h>
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastMIPHelper, "1.1");
vtkCxxRevisionMacro(vtkFixedPointVolumeRayCastMIPHelper, "1.2");
vtkStandardNewMacro(vtkFixedPointVolumeRayCastMIPHelper);
// Construct a new vtkFixedPointVolumeRayCastMIPHelper with default values
......@@ -54,7 +54,7 @@ void vtkFixedPointMIPHelperGenerateImageOneNN( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartNN();
VTKKWRCHelper_InitializeMIPOneNN();
......@@ -133,7 +133,7 @@ void vtkFixedPointMIPHelperGenerateImageDependentNN( T *data,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartNN();
VTKKWRCHelper_InitializeMIPMultiNN();
......@@ -196,6 +196,7 @@ void vtkFixedPointMIPHelperGenerateImageIndependentNN( T *data,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartNN();
VTKKWRCHelper_InitializeMIPMultiNN();
VTKKWRCHelper_SpaceLeapSetupMulti();
......@@ -264,7 +265,7 @@ void vtkFixedPointMIPHelperGenerateImageOneSimpleTrilin( T *dataPtr,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeMIPOneTrilin();
......@@ -345,7 +346,7 @@ void vtkFixedPointMIPHelperGenerateImageOneTrilin( T *dataPtr,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeMIPOneTrilin();
......@@ -419,7 +420,7 @@ void vtkFixedPointMIPHelperGenerateImageDependentTrilin( T *dataPtr,
int threadID,
int threadCount,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
vtkVolume *vtkNotUsed(vol))
{
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeMIPMultiTrilin();
......@@ -497,6 +498,7 @@ void vtkFixedPointMIPHelperGenerateImageIndependentTrilin( T *dataPtr,
vtkFixedPointVolumeRayCastMapper *mapper,
vtkVolume *vol)
{
VTKKWRCHelper_InitializeWeights();
VTKKWRCHelper_InitializationAndLoopStartTrilin();
VTKKWRCHelper_InitializeMIPMultiTrilin();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment