Commit 144f03ca authored by VTK Developers's avatar VTK Developers Committed by Brad King

Include module-wide headers and export macros

Include the module-wide header from every header in each module.
Reference the export/visibility macro for the module.

Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
Co-Author: Chris Harris <chris.harris@kitware.com>
parent 0c1471f1

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -21,6 +21,7 @@
#ifndef VTKAMRBASEPARTICLESREADER_H_
#define VTKAMRBASEPARTICLESREADER_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkMultiBlockDataSetAlgorithm.h"
class vtkInformation;
......@@ -31,7 +32,7 @@ class vtkPolyData;
class vtkDataArraySelection;
class vtkCallbackCommand;
class VTK_AMR_EXPORT vtkAMRBaseParticlesReader :
class VTKAMRCORE_EXPORT vtkAMRBaseParticlesReader :
public vtkMultiBlockDataSetAlgorithm
{
public:
......
......@@ -20,6 +20,7 @@
#ifndef VTKAMRBASEREADER_H_
#define VTKAMRBASEREADER_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkOverlappingAMRAlgorithm.h"
#include <vector> // STL vector header
#include <map> // STL map header
......@@ -35,7 +36,7 @@ class vtkAMRDataSetCache;
class vtkUniformGrid;
class vtkDataArray;
class VTK_AMR_EXPORT vtkAMRBaseReader :
class VTKAMRCORE_EXPORT vtkAMRBaseReader :
public vtkOverlappingAMRAlgorithm
{
public:
......
......@@ -22,6 +22,7 @@
#ifndef VTKAMRCUTPLANE_H_
#define VTKAMRCUTPLANE_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkMultiBlockDataSetAlgorithm.h"
#include <vector> // For STL vector
......@@ -41,7 +42,7 @@ class vtkCellArray;
class vtkPointData;
class vtkCellData;
class VTK_AMR_EXPORT vtkAMRCutPlane : public vtkMultiBlockDataSetAlgorithm
class VTKAMRCORE_EXPORT vtkAMRCutPlane : public vtkMultiBlockDataSetAlgorithm
{
public:
static vtkAMRCutPlane *New();
......
......@@ -23,13 +23,14 @@
#ifndef VTKAMRDATASETCACHE_H_
#define VTKAMRDATASETCACHE_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkObject.h"
#include <map> // For STL map used as the data-structure for the cache.
class vtkUniformGrid;
class vtkDataArray;
class VTK_AMR_EXPORT vtkAMRDataSetCache : public vtkObject
class VTKAMRCORE_EXPORT vtkAMRDataSetCache : public vtkObject
{
public:
static vtkAMRDataSetCache* New();
......
......@@ -24,6 +24,7 @@
#ifndef VTKAMRENZOPARTICLESREADER_H_
#define VTKAMRENZOPARTICLESREADER_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkAMRBaseParticlesReader.h"
......@@ -32,7 +33,7 @@ class vtkDataArray;
class vtkIntArray;
class vtkEnzoReaderInternal;
class VTK_AMR_EXPORT vtkAMREnzoParticlesReader :
class VTKAMRCORE_EXPORT vtkAMREnzoParticlesReader :
public vtkAMRBaseParticlesReader
{
public:
......
......@@ -21,6 +21,7 @@
#ifndef VTKAMRENZOREADER_H_
#define VTKAMRENZOREADER_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkAMRBaseReader.h"
#include <map> // For STL map
......@@ -28,7 +29,7 @@
class vtkOverlappingAMR;
class vtkEnzoReaderInternal;
class VTK_AMR_EXPORT vtkAMREnzoReader : public vtkAMRBaseReader
class VTKAMRCORE_EXPORT vtkAMREnzoReader : public vtkAMRBaseReader
{
public:
static vtkAMREnzoReader* New();
......
......@@ -20,6 +20,7 @@
#ifndef VTKAMRFLASHPARTICLESREADER_H_
#define VTKAMRFLASHPARTICLESREADER_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkAMRBaseParticlesReader.h"
class vtkIndent;
......@@ -28,7 +29,7 @@ class vtkPointData;
class vtkIdList;
class vtkFlashReaderInternal;
class VTK_AMR_EXPORT vtkAMRFlashParticlesReader :
class VTKAMRCORE_EXPORT vtkAMRFlashParticlesReader :
public vtkAMRBaseParticlesReader
{
public:
......
......@@ -21,12 +21,13 @@
#ifndef VTKAMRFLASHREADER_H_
#define VTKAMRFLASHREADER_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkAMRBaseReader.h"
class vtkOverlappingAMR;
class vtkFlashReaderInternal;
class VTK_AMR_EXPORT vtkAMRFlashReader : public vtkAMRBaseReader
class VTKAMRCORE_EXPORT vtkAMRFlashReader : public vtkAMRBaseReader
{
public:
static vtkAMRFlashReader* New();
......
......@@ -19,6 +19,7 @@
#ifndef VTKAMRGAUSSIANPULSESOURCE_H_
#define VTKAMRGAUSSIANPULSESOURCE_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkOverlappingAMRAlgorithm.h"
#include <cmath> // For std::exp
......@@ -28,7 +29,7 @@ class vtkUniformGrid;
class vtkInformation;
class vtkInformationVector;
class VTK_AMR_EXPORT vtkAMRGaussianPulseSource :
class VTKAMRCORE_EXPORT vtkAMRGaussianPulseSource :
public vtkOverlappingAMRAlgorithm
{
public:
......
......@@ -31,6 +31,7 @@
#ifndef __vtkAMRResampleFilter_h
#define __vtkAMRResampleFilter_h
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkMultiBlockDataSetAlgorithm.h"
#include <vector> // For STL vector
......@@ -45,7 +46,7 @@ class vtkCellData;
class vtkPointData;
class vtkIndent;
class VTK_AMR_EXPORT vtkAMRResampleFilter : public vtkMultiBlockDataSetAlgorithm
class VTKAMRCORE_EXPORT vtkAMRResampleFilter : public vtkMultiBlockDataSetAlgorithm
{
public:
static vtkAMRResampleFilter *New();
......
......@@ -22,6 +22,7 @@
#ifndef VTKAMRSLICEFILTER_H_
#define VTKAMRSLICEFILTER_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkOverlappingAMRAlgorithm.h"
#include <vector> // For STL vector
......@@ -34,7 +35,7 @@ class vtkPlane;
class vtkAMRBox;
class vtkUniformGrid;
class VTK_AMR_EXPORT vtkAMRSliceFilter :
class VTKAMRCORE_EXPORT vtkAMRSliceFilter :
public vtkOverlappingAMRAlgorithm
{
public:
......
......@@ -24,6 +24,7 @@
#ifndef VTKAMRTOMULTIBLOCKFILTER_H_
#define VTKAMRTOMULTIBLOCKFILTER_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkMultiBlockDataSetAlgorithm.h"
class vtkInformation;
......@@ -33,7 +34,7 @@ class vtkMultiProcessController;
class vtkOverlappingAMR;
class vtkMultiBlockDataSet;
class VTK_AMR_EXPORT vtkAMRToMultiBlockFilter :
class VTKAMRCORE_EXPORT vtkAMRToMultiBlockFilter :
public vtkMultiBlockDataSetAlgorithm
{
public:
......
......@@ -24,6 +24,7 @@
#ifndef VTKAMRUTILITIES_H_
#define VTKAMRUTILITIES_H_
#include "vtkAMRCoreModule.h" // For export macro
#include "vtkObject.h"
#include <vector> // For C++ vector
......@@ -33,7 +34,7 @@ class vtkOverlappingAMR;
class vtkMultiProcessController;
class vtkUniformGrid;
class VTK_PARALLEL_EXPORT vtkAMRUtilities : public vtkObject
class VTKAMRCORE_EXPORT vtkAMRUtilities : public vtkObject
{
public:
......
......@@ -23,6 +23,7 @@
#ifndef __vtkAxis_h
#define __vtkAxis_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkContextItem.h"
#include "vtkSmartPointer.h" // For vtkSmartPointer
#include "vtkVector.h" // For position variables
......@@ -36,7 +37,7 @@ class vtkDoubleArray;
class vtkStringArray;
class vtkTextProperty;
class VTK_CHARTS_EXPORT vtkAxis : public vtkContextItem
class VTKCHARTSCORE_EXPORT vtkAxis : public vtkContextItem
{
public:
vtkTypeMacro(vtkAxis, vtkContextItem);
......
......@@ -26,6 +26,7 @@
#define __vtkAxisExtended_h
#endif
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkObject.h"
#include "vtkVector.h" // Needed for vtkVector
//
......@@ -35,7 +36,7 @@
# define VTK_DBL_EPSILON DBL_EPSILON
#endif // DBL_EPSILON
class VTK_CHARTS_EXPORT vtkAxisExtended : public vtkObject
class VTKCHARTSCORE_EXPORT vtkAxisExtended : public vtkObject
{
public:
vtkTypeMacro(vtkAxisExtended, vtkObject);
......
......@@ -21,6 +21,7 @@
#ifndef __vtkChart_h
#define __vtkChart_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkContextItem.h"
#include "vtkRect.h" // For vtkRectf
#include "vtkStdString.h" // For vtkStdString ivars
......@@ -37,7 +38,7 @@ class vtkChartLegend;
class vtkInteractorStyle;
class vtkAnnotationLink;
class VTK_CHARTS_EXPORT vtkChart : public vtkContextItem
class VTKCHARTSCORE_EXPORT vtkChart : public vtkContextItem
{
public:
vtkTypeMacro(vtkChart, vtkContextItem);
......
......@@ -21,6 +21,7 @@
#ifndef __vtkChart2DHistogram_h
#define __vtkChart2DHistogram_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkChartXY.h"
#include "vtkSmartPointer.h" // For SP ivars
......@@ -29,7 +30,7 @@ class vtkPlotHistogram2D;
class vtkImageData;
class vtkScalarsToColors;
class VTK_CHARTS_EXPORT vtkChartHistogram2D : public vtkChartXY
class VTKCHARTSCORE_EXPORT vtkChartHistogram2D : public vtkChartXY
{
public:
vtkTypeMacro(vtkChartHistogram2D, vtkChartXY);
......
......@@ -23,6 +23,7 @@
#ifndef __vtkChartLegend_h
#define __vtkChartLegend_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkContextItem.h"
#include "vtkNew.h" // For vtkNew
#include "vtkRect.h" // For vtkRectf return value
......@@ -32,7 +33,7 @@ class vtkPen;
class vtkBrush;
class vtkTextProperty;
class VTK_CHARTS_EXPORT vtkChartLegend : public vtkContextItem
class VTKCHARTSCORE_EXPORT vtkChartLegend : public vtkContextItem
{
public:
vtkTypeMacro(vtkChartLegend, vtkContextItem);
......
......@@ -23,12 +23,13 @@
#ifndef __vtkChartMatrix_h
#define __vtkChartMatrix_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkAbstractContextItem.h"
#include "vtkVector.h" // For ivars
class vtkChart;
class VTK_CHARTS_EXPORT vtkChartMatrix : public vtkAbstractContextItem
class VTKCHARTSCORE_EXPORT vtkChartMatrix : public vtkAbstractContextItem
{
public:
vtkTypeMacro(vtkChartMatrix, vtkAbstractContextItem);
......
......@@ -21,6 +21,7 @@
#ifndef __vtkChartParallelCoordinates_h
#define __vtkChartParallelCoordinates_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkChart.h"
class vtkIdTypeArray;
......@@ -28,7 +29,7 @@ class vtkStdString;
class vtkStringArray;
class vtkPlotParallelCoordinates;
class VTK_CHARTS_EXPORT vtkChartParallelCoordinates : public vtkChart
class VTKCHARTSCORE_EXPORT vtkChartParallelCoordinates : public vtkChart
{
public:
vtkTypeMacro(vtkChartParallelCoordinates, vtkChart);
......
......@@ -21,13 +21,14 @@
#ifndef __vtkChartPie_h
#define __vtkChartPie_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkChart.h"
class vtkChartLegend;
class vtkTooltipItem;
class vtkChartPiePrivate;
class VTK_CHARTS_EXPORT vtkChartPie : public vtkChart
class VTKCHARTSCORE_EXPORT vtkChartPie : public vtkChart
{
public:
vtkTypeMacro(vtkChartPie, vtkChart);
......
......@@ -24,6 +24,7 @@
#ifndef __vtkChartXY_h
#define __vtkChartXY_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkChart.h"
#include "vtkSmartPointer.h" // For SP ivars
#include "vtkVector.h" // For vtkVector2f in struct
......@@ -35,7 +36,7 @@ class vtkChartLegend;
class vtkTooltipItem;
class vtkChartXYPrivate; // Private class to keep my STL vector in...
class VTK_CHARTS_EXPORT vtkChartXY : public vtkChart
class VTKCHARTSCORE_EXPORT vtkChartXY : public vtkChart
{
public:
vtkTypeMacro(vtkChartXY, vtkChart);
......
......@@ -20,6 +20,7 @@
#ifndef __vtkChartXYZ_h
#define __vtkChartXYZ_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkContextItem.h"
#include "vtkRect.h" // For vtkRectf ivars
#include "vtkNew.h" // For ivars
......@@ -31,7 +32,7 @@ class vtkTable;
class vtkTransform;
class vtkPen;
class VTK_CHARTS_EXPORT vtkChartXYZ : public vtkContextItem
class VTKCHARTSCORE_EXPORT vtkChartXYZ : public vtkContextItem
{
public:
vtkTypeMacro(vtkChartXYZ, vtkContextItem);
......
......@@ -21,6 +21,7 @@
#ifndef __vtkColorLegend_h
#define __vtkColorLegend_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkChartLegend.h"
#include "vtkSmartPointer.h" // For SP ivars
#include "vtkVector.h" // For vtkRectf
......@@ -30,7 +31,7 @@ class vtkImageData;
class vtkScalarsToColors;
class vtkCallbackCommand;
class VTK_CHARTS_EXPORT vtkColorLegend: public vtkChartLegend
class VTKCHARTSCORE_EXPORT vtkColorLegend: public vtkChartLegend
{
public:
vtkTypeMacro(vtkColorLegend, vtkChartLegend);
......
......@@ -24,10 +24,11 @@
#ifndef __vtkColorSeries_h
#define __vtkColorSeries_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkObject.h"
#include "vtkColor.h" // Needed for vtkColor3ub
class VTK_CHARTS_EXPORT vtkColorSeries : public vtkObject
class VTKCHARTSCORE_EXPORT vtkColorSeries : public vtkObject
{
public:
vtkTypeMacro(vtkColorSeries, vtkObject);
......
......@@ -25,11 +25,12 @@
#ifndef __vtkColorTransferControlPointsItem_h
#define __vtkColorTransferControlPointsItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkControlPointsItem.h"
class vtkColorTransferFunction;
class VTK_CHARTS_EXPORT vtkColorTransferControlPointsItem: public vtkControlPointsItem
class VTKCHARTSCORE_EXPORT vtkColorTransferControlPointsItem: public vtkControlPointsItem
{
public:
vtkTypeMacro(vtkColorTransferControlPointsItem, vtkControlPointsItem);
......
......@@ -16,6 +16,7 @@
#ifndef __vtkColorTransferFunctionItem_h
#define __vtkColorTransferFunctionItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkScalarsToColorsItem.h"
class vtkColorTransferFunction;
......@@ -24,7 +25,7 @@ class vtkImageData;
// Description:
// vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
// vtkScalarsToColors::MaskAboveCurve have no effect here.
class VTK_CHARTS_EXPORT vtkColorTransferFunctionItem: public vtkScalarsToColorsItem
class VTKCHARTSCORE_EXPORT vtkColorTransferFunctionItem: public vtkScalarsToColorsItem
{
public:
static vtkColorTransferFunctionItem* New();
......
......@@ -27,12 +27,13 @@
#ifndef __vtkCompositeControlPointsItem_h
#define __vtkCompositeControlPointsItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkColorTransferControlPointsItem.h"
class vtkPiecewiseFunction;
class vtkPiecewisePointHandleItem;
class VTK_CHARTS_EXPORT vtkCompositeControlPointsItem:
class VTKCHARTSCORE_EXPORT vtkCompositeControlPointsItem:
public vtkColorTransferControlPointsItem
{
public:
......
......@@ -16,13 +16,14 @@
#ifndef __vtkCompositeTransferFunctionItem_h
#define __vtkCompositeTransferFunctionItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkColorTransferFunctionItem.h"
class vtkPiecewiseFunction;
// Description:
// vtkPlot::Color and vtkPlot::Brush have no effect here.
class VTK_CHARTS_EXPORT vtkCompositeTransferFunctionItem: public vtkColorTransferFunctionItem
class VTKCHARTSCORE_EXPORT vtkCompositeTransferFunctionItem: public vtkColorTransferFunctionItem
{
public:
static vtkCompositeTransferFunctionItem* New();
......
......@@ -25,6 +25,7 @@
#ifndef __vtkControlPointsItem_h
#define __vtkControlPointsItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkCommand.h" // For vtkCommand enum
#include "vtkPlot.h"
#include "vtkVector.h" // For vtkVector2f
......@@ -34,7 +35,7 @@ class vtkContext2D;
class vtkPoints2D;
class vtkTransform2D;
class VTK_CHARTS_EXPORT vtkControlPointsItem: public vtkPlot
class VTKCHARTSCORE_EXPORT vtkControlPointsItem: public vtkPlot
{
public:
vtkTypeMacro(vtkControlPointsItem, vtkPlot);
......
......@@ -16,6 +16,7 @@
#ifndef __vtkLookupTableItem_h
#define __vtkLookupTableItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkScalarsToColorsItem.h"
class vtkLookupTable;
......@@ -23,7 +24,7 @@ class vtkLookupTable;
// Description:
// vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
// vtkScalarsToColors::MaskAboveCurve have no effect here.
class VTK_CHARTS_EXPORT vtkLookupTableItem: public vtkScalarsToColorsItem
class VTKCHARTSCORE_EXPORT vtkLookupTableItem: public vtkScalarsToColorsItem
{
public:
static vtkLookupTableItem* New();
......
......@@ -25,11 +25,12 @@
#ifndef __vtkPiecewiseControlPointsItem_h
#define __vtkPiecewiseControlPointsItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkControlPointsItem.h"
class vtkPiecewiseFunction;
class VTK_CHARTS_EXPORT vtkPiecewiseControlPointsItem: public vtkControlPointsItem
class VTKCHARTSCORE_EXPORT vtkPiecewiseControlPointsItem: public vtkControlPointsItem
{
public:
vtkTypeMacro(vtkPiecewiseControlPointsItem, vtkControlPointsItem);
......
......@@ -16,13 +16,14 @@
#ifndef __vtkPiecewiseFunctionItem_h
#define __vtkPiecewiseFunctionItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkScalarsToColorsItem.h"
class vtkPiecewiseFunction;
class vtkImageData;
/// vtkPiecewiseFunctionItem internall uses vtkPlot::Color, white by default
class VTK_CHARTS_EXPORT vtkPiecewiseFunctionItem: public vtkScalarsToColorsItem
class VTKCHARTSCORE_EXPORT vtkPiecewiseFunctionItem: public vtkScalarsToColorsItem
{
public:
static vtkPiecewiseFunctionItem* New();
......
......@@ -24,6 +24,7 @@
#ifndef __vtkPiecewisePointHandleItem_h
#define __vtkPiecewisePointHandleItem_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkContextItem.h"
#include "vtkWeakPointer.h" // Needed for weak pointer to the PiecewiseFunction.
......@@ -32,7 +33,7 @@ class vtkPiecewiseFunction;
class vtkCallbackCommand;
class vtkAbstractContextItem;
class VTK_CHARTS_EXPORT vtkPiecewisePointHandleItem : public vtkContextItem
class VTKCHARTSCORE_EXPORT vtkPiecewisePointHandleItem : public vtkContextItem
{
public:
vtkTypeMacro(vtkPiecewisePointHandleItem, vtkContextItem);
......
......@@ -24,6 +24,7 @@
#ifndef __vtkPlot_h
#define __vtkPlot_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkContextItem.h"
#include "vtkStdString.h" // Needed to hold TooltipLabelFormat ivar
#include "vtkSmartPointer.h" // Needed to hold SP ivars
......@@ -39,7 +40,7 @@ class vtkVector2f;
class vtkRectf;
class vtkStringArray;
class VTK_CHARTS_EXPORT vtkPlot : public vtkContextItem
class VTKCHARTSCORE_EXPORT vtkPlot : public vtkContextItem
{
public:
vtkTypeMacro(vtkPlot, vtkContextItem);
......
......@@ -22,6 +22,7 @@
#ifndef __vtkPlotBar_h
#define __vtkPlotBar_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkPlot.h"
#include "vtkSmartPointer.h" // Needed to hold ColorSeries
......@@ -33,7 +34,7 @@ class vtkColorSeries;
class vtkPlotBarPrivate;
class VTK_CHARTS_EXPORT vtkPlotBar : public vtkPlot
class VTKCHARTSCORE_EXPORT vtkPlotBar : public vtkPlot
{
public:
vtkTypeMacro(vtkPlotBar, vtkPlot);
......
......@@ -24,6 +24,7 @@
#ifndef __vtkPlotGrid_h