Commit 54556c70 authored by Berk Geveci's avatar Berk Geveci
Browse files

PERF: Removing classes related to the visitor pattern used in composite data...

PERF: Removing classes related to the visitor pattern used in composite data sets. This is no longer necessary since the code is now in the executive
parent 7565c75a
......@@ -15,7 +15,6 @@ vtkActor2D.cxx
vtkActor2DCollection.cxx
vtkAlgorithm.cxx
vtkAlgorithmOutput.cxx
vtkApplyFilterCommand.cxx
vtkCachedStreamingDemandDrivenPipeline.cxx
vtkCardinalSpline.cxx
vtkCastToConcrete.cxx
......@@ -27,11 +26,9 @@ vtkCellLinks.cxx
vtkCellLocator.cxx
vtkCellTypes.cxx
vtkColorTransferFunction.cxx
vtkCompositeDataCommand.cxx
vtkCompositeDataIterator.cxx
#vtkCompositeDataPipeline.cxx
vtkCompositeDataSet.cxx
vtkCompositeDataVisitor.cxx
vtkCone.cxx
vtkConvexPointSet.cxx
vtkCoordinate.cxx
......@@ -75,12 +72,7 @@ vtkGeometricErrorMetric.cxx
vtkAttributesErrorMetric.cxx
vtkHexagonalPrism.cxx
vtkHexahedron.cxx
vtkHierarchicalBoxApplyFilterCommand.cxx
vtkHierarchicalBoxDataSet.cxx
vtkHierarchicalBoxSource.cxx
vtkHierarchicalBoxToHierarchicalBoxFilter.cxx
vtkHierarchicalBoxToPolyDataFilter.cxx
vtkHierarchicalBoxVisitor.cxx
#vtkHierarchicalDataInformation.cxx
vtkHierarchicalDataIterator.cxx
vtkHierarchicalDataSet.cxx
......@@ -124,11 +116,9 @@ vtkLine.cxx
vtkLocator.cxx
vtkMapper2D.cxx
vtkMergePoints.cxx
vtkMultiBlockApplyFilterCommand.cxx
vtkMultiBlockDataSet.cxx
#vtkMultiBlockDataSetAlgorithm.cxx
vtkMultiBlockDataIterator.cxx
vtkMultiBlockDataVisitor.cxx
vtkNonLinearCell.cxx
vtkOrderedTriangulator.cxx
vtkPentagonalPrism.cxx
......@@ -207,13 +197,10 @@ vtkGenericInterpolatedVelocityField.cxx
SET_SOURCE_FILES_PROPERTIES(
vtkAbstractMapper
vtkApplyFilterCommand
vtkCell
vtkCell3D
vtkCompositeDataCommand
vtkCompositeDataIterator
vtkCompositeDataSet
vtkCompositeDataVisitor
vtkDataObjectSource
vtkDataSet
vtkDataSetSource
......@@ -236,9 +223,6 @@ vtkGenericDataSetToUnstructuredGridFilter
vtkGenericDataSetToPolyDataFilter
vtkGenericPointIterator
vtkGenericSubdivisionErrorMetric
vtkHierarchicalBoxSource
vtkHierarchicalBoxToHierarchicalBoxFilter
vtkHierarchicalBoxToPolyDataFilter
vtkHierarchicalDataSet
vtkImageAlgorithm
vtkImageInPlaceFilter
......
......@@ -15,10 +15,9 @@
#include "vtkCompositeDataSet.h"
#include "vtkCompositeDataIterator.h"
#include "vtkCompositeDataVisitor.h"
#include "vtkDataSet.h"
vtkCxxRevisionMacro(vtkCompositeDataSet, "1.2");
vtkCxxRevisionMacro(vtkCompositeDataSet, "1.3");
//----------------------------------------------------------------------------
vtkCompositeDataSet::vtkCompositeDataSet()
......
......@@ -20,7 +20,7 @@
// only provides an interface to access the datasets through iterators.
// .SECTION See Also
// vtkCompositeDataIterator vtkCompositeDataVisitor
// vtkCompositeDataIterator
#ifndef __vtkCompositeDataSet_h
#define __vtkCompositeDataSet_h
......@@ -28,7 +28,6 @@
#include "vtkDataObject.h"
class vtkCompositeDataIterator;
class vtkCompositeDataVisitor;
class VTK_FILTERING_EXPORT vtkCompositeDataSet : public vtkDataObject
{
......@@ -41,11 +40,6 @@ public:
// (the iterator has to be deleted by user)
virtual vtkCompositeDataIterator* NewIterator() = 0;
// Description:
// Return a new visitor. Sub-classes should overload
// this method to return the appropriate visitor.
virtual vtkCompositeDataVisitor* NewVisitor() = 0;
// Description:
// Return class name of data type (see vtkSystemIncludes.h for
// definitions).
......
......@@ -15,13 +15,12 @@
#include "vtkHierarchicalBoxDataSet.h"
#include "vtkHierarchicalBoxDataSetInternal.h"
#include "vtkHierarchicalBoxVisitor.h"
#include "vtkObjectFactory.h"
#include "vtkUniformGrid.h"
#include "vtkUnsignedCharArray.h"
vtkCxxRevisionMacro(vtkHierarchicalBoxDataSet, "1.3");
vtkCxxRevisionMacro(vtkHierarchicalBoxDataSet, "1.4");
vtkStandardNewMacro(vtkHierarchicalBoxDataSet);
//----------------------------------------------------------------------------
......@@ -36,14 +35,6 @@ vtkHierarchicalBoxDataSet::~vtkHierarchicalBoxDataSet()
delete this->BoxInternal;
}
//----------------------------------------------------------------------------
vtkCompositeDataVisitor* vtkHierarchicalBoxDataSet::NewVisitor()
{
vtkHierarchicalBoxVisitor* vis = vtkHierarchicalBoxVisitor::New();
vis->SetDataSet(this);
return vis;
}
//----------------------------------------------------------------------------
vtkHDSNode* vtkHierarchicalBoxDataSet::NewNode()
{
......
......@@ -39,10 +39,6 @@ public:
vtkTypeRevisionMacro(vtkHierarchicalBoxDataSet,vtkHierarchicalDataSet);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// This returns a vtkHierarchicalBoxVisitor.
virtual vtkCompositeDataVisitor* NewVisitor();
// Description:
// Return class name of data type (see vtkSystemIncludes.h for
// definitions).
......
......@@ -16,11 +16,10 @@
#include "vtkMultiBlockDataIterator.h"
#include "vtkMultiBlockDataSetInternal.h"
#include "vtkMultiBlockDataVisitor.h"
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkMultiBlockDataSet, "1.2");
vtkCxxRevisionMacro(vtkMultiBlockDataSet, "1.3");
vtkStandardNewMacro(vtkMultiBlockDataSet);
//----------------------------------------------------------------------------
......@@ -70,17 +69,6 @@ vtkCompositeDataIterator* vtkMultiBlockDataSet::NewIterator()
return iter;
}
//----------------------------------------------------------------------------
vtkCompositeDataVisitor* vtkMultiBlockDataSet::NewVisitor()
{
vtkMultiBlockDataVisitor* vis = vtkMultiBlockDataVisitor::New();
vtkMultiBlockDataIterator* it =
vtkMultiBlockDataIterator::SafeDownCast(this->NewIterator());
vis->SetDataIterator(it);
it->Delete();
return vis;
}
//----------------------------------------------------------------------------
void vtkMultiBlockDataSet::Initialize()
{
......
......@@ -41,10 +41,6 @@ public:
// Return a new iterator (has to be deleted by user)
virtual vtkCompositeDataIterator* NewIterator();
// Description:
// This returns a vtkMultiBlockDataVisitor.
virtual vtkCompositeDataVisitor* NewVisitor();
// Description:
// Return class name of data type (see vtkSystemIncludes.h for
// definitions.
......
Supports Markdown
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