Commit ed664cec authored by Sean McBride's avatar Sean McBride
Browse files

Made some float* parameters const

Change-Id: Ic15b7892ed0b07d2e0acba8b8b28758307b63cc8
parent ed69e315
......@@ -1456,7 +1456,7 @@ void vtkWindBladeReader::InitPressureData(int pressure, int prespre,
//----------------------------------------------------------------------------
void vtkWindBladeReader::SetUpPressureData(float* pressureData, float* prespreData,
float* tempgData, float* densityData)
const float* tempgData, const float* densityData)
{
// Entire block of data is read so to calculate index into that data we
// must use the entire Dimension and not the SubDimension
......@@ -1497,7 +1497,7 @@ void vtkWindBladeReader::SetUpPressureData(float* pressureData, float* prespreDa
//----------------------------------------------------------------------------
void vtkWindBladeReader::SetUpVorticityData(float* uData, float* vData,
float *densityData, float* vortData)
const float *densityData, float* vortData)
{
// Divide U and V components by Density
for (unsigned int i = 0; i < this->BlockSize; i++)
......
......@@ -218,8 +218,8 @@ protected:
void InitPressureData(int pressure, int prespre,
float *&pressureData, float *&prespreData);
void SetUpPressureData(float* pressureData, float* prespreData,
float* tempgData, float* densityData);
void SetUpVorticityData(float* uData, float* vData, float *densityData,
const float* tempgData, const float* densityData);
void SetUpVorticityData(float* uData, float* vData, const float *densityData,
float* vortData);
void InitVariableData(int var, int &numberOfComponents, float *&varData,
int &planeSize, int &rowSize);
......
......@@ -1192,7 +1192,7 @@ void vtkXMLReader::GetProgressRange(float* range)
}
//----------------------------------------------------------------------------
void vtkXMLReader::SetProgressRange(float* range, int curStep, int numSteps)
void vtkXMLReader::SetProgressRange(const float* range, int curStep, int numSteps)
{
float stepSize = (range[1] - range[0])/numSteps;
this->ProgressRange[0] = range[0] + stepSize*curStep;
......@@ -1201,8 +1201,8 @@ void vtkXMLReader::SetProgressRange(float* range, int curStep, int numSteps)
}
//----------------------------------------------------------------------------
void vtkXMLReader::SetProgressRange(float* range, int curStep,
float* fractions)
void vtkXMLReader::SetProgressRange(const float* range, int curStep,
const float* fractions)
{
float width = range[1] - range[0];
this->ProgressRange[0] = range[0] + fractions[curStep]*width;
......
......@@ -233,8 +233,8 @@ protected:
// incrementally fine-tuned progress updates.
virtual void GetProgressRange(float* range);
virtual void SetProgressRange(float* range, int curStep, int numSteps);
virtual void SetProgressRange(float* range, int curStep, float* fractions);
virtual void SetProgressRange(const float* range, int curStep, int numSteps);
virtual void SetProgressRange(const float* range, int curStep, const float* fractions);
virtual void UpdateProgressDiscrete(float progress);
float ProgressRange[2];
......
......@@ -2997,7 +2997,7 @@ void vtkXMLWriter::GetProgressRange(float* range)
}
//----------------------------------------------------------------------------
void vtkXMLWriter::SetProgressRange(float* range, int curStep, int numSteps)
void vtkXMLWriter::SetProgressRange(const float* range, int curStep, int numSteps)
{
float stepSize = (range[1] - range[0])/numSteps;
this->ProgressRange[0] = range[0] + stepSize*curStep;
......@@ -3006,8 +3006,8 @@ void vtkXMLWriter::SetProgressRange(float* range, int curStep, int numSteps)
}
//----------------------------------------------------------------------------
void vtkXMLWriter::SetProgressRange(float* range, int curStep,
float* fractions)
void vtkXMLWriter::SetProgressRange(const float* range, int curStep,
const float* fractions)
{
float width = range[1] - range[0];
this->ProgressRange[0] = range[0] + fractions[curStep]*width;
......
......@@ -421,8 +421,8 @@ protected:
// The current range over which progress is moving. This allows for
// incrementally fine-tuned progress updates.
virtual void GetProgressRange(float* range);
virtual void SetProgressRange(float* range, int curStep, int numSteps);
virtual void SetProgressRange(float* range, int curStep, float* fractions);
virtual void SetProgressRange(const float* range, int curStep, int numSteps);
virtual void SetProgressRange(const float* range, int curStep, const float* fractions);
virtual void SetProgressPartial(float fraction);
virtual void UpdateProgressDiscrete(float progress);
float ProgressRange[2];
......
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