Commit 4d127b1d authored by Kitware Robot's avatar Kitware Robot Committed by David Gobbi

Remove all BTX and ETX markers from VTK headers

Perl was used to remove all the BTX and ETX markers from the code.
The specific command that was run on all "vtk*.h" files was this:
    perl -0777 -i -pe 's/(\n* *\/\/ *[BE]TX *\n+)+/\n\n/g'

This regex replaces each BTX/ETX line, plus any leading or trailing
blank lines, with a single blank line.
parent 55878a23
......@@ -55,11 +55,10 @@ public:
// A convenience handle to get whatever is actually stored in the reference.
void * GetReferredData();
//BTX
// Description:
// GPU level representation and storage this manages.
vtkPistonReference *GetReference() { return this->Reference; };
//ETX
// Description:
// Shallow/deep copy the data from src into this object.
virtual void ShallowCopy(vtkDataObject* src);
......@@ -101,12 +100,10 @@ public:
// Set scalars range.
void SetScalarsRange(double range[2]);
//BTX
// Description:
// Retrieve an instance of this class from an information object.
static vtkPistonDataObject* GetData(vtkInformation* info);
static vtkPistonDataObject* GetData(vtkInformationVector* v, int i=0);
//ETX
protected:
vtkPistonDataObject();
......
......@@ -433,7 +433,6 @@ public:
// is TICK_SIMPLE.
vtkStdString GenerateSimpleLabel(double val);
//BTX
protected:
vtkAxis();
~vtkAxis();
......@@ -602,7 +601,6 @@ private:
// Return true if the value is in range, false otherwise.
bool InRange(double value);
//ETX
};
#endif //vtkAxis_h
......@@ -44,7 +44,6 @@ public:
vtkTypeMacro(vtkChart, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX
// Description:
// Enum of the available chart types
enum {
......@@ -81,7 +80,6 @@ public:
enum EventIds {
UpdateRange = 1002
};
//ETX
// Description:
// Paint event for the chart, called whenever the chart needs to be drawn
......
......@@ -102,7 +102,6 @@ public:
// only contain one plot, this will replace the previous plot.
virtual void SetPlot(vtkPlotBox *plot);
//BTX
// Description:
// Return true if the supplied x, y coordinate is inside the item.
virtual bool Hit(const vtkContextMouseEvent &mouse);
......@@ -119,8 +118,6 @@ public:
// Mouse button release event.
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse);
//ETX
// Description:
// Set the vtkTooltipItem object that will be displayed by the chart.
virtual void SetTooltip(vtkTooltipItem *tooltip);
......@@ -135,7 +132,7 @@ public:
const vtkVector2d &,
vtkIdType, vtkPlot*,
vtkIdType segmentIndex = -1);
//BTX
protected:
vtkChartBox();
~vtkChartBox();
......@@ -187,7 +184,7 @@ protected:
private:
vtkChartBox(const vtkChartBox &); // Not implemented.
void operator=(const vtkChartBox &); // Not implemented.
//ETX
};
// Description:
......
......@@ -92,7 +92,6 @@ public:
// only contain one plot, this will replace the previous plot.
virtual void SetPlot(vtkPlotParallelCoordinates *plot);
//BTX
// Description:
// Return true if the supplied x, y coordinate is inside the item.
virtual bool Hit(const vtkContextMouseEvent &mouse);
......@@ -120,9 +119,7 @@ public:
// Description:
// Mouse wheel event, positive delta indicates forward movement of the wheel.
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta);
//ETX
//BTX
protected:
vtkChartParallelCoordinates();
~vtkChartParallelCoordinates();
......@@ -154,7 +151,7 @@ protected:
private:
vtkChartParallelCoordinates(const vtkChartParallelCoordinates &); // Not implemented.
void operator=(const vtkChartParallelCoordinates &); // Not implemented.
//ETX
};
#endif //vtkChartParallelCoordinates_h
......@@ -78,7 +78,6 @@ public:
// Set the vtkContextScene for the item, always set for an item in a scene.
virtual void SetScene(vtkContextScene *scene);
//BTX
// Description:
// Return true if the supplied x, y coordinate is inside the item.
virtual bool Hit(const vtkContextMouseEvent &mouse);
......@@ -106,9 +105,7 @@ public:
// Description:
// Mouse wheel event, positive delta indicates forward movement of the wheel.
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta);
//ETX
//BTX
protected:
vtkChartPie();
~vtkChartPie();
......@@ -141,7 +138,6 @@ private:
// Private implementation details
vtkChartPiePrivate *Private;
//ETX
};
#endif //vtkChartPie_h
......@@ -211,7 +211,6 @@ public:
vtkIdType, vtkPlot*,
vtkIdType segmentIndex = -1);
//BTX
// Description:
// Return true if the supplied x, y coordinate is inside the item.
virtual bool Hit(const vtkContextMouseEvent &mouse);
......@@ -243,9 +242,7 @@ public:
// Description:
// Key press event.
virtual bool KeyPressEvent(const vtkContextKeyEvent &key);
//ETX
//BTX
protected:
vtkChartXY();
~vtkChartXY();
......@@ -378,7 +375,6 @@ private:
vtkVector2f &min, vtkVector2f &max,
vtkContextPolygon &polygon);
//ETX
};
// Description:
......
......@@ -117,7 +117,6 @@ public:
// properly render the data within the chart.
void RecalculateTransform();
//BTX
// Description:
// Returns true if the transform is interactive, false otherwise.
virtual bool Hit(const vtkContextMouseEvent &mouse);
......@@ -139,7 +138,6 @@ public:
// different 2D views. "x" changes the view so we're looking down the X axis.
// Similar behavior occurs for "y" or "z".
virtual bool KeyPressEvent(const vtkContextKeyEvent &key);
//ETX
protected:
vtkChartXYZ();
......
......@@ -81,7 +81,6 @@ public:
// Mouse button release event.
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse);
//BTX
protected:
vtkPiecewisePointHandleItem();
~vtkPiecewisePointHandleItem();
......@@ -103,7 +102,7 @@ private:
class InternalPiecewisePointHandleInfo;
InternalPiecewisePointHandleInfo* Internal;
//ETX
};
#endif //vtkPiecewisePointHandleItem_h
......@@ -87,7 +87,6 @@ public:
virtual void SetTooltipPrecision(int precision);
virtual int GetTooltipPrecision();
//BTX
// Description:
// Generate and return the tooltip label string for this plot
// The segmentIndex parameter is ignored, except for vtkPlotBar
......@@ -110,7 +109,6 @@ public:
// Description:
// Select all points in the specified polygon.
virtual bool SelectPointsInPolygon(const vtkContextPolygon &polygon);
//ETX
// Description:
// Set the plot color
......@@ -296,15 +294,12 @@ public:
// Default implementation is empty.
virtual void UpdateCache() {}
//BTX
// Description:
// A General setter/getter that should be overridden. It can silently drop
// options, case is important
virtual void SetProperty(const vtkStdString &property, const vtkVariant &var);
virtual vtkVariant GetProperty(const vtkStdString &property);
//ETX
//BTX
protected:
vtkPlot();
~vtkPlot();
......@@ -392,7 +387,6 @@ private:
vtkPlot(const vtkPlot &); // Not implemented.
void operator=(const vtkPlot &); // Not implemented.
//ETX
};
#endif //vtkPlot_h
......@@ -103,7 +103,6 @@ public:
virtual void SetSelection(vtkIdTypeArray *id);
virtual vtkIdTypeArray* GetSelection();
//BTX
protected:
vtkPlot3D();
~vtkPlot3D();
......@@ -165,7 +164,6 @@ private:
vtkPlot3D(const vtkPlot3D &); // Not implemented.
void operator=(const vtkPlot3D &); // Not implemented.
//ETX
};
#endif //vtkPlot3D_h
......@@ -78,8 +78,6 @@ public:
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
int legendIndex);
//BTX
// Description:
// Function to query a plot for the nearest point to the specified coordinate.
// Returns the index of the data series with which the point is associated, or
......@@ -110,7 +108,7 @@ private:
vtkTableCache* TableCache;
vtkTimeStamp UpdateTime;
//ETX
};
#endif
......@@ -172,7 +172,6 @@ public:
// Select all points in the specified rectangle.
virtual bool SelectPoints(const vtkVector2f& min, const vtkVector2f& max);
//BTX
// Description:
// Function to query a plot for the nearest point to the specified coordinate.
// Returns the index of the data series with which the point is associated or
......@@ -241,7 +240,6 @@ private:
vtkPlotBarPrivate *Private;
//ETX
};
#endif //vtkPlotBar_h
......@@ -105,7 +105,6 @@ public:
// Get the vtkTextProperty that governs how the plot title is displayed.
vtkGetObjectMacro(TitleProperties, vtkTextProperty);
//BTX
protected:
vtkPlotBox();
~vtkPlotBox();
......@@ -141,7 +140,6 @@ private:
vtkPlotBox(const vtkPlotBox &); // Not implemented.
void operator=(const vtkPlotBox &); // Not implemented.
//ETX
};
#endif //vtkPlotBox_h
......@@ -95,7 +95,6 @@ public:
// is available with the scalar data.
virtual void CreateDefaultLookupTable();
//BTX
// Description:
// Function to query a plot for the nearest point to the specified coordinate.
// Returns the index of the data series with which the point is associated or
......@@ -103,7 +102,7 @@ public:
virtual vtkIdType GetNearestPoint(const vtkVector2f& point,
const vtkVector2f& tolerance,
vtkVector2f* location);
//ETX
// Description:
// Select all points in the specified rectangle.
virtual bool SelectPoints(const vtkVector2f& min, const vtkVector2f& max);
......
......@@ -54,7 +54,6 @@ public:
// Paint event for the axis, called whenever the axis needs to be drawn
virtual bool Paint(vtkContext2D *painter);
//BTX
protected:
vtkPlotGrid();
~vtkPlotGrid();
......@@ -68,7 +67,7 @@ protected:
private:
vtkPlotGrid(const vtkPlotGrid &); // Not implemented.
void operator=(const vtkPlotGrid &); // Not implemented.
//ETX
};
#endif //vtkPlotGrid_h
......@@ -75,7 +75,6 @@ public:
virtual void SetPosition(const vtkRectf& pos);
virtual vtkRectf GetPosition();
//BTX
// Description:
// Generate and return the tooltip label string for this plot
// The segmentIndex parameter is ignored.
......@@ -125,7 +124,6 @@ private:
vtkPlotHistogram2D(const vtkPlotHistogram2D &); // Not implemented.
void operator=(const vtkPlotHistogram2D &); // Not implemented.
//ETX
};
#endif //vtkPlotHistogram2D_h
......@@ -57,7 +57,6 @@ public:
vtkGetMacro(PolyLine,bool);
vtkBooleanMacro(PolyLine,bool);
//BTX
protected:
vtkPlotLine();
~vtkPlotLine();
......@@ -70,7 +69,6 @@ private:
vtkPlotLine(const vtkPlotLine &); // Not implemented.
void operator=(const vtkPlotLine &); // Not implemented.
//ETX
};
#endif //vtkPlotLine_h
......@@ -45,7 +45,6 @@ public:
// Paint event for the XYZ plot, called whenever the chart needs to be drawn.
virtual bool Paint(vtkContext2D *painter);
//BTX
protected:
vtkPlotLine3D();
~vtkPlotLine3D();
......@@ -54,7 +53,6 @@ private:
vtkPlotLine3D(const vtkPlotLine3D &); // Not implemented.
void operator=(const vtkPlotLine3D &); // Not implemented.
//ETX
};
#endif //vtkPlotLine3D_h
......@@ -109,7 +109,6 @@ public:
// Get the array name to color by.
vtkStdString GetColorArrayName();
//BTX
protected:
vtkPlotParallelCoordinates();
~vtkPlotParallelCoordinates();
......@@ -138,7 +137,6 @@ private:
vtkPlotParallelCoordinates(const vtkPlotParallelCoordinates &); // Not implemented.
void operator=(const vtkPlotParallelCoordinates &); // Not implemented.
//ETX
};
#endif //vtkPlotParallelCoordinates_h
......@@ -72,7 +72,6 @@ public:
// Get the color series used.
vtkColorSeries *GetColorSeries();
//BTX
// Description:
// Function to query a plot for the nearest point to the specified coordinate.
// Returns the index of the data series with which the point is associated or
......@@ -108,7 +107,7 @@ private:
void operator=(const vtkPlotPie &); // Not implemented.
vtkPlotPiePrivate *Private;
//ETX
};
#endif //vtkPlotPie_h
......@@ -107,7 +107,6 @@ public:
// Get the array name to color by.
vtkStdString GetColorArrayName();
//BTX
// Description:
// Function to query a plot for the nearest point to the specified coordinate.
// Returns the index of the data series with which the point is associated or
......@@ -134,7 +133,6 @@ public:
CIRCLE = VTK_MARKER_CIRCLE,
DIAMOND = VTK_MARKER_DIAMOND
};
//ETX
// Description:
// Get/set the marker style that should be used. The default is none, the enum
......@@ -153,7 +151,6 @@ public:
vtkGetMacro(ValidPointMaskName, vtkStdString)
vtkSetMacro(ValidPointMaskName, vtkStdString)
//BTX
protected:
vtkPlotPoints();
~vtkPlotPoints();
......@@ -241,7 +238,7 @@ private:
// #define VTK_COLOR_MODE_DEFAULT 0
// #define VTK_COLOR_MODE_MAP_SCALARS 1
//ETX
};
#endif //vtkPlotPoints_h
......@@ -42,7 +42,6 @@ public:
// Paint event for the XY plot, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
//BTX
protected:
vtkPlotPoints3D();
~vtkPlotPoints3D();
......@@ -58,7 +57,6 @@ protected:
private:
vtkPlotPoints3D(const vtkPlotPoints3D &); // Not implemented.
void operator=(const vtkPlotPoints3D &); // Not implemented.
//ETX
};
......
......@@ -95,7 +95,6 @@ public:
// Get the plot labels.
virtual vtkStringArray *GetLabels();
//BTX
// Description:
// Function to query a plot for the nearest point to the specified coordinate.
// Returns the index of the data series with which the point is associated or
......@@ -108,7 +107,6 @@ public:
// Select all points in the specified rectangle.
virtual bool SelectPoints(const vtkVector2f& min, const vtkVector2f& max);
//BTX
protected:
vtkPlotStacked();
~vtkPlotStacked();
......@@ -153,7 +151,6 @@ private:
vtkPlotStackedPrivate *Private;
//ETX
};
#endif //vtkPlotStacked_h
......@@ -73,7 +73,6 @@ public:
// to call it before SetInputData() when possible.
void SetYRange(float min, float max);
//BTX
protected:
vtkPlotSurface();
~vtkPlotSurface();
......@@ -146,7 +145,6 @@ private:
vtkPlotSurface(const vtkPlotSurface &); // Not implemented.
void operator=(const vtkPlotSurface &); // Not implemented.
//ETX
};
#endif //vtkPlotSurface_h
......@@ -55,7 +55,6 @@ public:
// Create a new vtkColorSeries with the SPECTRUM color scheme.
static vtkColorSeries* New();
//BTX
// Description:
// Enum of the available color schemes
enum ColorSchemes {
......@@ -186,9 +185,7 @@ public:
/// User specified color scheme.
CUSTOM
};
//ETX
//BTX
// Description:
// An enum defining how lookup tables should be used: either as a
// list of discrete colors to choose from (categorical), or as an
......@@ -199,7 +196,6 @@ enum LUTMode {
/// indexed lookup is on
CATEGORICAL
};
//ETX
// Description:
// Set the color scheme that should be used.
......@@ -236,7 +232,6 @@ enum LUTMode {
// to be duplicated to a new custom scheme.
virtual void SetNumberOfColors(int numColors);
//BTX
// Description:
// Get the color at the specified index. If the index is out of range then
// black will be returned.
......@@ -259,7 +254,6 @@ enum LUTMode {
// Description:
// Inserts the color at the specified index in the list.
virtual void InsertColor(int index, const vtkColor3ub &color);
//ETX
// Description:
// Removes the color at the specified index in the list.
......@@ -291,7 +285,6 @@ enum LUTMode {
// is treated as CATEGORICAL.
vtkLookupTable* CreateLookupTable(int lutIndexing = CATEGORICAL);
//BTX
protected:
vtkColorSeries();
virtual ~vtkColorSeries();
......@@ -316,7 +309,7 @@ protected:
private:
vtkColorSeries(const vtkColorSeries &); // Not implemented.
void operator=(const vtkColorSeries &); // Not implemented.
//ETX
};
#endif //vtkColorSeries_h
......@@ -198,8 +198,6 @@ public:
vtkAbstractArray *source)
{ this->Superclass::InsertTuples(dstIds, srcIds, source); }
//BTX
protected:
vtkAOSDataArrayTemplate();
~vtkAOSDataArrayTemplate();
......@@ -222,7 +220,7 @@ private:
friend class vtkGenericDataArray<vtkAOSDataArrayTemplate<ValueTypeT>,
ValueTypeT>;
//ETX
};
// Declare vtkArrayDownCast implementations for AoS containers:
......
......@@ -287,13 +287,11 @@ public:
vtkIdType GetMaxId()
{return this->MaxId;}
//BTX
enum DeleteMethod
{
VTK_DATA_ARRAY_FREE,
VTK_DATA_ARRAY_DELETE
};
//ETX
// Description:
// This method lets the user specify data to be held by the array. The
......@@ -470,7 +468,7 @@ public:
// Inquire if this array has an instance of vtkInformation
// already associated with it.
bool HasInformation(){ return this->Information!=0; }
//BTX
// Description:
// Copy information instance. Arrays use information objects
// in a variety of ways. It is important to have flexibility in
......@@ -482,7 +480,6 @@ public:
// keys they do not wish to be coppied. The subclass will not need to
// explicilty copy the keys as it's handled here.
virtual int CopyInformation(vtkInformation *infoFrom, int deep=1);
//ETX
// Description:
// This key is a hint to end user interface that this array
......@@ -584,10 +581,8 @@ protected: