Section: Visualization Toolkit Common Classes
To create an instance of class vtkContourValues, simply invoke its constructor as follows
obj = vtkContourValues
obj
is an instance of the vtkContourValues class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkContourValues = obj.NewInstance ()
vtkContourValues = obj.SafeDownCast (vtkObject o)
obj.SetValue (int i, double value)
- Set the ith contour value.
double = obj.GetValue (int i)
- Get the ith contour value. The return value will be clamped if the
index i is out of range.
obj.GetValues (double contourValues)
- Fill a supplied list with contour values. Make sure you've
allocated memory of size GetNumberOfContours().
obj.SetNumberOfContours (int number)
- Set the number of contours to place into the list. You only really
need to use this method to reduce list size. The method SetValue()
will automatically increase list size as needed.
int = obj.GetNumberOfContours ()
- Return the number of contours in the
obj.GenerateValues (int numContours, double range[2])
- Generate numContours equally spaced contour values between specified
range. Contour values will include min/max range values.
obj.GenerateValues (int numContours, double rangeStart, double rangeEnd)
- Generate numContours equally spaced contour values between specified
range. Contour values will include min/max range values.