Commit d800ddf9 authored by Dave DeMarle's avatar Dave DeMarle
Browse files

STYLE: Remove trailing whitespace

Change-Id: Ic224c799f59dc1bc5a849bd23a1f57e6af961084
parent bdc47e73
...@@ -38,7 +38,7 @@ typedef struct ...@@ -38,7 +38,7 @@ typedef struct
thrust::device_vector<float> *normals; thrust::device_vector<float> *normals;
} vtk_polydata; } vtk_polydata;
struct tuple2float3 : struct tuple2float3 :
thrust::unary_function<thrust::tuple<float, float, float>, float3> thrust::unary_function<thrust::tuple<float, float, float>, float3>
{ {
__host__ __device__ __host__ __device__
......
...@@ -121,7 +121,7 @@ private: ...@@ -121,7 +121,7 @@ private:
// Allocates buffers that are shared between CUDA and GL // Allocates buffers that are shared between CUDA and GL
void PrepareDirectRenderBuffers(int nPoints); void PrepareDirectRenderBuffers(int nPoints);
static bool CudaGLInitted; static bool CudaGLInitted;
class InternalInfo; class InternalInfo;
InternalInfo *Internal; InternalInfo *Internal;
......
...@@ -23,7 +23,7 @@ vtkPistonScalarsColors::vtkPistonScalarsColors() : vtkObject(), ...@@ -23,7 +23,7 @@ vtkPistonScalarsColors::vtkPistonScalarsColors() : vtkObject(),
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkPistonScalarsColors::~vtkPistonScalarsColors() vtkPistonScalarsColors::~vtkPistonScalarsColors()
{ {
this->SetLookupTable(0); this->SetLookupTable(0);
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
...@@ -90,7 +90,7 @@ std::vector<unsigned char>* vtkPistonScalarsColors::ComputeScalarsColors( ...@@ -90,7 +90,7 @@ std::vector<unsigned char>* vtkPistonScalarsColors::ComputeScalarsColors(
{ {
vtkErrorMacro(<< "Cannot have more than four (RGBA) chanels"); vtkErrorMacro(<< "Cannot have more than four (RGBA) chanels");
return NULL; return NULL;
} }
if(!(this->LookupTable->GetMTime() > this->GetMTime() || if(!(this->LookupTable->GetMTime() > this->GetMTime() ||
this->ComputeColorsTime.GetMTime() < this->GetMTime())) this->ComputeColorsTime.GetMTime() < this->GetMTime()))
...@@ -114,7 +114,7 @@ std::vector<unsigned char>* vtkPistonScalarsColors::ComputeScalarsColors( ...@@ -114,7 +114,7 @@ std::vector<unsigned char>* vtkPistonScalarsColors::ComputeScalarsColors(
this->LookupTable->SetRange(this->TableRange); this->LookupTable->SetRange(this->TableRange);
this->LookupTable->Build(); this->LookupTable->Build();
this->LookupTable->MapScalarsThroughTable(valueptr, colorptr, this->LookupTable->MapScalarsThroughTable(valueptr, colorptr,
VTK_FLOAT, this->NumberOfValues, 1, numberOfChanels); VTK_FLOAT, this->NumberOfValues, 1, numberOfChanels);
this->Modified(); this->Modified();
...@@ -169,7 +169,7 @@ std::vector<float>* vtkPistonScalarsColors::ComputeScalarsColorsf( ...@@ -169,7 +169,7 @@ std::vector<float>* vtkPistonScalarsColors::ComputeScalarsColorsf(
this->LookupTable->SetRange(this->TableRange); this->LookupTable->SetRange(this->TableRange);
this->LookupTable->Build(); this->LookupTable->Build();
this->LookupTable->MapScalarsThroughTable(valueptr, colorptr, this->LookupTable->MapScalarsThroughTable(valueptr, colorptr,
VTK_FLOAT, this->NumberOfValues, 1, numberOfChanels); VTK_FLOAT, this->NumberOfValues, 1, numberOfChanels);
// Convert unsigned char color to float color // Convert unsigned char color to float color
this->ScalarsColorsf.resize(this->NumberOfValues * 3); this->ScalarsColorsf.resize(this->NumberOfValues * 3);
...@@ -181,7 +181,7 @@ std::vector<float>* vtkPistonScalarsColors::ComputeScalarsColorsf( ...@@ -181,7 +181,7 @@ std::vector<float>* vtkPistonScalarsColors::ComputeScalarsColorsf(
this->ScalarsColorsf[j] = r; this->ScalarsColorsf[j] = r;
this->ScalarsColorsf[j+1] = g; this->ScalarsColorsf[j+1] = g;
this->ScalarsColorsf[j+2] = b; this->ScalarsColorsf[j+2] = b;
} }
delete [] scalarColors; delete [] scalarColors;
...@@ -206,7 +206,7 @@ void vtkPistonScalarsColors::ComputeValues(float *values) ...@@ -206,7 +206,7 @@ void vtkPistonScalarsColors::ComputeValues(float *values)
{ {
*values = this->TableRange[0] + *values = this->TableRange[0] +
i * ((this->TableRange[1] - this->TableRange[0]) / i * ((this->TableRange[1] - this->TableRange[0]) /
(float) this->NumberOfValues); (float) this->NumberOfValues);
values++; values++;
} }
} }
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