Updates will be applied - 12:30pm EDT (UTC -400). Site will be down for around 30

Commit c21ad6da authored by Ben Boeckel's avatar Ben Boeckel

vtkFiltersCore: update to the new module system

parent cad722c5
set(Module_SRCS
vtkAppendArcLength.cxx
vtkAppendFilter.cxx
vtkAppendPolyData.cxx
vtkAppendSelection.cxx
vtkArrayCalculator.cxx
vtkAssignAttribute.cxx
vtkAttributeDataToFieldDataFilter.cxx
vtkBinCellDataFilter.cxx
vtkCellDataToPointData.cxx
vtkCleanPolyData.cxx
vtkClipPolyData.cxx
vtkCompositeDataProbeFilter.cxx
vtkConnectivityFilter.cxx
vtkContourFilter.cxx
vtkContourGrid.cxx
vtkContourHelper.cxx
vtkContour3DLinearGrid.cxx
vtkDataObjectGenerator.cxx
vtkDataObjectToDataSetFilter.cxx
vtkDataSetEdgeSubdivisionCriterion.cxx
vtkDataSetToDataObjectFilter.cxx
vtkDecimatePolylineFilter.cxx
vtkDecimatePro.cxx
vtkDelaunay2D.cxx
vtkDelaunay3D.cxx
vtkElevationFilter.cxx
vtkExecutionTimer.cxx
vtkFeatureEdges.cxx
vtkFieldDataToAttributeDataFilter.cxx
vtkFlyingEdges2D.cxx
vtkFlyingEdges3D.cxx
vtkFlyingEdgesPlaneCutter.cxx
vtkGlyph2D.cxx
vtkGlyph3D.cxx
vtkHedgeHog.cxx
vtkHull.cxx
vtkIdFilter.cxx
vtkMarchingCubes.cxx
vtkMarchingSquares.cxx
vtkMaskFields.cxx
vtkMaskPoints.cxx
vtkMaskPolyData.cxx
vtkMassProperties.cxx
vtkMergeDataObjectFilter.cxx
vtkMergeFields.cxx
vtkMergeFilter.cxx
vtkMoleculeAppend.cxx
vtkMultiObjectMassProperties.cxx
vtkPlaneCutter.cxx
vtkPointDataToCellData.cxx
vtkPolyDataConnectivityFilter.cxx
vtkPolyDataNormals.cxx
vtkProbeFilter.cxx
vtkQuadricClustering.cxx
vtkQuadricDecimation.cxx
vtkRearrangeFields.cxx
vtkRemoveDuplicatePolys.cxx
vtkResampleToImage.cxx
vtkResampleWithDataSet.cxx
vtkReverseSense.cxx
vtkSimpleElevationFilter.cxx
vtkSmoothPolyDataFilter.cxx
vtkSphereTreeFilter.cxx
vtkStaticCleanPolyData.cxx
vtkStripper.cxx
vtkStructuredGridOutlineFilter.cxx
vtkSynchronizedTemplates2D.cxx
vtkSynchronizedTemplates3D.cxx
vtkSynchronizedTemplatesCutter3D.cxx
vtkTensorGlyph.cxx
vtkThreshold.cxx
vtkThresholdPoints.cxx
vtkTransposeTable.cxx
vtkTriangleFilter.cxx
vtkTriangleMeshPointNormals.cxx
vtkTubeFilter.cxx
vtkUnstructuredGridQuadricDecimation.cxx
vtkVectorDot.cxx
vtkVectorNorm.cxx
vtkVoronoi2D.cxx
vtkWindowedSincPolyDataFilter.cxx
set(classes
vtkAppendArcLength
vtkAppendCompositeDataLeaves
vtkAppendFilter
vtkAppendPolyData
vtkAppendSelection
vtkArrayCalculator
vtkAssignAttribute
vtkAttributeDataToFieldDataFilter
vtkBinCellDataFilter
vtkCellDataToPointData
vtkCenterOfMass
vtkCleanPolyData
vtkClipPolyData
vtkCompositeCutter
vtkCompositeDataProbeFilter
vtkConnectivityFilter
vtkContour3DLinearGrid
vtkContourFilter
vtkContourGrid
vtkContourHelper
vtkCutter
vtkDataObjectGenerator
vtkDataObjectToDataSetFilter
vtkDataSetEdgeSubdivisionCriterion
vtkDataSetToDataObjectFilter
vtkDecimatePolylineFilter
vtkDecimatePro
vtkDelaunay2D
vtkDelaunay3D
vtkEdgeSubdivisionCriterion
vtkElevationFilter
vtkExecutionTimer
vtkFeatureEdges
vtkFieldDataToAttributeDataFilter
vtkFlyingEdges2D
vtkFlyingEdges3D
vtkFlyingEdgesPlaneCutter
vtkGlyph2D
vtkGlyph3D
vtkGridSynchronizedTemplates3D
vtkHedgeHog
vtkHull
vtkIdFilter
vtkImageAppend
vtkImplicitPolyDataDistance
vtkMarchingCubes
vtkMarchingSquares
vtkMaskFields
vtkMaskPoints
vtkMaskPolyData
vtkMassProperties
vtkMergeDataObjectFilter
vtkMergeFields
vtkMergeFilter
vtkMoleculeAppend
vtkMultiObjectMassProperties
vtkPlaneCutter
vtkPointDataToCellData
vtkPolyDataConnectivityFilter
vtkPolyDataNormals
vtkProbeFilter
vtkQuadricClustering
vtkQuadricDecimation
vtkRearrangeFields
vtkRectilinearSynchronizedTemplates
vtkRemoveDuplicatePolys
vtkResampleToImage
vtkResampleWithDataSet
vtkReverseSense
vtkSimpleElevationFilter
vtkSmoothPolyDataFilter
vtkSphereTreeFilter
vtkStaticCleanPolyData
vtkStreamerBase
vtkStreamingTessellator
vtkStripper
vtkStructuredGridAppend
vtkStructuredGridOutlineFilter
vtkSynchronizedTemplates2D
vtkSynchronizedTemplates3D
vtkSynchronizedTemplatesCutter3D
vtkTensorGlyph
vtkThreshold
vtkThresholdPoints
vtkTransposeTable
vtkTriangleFilter
vtkTriangleMeshPointNormals
vtkTubeFilter
vtkUnstructuredGridQuadricDecimation
vtkVectorDot
vtkVectorNorm
vtkVoronoi2D
vtkWindowedSincPolyDataFilter)
vtkCutter.cxx
vtkCompositeCutter.cxx
vtkGridSynchronizedTemplates3D.cxx
vtkRectilinearSynchronizedTemplates.cxx
vtkEdgeSubdivisionCriterion.cxx
vtkStreamingTessellator.cxx
vtkImplicitPolyDataDistance.cxx
vtkStreamerBase.cxx
vtkCenterOfMass.cxx
vtkImageAppend.cxx
vtkStructuredGridAppend.cxx
vtkAppendCompositeDataLeaves.cxx
)
vtk_module_library(vtkFiltersCore ${Module_SRCS})
vtk_module_add_module(VTK::FiltersCore
CLASSES ${classes})
vtk_module_test_data(
Data/CuspySurface.vtp
Data/Delaunay/,REGEX:.*
Data/beach.jpg
Data/can.ex2
Data/cow.vtp
Data/delaunay3d.vtu
Data/disk_out_ref_surface.vtp)
add_subdirectory(Cxx)
if (VTK_WRAP_PYTHON)
vtk_module_test_data(
Data/3GQP.pdb
Data/AMR/Enzo/DD0010/,REGEX:.*
Data/B.pgm
Data/RectGrid2.vtk
Data/Viewpoint/cow.g
Data/Viewpoint/cow.obj
Data/beach.tif
Data/blow.vtk
Data/combq.bin
Data/combxyz.bin
Data/cth.vtr
Data/cuttertest.vtu
Data/disk_out_ref.ex2
Data/financial.txt
Data/financial.vtk
Data/fran_cut.png
Data/fran_cut.vtk
Data/fullhead15.png
Data/headsq/,REGEX:.*
Data/masonry.bmp
Data/plate.vtk
Data/polyEx.vtk
Data/quadTetEdgeTest.vtk
Data/teapot.g
Data/tensors.vtk)
add_subdirectory(Python)
endif ()
......@@ -25,29 +25,21 @@
#include "vtkRenderWindowInteractor.h"
#include "vtkSmartPointer.h"
#include "vtkSphereSource.h"
#include "vtkTesting.h"
#include "vtkTestUtilities.h"
#include "vtkXMLPolyDataReader.h"
#include <vector>
int TestImplicitPolyDataDistance(int argc, char* argv[])
{
vtkSmartPointer<vtkTesting> testHelper =
vtkSmartPointer<vtkTesting>::New();
testHelper->AddArguments(argc, argv);
if (!testHelper->IsFlagSpecified("-D"))
{
std::cerr << "Error: -D /path/to/data was not specified.";
return EXIT_FAILURE;
}
std::string dataRoot = testHelper->GetDataRoot();
std::string fileName = dataRoot + "/Data/CuspySurface.vtp";
char* fileName =
vtkTestUtilities::ExpandDataFileName(argc, argv, "Data/CuspySurface.vtp");
std::cout << fileName << std::endl;
// Set up reader
vtkNew<vtkXMLPolyDataReader> reader;
reader->SetFileName(fileName.c_str());
reader->SetFileName(fileName);
delete[] fileName;
reader->Update();
// Set up distance calculator
......
......@@ -23,29 +23,21 @@
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkTesting.h"
#include "vtkTestUtilities.h"
#include "vtkTriangleFilter.h"
#include "vtkTriangleMeshPointNormals.h"
#include "vtkXMLPolyDataReader.h"
int TestTriangleMeshPointNormals(int argc, char* argv[])
{
vtkSmartPointer<vtkTesting> testHelper =
vtkSmartPointer<vtkTesting>::New();
testHelper->AddArguments(argc, argv);
if (!testHelper->IsFlagSpecified("-D"))
{
std::cerr << "Error: -D /path/to/data was not specified.";
return EXIT_FAILURE;
}
std::string dataRoot = testHelper->GetDataRoot();
std::string fileName = dataRoot + "/Data/cow.vtp";
char* fileName =
vtkTestUtilities::ExpandDataFileName(argc, argv, "Data/cow.vtp");
std::cout << fileName << std::endl;
// reader
vtkNew<vtkXMLPolyDataReader> reader;
reader->SetFileName(fileName.c_str());
reader->SetFileName(fileName);
delete[] fileName;
// triangle filter
vtkNew<vtkTriangleFilter> triFilter;
......
......@@ -55,8 +55,7 @@ class TestTextureGlyph(Testing.vtkTest):
a.SetMapper(m)
# The texture.
img_file = os.path.join(VTK_DATA_ROOT, "Data",
"masonry.bmp")
img_file = os.path.join(VTK_DATA_ROOT, "Data", "masonry.bmp")
img_r = vtk.vtkBMPReader()
img_r.SetFileName(img_file)
t = vtk.vtkTexture()
......
vtk_module(vtkFiltersCore
GROUPS
StandAlone
TEST_DEPENDS
vtkTestingRendering
vtkInteractionStyle
vtkIOLegacy
vtkIOXML
vtkIOExodus
vtkImagingCore
vtkFiltersGeneral
vtkRenderingOpenGL2
vtkRenderingVolumeOpenGL2
KIT
vtkFilters
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkCommonMisc
PRIVATE_DEPENDS
vtkCommonMath
vtkCommonSystem
vtkCommonTransforms
)
NAME
VTK::FiltersCore
LIBRARY_NAME
vtkFiltersCore
DESCRIPTION
Common filters for VTK data types
IMPLEMENTABLE
KIT
VTK::Filters
GROUPS
StandAlone
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::CommonMisc
PRIVATE_DEPENDS
VTK::CommonMath
VTK::CommonSystem
VTK::CommonTransforms
VTK::vtksys
TEST_DEPENDS
VTK::CommonSystem
VTK::FiltersGeneral
VTK::FiltersGeometry
VTK::FiltersSources
VTK::IOExodus
VTK::IOImage
VTK::IOLegacy
VTK::IOXML
VTK::ImagingCore
VTK::InteractionStyle
VTK::RenderingOpenGL2
VTK::RenderingVolumeOpenGL2
VTK::TestingRendering
Markdown is supported
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