Commit 19c55e0e authored by Mark Olesen's avatar Mark Olesen Committed by Brad King
Browse files

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 f14bcc3c

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -39,7 +39,7 @@ class ContextTest : public vtkContextItem
{
public:
static ContextTest *New();
vtkTypeRevisionMacro(ContextTest, vtkContextItem);
vtkTypeMacro(ContextTest, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
};
......@@ -67,7 +67,6 @@ int TestContext( int argc, char * argv [] )
// Make our new derived class to draw a diagram
vtkStandardNewMacro(ContextTest);
vtkCxxRevisionMacro(ContextTest, "1.2");
// This function aims to test the primitives provided by the 2D API.
bool ContextTest::Paint(vtkContext2D *painter)
{
......
......@@ -37,7 +37,7 @@ class APIDiagram : public vtkContextItem
{
public:
static APIDiagram *New();
vtkTypeRevisionMacro(APIDiagram, vtkContextItem);
vtkTypeMacro(APIDiagram, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
};
......@@ -76,7 +76,6 @@ int TestDiagram( int argc, char * argv [] )
// Make our new derived class to draw a diagram
vtkStandardNewMacro(APIDiagram);
vtkCxxRevisionMacro(APIDiagram, "1.5");
// This function draws our API diagram
bool APIDiagram::Paint(vtkContext2D *painter)
{
......
......@@ -39,7 +39,7 @@ class APIDiagram2 : public vtkContextItem
{
public:
static APIDiagram2 *New();
vtkTypeRevisionMacro(APIDiagram2, vtkContextItem);
vtkTypeMacro(APIDiagram2, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
};
......@@ -89,7 +89,6 @@ int TestQtDiagram( int argc, char * argv [] )
// Make our new derived class to draw a diagram
vtkStandardNewMacro(APIDiagram2);
vtkCxxRevisionMacro(APIDiagram2, "1.5");
// This function draws our API diagram
bool APIDiagram2::Paint(vtkContext2D *painter)
{
......
......@@ -15,7 +15,6 @@
#include "vtkAbstractContextBufferId.h"
vtkCxxRevisionMacro(vtkAbstractContextBufferId, "1.1");
// ----------------------------------------------------------------------------
vtkAbstractContextBufferId::vtkAbstractContextBufferId()
......
......@@ -40,7 +40,7 @@
class VTK_CHARTS_EXPORT vtkAbstractContextBufferId : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkAbstractContextBufferId, vtkObject);
vtkTypeMacro(vtkAbstractContextBufferId, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -29,7 +29,6 @@
#include "math.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkAxis, "1.28");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkAxis);
......
......@@ -36,7 +36,7 @@ class vtkTextProperty;
class VTK_CHARTS_EXPORT vtkAxis : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkAxis, vtkContextItem);
vtkTypeMacro(vtkAxis, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX
......
......@@ -27,7 +27,6 @@
#include "vtkPanelMark.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBarMark, "1.3");
vtkStandardNewMacro(vtkBarMark);
//-----------------------------------------------------------------------------
......
......@@ -32,7 +32,7 @@ class vtkAbstractContextBufferId;
class VTK_CHARTS_EXPORT vtkBarMark : public vtkMark
{
public:
vtkTypeRevisionMacro(vtkBarMark, vtkMark);
vtkTypeMacro(vtkBarMark, vtkMark);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBarMark* New();
......
......@@ -27,7 +27,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBlockItem, "1.6");
vtkStandardNewMacro(vtkBlockItem);
//-----------------------------------------------------------------------------
......
......@@ -29,7 +29,7 @@ class vtkContext2D;
class VTK_CHARTS_EXPORT vtkBlockItem : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkBlockItem, vtkContextItem);
vtkTypeMacro(vtkBlockItem, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBlockItem *New();
......
......@@ -18,7 +18,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBrush, "1.3");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkBrush);
......
......@@ -31,7 +31,7 @@
class VTK_CHARTS_EXPORT vtkBrush : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkBrush, vtkObject);
vtkTypeMacro(vtkBrush, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBrush *New();
......
......@@ -21,7 +21,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChart, "1.16");
vtkCxxSetObjectMacro(vtkChart, AnnotationLink, vtkAnnotationLink);
//-----------------------------------------------------------------------------
......
......@@ -36,7 +36,7 @@ class vtkTable;
class VTK_CHARTS_EXPORT vtkChart : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkChart, vtkContextItem);
vtkTypeMacro(vtkChart, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX
......
......@@ -47,7 +47,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartLegend, "1.3");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartLegend);
......
......@@ -31,7 +31,7 @@ class vtkChart;
class VTK_CHARTS_EXPORT vtkChartLegend : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkChartLegend, vtkContextItem);
vtkTypeMacro(vtkChartLegend, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -66,7 +66,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartParallelCoordinates, "1.14");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartParallelCoordinates);
......
......@@ -29,7 +29,7 @@ class vtkStringArray;
class VTK_CHARTS_EXPORT vtkChartParallelCoordinates : public vtkChart
{
public:
vtkTypeRevisionMacro(vtkChartParallelCoordinates, vtkChart);
vtkTypeMacro(vtkChartParallelCoordinates, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -73,7 +73,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartXY, "1.48");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartXY);
......
......@@ -35,7 +35,7 @@ class vtkChartXYPrivate; // Private class to keep my STL vector in...
class VTK_CHARTS_EXPORT vtkChartXY : public vtkChart
{
public:
vtkTypeRevisionMacro(vtkChartXY, vtkChart);
vtkTypeMacro(vtkChartXY, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -27,7 +27,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkColorSeries, "1.3");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkColorSeries);
......
......@@ -30,7 +30,7 @@
class VTK_CHARTS_EXPORT vtkColorSeries : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkColorSeries, vtkObject);
vtkTypeMacro(vtkColorSeries, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -29,7 +29,6 @@
#include <cassert>
vtkCxxRevisionMacro(vtkContext2D, "1.25");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkContext2D);
......
......@@ -42,7 +42,7 @@ class vtkAbstractContextBufferId;
class VTK_CHARTS_EXPORT vtkContext2D : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContext2D, vtkObject);
vtkTypeMacro(vtkContext2D, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -24,7 +24,6 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextActor, "1.8");
vtkStandardNewMacro(vtkContextActor);
vtkCxxSetObjectMacro(vtkContextActor, Context, vtkContext2D);
......
......@@ -30,7 +30,7 @@ class VTK_CHARTS_EXPORT vtkContextActor : public vtkProp
{
public:
void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeRevisionMacro(vtkContextActor,vtkProp);
vtkTypeMacro(vtkContextActor,vtkProp);
static vtkContextActor* New();
......
......@@ -20,7 +20,6 @@
#include "vtkObjectFactory.h"
#include "vtkgl.h"
vtkCxxRevisionMacro(vtkContextBufferId, "1.3");
vtkStandardNewMacro(vtkContextBufferId);
// ----------------------------------------------------------------------------
......
......@@ -29,7 +29,7 @@ class vtkIntArray;
class VTK_CHARTS_EXPORT vtkContextBufferId : public vtkAbstractContextBufferId
{
public:
vtkTypeRevisionMacro(vtkContextBufferId, vtkAbstractContextBufferId);
vtkTypeMacro(vtkContextBufferId, vtkAbstractContextBufferId);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -19,7 +19,6 @@
#include "vtkObjectFactory.h"
#include <assert.h>
vtkCxxRevisionMacro(vtkContextDevice2D, "1.3");
//-----------------------------------------------------------------------------
//vtkStandardNewMacro(vtkContextDevice2D);
......
......@@ -37,7 +37,7 @@ class vtkAbstractContextBufferId;
class VTK_CHARTS_EXPORT vtkContextDevice2D : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContextDevice2D, vtkObject);
vtkTypeMacro(vtkContextDevice2D, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -26,7 +26,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkContextItem, "1.9");
vtkCxxSetObjectMacro(vtkContextItem, Transform, vtkTransform2D);
//-----------------------------------------------------------------------------
......
......@@ -33,7 +33,7 @@ class vtkContextMouseEvent;
class VTK_CHARTS_EXPORT vtkContextItem : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContextItem, vtkObject);
vtkTypeMacro(vtkContextItem, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -21,7 +21,6 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextMapper2D, "1.1");
vtkStandardNewMacro(vtkContextMapper2D);
//-----------------------------------------------------------------------------
vtkContextMapper2D::vtkContextMapper2D()
......
......@@ -33,7 +33,7 @@ class vtkAbstractArray;
class VTK_CHARTS_EXPORT vtkContextMapper2D : public vtkAlgorithm
{
public:
vtkTypeRevisionMacro(vtkContextMapper2D, vtkAlgorithm);
vtkTypeMacro(vtkContextMapper2D, vtkAlgorithm);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkContextMapper2D *New();
......
......@@ -146,7 +146,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkContextScene, "1.21");
vtkStandardNewMacro(vtkContextScene);
vtkCxxSetObjectMacro(vtkContextScene, AnnotationLink, vtkAnnotationLink);
......
......@@ -41,7 +41,7 @@ class vtkAbstractContextBufferId;
class VTK_CHARTS_EXPORT vtkContextScene : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContextScene, vtkObject);
vtkTypeMacro(vtkContextScene, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -27,7 +27,6 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextView, "1.4");
vtkStandardNewMacro(vtkContextView);
vtkCxxSetObjectMacro(vtkContextView, Context, vtkContext2D);
......
......@@ -31,7 +31,7 @@ class VTK_CHARTS_EXPORT vtkContextView : public vtkRenderView
{
public:
void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeRevisionMacro(vtkContextView,vtkRenderView);
vtkTypeMacro(vtkContextView,vtkRenderView);
static vtkContextView* New();
......
......@@ -29,7 +29,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkImageItem, "1.9");
vtkStandardNewMacro(vtkImageItem);
//-----------------------------------------------------------------------------
......
......@@ -31,7 +31,7 @@ class vtkImageData;
class VTK_CHARTS_EXPORT vtkImageItem : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkImageItem, vtkContextItem);
vtkTypeMacro(vtkImageItem, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkImageItem *New();
......
......@@ -22,7 +22,6 @@
#include "vtkPen.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkLineMark, "1.2");
vtkStandardNewMacro(vtkLineMark);
//-----------------------------------------------------------------------------
......
......@@ -31,7 +31,7 @@ class vtkPen;
class VTK_CHARTS_EXPORT vtkLineMark : public vtkMark
{
public:
vtkTypeRevisionMacro(vtkLineMark, vtkMark);
vtkTypeMacro(vtkLineMark, vtkMark);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkLineMark* New();
......
......@@ -34,7 +34,6 @@
#include <cassert>
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkMark, "1.5");
vtkStandardNewMacro(vtkMark);
class vtkMarkPrivateCompareStrings
......@@ -53,7 +52,7 @@ typedef vtkstd::map<vtkstd::string,vtkValue<double>,vtkMarkPrivateCompareStrings
class vtkMarkPrivate : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkMarkPrivate, vtkObject);
vtkTypeMacro(vtkMarkPrivate, vtkObject);
static vtkMarkPrivate *New();
......@@ -62,7 +61,6 @@ public:
VariablesMap Map;
};
vtkCxxRevisionMacro(vtkMarkPrivate, "1.5");
vtkStandardNewMacro(vtkMarkPrivate);
//-----------------------------------------------------------------------------
......
......@@ -52,7 +52,7 @@ class vtkMarkPrivate; // PIMPL for vtkstd::map
class VTK_CHARTS_EXPORT vtkMark : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkMark, vtkContextItem);
vtkTypeMacro(vtkMark, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkMark* New();
......
......@@ -23,7 +23,6 @@
#include "vtkgl.h"
#include "vtkOpenGLRenderWindow.h"
vtkCxxRevisionMacro(vtkOpenGLContextBufferId, "1.7");
vtkStandardNewMacro(vtkOpenGLContextBufferId);
// ----------------------------------------------------------------------------
......
......@@ -30,7 +30,7 @@ class vtkOpenGLRenderWindow;
class VTK_CHARTS_EXPORT vtkOpenGLContextBufferId : public vtkAbstractContextBufferId
{
public:
vtkTypeRevisionMacro(vtkOpenGLContextBufferId, vtkAbstractContextBufferId);
vtkTypeMacro(vtkOpenGLContextBufferId, vtkAbstractContextBufferId);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -150,7 +150,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkOpenGLContextDevice2D, "1.27");
vtkStandardNewMacro(vtkOpenGLContextDevice2D);
//-----------------------------------------------------------------------------
......
......@@ -35,7 +35,7 @@ class vtkOpenGLExtensionManager;
class VTK_CHARTS_EXPORT vtkOpenGLContextDevice2D : public vtkContextDevice2D
{
public:
vtkTypeRevisionMacro(vtkOpenGLContextDevice2D, vtkContextDevice2D);
vtkTypeMacro(vtkOpenGLContextDevice2D, vtkContextDevice2D);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -23,7 +23,6 @@
#include "vtkContextScene.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkPanelMark, "1.10");
vtkStandardNewMacro(vtkPanelMark);
//-----------------------------------------------------------------------------
......
......@@ -34,7 +34,7 @@ class vtkContextBufferId;
class VTK_CHARTS_EXPORT vtkPanelMark : public vtkMark
{
public:
vtkTypeRevisionMacro(vtkPanelMark, vtkMark);
vtkTypeMacro(vtkPanelMark, vtkMark);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkPanelMark* New();
......
......@@ -19,7 +19,6 @@
#include "vtkColor.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkPen, "1.7");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPen);
......
......@@ -32,7 +32,7 @@
class VTK_CHARTS_EXPORT vtkPen : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkPen, vtkObject);
vtkTypeMacro(vtkPen, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkPen *New();
......
......@@ -26,7 +26,6 @@
#include "vtkStdString.h"
vtkCxxRevisionMacro(vtkPlot, "1.15");
vtkCxxSetObjectMacro(vtkPlot, Selection, vtkIdTypeArray);
vtkCxxSetObjectMacro(vtkPlot, XAxis, vtkAxis);
vtkCxxSetObjectMacro(vtkPlot, YAxis, vtkAxis);
......
......@@ -35,7 +35,7 @@ class vtkVector2f;
class VTK_CHARTS_EXPORT vtkPlot : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkPlot, vtkContextItem);
vtkTypeMacro(vtkPlot, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -33,7 +33,6 @@
#include "vtkstd/vector"
#include "vtkstd/algorithm"
vtkCxxRevisionMacro(vtkPlotBar, "1.7");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPlotBar);
......
......@@ -32,7 +32,7 @@ class vtkStdString;
class VTK_CHARTS_EXPORT vtkPlotBar : public vtkPlot
{
public:
vtkTypeRevisionMacro(vtkPlotBar, vtkPlot);
vtkTypeMacro(vtkPlotBar, vtkPlot);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -24,7 +24,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkPlotGrid, "1.6");
vtkCxxSetObjectMacro(vtkPlotGrid, XAxis, vtkAxis);
vtkCxxSetObjectMacro(vtkPlotGrid, YAxis, vtkAxis);
//-----------------------------------------------------------------------------
......
......@@ -34,7 +34,7 @@ class vtkAxis;
class VTK_CHARTS_EXPORT vtkPlotGrid : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkPlotGrid, vtkContextItem);
vtkTypeMacro(vtkPlotGrid, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -38,7 +38,6 @@
#include "vtkstd/vector"