An update will be applied January 25th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 9c5c2a16 authored by Sean McBride's avatar Sean McBride
Browse files

Replaced all "VTK_LARGE_ID" with "VTK_ID_MAX"

The constant "VTK_LARGE_ID" was deprecated
and replaced with "VTK_ID_MAX" (for consistency
in naming).

Change-Id: Id3b9d0155b451f95e2d6242fe463fde793126aa0
parent 35c44ca1
......@@ -1205,7 +1205,7 @@ double vtkDataArray::GetDataTypeMax(int type)
#endif
case VTK_FLOAT: return static_cast<double>(VTK_FLOAT_MAX);
case VTK_DOUBLE: return static_cast<double>(VTK_DOUBLE_MAX);
case VTK_ID_TYPE: return static_cast<double>(VTK_LARGE_ID);
case VTK_ID_TYPE: return static_cast<double>(VTK_ID_MAX);
default: return 1;
}
}
......
......@@ -120,7 +120,7 @@ public:
// Description:
// Get the maximum data value in its native type.
static vtkIdType GetDataTypeValueMax() { return VTK_LARGE_ID; }
static vtkIdType GetDataTypeValueMax() { return VTK_ID_MAX; }
// Description:
// Get the address of a particular data index. Make sure data is allocated
......
......@@ -243,7 +243,7 @@ public:
// SetNumberOfTableValues() instead, it can be used both before and
// after the table has been built whereas SetNumberOfColors() has no
// effect after the table has been built.
vtkSetClampMacro(NumberOfColors,vtkIdType,2,VTK_LARGE_ID);
vtkSetClampMacro(NumberOfColors,vtkIdType,2,VTK_ID_MAX);
vtkGetMacro(NumberOfColors,vtkIdType);
// Description:
......
......@@ -83,7 +83,7 @@ public:
}
else
{
this->CurrentPolygonSize = VTK_LARGE_ID;
this->CurrentPolygonSize = VTK_ID_MAX;
}
return this->Current;
}
......
......@@ -88,7 +88,7 @@ public:
}
else
{
this->CurrentPolygonSize = VTK_LARGE_ID;
this->CurrentPolygonSize = VTK_ID_MAX;
}
return this->Current;
}
......
......@@ -33,7 +33,7 @@ vtkMaskPoints::vtkMaskPoints()
this->OnRatio = 2;
this->Offset = 0;
this->RandomMode = 0;
this->MaximumNumberOfPoints = VTK_LARGE_ID;
this->MaximumNumberOfPoints = VTK_ID_MAX;
this->GenerateVertices = 0;
this->SingleVertexPerCell = 0;
this->RandomModeType = 0;
......
......@@ -46,12 +46,12 @@ public:
// Description:
// Limit the number of points that can be passed through (i.e.,
// sets the output sample size).
vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
// Description:
// Start sampling with this point. Ignored by certain random modes.
vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(Offset,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(Offset,vtkIdType);
// Description:
......
......@@ -41,7 +41,7 @@ public:
// Description:
// Start with this entity (cell).
vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(Offset,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(Offset,vtkIdType);
protected:
......
......@@ -31,10 +31,10 @@ vtkStandardNewMacro(vtkExtractUnstructuredGrid);
vtkExtractUnstructuredGrid::vtkExtractUnstructuredGrid()
{
this->PointMinimum = 0;
this->PointMaximum = VTK_LARGE_ID;
this->PointMaximum = VTK_ID_MAX;
this->CellMinimum = 0;
this->CellMaximum = VTK_LARGE_ID;
this->CellMaximum = VTK_ID_MAX;
this->Extent[0] = -VTK_DOUBLE_MAX;
this->Extent[1] = VTK_DOUBLE_MAX;
......
......@@ -71,22 +71,22 @@ public:
// Description:
// Specify the minimum point id for point id selection.
vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(PointMinimum,vtkIdType);
// Description:
// Specify the maximum point id for point id selection.
vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(PointMaximum,vtkIdType);
// Description:
// Specify the minimum cell id for point id selection.
vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(CellMinimum,vtkIdType);
// Description:
// Specify the maximum cell id for point id selection.
vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(CellMaximum,vtkIdType);
// Description:
......
......@@ -49,10 +49,10 @@ vtkCxxSetObjectMacro(vtkGenericGeometryFilter,Locator,vtkIncrementalPointLocator
vtkGenericGeometryFilter::vtkGenericGeometryFilter()
{
this->PointMinimum = 0;
this->PointMaximum = VTK_LARGE_ID;
this->PointMaximum = VTK_ID_MAX;
this->CellMinimum = 0;
this->CellMaximum = VTK_LARGE_ID;
this->CellMaximum = VTK_ID_MAX;
this->Extent[0] = VTK_DOUBLE_MIN;
this->Extent[1] = VTK_DOUBLE_MAX;
......
......@@ -77,22 +77,22 @@ public:
// Description:
// Specify the minimum point id for point id selection.
vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(PointMinimum,vtkIdType);
// Description:
// Specify the maximum point id for point id selection.
vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(PointMaximum,vtkIdType);
// Description:
// Specify the minimum cell id for point id selection.
vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(CellMinimum,vtkIdType);
// Description:
// Specify the maximum cell id for point id selection.
vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(CellMaximum,vtkIdType);
// Description:
......
......@@ -44,10 +44,10 @@ vtkCxxSetObjectMacro(vtkGeometryFilter, Locator, vtkIncrementalPointLocator)
vtkGeometryFilter::vtkGeometryFilter()
{
this->PointMinimum = 0;
this->PointMaximum = VTK_LARGE_ID;
this->PointMaximum = VTK_ID_MAX;
this->CellMinimum = 0;
this->CellMaximum = VTK_LARGE_ID;
this->CellMaximum = VTK_ID_MAX;
this->Extent[0] = -VTK_DOUBLE_MAX;
this->Extent[1] = VTK_DOUBLE_MAX;
......
......@@ -81,22 +81,22 @@ public:
// Description:
// Specify the minimum point id for point id selection.
vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(PointMinimum,vtkIdType);
// Description:
// Specify the maximum point id for point id selection.
vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(PointMaximum,vtkIdType);
// Description:
// Specify the minimum cell id for point id selection.
vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(CellMinimum,vtkIdType);
// Description:
// Specify the maximum cell id for point id selection.
vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(CellMaximum,vtkIdType);
// Description:
......
......@@ -702,10 +702,10 @@ protected:
vtkUnstructuredGridGeometryFilter::vtkUnstructuredGridGeometryFilter()
{
this->PointMinimum = 0;
this->PointMaximum = VTK_LARGE_ID;
this->PointMaximum = VTK_ID_MAX;
this->CellMinimum = 0;
this->CellMaximum = VTK_LARGE_ID;
this->CellMaximum = VTK_ID_MAX;
this->Extent[0] = -VTK_DOUBLE_MAX;
this->Extent[1] = VTK_DOUBLE_MAX;
......
......@@ -71,22 +71,22 @@ public:
// Description:
// Specify the minimum point id for point id selection.
vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(PointMinimum,vtkIdType);
// Description:
// Specify the maximum point id for point id selection.
vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(PointMaximum,vtkIdType);
// Description:
// Specify the minimum cell id for point id selection.
vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(CellMinimum,vtkIdType);
// Description:
// Specify the maximum cell id for point id selection.
vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
vtkGetMacro(CellMaximum,vtkIdType);
// Description:
......
......@@ -113,7 +113,7 @@ public:
// good idea to make sure this is less than a tessellated mesh
// at full resolution.) You need to set this value only when
// the error measure is set to NumberOfTriangles.
vtkSetClampMacro(NumberOfTriangles,vtkIdType,2,VTK_LARGE_ID);
vtkSetClampMacro(NumberOfTriangles,vtkIdType,2,VTK_ID_MAX);
vtkGetMacro(NumberOfTriangles,vtkIdType);
// Description:
......
......@@ -56,7 +56,7 @@ vtkProjectedTerrainPath::vtkProjectedTerrainPath()
this->ProjectionMode = SIMPLE_PROJECTION;
this->HeightOffset = 10.0;
this->HeightTolerance = 10.0;
this->MaximumNumberOfLines = VTK_LARGE_ID;
this->MaximumNumberOfLines = VTK_ID_MAX;
this->PositiveLineError = NULL;
this->NegativeLineError = NULL;
}
......
......@@ -134,7 +134,7 @@ public:
// This instance variable can be used to limit the total number of line
// segments created during subdivision. Note that the number of input line
// segments will be the minimum number that cab be output.
vtkSetClampMacro(MaximumNumberOfLines,vtkIdType,1,VTK_LARGE_ID);
vtkSetClampMacro(MaximumNumberOfLines,vtkIdType,1,VTK_ID_MAX);
vtkGetMacro(MaximumNumberOfLines,vtkIdType);
protected:
......
......@@ -39,7 +39,7 @@ public:
// Description:
// Set the number of points to generate.
vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_LARGE_ID);
vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_ID_MAX);
vtkGetMacro(NumberOfPoints,vtkIdType);
// Description:
......
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