Commit 08c0815e authored by Amy Squillacote's avatar Amy Squillacote
Browse files

set/get methods for sample rate components

parent 46866502
......@@ -24,7 +24,7 @@
#include "vtkRectilinearGrid.h"
#include "vtkStructuredGrid.h"
vtkCxxRevisionMacro(vtkPVExtractVOI, "1.1");
vtkCxxRevisionMacro(vtkPVExtractVOI, "1.2");
vtkStandardNewMacro(vtkPVExtractVOI);
//----------------------------------------------------------------------------
......@@ -239,6 +239,41 @@ void vtkPVExtractVOI::ExecuteData(vtkDataObject*)
}
}
//----------------------------------------------------------------------------
void vtkPVExtractVOI::SetSampleRateI(int ratei)
{
if (this->SampleRate[0] == ratei)
{
return;
}
this->SampleRate[0] = ratei;
this->Modified();
}
//----------------------------------------------------------------------------
void vtkPVExtractVOI::SetSampleRateJ(int ratej)
{
if (this->SampleRate[1] == ratej)
{
return;
}
this->SampleRate[1] = ratej;
this->Modified();
}
//----------------------------------------------------------------------------
void vtkPVExtractVOI::SetSampleRateK(int ratek)
{
if (this->SampleRate[2] == ratek)
{
return;
}
this->SampleRate[2] = ratek;
this->Modified();
}
//----------------------------------------------------------------------------
void vtkPVExtractVOI::PrintSelf(ostream& os, vtkIndent indent)
......@@ -260,5 +295,3 @@ void vtkPVExtractVOI::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "Include Boundary: "
<< (this->IncludeBoundary ? "On\n" : "Off\n");
}
......@@ -55,6 +55,15 @@ public:
vtkSetVector3Macro(SampleRate, int);
vtkGetVectorMacro(SampleRate, int, 3);
// Description:
// Set/get the individual components of the sample rate.
void SetSampleRateI(int ratei);
void SetSampleRateJ(int ratej);
void SetSampleRateK(int ratek);
int GetSampleRateI() { return this->SampleRate[0]; }
int GetSampleRateJ() { return this->SampleRate[1]; }
int GetSampleRateK() { return this->SampleRate[2]; }
// Description:
// Control whether to enforce that the "boundary" of the grid is output in
// the subsampling process. (This ivar only has effect when the SampleRate
......
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