Commit ecbbf7f7 authored by Mark Olesen's avatar Mark Olesen Committed by Brad King

Remove vtk(Cxx|Type)RevisionMacro

The CVS $Revision$ keyword replacement will no longer maintain these
macros automatically.  They were used only to implement CollectRevisions
and vtkObjectBase::PrintRevisions, an API that was never used.

Automated as follows:

  pass 0:
  catch templates
  ---------------
  $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'

  pass 1:
  main changes
  ---------------
  $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
    echo "$file" 1>&2
    perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
  done
  $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
    echo "$file" 1>&2
    perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
  done

  pass 2:
  verify
  ---------------
  $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'

Fixed multi-line vtkCxxRevisionMacro and templates by hand.
parent 1cd36ac0

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
...@@ -39,7 +39,7 @@ class ContextTest : public vtkContextItem ...@@ -39,7 +39,7 @@ class ContextTest : public vtkContextItem
{ {
public: public:
static ContextTest *New(); static ContextTest *New();
vtkTypeRevisionMacro(ContextTest, vtkContextItem); vtkTypeMacro(ContextTest, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn // Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter); virtual bool Paint(vtkContext2D *painter);
}; };
...@@ -67,7 +67,6 @@ int TestContext( int argc, char * argv [] ) ...@@ -67,7 +67,6 @@ int TestContext( int argc, char * argv [] )
// Make our new derived class to draw a diagram // Make our new derived class to draw a diagram
vtkStandardNewMacro(ContextTest); vtkStandardNewMacro(ContextTest);
vtkCxxRevisionMacro(ContextTest, "1.2");
// This function aims to test the primitives provided by the 2D API. // This function aims to test the primitives provided by the 2D API.
bool ContextTest::Paint(vtkContext2D *painter) bool ContextTest::Paint(vtkContext2D *painter)
{ {
......
...@@ -37,7 +37,7 @@ class APIDiagram : public vtkContextItem ...@@ -37,7 +37,7 @@ class APIDiagram : public vtkContextItem
{ {
public: public:
static APIDiagram *New(); static APIDiagram *New();
vtkTypeRevisionMacro(APIDiagram, vtkContextItem); vtkTypeMacro(APIDiagram, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn // Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter); virtual bool Paint(vtkContext2D *painter);
}; };
...@@ -76,7 +76,6 @@ int TestDiagram( int argc, char * argv [] ) ...@@ -76,7 +76,6 @@ int TestDiagram( int argc, char * argv [] )
// Make our new derived class to draw a diagram // Make our new derived class to draw a diagram
vtkStandardNewMacro(APIDiagram); vtkStandardNewMacro(APIDiagram);
vtkCxxRevisionMacro(APIDiagram, "1.5");
// This function draws our API diagram // This function draws our API diagram
bool APIDiagram::Paint(vtkContext2D *painter) bool APIDiagram::Paint(vtkContext2D *painter)
{ {
......
...@@ -39,7 +39,7 @@ class APIDiagram2 : public vtkContextItem ...@@ -39,7 +39,7 @@ class APIDiagram2 : public vtkContextItem
{ {
public: public:
static APIDiagram2 *New(); static APIDiagram2 *New();
vtkTypeRevisionMacro(APIDiagram2, vtkContextItem); vtkTypeMacro(APIDiagram2, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn // Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter); virtual bool Paint(vtkContext2D *painter);
}; };
...@@ -89,7 +89,6 @@ int TestQtDiagram( int argc, char * argv [] ) ...@@ -89,7 +89,6 @@ int TestQtDiagram( int argc, char * argv [] )
// Make our new derived class to draw a diagram // Make our new derived class to draw a diagram
vtkStandardNewMacro(APIDiagram2); vtkStandardNewMacro(APIDiagram2);
vtkCxxRevisionMacro(APIDiagram2, "1.5");
// This function draws our API diagram // This function draws our API diagram
bool APIDiagram2::Paint(vtkContext2D *painter) bool APIDiagram2::Paint(vtkContext2D *painter)
{ {
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "math.h" #include "math.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkAxis, "1.20.4.4");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkAxis); vtkStandardNewMacro(vtkAxis);
......
...@@ -36,7 +36,7 @@ class vtkTextProperty; ...@@ -36,7 +36,7 @@ class vtkTextProperty;
class VTK_CHARTS_EXPORT vtkAxis : public vtkContextItem class VTK_CHARTS_EXPORT vtkAxis : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkAxis, vtkContextItem); vtkTypeMacro(vtkAxis, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX //BTX
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBlockItem, "1.6");
vtkStandardNewMacro(vtkBlockItem); vtkStandardNewMacro(vtkBlockItem);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -29,7 +29,7 @@ class vtkContext2D; ...@@ -29,7 +29,7 @@ class vtkContext2D;
class VTK_CHARTS_EXPORT vtkBlockItem : public vtkContextItem class VTK_CHARTS_EXPORT vtkBlockItem : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkBlockItem, vtkContextItem); vtkTypeMacro(vtkBlockItem, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBlockItem *New(); static vtkBlockItem *New();
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBrush, "1.3");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkBrush); vtkStandardNewMacro(vtkBrush);
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
class VTK_CHARTS_EXPORT vtkBrush : public vtkObject class VTK_CHARTS_EXPORT vtkBrush : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkBrush, vtkObject); vtkTypeMacro(vtkBrush, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBrush *New(); static vtkBrush *New();
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChart, "1.16");
vtkCxxSetObjectMacro(vtkChart, AnnotationLink, vtkAnnotationLink); vtkCxxSetObjectMacro(vtkChart, AnnotationLink, vtkAnnotationLink);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -36,7 +36,7 @@ class vtkTable; ...@@ -36,7 +36,7 @@ class vtkTable;
class VTK_CHARTS_EXPORT vtkChart : public vtkContextItem class VTK_CHARTS_EXPORT vtkChart : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkChart, vtkContextItem); vtkTypeMacro(vtkChart, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX //BTX
......
...@@ -47,7 +47,6 @@ public: ...@@ -47,7 +47,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartLegend, "1.3");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartLegend); vtkStandardNewMacro(vtkChartLegend);
......
...@@ -31,7 +31,7 @@ class vtkChart; ...@@ -31,7 +31,7 @@ class vtkChart;
class VTK_CHARTS_EXPORT vtkChartLegend : public vtkContextItem class VTK_CHARTS_EXPORT vtkChartLegend : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkChartLegend, vtkContextItem); vtkTypeMacro(vtkChartLegend, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -59,7 +59,6 @@ public: ...@@ -59,7 +59,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartParallelCoordinates, "1.3");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartParallelCoordinates); vtkStandardNewMacro(vtkChartParallelCoordinates);
......
...@@ -28,7 +28,7 @@ class vtkIdTypeArray; ...@@ -28,7 +28,7 @@ class vtkIdTypeArray;
class VTK_CHARTS_EXPORT vtkChartParallelCoordinates : public vtkChart class VTK_CHARTS_EXPORT vtkChartParallelCoordinates : public vtkChart
{ {
public: public:
vtkTypeRevisionMacro(vtkChartParallelCoordinates, vtkChart); vtkTypeMacro(vtkChartParallelCoordinates, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -72,7 +72,6 @@ public: ...@@ -72,7 +72,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartXY, "1.46.4.1");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartXY); vtkStandardNewMacro(vtkChartXY);
......
...@@ -35,7 +35,7 @@ class vtkChartXYPrivate; // Private class to keep my STL vector in... ...@@ -35,7 +35,7 @@ class vtkChartXYPrivate; // Private class to keep my STL vector in...
class VTK_CHARTS_EXPORT vtkChartXY : public vtkChart class VTK_CHARTS_EXPORT vtkChartXY : public vtkChart
{ {
public: public:
vtkTypeRevisionMacro(vtkChartXY, vtkChart); vtkTypeMacro(vtkChartXY, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -27,7 +27,6 @@ public: ...@@ -27,7 +27,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkColorSeries, "1.3");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkColorSeries); vtkStandardNewMacro(vtkColorSeries);
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
class VTK_CHARTS_EXPORT vtkColorSeries : public vtkObject class VTK_CHARTS_EXPORT vtkColorSeries : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkColorSeries, vtkObject); vtkTypeMacro(vtkColorSeries, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <cassert> #include <cassert>
vtkCxxRevisionMacro(vtkContext2D, "1.24");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkContext2D); vtkStandardNewMacro(vtkContext2D);
......
...@@ -42,7 +42,7 @@ class vtkContextBufferId; ...@@ -42,7 +42,7 @@ class vtkContextBufferId;
class VTK_CHARTS_EXPORT vtkContext2D : public vtkObject class VTK_CHARTS_EXPORT vtkContext2D : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkContext2D, vtkObject); vtkTypeMacro(vtkContext2D, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextActor, "1.7");
vtkStandardNewMacro(vtkContextActor); vtkStandardNewMacro(vtkContextActor);
vtkCxxSetObjectMacro(vtkContextActor, Context, vtkContext2D); vtkCxxSetObjectMacro(vtkContextActor, Context, vtkContext2D);
......
...@@ -30,7 +30,7 @@ class VTK_CHARTS_EXPORT vtkContextActor : public vtkProp ...@@ -30,7 +30,7 @@ class VTK_CHARTS_EXPORT vtkContextActor : public vtkProp
{ {
public: public:
void PrintSelf(ostream& os, vtkIndent indent); void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeRevisionMacro(vtkContextActor,vtkProp); vtkTypeMacro(vtkContextActor,vtkProp);
static vtkContextActor* New(); static vtkContextActor* New();
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <cassert> #include <cassert>
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextBufferId, "1.2");
vtkStandardNewMacro(vtkContextBufferId); vtkStandardNewMacro(vtkContextBufferId);
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
......
...@@ -29,7 +29,7 @@ class vtkIntArray; ...@@ -29,7 +29,7 @@ class vtkIntArray;
class VTK_CHARTS_EXPORT vtkContextBufferId : public vtkObject class VTK_CHARTS_EXPORT vtkContextBufferId : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkContextBufferId, vtkObject); vtkTypeMacro(vtkContextBufferId, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include <assert.h> #include <assert.h>
vtkCxxRevisionMacro(vtkContextDevice2D, "1.2");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
//vtkStandardNewMacro(vtkContextDevice2D); //vtkStandardNewMacro(vtkContextDevice2D);
......
...@@ -37,7 +37,7 @@ class vtkContextBufferId; ...@@ -37,7 +37,7 @@ class vtkContextBufferId;
class VTK_CHARTS_EXPORT vtkContextDevice2D : public vtkObject class VTK_CHARTS_EXPORT vtkContextDevice2D : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkContextDevice2D, vtkObject); vtkTypeMacro(vtkContextDevice2D, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkContextItem, "1.8");
vtkCxxSetObjectMacro(vtkContextItem, Transform, vtkTransform2D); vtkCxxSetObjectMacro(vtkContextItem, Transform, vtkTransform2D);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -33,7 +33,7 @@ class vtkContextMouseEvent; ...@@ -33,7 +33,7 @@ class vtkContextMouseEvent;
class VTK_CHARTS_EXPORT vtkContextItem : public vtkObject class VTK_CHARTS_EXPORT vtkContextItem : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkContextItem, vtkObject); vtkTypeMacro(vtkContextItem, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextMapper2D, "1.1");
vtkStandardNewMacro(vtkContextMapper2D); vtkStandardNewMacro(vtkContextMapper2D);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkContextMapper2D::vtkContextMapper2D() vtkContextMapper2D::vtkContextMapper2D()
......
...@@ -33,7 +33,7 @@ class vtkAbstractArray; ...@@ -33,7 +33,7 @@ class vtkAbstractArray;
class VTK_CHARTS_EXPORT vtkContextMapper2D : public vtkAlgorithm class VTK_CHARTS_EXPORT vtkContextMapper2D : public vtkAlgorithm
{ {
public: public:
vtkTypeRevisionMacro(vtkContextMapper2D, vtkAlgorithm); vtkTypeMacro(vtkContextMapper2D, vtkAlgorithm);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkContextMapper2D *New(); static vtkContextMapper2D *New();
......
...@@ -144,7 +144,6 @@ public: ...@@ -144,7 +144,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkContextScene, "1.19");
vtkStandardNewMacro(vtkContextScene); vtkStandardNewMacro(vtkContextScene);
vtkCxxSetObjectMacro(vtkContextScene, AnnotationLink, vtkAnnotationLink); vtkCxxSetObjectMacro(vtkContextScene, AnnotationLink, vtkAnnotationLink);
......
...@@ -41,7 +41,7 @@ class vtkContextBufferId; ...@@ -41,7 +41,7 @@ class vtkContextBufferId;
class VTK_CHARTS_EXPORT vtkContextScene : public vtkObject class VTK_CHARTS_EXPORT vtkContextScene : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkContextScene, vtkObject); vtkTypeMacro(vtkContextScene, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextView, "1.4");
vtkStandardNewMacro(vtkContextView); vtkStandardNewMacro(vtkContextView);
vtkCxxSetObjectMacro(vtkContextView, Context, vtkContext2D); vtkCxxSetObjectMacro(vtkContextView, Context, vtkContext2D);
......
...@@ -31,7 +31,7 @@ class VTK_CHARTS_EXPORT vtkContextView : public vtkRenderView ...@@ -31,7 +31,7 @@ class VTK_CHARTS_EXPORT vtkContextView : public vtkRenderView
{ {
public: public:
void PrintSelf(ostream& os, vtkIndent indent); void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeRevisionMacro(vtkContextView,vtkRenderView); vtkTypeMacro(vtkContextView,vtkRenderView);
static vtkContextView* New(); static vtkContextView* New();
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkImageItem, "1.8.4.1");
vtkStandardNewMacro(vtkImageItem); vtkStandardNewMacro(vtkImageItem);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -31,7 +31,7 @@ class vtkImageData; ...@@ -31,7 +31,7 @@ class vtkImageData;
class VTK_CHARTS_EXPORT vtkImageItem : public vtkContextItem class VTK_CHARTS_EXPORT vtkImageItem : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkImageItem, vtkContextItem); vtkTypeMacro(vtkImageItem, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkImageItem *New(); static vtkImageItem *New();
......
...@@ -149,7 +149,6 @@ public: ...@@ -149,7 +149,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkOpenGLContextDevice2D, "1.25");
vtkStandardNewMacro(vtkOpenGLContextDevice2D); vtkStandardNewMacro(vtkOpenGLContextDevice2D);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -35,7 +35,7 @@ class vtkOpenGLExtensionManager; ...@@ -35,7 +35,7 @@ class vtkOpenGLExtensionManager;
class VTK_CHARTS_EXPORT vtkOpenGLContextDevice2D : public vtkContextDevice2D class VTK_CHARTS_EXPORT vtkOpenGLContextDevice2D : public vtkContextDevice2D
{ {
public: public:
vtkTypeRevisionMacro(vtkOpenGLContextDevice2D, vtkContextDevice2D); vtkTypeMacro(vtkOpenGLContextDevice2D, vtkContextDevice2D);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......