Commit bdc02994 authored by Will Schroeder's avatar Will Schroeder

Cleaned up documentation

parent 707da941
Pipeline #8002 passed with stage
......@@ -29,7 +29,7 @@
vtkStandardNewMacro(vtkSampleDataSet);
vtkCxxSetObjectMacro(vtkSampleDataSet,ImplicitFunction,vtkImplicitFunction);
//Interface between vtkSMPTools and VTK pipeline
// Interface between vtkSMPTools and the VTK pipeline
namespace {
struct SampleDataSet
......@@ -97,10 +97,10 @@ vtkSampleDataSet::vtkSampleDataSet()
this->ComputeGradients = 1;
this->ScalarArrayName=0;
this->ScalarArrayName = 0;
this->SetScalarArrayName("Implicit scalars");
this->GradientArrayName=0;
this->GradientArrayName = 0;
this->SetGradientArrayName("Implicit gradients");
}
......@@ -188,9 +188,6 @@ int vtkSampleDataSet::RequestData(
if ( this->ComputeGradients )
{
// For an unknown reason yet, if the following line is not commented out,
// it will make ImplicitSum, TestBoxFunction and TestDiscreteMarchingCubes
// to fail.
newGradients->SetName(this->GradientArrayName);
output->GetPointData()->SetVectors(newGradients);
newGradients->Delete();
......
......@@ -19,7 +19,7 @@
// vtkSampleDataSet is a filter that evaluates an implicit function and
// (optional) gradients at each point in an input vtkDataSet. The output
// of the filter are new scalar values (the function values) and the
// optional vector, gradient array.
// optional vector (function gradient) array.
// .SECTION Caveats
// This class has been threaded with vtkSMPTools. Using TBB or other
......@@ -59,19 +59,19 @@ public:
vtkBooleanMacro(ComputeGradients,int);
// Description:
// Set/get the scalar array name for this data set. Initial value is
// Set/get the scalar array name for this data set. The initial value is
// "Implicit scalars".
vtkSetStringMacro(ScalarArrayName);
vtkGetStringMacro(ScalarArrayName);
// Description:
// Set/get the gradient array name for this data set. Initial value is
// Set/get the gradient array name for this data set. The initial value is
// "Implicit gradients".
vtkSetStringMacro(GradientArrayName);
vtkGetStringMacro(GradientArrayName);
// Description:
// Return the MTime also considering the implicit function.
// Return the MTime also taking into account the implicit function.
unsigned long GetMTime();
protected:
......
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