All public logs
From KitwarePublic
Jump to navigationJump to search
Combined display of all available logs of KitwarePublic. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
(newest | oldest) View (newer 500 | older 500) (20 | 50 | 100 | 250 | 500)- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/Decimation (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/Decimation Decimation] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/DeformPointSet (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/DeformPointSet DeformPointSet] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/ElevationFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_Meshes_TestElevationFilter.png</div> ==ElevationFilter.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkPointData.h> #include <vtkSmartPointer.h> #include <vtkDelaunay2D.h> #include <vtkXMLPolyDataWriter.h> #include <vtkLookupTable.h> #include <vtkFloatArray.h> #include <vtkElevationFilter.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRende...")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/ExtractEdges (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/ExtractEdges ExtractEdges] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/FillHoles (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/FillHoles FillHoles] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/FitToHeightMap (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/FitToHeightMap FitToHeightMap] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/IdentifyHoles (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/IdentifyHoles IdentifyHoles] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/InterpolateFieldDataDemo (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/InterpolateFieldDataDemo InterpolateFieldDataDemo] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' = '", and the only contributor was "Lorensen" (talk))
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/RadiusOutlierRemoval (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Points_TestRadiusOutlierRemoval.png</div> in this example, outliers are red. Yellow points satisfy the radius and neighbor restrictions. '''NOTE: The classes used in this example require vtk 7.1 or later.''' ==RadiusOutlierRemoval.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkRadiusOutlierRemova...", and the only contributor was "Lorensen" (talk))
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/SignedDistance (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestSignedDistance.png</div> Contrast this with the UnsignedDistance example. The image was created using the [https://github.com/lorensen/VTKWikiExamples/blob/master/Testing/Data/Armadillo.ply?raw=true Armadillo dataset] '''NOTE: The classes used in this example require vtk 7.1 or later.''' ==SignedDistance.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #includ...")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/UnsignedDistance (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestUnsignedDistance.png</div> Contrast this with the SignedDistance example. The image was created using the [https://github.com/lorensen/VTKWikiExamples/blob/master/Testing/Data/Armadillo.ply?raw=true Armadillo dataset] '''NOTE: The classes used in this example require vtk 7.1 or later.''' ==UnsignedDistance.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #includ...")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/AlignFrames (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/AlignFrames AlignFrames] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/AttachAttributes (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/AttachAttributes AttachAttributes] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/BooleanOperationPolyDataFilter BooleanOperationPolyDataFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/Casting (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/Casting Casting] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/CellCenters (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CellCenters CellCenters] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/CellEdgeNeighbors (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CellEdgeNeighbors CellEdgeNeighbors] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/CellLocator (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CellLocator CellLocator] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/CellLocatorVisualization (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CellLocatorVisualization CellLocatorVisualization] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/CellPointNeighbors (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CellPointNeighbors CellPointNeighbors] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/CenterOfMass (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CenterOfMass CenterOfMass] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/CleanPolyData (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CleanPolyData CleanPolyData] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ClosedSurface (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ClosedSurface ClosedSurface] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ColorCells (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ColorCells ColorCells] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ColorCellsWithRGB (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ColorCellsWithRGB ColorCellsWithRGB] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ColorDisconnectedRegions (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ColorDisconnectedRegions ColorDisconnectedRegions] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ColoredPoints (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ColoredPoints ColoredPoints] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ConvexHullShrinkWrap (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ConvexHullShrinkWrap ConvexHullShrinkWrap] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/CopyAllArrays (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CopyAllArrays CopyAllArrays] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/Curvatures (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/Curvatures Curvatures] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DataBounds (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DataBounds DataBounds] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DataSetSurfaceFilter DataSetSurfaceFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DecimatePolyline (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DecimatePolyline DecimatePolyline] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DeleteCells (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DeleteCells DeleteCells] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DeletePoint (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DeletePoint DeletePoint] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DetermineArrayDataTypes (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DetermineArrayDataTypes DetermineArrayDataTypes] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DijkstraGraphGeodesicPath (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DijkstraGraphGeodesicPath DijkstraGraphGeodesicPath] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DistancePolyDataFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DistancePolyDataFilter DistancePolyDataFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/DownsamplePointCloud (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DownsamplePointCloud DownsamplePointCloud] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/EmbedPointsIntoVolume (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/EmbedPointsIntoVolume EmbedPointsIntoVolume] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:09, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ExternalContour (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ExternalContour ExternalContour] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:08, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ExtractCellsUsingPoints ExtractCellsUsingPoints] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageAnisotropicDiffusion2D (content was: "<div class="floatright">400px</div> ==ImageAnisotropicDiffusion2D.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCamera.h> #include <vtkImageMapper3D.h> #include <vtkImageActor.h> #include <vtkImageAnisotropicDiffusion2D.h> #include <vtkImageCast.h> #include <vtkImageData.h> #include <vtkImageMandelbrotSource.h> #include <vtkInteractorStyleImage.h> #include <vtkJPEGReader.h> #include...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageCheckerboard (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestImageCheckerboard.png</div> This example compares two images using a checkerboard pattern. ==ImageCheckerboard.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkJPEGReader.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageViewer2.h> #include <vtkImageCheckerboard.h> int main ( int argc, char* argv[] ) {...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageCityBlockDistance (content was: "Compute the Manhattan distance from every point to every black point in a binary image. <div class="floatcenter">File:VTK_Examples_Baseline_Images_TestImageCityBlockDistance.png</div> ==ImageCityBlockDistance.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageCast.h> #include <vtkImageThreshold.h> #include <vtkJPEGReader.h> #include <vtkPNGReader.h> #include <vtkSmartPointer.h> #include <vtkImageExtractComponents.h> #include...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageContinuousDilate3D (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestImageContinuousDilate3D.png</div> ==ImageContinuousDilate3D.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkDataSetMapper.h> #include <vtkImageData.h> #include <vtkImageContinuousDilate3D.h> #include <vtkImageCanvasSource2D.h> #include <vtkPNGReader.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #in...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageContinuousErode3D (content was: "<div class="floatcenter">400px</div> ==ImageContinuousErode3D.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkImageData.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageContinuousErode3D.h> #include <vtkPNGReader.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #incl...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/PickPixel2 (content was: "<div class="floatright">300px</div> This example demonstrates how to continuously retrieve pixel values using the mouse. This example is a slight modification of the existing example Picking a pixel. The main difference is the display of the exact pixel coordinates and values instead of interpolated values. ==PickPixel2.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtk...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/RGBToHSV (content was: "<div class="floatright">400px</div> Convert RGB channels to HSV channels. ==RGBToHSV.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkSmartPointer.h> #include <vtkImageRGBToHSV.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkJPEGReader.h> #include <vtkImageActor.h> #include <vtkIma...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/RTAnalyticSource (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestRTAnalyticSource.png</div> ==RTAnalyticSource.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkImageData.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkRTAnalyticSource.h> int main(int, char*[]) { vtkSmartPointer<vtk...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ResizeImage (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestResizeImage.png</div> Resize an image using a sinc interpolator. Without command line arguments, the example resize a synthetic image. A jpeg file can be passed on the command lines. The new dimensions can also be passed as well as an integer specifying the sinc interpolator. See {{VTKDoxygenURL|vtkImageSin...", and the only contributor was "Lorensen" (talk))
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Transparency (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestTransparency.png</div> This example creates a half transparent, half green mask and overlays it on top of an input image. :''See also: [[../../Visualization/ImageTransparency]] and [[../ImageStencil]]'' ==Transparency.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkLookupTable.h> #include <vtkImageMapper3D.h> #include <vtkImageData.h> #include <vtkImageMapToColors.h>...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImplicitFunctions/IsoContours (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/ImplicitFunctions/IsoContours IsoContours] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImplicitFunctions/SampleFunction (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/ImplicitFunctions/SampleFunction SampleFunction] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/ArrayToTable (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/InfoVis/ArrayToTable ArrayToTable] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/DelimitedTextReader (content was: "<div class="floatright">File:VTK_Examples_Baseline_InfoVis_TestDelimitedTextReader.png</div> This example takes a plain text file of coordinates and normals (x y z nx ny nz) and reads them into a vtkPolyData and displays them on the screen. This can be easily changed to reading a file with any delimiter by changing the argument of <source lang="cpp">Reader->SetFieldDelimiterCharacters(" ");</source> Here is an example file: 0.0 0.0 0.0 1.0 2.0 3.0 1.0 0.0 0.0 4.0 5.0 6....")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/DelimitedTextWriter (content was: "Is the output of <source lang="cpp"> "","","" 0,1,2 3,4,5 6,7,8 </source> expected? What is the first line indicating? Simply that there are 3 string fields? With my prior edit, the first line is now "column-0","column-1","column-2" -- the first line is the names of the column arrays in the table. I added them to the example because the example was crashing on Windows builds, where streaming a NULL char* is no bueno. (David Cole) ==DelimitedTextWriter.cxx== <source lang="cpp...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/GraphPoints (content was: "<div class="floatright">File:VTK_Examples_Baseline_InfoVis_TestGraphPoints.png</div> ==GraphPoints.cxx== <source lang="cpp"> #include <vtkMutableUndirectedGraph.h> #include <vtkPoints.h> #include <vtkSmartPointer.h> #include <vtkGraphLayoutView.h> #include <vtkRenderWindowInteractor.h> int main(int, char *[]) { vtkSmartPointer<vtkMutableUndirectedGraph> g = vtkSmartPointer<vtkMutableUndirectedGraph>::New(); // Create 3 vertices vtkIdType v1 = g->AddVertex(); v...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/KMeansClustering (content was: "<div class="floatright">File:VTK_Examples_Baseline_InfoVis_TestKMeans.png</div> This example clusters 3D points using the KMeans algorithm. The points are assigned to a cluster by creating an array with each point's cluster id. ==KMeansClustering.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkPointData.h> #include <vtkPolyData.h> #include <vtkXMLPolyDataWriter.h> #include <vtkIntArray.h> #include <vtkMu...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/MutableGraphHelper (content was: "<div class="floatright">File:VTK_Examples_Baseline_InfoVis_TestMutableGraphHelper.png</div> ==MutableGraphHelper.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMutableDirectedGraph.h> #include <vtkMutableUndirectedGraph.h> #include <vtkMutableGraphHelper.h> #include <vtkGraphLayoutView.h> #include <vtkRenderWindowInteractor.h> int main(int, char*[]) { vtkSmartPointer<vtkMutableUndirectedGraph> g = vtkSmartPointer<vtkMutableUndirectedGraph>::New(...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/PKMeansClustering (content was: "==PKMeansClustering.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkPointData.h> #include <vtkPolyData.h> #include <vtkXMLPolyDataWriter.h> #include <vtkIntArray.h> #include <vtkMultiBlockDataSet.h> #include <vtkPoints.h> #include <vtkTable.h> #include <vtkDoubleArray.h> #include <vtkPKMeansStatistics.h> //display #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkR...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/ParallelCoordinatesView (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_InfoVis_TestParallelCoordinatesView.png</div> ==ParallelCoordinatesView.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPolyData.h> #include <vtkDelimitedTextReader.h> #include <vtkTable.h> #include <vtkPointData.h> #include <vtkParallelCoordinatesView.h> #include <vtkParallelCoordinatesRepresentation.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #incl...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/PassThrough (content was: "==PassThrough.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkPolyData.h> #include <vtkPassThrough.h> int main(int, char *[]) { // Create a sphere vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); std::cout << "Points before: " << sphereSource->GetOutput()->GetNumberOfPoints() << std::endl; vtkSmartPointer<vtkPassThrough> passThrough = vtkSm...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/SCurveSpline (content was: "<div class="floatright">File:VTK_Examples_Baseline_InfoVis_TestSCurveSpline.png</div> ==SCurveSpline.cxx== <source lang="cpp" highlight="16-40,45"> #include <vtkSmartPointer.h> #include <vtkPointSource.h> #include <vtkPoints.h> #include <vtkSCurveSpline.h> #include <vtkParametricSpline.h> #include <vtkParametricFunctionSource.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRe...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/TreeMapView (content was: "<div class="floatright">File:VTK_Examples_Baseline_InfoVis_TestTreeMapView.png</div> Fix: use a much simpler tree and generate the tree in the code instead of reading files. ==TreeMapView.cxx== <source lang="cpp"> #include <vtkDataRepresentation.h> #include <vtkRenderWindow.h> #include <vtkRegressionTestImage.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkTestUtilities.h> #include <vtkTreeMapView.h> #include <vtkViewTheme.h> #include <vtkXML...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/InfoVis/XGMLReader (content was: "<div class="floatright">File:VTK_Examples_Baseline_InfoVis_TestXGMLReader.png</div> This example reads and displays the graph from a gml file. You can test this with VTKData/Data/Infovis/fsm.gml. ==XGMLReader.cxx== <source lang="cpp"> #include <vtkPolyData.h> #include <vtkXGMLReader.h> #include <vtkSmartPointer.h> #include <vtkUndirectedGraph.h> #include <vtkGraphLayoutStrategy.h> #include <vtkGraphLayoutView.h> #include <vtkRenderWindowInteractor.h> #include <vtkSimple2DL...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/Assembly (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Interaction/Assembly Assembly] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/CallData (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Interaction_TestCallData.png</div> This example demonstrates the use of 'calldata' in a vtkCallbackCommand. Here, we create a custom VTK filter to invoke an event to which we attach a value (the 'calldata'). We use a timer to modify and update the filter so that the event is triggered repeatedly, demonstrating the pass-via-calldata. ==CallData.cxx== <source lang="cpp"> #include "vtkObjectFactory.h" #include "vtkCommand.h"...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/ClientData (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestClientData.png</div> ==ClientData.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkCallbackCommand.h> #include <vtkCommand.h> static void KeypressCallbackFunction ( vtkObject* caller, long un...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/DoubleClick (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestDoubleClick.png</div> ==DoubleClick.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkSmartPointer.h> #include <vtkPointPicker.h> #include <vtkCamera.h> #include <vtkInteractorStyleTrackballCamera.h> #include <vtkObjectFactory.h> // Define inte...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/Game (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestGame.png</div> ==Game.cxx== <source lang="cpp"> // Demonstrate moving pieces and "snapping" #include <vtkVersion.h> #include <vtkSelectEnclosedPoints.h> #include <vtkRendererCollection.h> #include <vtkPointData.h> #include <vtkPolyDataMapper.h> #include <vtkTransform.h> #include <vtkLinearTransform.h> #include <vtkTransformPolyDataFilter.h> #include <vtkObjectFactory.h> #include <vtkActor.h> #include <vtkRe...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/ImageClip (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestImageClip.png</div> This example loads an image into the left half of the window. When you move the border widget (the green square in the bottom left corner) over the image, the region that is selected is displayed in the right half of the window. ==ImageClip.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkBorderRepresentation.h> #include <v...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/ImageRegion (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestImageRegion.png</div> This example shows how to get the image coordinates of the corners of a BorderWidget. It currently says the pick for the lower left corner of the border widget is valid even when it is off the image. ==ImageRegion.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkAssemblyNode.h> #include <vtkAssemblyPath.h> #include <vtkBorderRepresentation.h> #...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/TrackballActor (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestTrackballActor.png</div> This example shows how to visualize data in "trackball" mode. That is, click and drag actors is the way to interact. Contrast this with Trackball Camera. ==TrackballActor.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #incl...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/TrackballCamera (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestTrackballCamera.png</div> This example demonstrates the trackball camera mode. When the mouse is clicked and dragged from anywhere in the window, the camera is modified. Contrast this with Trackball Actor. ==TrackballCamera.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #inc...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/UserEvent (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Interaction_TestUserEvent.png</div> ==UserEvent.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkCallbackCommand.h> #include <vtkCommand.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include "vtkTestFilter.h" static void CallbackFunction(vtkObject...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/WorldPointPicker (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestWorldPointPicker.png</div> This example demonstrates how to get the position of the point in 3D that is exactly behind the mouse click. This point is not likely a point that exists in the data set - i.e. it can be a point on the interior of a cell. ==WorldPointPicker.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkRendererCollection.h> #include <vtkWorldPointPicker.h> #include <vtkSphere...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Lighting/Light (content was: "<div class="floatright">File:VTK_Examples_Baseline_Lighting_TestLight.png</div> ==Light.cxx== <source lang="cpp"> #include <cstdlib> #include <vtkVersion.h> #include <vtkLightCollection.h> #include <vtkProperty.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkPlaneSource.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkLight.h> #include <vtkLightActor.h> #include <vtkSmartPointer.h> #include <vtkRenderWi...")
- 03:06, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Lighting/LightActor (content was: "<div class="floatright">File:VTK_Examples_Baseline_Lighting_TestLightActor.png</div> ==LightActor.cxx== <source lang="cpp"> #include <cstdlib> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkLightActor.h> #include <vtkLight.h> #include <vtkSmartPointer.h> #include <vtkRenderWindowInteractor.h> int main(int, char *[]) { vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New(); // Display where the light is vtkSmartPointer<vtkLig...")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/1DTupleInterpolation (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Math/1DTupleInterpolation 1DTupleInterpolation] on the new VTKExamples website.''' =")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/EigenSymmetric (content was: "At the moment, this is a pretty messy process, so here are some helper functions that will hopefully eventually be wrapped into a class/interface. ==EigenSymmetric.cxx== <source lang="cpp"> #include <vtkMath.h> allocate memory for an nrow x ncol matrix: template<class TReal> TReal **create_matrix ( long nrow, long ncol ) { typedef TReal* TRealPointer; TReal **m = new TRealPointer[nrow]; TReal* block = ( TReal* ) calloc ( nrow*ncol, sizeof ( TReal ) ); m[0] = blo...")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/HomogeneousLeastSquares (content was: "==HomogeneousLeastSquares.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMath.h> allocate memory for an nrow x ncol matrix: template<class TReal> TReal **create_matrix ( long nrow, long ncol ) { typedef TReal* TRealPointer; TReal **m = new TRealPointer[nrow]; TReal* block = ( TReal* ) calloc ( nrow*ncol, sizeof ( TReal ) ); m[0] = block; for ( int row = 1; row < nrow; ++row ) { m[ row ] = &block[ row * ncol ]; } return m...")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/LUFactorization (content was: "==LUFactorization.cxx== <source lang="cpp"> #include <vtkMath.h> template<class TReal> TReal **create_matrix ( long nrow, long ncol ) { typedef TReal* TRealPointer; TReal **m = new TRealPointer[nrow]; TReal* block = ( TReal* ) calloc ( nrow*ncol, sizeof ( TReal ) ); m[0] = block; for ( int row = 1; row < nrow; ++row ) { m[ row ] = &block[ row * ncol ]; } return m; } free a TReal matrix allocated with matrix(): template<class TReal> void fre...")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/LeastSquares (content was: "This example solves XM = Y (an interesting way to write Ax = b). In particular, we are trying to solve <source lang="text"> [1 4] [-2] [1 2] M = [6] [2 3] [1] </source> It currently does not work. ==LeastSquares.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMath.h> allocate memory for an nrow x ncol matrix: template<class TReal> TReal **create_matrix ( long nrow, long ncol ) { typedef TReal* TRealPointer; TReal **m = new TRe...")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/MatrixInverse (content was: "==MatrixInverse.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMatrix3x3.h> int main(int, char *[]) { vtkSmartPointer<vtkMatrix3x3> m = vtkSmartPointer<vtkMatrix3x3>::New(); m->SetElement(2,1,2.0); // Set element (0,0) to 1.0 std::cout << *m << std::endl; m->Invert(); std::cout << *m << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}} Category:VTKNoVizRequired")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/MatrixTranspose (content was: "==MatrixTranspose.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMatrix3x3.h> int main(int, char *[]) { vtkSmartPointer<vtkMatrix3x3> m = vtkSmartPointer<vtkMatrix3x3>::New(); m->SetElement(2,1,2.0); // Set element (2,1) to 2.0 std::cout << *m << std::endl; m->Transpose(); std::cout << *m << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}} Category:VTKNoVizRequired")
- 03:04, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/ExtractVisibleCells (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/ExtractVisibleCells ExtractVisibleCells] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WritePNM (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWritePNM.png</div> ==WritePNM.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkPNMWriter.h> #include <vtkSmartPointer.h> #include <vtkImageCanvasSource2D.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkPNMReader.h> #include <vtkInteractorStyleImage.h> int...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteSTL (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWriteSTL.png</div> An STL file describes a triangulated three-dimensional surface by the unit normal and vertices (ordered by the right-hand rule) of the triangles. This example saves a 3D geometric data stored in a {{class|vtkPolyData}} to an STL file using {{class|vtkSTLWriter}}. ==WriteSTL.cxx== <source lang="cpp"> #include <vtkPolyData.h> #include <vtkSTLWriter.h> #include <vtkST...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteTIFF (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWriteTIFF.png</div> ==WriteTIFF.cxx== <source lang="cpp" highlight="3,34-38"> #include <vtkImageData.h> #include <vtkInteractorStyleImage.h> #include <vtkTIFFWriter.h> #include <vtkSmartPointer.h> #include <vtkImageCanvasSource2D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkTIFFReader.h> int main(...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteVTI (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWriteVTI.png</div> ==WriteVTI.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkXMLImageDataWriter.h> #include <vtkXMLImageDataReader.h> #include <vtkImageData.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageDataGeometryFilter.h> #include <vtkRenderWindow.h> #include <vtkActor.h> #include <vtkPolyDataMapper.h> int...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteVTP (content was: "In this example, we add 10 points to a polygonal data (polydata) object and write the result to a VTP file. ==WriteVTP.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkCellArray.h> #include <vtkPoints.h> #include <vtkXMLPolyDataWriter.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> int main ( int, char *[] ) { // Create 10 points. vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); for ( unsigned int i = 0; i < 10; ++i )...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteVTU (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWriteVTUFile.png</div> This example writes a VTU file. ==WriteVTU.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkTetra.h> #include <vtkCellArray.h> #include <vtkXMLUnstructuredGridReader.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkXMLUnstructuredGridWriter....")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/XMLPImageDataWriter (content was: "==XMLPImageDataWriter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkXMLPImageDataWriter.h> #include <vtkImageCanvasSource2D.h> int main(int, char *[]) { vtkSmartPointer<vtkImageCanvasSource2D> drawing = vtkSmartPointer<vtkImageCanvasSource2D>::New(); drawing->SetNumberOfScalarComponents(3); drawing->SetScalarTypeToUnsignedChar(); drawing->SetExtent(0, 20, 0, 50, 0, 1); drawing->SetDrawColor(255.0, 255.0, 255.0); drawing->DrawCircle(5, 5, 3...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/XMLPUnstructuredGridWriter (content was: " ==XMLPUnstructuredGridWriter.cxx== <source lang="cpp"> #include <vtkDelaunay3D.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkXMLPUnstructuredGridWriter.h> int main(int, char *[]) { vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); vtkSmartPointer<vtkDelaunay3D> delaunay = vtkSmartPointer<vtkDelaunay3D>::New(); delaunay->SetInputConnection(sphereSource->GetOutputPort());...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/XMLStructuredGridWriter (content was: "==XMLStructuredGridWriter.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkCellArray.h> #include <vtkPoints.h> #include <vtkXMLStructuredGridWriter.h> #include <vtkStructuredGrid.h> #include <vtkSmartPointer.h> int main ( int, char *[] ) { // Create a grid vtkSmartPointer<vtkStructuredGrid> structuredGrid = vtkSmartPointer<vtkStructuredGrid>::New(); vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->InsertNextPoint...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/CellIdFromGridCoordinates (content was: "==CellIdFromGridCoordinates.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkStructuredData.h> int main(int, char *[]) { vtkSmartPointer<vtkImageData> grid = vtkSmartPointer<vtkImageData>::New(); grid->SetOrigin(0, 0, 0); unsigned int numVoxelsPerDimension = 2; //the number of voxels in each dimension grid->SetSpacing(1, 1, 1); int extent[6]; extent[0] = 0; extent[1] = numVoxelsPerDimension...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ExtractVOI (content was: "<div class="floatright">300px</div> ==ExtractVOI.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkExtractVOI.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageCast.h> #include <vtkImageMandelbrot...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/GetCellCenter (content was: "Unfortunately this function is not built in directly, but rather quite convoluted to call. This is an easy to use wrapper. ==GetCellCenter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCell.h> #include <vtkImageData.h> static void GetCellCenter(vtkImageData* imageData, const unsigned int cellId, double center[3]); int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vt...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageDataGeometryFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_ImageData_TestImageDataGeometryFilter.png</div> Convert a vtkImageData to a vtkPolyData. ==ImageDataGeometryFilter.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkImageData.h> #include <vtkImageCanvasSource...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageDataToPointSet (content was: "==ImageDataToPointSet.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkPoints.h> #include <vtkImageDataToPointSet.h> #include <vtkSmartPointer.h> #include <vtkXMLStructuredGridWriter.h> #include <vtkImageReader2.h> #include <vtkImageReader2Factory.h> #include <vtkStructuredGrid.h> static void CreateImage(vtkImageData* image); int main(int, char *[]) { vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); Cr...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageIterator (content was: "Extracts an extent from an image using an image iterator. ==ImageIterator.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageIterator.h> int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vtkImageData>::New(); // Specify the size of the image data imageData->SetDimensions(10,20,30); #if VTK_MAJOR_VERSION <= 5 imageData->SetNumberOf...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageNormalize (content was: "<div class="floatright">300px</div> ==ImageNormalize.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageSinusoidSource.h> #include <vtkImageNormalize.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageCast.h> int...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageReslice (content was: "==ImageReslice.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkActor.h> #include <vtkImageData.h> #include <vtkIntArray.h> #include <vtkProperty2D.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkImageReslice.h> int main(int, char *[] ) { vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); image->SetExtent(0, 9, 0, 9, 0, 0); #if VTK_MAJOR_VER...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageTranslateExtent (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_ImageData_TestImageTranslateExtent.png</div> If you are looking to change the extent to change the "origin" of the image from the corner to the center, see vtkImageChangeInformation (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/CenterAnImage). Currently this method changes the extent (shown by the terminal output in the example), but does not change where the corner of the image is displayed relative to the sphere at (...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageWeightedSum (content was: "Sum multiple images. Images must be of the same size and type. <div class="floatcenter">300px</div> ==ImageWeightedSum.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageWeightedSum.h> #include <vtkImageMapper3D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorS...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/IntersectLine (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_ImageData_TestIntersectLine.png</div> This example demonstrates a (rather manual) way of finding which cells of a vtkImageData a finite line intersects. Note that this is not exact - a cell-centric approach is used. That is, a discrete line (DDA-like http://en.wikipedia.org/wiki/Digital_differential_analyzer_%28graphics_algorithm%29) is followed on the cell grid between the cells that contain the intersection points of the...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/IterateImageData (content was: "This example demonstrates how to set and access locations in a 3D image. ==IterateImageData.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vtkImageData>::New(); // Specify the size of the image data imageData->SetDimensions(2,3,1); #if VTK_MAJOR_VERSION <= 5 imageData->SetNumberOfScalarComponent...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageProcessing/RescaleAnImage (content was: "==RescaleAnImage.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkImageShiftScale.h> #include <vtkMath.h> #include <vtkSmartPointer.h> static void CreateImage(vtkImageData* const image); int main(int argc, char *argv[]) { vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); CreateImage(image); vtkSmartPointer<vtkImageShiftScale> shiftScaleFilter = vtkSmartPointer<vtkImageShiftScale>::New(); shiftScaleFilter->SetOutputScal...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Actor2D (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Images/Actor2D Actor2D] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/BackgroundImage (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestBackgroundImage.png</div> This example displays an image as the "background" of a scene, and renders a superquadric in front of it. The example accepts a jpeg file on the command line to use as a background image. If there is no file, it generates a simple background. ==BackgroundImage.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkActor.h> #include <vtkCamera.h> #include <vtkImageCanvasSource2D...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/BorderPixelSize (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestBorderPixelSize.png</div> ==BorderPixelSize.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageMapper.h> #include <vtkImageSliceMapper.h> #include <vtkImageSlice.h> #include <vtkImageProperty.h> static void Creat...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/CannyEdgeDetector (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestCannyEdgeDetector.png</div> ==CannyEdgeDetector.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkStructuredPoints.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkPNGReader.h> #include <vtkImageLuminance.h> #include <vtkProperty.h> #include <vtkImageGaussianSmooth.h> #include <vtkImage...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Cast (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestCast.png</div> Cast an image to a different type. ==Cast.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkImageCast.h> #include <vtkImageMapper3D.h> #include <vtkImageActor.h> #include <vtkImageMandelbrotSource.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkInteractorStyleImage.h> int main(int, char *[]) {...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/CenterAnImage (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestCenterAnImage.png</div> This moves (0,0) from the bottom left corner of the image to the center of the image. ==CenterAnImage.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkBorderRepresentation.h> #include <vtkBorderWidget.h> #include <vtkCommand.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkImageChangeInformation.h> #...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/CombineImages (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestCombineImages.png</div> This example takes two images and super imposes them. The opacity of each image can be set to control how they are combined. ==CombineImages.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkJPEGReader.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkImageBl...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/CombiningRGBChannels (content was: "<div class="floatright">600px</div> This example creates three images of a square. Each square slightly overlaps the previous square. These three layers are then interpreted as the R, G, and B channel of an RGB image, by the use of {{class|vtkImageAppendComponents}}. Note that you MUST add 3 inputs or no output will be produced. For the reverse operation, see [[../ExtractComponents]]. ==CombiningRGBChannels.c...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/DotProduct (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestDotProduct.png</div> This example demonstrates how to take the pixel-wise dot product of two vector images. The output is a scalar image. Two images, each 2x2x1, are created and filled with 3-vectors. The dot product of each pair of corresponding pixels is produced by the vtkImageDotProduct filter and output to the screen. ==DotProduct.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer....")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/DrawOnAnImage (content was: "<div class="floatright">300px</div> This example draws a circle in the center of the input image using {{class|vtkImageCanvasSource2D}}'s <code>DrawCircle</code> method. ==DrawOnAnImage.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkJPEGReader.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/DrawShapes (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestDrawingShapes.png</div> ==DrawShapes.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkImageCanvasSource2D.h> int main(int, char *[]) { // Create a blank, black image vtkSmartPointer<vtkImageCanvasSource2D> drawing = vtkSmartPointer<vtkIma...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ExtractComponents (content was: "<div class="floatright">600px</div> This example separates an image into the red channel, the green channel, and the blue channel using {{class|vtkImageExtractComponents}}. For the reverse operation, see [[../CombiningRGBChannels]]. ==ExtractComponents.cxx== <source lang="cpp" highlight="4,32-36,55-57,70,82-87,108"> #include <vtkImageData.h> #include <vtkJPEGReader.h> #include <vtkSmartPointer.h> #include <vtkIma...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/FillWindow (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestFillWindow.png</div> ==FillWindow.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkCamera.h> #include <vtkImageMandelbrotSource.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageSlice.h> #include <vtkImageSliceMapper.h> #include <vtkImageCast.h> #include <vtkImageMappe...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Flip (content was: "<div class="floatright">600px</div> This example demonstrates how to flip an image over an axis. Need a better source image (non-symmetrical!). ==Flip.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkImageCast.h> #include <vtkSmartPointer.h> #include <vtkImageMapper3D.h> #include <vtkImageFlip.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Gradient (content was: "<div class="floatcenter">600px</div> Find the gradient vector of an image at every pixel. Display the original image, the x component of the gradient, the y component of the gradient, and the gradient itself. The example takes an optional .jpeg image file. * Thanks to Eric Monson. ==Gradient.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkDoubleArray....")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageAccumulate (content was: "==ImageAccumulate.cxx== <source lang="cpp"> * In this example, the resulting histogram has 6 pixels (all of them) in the 3rd bin (value = 2) and zero in the rest of the bins: #include <vtkVersion.h> #include <vtkImageAccumulate.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> static void CreateImage(vtkSmartPointer<vtkImageData> image); int main(int, char *[] ) { vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); CreateImage(image)...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageAccumulateGreyscale (content was: "<div class="floatright">300px</div> ==ImageAccumulateGreyscale.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkBarChartActor.h> #include <vtkFieldData.h> #include <vtkImageAccumulate.h> #include <vtkImageData.h> #include <vtkImageExtractComponents.h> #include <vtkIntArray.h> #include <vtkJPEGReader.h> #include <vtkLegendBoxActor.h> #include <vtkProperty2D.h> #include <vtkRenderer.h> #include <vt...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/PointOccupancy (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestPointOccupancy.png</div> '''NOTE: The classes used in this example require vtk 7.1 or later.''' ==PointOccupancy.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPointSource.h> #include <vtkPLYReader.h> #include <vtkSTLReader.h> #include <vtkXMLPolyDataReader.h> #include <vtkOBJReader.h>...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/NormalEstimation (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestNormalEstimation.png</div> ==NormalEstimation.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPCANormalEstimation.h> #include <vtkPointSource.h> #include <vtkSphereSource.h> #include <vtkArrowSource.h> #include <vtkGlyph3D.h> #include <vtkMath.h> #include <vtkPolyDataMapper.h> #include <...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/MaskPointsFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestMaskPointsFilter.png</div> '''NOTE: The classes used in this example require vtk 7.1 or later.''' ==MaskPointsFilter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMaskPointsFilter.h> #include <vtkBoundedPointSource.h> #include <vtkImageData.h> #include <vtkCone.h> #include <vtkSampleI...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/FitImplicitFunction (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestFitImplicitFunction.png</div> ==FitImplicitFunction.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkFitImplicitFunction.h> #include <vtkBoundedPointSource.h> #include <vtkSphere.h> #include <vtkSphereSource.h> #include <vtkGlyph3D.h> #include <vtkMath.h> #include <vtkPolyDataMapper.h> #i...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/ExtractSurfaceDemo (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Filters_TestExtractSurfaceDemo.png</div> This example loosely follows the most excellent paper by Curless and Levoy: [https://graphics.stanford.edu/papers/volrange "A Volumetric Method for Building Complex Models from Range Images."] First it estimates normals from the points, then creates a signed distance field, fol...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/ExtractSurface (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Filters_TestExtractSurface.png</div> This example loosely follows the most excellent paper by Curless and Levoy: [https://graphics.stanford.edu/papers/volrange "A Volumetric Method for Building Complex Models from Range Images."] First it estimates normals from the points, then creates a signed distance field, followe...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/ExtractPointsDemo (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestExtractPoints.png</div> Demonstrates point extraction from four implicit functions: sphere, cone, cylinder and superquadric. '''NOTE: The classes used in this example require vtk 7.1 or later.''' ==ExtractPointsDemo.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkExtractPoints.h> #inclu...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/ExtractCluster (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Points_TestExtractClusters.png</div> This example extracts clusters of points. The points lie on spheres that are randomly placed. Each cluster has a different color. The number of extracted clusters may be less that the number of random spheres, if the points on one sphere are within the specified distance of points o...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/DensifyPoints (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestDensifyPoints.png</div> In this example, the original points are yellow and the added points are red. The image was produced using [https://github.com/lorensen/VTKWikiExamples/raw/master/Testing/Data/Torso.vtp this torso dataset] ==DensifyPoints.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/StackedPlot (content was: "<div class="floatright">File:VTK_Examples_Baseline_Plotting_TestStackedPlot.png</div> ==StackedPlot.cxx== <source lang="cpp"> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkSmartPointer.h> #include <vtkChartXY.h> #include <vtkPlot.h> #include <vtkAxis.h> #include <vtkPlotStacked.h> #include <vtkColor.h> #include <vtkColorSeries.h> #include <vtkTable.h> #include <vtkIntArray.h> #include <vtkDoubleArray.h> #include <vtkStringArray.h> #include <vtkContextVi...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/StackedBar (content was: "<div class="floatright">File:VTK_Examples_Baseline_Plotting_TestStackedBar.png</div> ==StackedBar.cxx== <source lang="cpp"> #include "vtkSmartPointer.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkChartXY.h" #include "vtkChartLegend.h" #include "vtkPlotBar.h" #include "vtkAxis.h" #include "vtkTable.h" #include "vtkIntArray.h" #include "vtkDoubleA...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/ScatterPlot (content was: "<div class="floatright">File:VTK_Examples_Baseline_Plotting_TestScatterPlot.png</div> ==ScatterPlot.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkChartXY.h> #include <vtkContextScene.h> #include <vtkContextView.h> #include <vtkFloatArray.h> #include <vtkPlotPoints.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkTable.h> int main(int, char*[]) { // Set up a 2D scene...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/PieChart (content was: "<div class="floatright">File:VTK_Examples_Baseline_Plotting_TestPieChart.png</div> ==PieChart.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkSmartPointer.h> #include <vtkChartPie.h> #include <vtkPlot.h> #include <vtkPlotPie.h> #include <vtkTable.h> #include <vtkIntArray.h> #include <vtkStringArray.h> #include <vtkContextView.h> #include <vtkContextScene.h> #include <vtkRenderWindowInteractor.h> #include <...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/ParallelCoordinates (content was: "<div class="floatright">300px</div> ==ParallelCoordinates.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkSmartPointer.h> #include <vtkChartParallelCoordinates.h> #include <vtkPlot.h> #include <vtkTable.h> #include <vtkFloatArray.h> #include <vtkContextView.h> #include <vtkContextScene.h> #include <vtkRenderWindowInteractor.h> int main(int, c...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/LinePlot (content was: "<div class="floatright">File:VTK_Examples_Baseline_Plotting_TestChart.png</div> This example demonstrates how to plot XY data. ==LinePlot.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderWindow.h> #include <vtkSmartPointer.h> #include <vtkChartXY.h> #include <vtkTable.h> #include <vtkPlot.h> #include <vtkFloatArray.h> #include <vtkContextView.h> #include <vtkContextScene.h> #include <vtkPen...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/Diagram (content was: "<div class="floatright">300px</div> ==Diagram.cxx== <source lang="cpp"> #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkSmartPointer.h" #include "vtkObjectFactory.h" #include "vtkContext2D.h" #include "vtkContextItem.h" #include "vtkContextActor.h" #include "vtk...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/BarChart (content was: "<div class="floatright">File:VTK_Examples_Baseline_Plotting_TestBarChart.png</div> ==BarChart.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkSmartPointer.h> #include <vtkChartXY.h> #include <vtkPlot.h> #include <vtkTable.h> #include <vtkIntArray.h> #include <vtkContextView.h> #include <vtkContextScene.h> #include <vtkRenderWindowInteractor.h> #define VTK_CREATE(type, name) \ vtkSmartPointer<type> name...")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Plotting/BoxChart (content was: "<div class="floatright">File:VTK_Examples_Baseline_Plotting_TestBoxChart.png</div> This example demonstrates how to generate a [https://en.wikipedia.org/wiki/Box_plot box plot]. The example uses data from [https://en.wikipedia.org/wiki/Michelson%E2%80%93Morley_experiment the Michelson Morley experiment]. Compare the wiki example output with the [https://upload.wikimedi...", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Picking/HighlightSelection (content was: "This example demonstrates how to select and highlight cells using a rubber band. Press 'r' to enter selection mode. <div class="floatcenter">File:VTK_Examples_Baseline_Picking_TestHighlightSelection.png</div> ==HighlightSelection.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkActor.h> #include <vtkAreaPicker.h> #include <vtkDataSetMapper.h> #include <vtkDataSetSurfaceFilter.h> #include <vtkExtractPolyDataGeometry.h> #include <vtkIdFilter.h> #include <vtkIdT...")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Picking/HighlightSelectedPoints (content was: "<div class="floatright">File:VTK_Examples_Baseline_Picking_TestHighlightPoints.png</div> This example demonstrates how to select and highlight points using a rubber band. Press 'r' to enter selection mode. Selected points are shown in red. The ids of the selected points are output. ==HighlightSelectedPoints.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPointData.h> #include <vtkIdTypeArray.h> #include <vtkDataSetSurfaceFilter.h...")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Picking/HighlightPickedActor (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Picking/HighlightPickedActor HighlightPickedActor] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Picking/CellPicking (content was: "<div class="floatright">File:VTK_Examples_Baseline_Picking_TestCellPicking.png</div> This example demonstrates how to get the coordinates of the point on an actor that is clicked with the left mouse button. It also indicates which cell the selected point belongs to by highlighting the edges of that cell. ==CellPicking.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkRendererCollection.h> #include <vtkDataSetMapper.h> #include <vtk...")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Parallel/ExodusIIWriter (content was: "Requires VTK to be built with VTK_USE_PARALLEL. ==ExodusIIWriter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyData.h> #include <vtkExodusIIWriter.h> #include <vtkTimeSourceExample.h> int main(int, char *[]) { vtkSmartPointer<vtkTimeSourceExample> timeSource = vtkSmartPointer<vtkTimeSourceExample>::New(); vtkSmartPointer<vtkExodusIIWriter> exodusWriter = vtkSmartPointer<vtkExodusIIWriter>::New(); exodusW...")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Modelling/MarchingSquares (content was: " <div class="floatcenter">File:VTK_Examples_Baseline_Modelling_TestMarchingSquares.png</div> ==MarchingSquares.cxx== <source lang="cpp"> #include "vtkMarchingSquares.h" #include "vtkSmartPointer.h" #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkPNGReader.h" #include "vtkDataSetMapper.h" #...", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Modelling/MarchingCubes (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Modelling/MarchingCubes/ MarchingCubes] on the new VTKExamples website.''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Modelling/ExtractLargestIsosurface (content was: "<div class="floatright">File:VTK_Examples_Baseline_Modelling_TestExtractLargestIsosurface.png</div> * Contributed by: Jinyoung Hwang This example reads a structured points dataset stored in a .vtk file and constructs a 3D model using vtkMarchingCubes. vtkPolyDataConnectivityFilter is used to extract the largest isosurface. Data is available at: 1. test.vtk: http://web.kaist.ac.kr/~hjy/test.vtk 2. brainweb.img: http://web.kaist.ac.kr/~hjy/brainweb.img 3. brainweb.hdr: h...")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Modelling/Delaunay3D (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Modelling/Delaunay3D Delaunay3D] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Modelling/ContourTriangulator (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Modelling/ContourTriangulator ContourTriangulator] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Modelling/Bottle (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Modelling/Bottle Bottle] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/WindowedSincPolyDataFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/WindowedSincPolyDataFilter WindowedSincPolyDataFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/Triangulate (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/Triangulate Triangulate] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/TableBasedClipDataSetWithPolyData (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/TableBasedClipDataSetWithPolyData TableBasedClipDataSetWithPolyData] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/TableBasedClipDataSetWithPolyData2 (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/TableBasedClipDataSetWithPolyData2 TableBasedClipDataSetWithPolyData2] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/SubdivisionDemo (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/SubdivisionDemo SubdivisionDemo] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/SplitPolyData (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/SplitPolyData SplitPolyData] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/SolidClip (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/SolidClip SolidClip] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/SimpleElevationFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/SimpleElevationFilter SimpleElevationFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/QuadricDecimation (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/QuadricDecimation QuadricDecimation] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/QuadricClustering (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/QuadricClustering QuadricClustering] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/PointInterpolator (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/PointInterpolator PointInterpolator] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/OBBDicer (content was: "<div class="floatright">File:VTK_Examples_Baseline_Meshes_TestOBBDicer.png</div> The vtkOBBDicer filter breaks up an input mesh into a number of pieces. The resulting mesh contains scalar point data that can be used to extract the individual pieces with a filter like vtkThresholdFilter. This examples displays the output of vtkOBBDicer with a different color for each piece. ==OBBDicer.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <v...")
- 03:02, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Meshes/MatrixMathFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/MatrixMathFilter MatrixMathFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestProgressReportFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTestPolyDataFilter vtkTestPolyDataFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestReader (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTestProgressReportFilter vtkTestProgressReportFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/CombinePolyData (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/CombinePolyData CombinePolyData] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' = '")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/ConnectivityFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/ConnectivityFilter ConnectivityFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/ConstrainedDelaunay2D (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/ConstrainedDelaunay2D ConstrainedDelaunay2D] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/ConnectivityFilterDemo (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/ConnectivityFilterDemo ConnectivityFilterDemo] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/ContoursFromPolyData (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/ContoursFromPolyData ContoursFromPolyData] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/Delaunay2D (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/Delaunay2D Delaunay2D] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/GaussianSplat (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/GaussianSplat GaussianSplat] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/PNGReader (content was: "<div class="floatright">300px</div> This example demonstrates how to read a PNG image file. ==PNGReader.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkPNGReader.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) { // Verify input arguments if ( argc < 2 ) { std::cout << "Usage: " << a...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/MetaImageWriter (content was: "==MetaImageWriter.cxx== <div class="floatright">File:VTK_Examples_IO_MetaImageWriter.png</div> <source lang="cpp"> // some standard vtk headers #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> // headers needed for this example #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageCast.h> #include <vtkMetaImageWriter.h> #include <vtkMetaImageReader.h> #include <vtkImageMandelbrotSo...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/MetaImageReader (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestMetaImageReader.png</div> ==MetaImageReader.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkMetaImageReader.h> #include <vtkSmartPointer.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> int main(int argc, char *argv[]) { std::string inputFilename; if(argc...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadDICOM (content was: "<div class="floatright">400px</div> This example reads a DICOM file and displays it on the screen. [http://www.vtk.org/Wiki/images/2/27/DICOM_Prostate.zip Here] is an example data set. See also: VTK/Examples/Cxx/IO/ReadDICOMSeries and VTK/Examples/Cxx/IO/ExportDICOMtoVTI. ==ReadDICOM.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkDICOMImageReader.h> #include <vtkRende...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/PNGWriter (content was: "==PNGWriter.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkPNGWriter.h> #include <vtkSmartPointer.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageCast.h> int main(int argc, char *argv[]) { std::string outputFilename; if( argc > 1) { outputFilename = argv[1]; } else { outputFilename = "output.png"; } int extent[6] = {0, 99, 0, 99, 0, 0}; vtkSmartPointer<vtkImageCanvasSource2D> imageSource = vtkSmartPointer<vtkIma...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ParticleReader (content was: "This example reads ascii files where each line consists of points with its position (x,y,z) and (optionally) <u>one</u> scalar or binary files in RAW 3d file format. ==ParticleReader.cxx== <div class="floatright">File:VTK_Examples_Cxx_IO_ParticleReader.png</div> <source lang="cpp"> // // This example reads ascii files where each line consists of points with its position (x,y,z) // and (optionally) one scalar or binary files in RAW 3d file format. // // some standard vt...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadBMP (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadBMP.png</div> ==ReadBMP.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkBMPReader.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) { //Verify input arguments if ( argc != 2 ) { std::cout << "Usage: " << argv[0] << " Filename(.bmp)" << std::endl; return EXI...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadDICOMSeries (content was: "This example demonstates how to read a series of DICOM images and how to scroll with the mousewheel or the up/down keys through all slices.<br /> Sample data are available as a zipped file (977 kB, 40 slices): File:VTK_Examples_StandardFormats_Input_DicomTestImages.zip See also: VTK/Examples/Cxx/IO/ReadDICOM and VTK/Examples/Cxx/IO/ExportDICOMtoVTI. ==ReadDICOMSeries.cxx== <div class="floatright">File:VTK_Examples_StandardFormats_Input_ReadDICOMSeries.png</div...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadOBJ (content was: "<div class="floatright">300px</div> This example demonstrates how to read a Wavefront OBJ file. The result is displayed. ==ReadOBJ.cxx== <source lang="cpp" highlight="1,19-23,28"> #include <vtkOBJReader.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <string...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadImageData (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadImageData.png</div> This example reads an image data (.vti) file. ==ReadImageData.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkDataSetMapper.h> #include <vtkImageActor.h> #include <vtkImageViewer2.h> #include <vtkXMLImageDataReader.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) { /...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadPDB (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadPDB.png</div> This example reads [http://www.pdb.org/pdb/home/home.do Protein Data Bank] files. The example expects a file in .pdb format. [http://gitorious.org/vtkwikiexamples/wikiexamples/blobs/raw/master/Testing/Data/lys.pdb Here] is a sample file. ==ReadPDB.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <cmath> #include <vtkGlyph3D.h> #include <vtkLODActor.h> #include <vtkLODActor.h> #includ...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadPLOT3D (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadPLOT3D.png</div> ==ReadPLOT3D.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkPolyData.h> #if VTK_MAJOR_VERSION <= 5 #include <vtkPLOT3DReader.h> #else #include <vtkMultiBlockPLOT3DReader.h> #include <vtkMultiBlockDataSet.h> #endif #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteract...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadPNM (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_IO_TestReadPNM.png</div> ==ReadPNM.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkPNMReader.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) { //Verify input arguments if ( argc != 2 ) { std::cout << "Usage: " << argv[0] << " Filename(.pnm)" << std::endl; return EX...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadPLY (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadPLY.png</div> ==ReadPLY.cxx== <source lang="cpp"> #include <vtkPolyData.h> #include <vtkPLYReader.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main ( int argc, char *argv[] ) { if(argc != 2) { std::cout << "Usage: " << argv[0] << " Filename(.ply)" << std::endl; r...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadPlainTextTriangles (content was: "Here is an example of a custom file-format reader that produces a VTK XML PolyData file from a plain-text input format. ==Input Format== <source lang="text"> number_of_points number_of_triangles point[0]X point[0]Y point[0]Z point[1]X point[1]Y point[1]Z ... point[N]X point[N]Y point[N]Z triangle[0]A triangle[0]B triangle[0]C triangle[1]A triangle[1]B triangle[1]C ... triangle[M]A triangle[M]B triangle[M]C </source> ==Example Input== <source lang="text"> 3 1 0.0 0.0 0.0 0.0...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadPolyData (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadPolyData.png</div> This example reads a polygonal data (.vtp) file. An example data set can be found at VTKData/Data/SyntheticPolyline.vtp ==ReadPolyData.cxx== <source lang="cpp"> #include <vtkXMLPolyDataReader.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main ( int argc, char...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadRectilinearGrid (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadRectilinearGrid.png</div> This example reads a rectilinear grid (.vtr) file. An example file can be found at VTKData/Data/cth.vtr ==ReadRectilinearGrid.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkDataSetMapper.h> #include <vtkXMLRectilinearGridReader.h> #include <vtkRectilinearGridGeometryFilter.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadSTL (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadSTL.png</div> ==ReadSTL.cxx== <source lang="cpp"> #include <vtkPolyData.h> #include <vtkSTLReader.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main ( int argc, char *argv[] ) { if ( argc != 2 ) { cout << "Required parameters: Filename" << endl; return EXIT_FAILURE...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadStructuredGrid (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadStructuredGrid.png</div> This example reads a structured grid (.vts) file. An example file can be found at VTKData/Data/multicomb_0.vts ==ReadStructuredGrid.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkXMLStructuredGridReader.h> #include <vtkStructuredGridGeometryFilter.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRender...")
- 02:59, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadTIFF (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadTIFF.png</div> ==ReadTIFF.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkTIFFReader.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) { //Verify input arguments if ( argc != 2 ) { std::cout << "Usage: " << argv[0] << " Filename(.tif)" << std::endl; return...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadTextFile (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadTextFile.png</div> This example takes a plain text file of coordinates and reads them into a {{class|vtkPoints}}, which is then put into a {{class|vtkPolyData}} and displayed on the screen using a {{class|vtkVertexGlyphFilter}}. An example file may look like: 1 2 3 4 5 6 7 8 9 ''Note: for a simpler way to read such a file, see VTK/Examples/Cxx/IO/SimplePointsReader''. ==ReadTextFile.cxx== <source lang=...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadUnstructuredGrid (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/IO/ReadUnstructuredGrid ReadUnstructuredGrid] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/ReadUnknownTypeXMLFile (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestReadUnknownTypeXMLFile.png</div> This examples reads either a vtu (unstructured grid) or vtp (polydata) file and displays it to the screen. ==ReadUnknownTypeXMLFile.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyData.h> #include <vtkUnstructuredGrid.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/SimplePointsReader (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/IO/SimplePointsReader SimplePointsReader] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/SimplePointsWriter (content was: "''Note: For the opposite operation (reading a points file) the SimplePointsReader example.'' ==SimplePointsWriter.cxx== <source lang="cpp" highlight="3,11-15"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkSimplePointsWriter.h> int main(int vtkNotUsed(argc), char* vtkNotUsed(argv)[]) { vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); v...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/StructuredGridReader (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestStructuredGridReader.png</div> ==StructuredGridReader.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkStructuredGridReader.h> #include <vtkStructuredGridGeometryFilter.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) { // Verify input arguments if ( argc != 2 ) { std::cout <<...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/StructuredPointsReader (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestStructuredPointsReader.png</div> An example input file can be found at <VTKData>/Data/ironProt.vtk. ==StructuredPointsReader.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkStructuredPointsReader.h> #include <vtkImageDataGeometryFilter.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) {...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/VRML (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestVRML.png</div> This example loads a wrl file and displays it on the screen. An example file is [http://www.vtk.org/Wiki/Image:Bridge.wrl.zip here]. ==VRML.cxx== <source lang="cpp"> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkVRMLImporter.h> #include <vtkDataSet.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> int main ( int argc, char *argv[]) {...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WritePLY (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWritePLY.png</div> Note: Unlike vtkPolyDataXMLWriter and most other VTK writers, to write colors to the .ply file you must specify to the vtkPLYWriter: plyWriter->SetArrayName("Colors"); where your color array was created/named like this: vtkSmartPointer<vtkUnsignedCharArray> colors = vtkSmartPointer<vtkUnsignedCharArray>::New(); colors->SetNumberOfComponents(3); colors->SetName("Colors"); (This was...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteBMP (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_IO_TestWriteBMP.png</div> ==WriteBMP.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkBMPWriter.h> #include <vtkSmartPointer.h> #include <vtkImageMapper3D.h> #include <vtkImageCanvasSource2D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkBMPReader.h> #include <vtkInteractorStyleImage.h> int main(int argc, char *argv[])...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/InteractorStyleTerrain (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestInteractorStyleTerrain.png</div> ==InteractorStyleTerrain.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkInteractorStyleTerrain.h> int main(int, char *[]) { vtkSmartPointer<vtkSphereSourc...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/InteractorStyleUser (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestInteractorStyleUser.png</div> This style is designed to NOT provide any default functionality. You must specify how to handle every event that you want handled. ==InteractorStyleUser.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCallbackCommand.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteract...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/KeypressEvents (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestHandleKeypress.png</div> This example shows how to catch keypress events. For example, do something if the user presses the 's' key. ==KeypressEvents.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkObjectFactory.h> #include <vtkActor.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #incl...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/KeypressObserver (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestKeypressObserver.png</div> ==KeypressObserver.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkCallbackCommand.h> #include <vtkCommand.h> void KeypressCallbackFunction ( vtkObject* caller,...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/MouseEvents (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestMouseEvents.png</div> This example shows how to subclass an interactor style to implement custom behaviors. See VTK/Examples/Cxx/Interaction/MouseEventsObserver for a different approach that uses an existing interactor style class and adds an event observer to it. ==MouseEvents.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #includ...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/MouseEventsObserver (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestMouseObserver.png</div> ==MouseEventsObserver.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkCommand.h> #include <vtkActor.h> #include <vtkCallbackCommand.h> #include <vtkSmartPointer.h> #include <vtkPointPicker.h> #include <vtkCamera.h> //#include <vtkInteractorObs...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/MoveAGlyph (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestMoveAGlyph.png</div> This example allows the user to reposition a glyph. It does this by faking the interactor into thinking that a new actor (MoveActor) is the object to be interacted with. We use the array generated by glyph3D->GeneratePointIdsOn() to determine the point associated with the glyph that the user selected. A "ghost" actor of the selected glyph is generated (because all of the glyphs are part...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/MoveAVertexUnstructuredGrid (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Interaction_TestMoveAVertexUnstructuredGrid.png</div> ==MoveAVertexUnstructuredGrid.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPointPicker.h> #include <vtkSphereSource.h> #include <vtkGlyph3D.h> #include <vtkPointData.h> #include <vtkIdTypeArray.h> #include <vtkDataSetSurfaceFilter.h> #include <vtkRendererCollection.h> #include <vtkProperty.h> #include <vtkPlanes.h> #include...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/ObserverMemberFunction (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Interaction_TestObserverMemberFunction.png</div> You must use the git version of VTK from at least 10/11/2010 to use this functionality. ==ObserverMemberFunction.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkObjectFactory.h> #include <vtkCommand.h> #include <vtkActor.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/PickableOff (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestPickableOff.png</div> ==PickableOff.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkConeSource.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleTrackballActor.h> int main(int, char *[]) { vtkSmartPointer<vtkConeSource> coneSource0 =...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/Picking (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestPicking.png</div> ==Picking.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkSphereSource.h> #include <vtkRendererCollection.h> #include <vtkCellArray.h> #include <vtkInteractorStyleTrackballCamera.h> #include <vtkObjectFactory.h> #include <vtkPlaneSource.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/PointPicker (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestPointPicker.png</div> This example demonstrates how to get the closest point in the data set to the mouse click. ==PointPicker.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkRendererCollection.h> #include <vtkPointPicker.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vt...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/RubberBand2D (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestRubberBand2D.png</div> This example shows how to get the coordinates of the corners of the rubber band (the box that is drawn). ==RubberBand2D.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vt...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/RubberBand2DObserver (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestRubberBand2DObserver.png</div> ==RubberBand2DObserver.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkInteractorStyleRubberBand2D.h> #include <vtkCallbackCommand.h> void SelectionChangedCall...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/RubberBand3D (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestRubberBand3D.png</div> ==RubberBand3D.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkInteractorStyleRubberBand3D.h> #include <vtkObjectFactory.h> class MyRubberBand3D : public vtkInteractor...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/RubberBandPick (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestRubberBandPick.png</div> Press 'r', then make a selection with the left mouse button. ==RubberBandPick.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkInteractorStyleRubberBandPick.h> int m...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/RubberBandZoom (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestRubberBandZoom.png</div> This example demonstrates how to select a region of the window to zoom in. ==RubberBandZoom.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkInteractorStyleRubberBand...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/SelectAVertex (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestSelectAVertex.png</div> Click and drag a vertex by "ghosting" a glyph over the selected vertex and using it for the interaction. ==SelectAVertex.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPointPicker.h> #include <vtkSphereSource.h> #include <vtkGlyph3D.h> #include <vtkPointData.h> #include <vtkIdTypeArray.h> #include <vtkDataSetSurfaceFilter.h> #include <vtkR...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/SelectAnActor (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestSelectAnActor.png</div> ==SelectAnActor.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkCellArray.h> #include <vtkInteractorStyleTrackballActor.h> #include <vtkObjectFactory.h> #include <vtkCubeSource.h> #include <vtkSphereSource.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkPropPicker.h> #include <vtkRenderWindow.h>...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/ShiftAndControl (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestShiftAndControl.png</div> Some parts of this example are currently broken. GetAltKey() does not work? The window moves instead. This example demonstrates how to "control+click" and "shift+click" an actor. ==ShiftAndControl.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWind...")
- 02:58, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Interaction/StyleSwitch (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestStyleSwitch.png</div> The class vtkInteractorStyleSwitch allows handles interactively switching between four interactor styles -- joystick actor, joystick camera, trackball actor, and trackball camera. Type 'j' or 't' to select joystick or trackball, and type 'c' or 'a' to select camera or actor. The default interactor style is joystick camera. ==StyleSwitch.cxx== <source lang="cpp"> #include <vtkSmartPoint...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Databases/SQL/MySQL/ConnectAndRead (content was: "==ConnectAndRead.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMySQLDatabase.h> #include <vtkSQLQuery.h> #include <vtkVariant.h> If you get the error: Unsupported protocol: mysql It means you must recompile VTK with VTK_USE_MYSQL = ON If you get the error: vtkMySQLDatabase::New() is not defined It means that cmake did not find your mysql include and library path correctly (ie. MYSQL_INCLUDE_DIRECTORIES, etc): int main(int, char *[]) { // url syn...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Databases/SQL/MySQL/CreateDatabase (content was: "==CreateDatabase.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMySQLDatabase.h> #include <vtkSQLQuery.h> #include <vtkVariant.h> int main(int, char *[]) { vtkSmartPointer<vtkMySQLDatabase> db = vtkSmartPointer<vtkMySQLDatabase>::Take(vtkMySQLDatabase::SafeDownCast( vtkSQLDatabase::CreateFromURL( "mysql://root@localhost/TestDatabase" ) )); bool status = db->Open(); std::cout << "Database open? " << status << std::endl; if(!stat...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Databases/SQL/MySQL/WriteToDatabase (content was: "==WriteToDatabase.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMySQLDatabase.h> #include <vtkSQLQuery.h> #include <vtkVariant.h> int main(int, char *[]) { // url syntax: // mysql://'[[username[':'password]'@']hostname[':'port]]'/'[dbname] vtkSmartPointer<vtkMySQLDatabase> db = vtkSmartPointer<vtkMySQLDatabase>::Take(vtkMySQLDatabase::SafeDownCast( vtkSQLDatabase::CreateFromURL( "mysql://root@localhost/TestDatabase" ) )); bool st...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Demos/VisualDebugging (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Databases/SQL SQL] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Demos/vtkTestFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Demos/VisualDebugging VisualDebugging] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/AlgorithmFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/AlgorithmFilter AlgorithmFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/AlgorithmSource (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/AlgorithmSource AlgorithmSource] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/FilterProgress (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/FilterProgress FilterProgress] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/FilterSelfProgress (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/FilterSelfProgress FilterSelfProgress] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/GraphAlgorithmFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/GraphAlgorithmFilter GraphAlgorithmFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/GraphAlgorithmSource (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/GraphAlgorithmSource GraphAlgorithmSource] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/ImageAlgorithmFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/ImageAlgorithmFilter ImageAlgorithmFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/MultipleInputPorts (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/MultipleInputPorts MultipleInputPorts] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/PolyDataAlgorithmReader (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/PolyDataAlgorithmReader PolyDataAlgorithmReader] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/PolyDataFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/PolyDataFilter PolyDataFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/ProgressReport (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/ProgressReport ProgressReport] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/Warnings (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/Warnings Warnings] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkImageAlgorithmFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/Warnings Warnings] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTest (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkImageAlgorithmFilter vtkImageAlgorithmFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTest1 (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTest vtkTest] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestAlgorithmFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTest1 vtkTest1] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestAlgorithmSource (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTestAlgorithmFilter vtkTestAlgorithmFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestFilterProgressFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTestAlgorithmSource vtkTestAlgorithmSource] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestFilterSelfProgressFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTestFilterProgressFilter vtkTestFilterProgressFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestGraphAlgorithmFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTestFilterSelfProgressFilter vtkTestFilterSelfProgressFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestMultipleInputPortsFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTestGraphAlgorithmSource vtkTestGraphAlgorithmSource] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Developers/vtkTestPolyDataFilter (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/vtkTestMultipleInputPortsFilter vtkTestMultipleInputPortsFilter] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/MarkKeypoints (content was: "Thanks to Dean Inglis. <div class="floatcenter">File:VTK_Examples_Baseline_Images_TestMarkKeypoints.png</div> ==MarkKeypoints.cxx== <source lang="cpp"> #include <vtkAbstractPicker.h> #include <vtkActor.h> #include <vtkActor2D.h> #include <vtkCoordinate.h> #include <vtkFollower.h> #include <vtkImageMapper3D.h> #include <vtkImageActor.h> #include <vtkImageCanvasSource2D.h> #include <vtkCoordinate.h> #include <vtkTransform.h> #include <vtkTransformPolyDataFilter.h> #include <...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/InteractWithImage (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestInteractWithImage.png</div> This example shows how to display an image and zoom/pan/adjust brightness interactively. A picture of the [http://www.vtk.org/Wiki/Image:Bunny.jpg bunny] is provided for the demo. ==InteractWithImage.cxx== <source lang="cpp"> #include <vtkJPEGReader.h> #include <vtkImageMapper3D.h> #include <vtkImageActor.h> // Note: this is a 3D actor (c.f. vtkImageMapper which is 2D) #include <vt...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/NegativeIndices (content was: "==NegativeIndices.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vtkImageData>::New(); // Specify the size of the image data imageData->SetExtent(-5, 5, -5, 5, -5, 5); // Fill every entry of the image data with "2.0" int* extent = imageData->GetExtent(); #if VTK_MAJOR_VERSION <= 5 imageD...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Interpolation (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestInterpolation.png</div> ==Interpolation.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageMapper.h> #include <vtkImageResliceMapper.h> #include <vtkImageSlice.h> #include <vtkImageProperty.h> static void CreateC...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/PickPixel (content was: "<div class="floatright">300px</div> This example demonstrates how to continuously retrieve pixel values using the mouse. * Contributed by: Dean Inglis ==PickPixel.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkAssemblyPath.h> #include <vtkCell.h> #include <vtkCommand.h> #include <vtkCornerAnnotation.h> #include <vtkDataArray.h> #include <vtkImageActor.h> #include <vtkImageData.h> #include <vtkImageViewer2...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageVariance3D (content was: "<div class="floatright">400px</div> ==ImageVariance3D.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageVariance3D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageEllipsoidSou...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageValueRange (content was: "==ImageValueRange.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkDoubleArray.h> #include <vtkImageData.h> #include <vtkPointData.h> int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vtkImageData>::New(); // Specify the size of the image data imageData->SetDimensions(5,1,1); #if VTK_MAJOR_VERSION <= 5 imageData->SetNumberOfScalarComponents(1); imageData->SetScala...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageToStructuredPoints (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageToStructuredPoints.png</div> ==ImageToStructuredPoints.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkStructuredPoints.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageToStructuredPoints.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main(int, char *...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageToPolyDataFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageToPolyDataFilter.png</div> ==ImageToPolyDataFilter.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkLookupTable.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkImageToPolyDataFilter.h> #include <vtkImageQuantizeRGBToIndex.h> #include <vtkCamera.h> #incl...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageText (content was: "This example demonstrates how to draw text onto an image ({{class|vtkImageData}}). It uses {{class|vtkImageBlend}} to blend the text and the image. For another example using vtkImageBlend, see [[../CombineImages]]. See also [[../../Visualization/DrawText]] for an example of drawing text, also in 2D, but into the render window rather than into a vtkImageData object. ==ImageText.cxx== <source lang="cpp"> #include <vtkImageBlend.h> #include <vtkImageData.h> #include <vtkPointDat...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageThreshold (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestImageThreshold.png</div> The image on the left is the input image and the image on the right is the thresholded version. ==ImageThreshold.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageThreshold.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageMapper3D.h> #incl...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageMapToColors (content was: "<div class="floatright">400px</div> ==ImageMapToColors.cxx== <source lang="cpp"> // // Displays a "grayscale" image as a full color image via the // vtkImageMapToColors filter, which uses a lookup table to // map scalar values to colors // #include <vtkImageActor.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageMapToColors.h> #include <vtkImageProperty.h> #include <vtkInteractorStyleImage...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageMandelbrotSource (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageMandelbrotSource.png</div> ==ImageMandelbrotSource.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageMandelbrotSource.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageCast.h> #include <vtkImageMapper3D.h> int main(int, char *[]) { // Create an image vtkS...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageMagnitude (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageMagnitude.png</div> There are two ways to convert images to greyscale: * {{class|vtkImageLuminance}} uses the luminance equation for properly weighting the R, G, and B components; * {{class|vtkImageMagnitude}} does a simple sum-of-squares computation of the components (i.e. the Euclidean norm -- not the wikipedia:Root...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageMagnify (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestImageMagnify.png</div> vtkImageMagnify increases the dimensions of an image by integral magnification factors. It also adjusts the spacing of the pixels so that the magnified image covers the same region as the original image. To stretch the image, the pixel spacing needs to be adjusted. This example uses vtkImageChangeInformation to modify the magnified image's spacing. The result is an image that has increased...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageLuminance (content was: "<div class="floatright">400px</div> There are two ways to convert images to greyscale: * {{class|vtkImageLuminance}} uses the luminance equation for properly weighting the R, G, and B components; * {{class|vtkImageMagnitude}} does a simple sum-of-squares computation of the components (i.e. the Euclidean norm -- not the wikipedia...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageLaplacian (content was: "<div class="floatright">400px</div> ==ImageLaplacian.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageMandelbrotSource.h> #include <vtkImageLaplacian.h> #include <vtkImageActor.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkImageCast.h> int...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageImport (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestImageImport.png</div> ==ImageImport.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkImageImport.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkInteractorStyleImage.h> #include <vtkXMLImageDataWriter.h> int main(int, char *[]) { // Create a c-style image...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageIslandRemoval2D (content was: "This example creates a small white square and a big white square. We want the ImageIslandRemoval2D to turn the small white square black and leave the big white square alone. <div class="floatcenter">File:VTK_Examples_Baseline_Images_TestImageIslandRemoval2D.png</div> ==ImageIslandRemoval2D.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageIslandRemoval2D.h> #i...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageIdealHighPass (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestImageIdealHighPass.png</div> ==ImageIdealHighPass.cxx== <source lang="cpp"> #include <vtkImageExtractComponents.h> #include <vtkImageData.h> #include <vtkImageFFT.h> #include <vtkImageMandelbrotSource.h> #include <vtkImageIdealHighPass.h> #include <vtkImageShiftScale.h> #include <vtkInteractorStyleImage.h> #include <vtkImageSlice.h> #include <vtkImageSliceMapper.h> #include <vtkImageEllipsoidSource.h> #include <...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageHybridMedian2D (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageHybridMedian2D.png</div> This example reads in an image and performs median filtering on it. The input and output are displayed. ==ImageHybridMedian2D.cxx== <source lang="cpp"> #include <vtkImageActor.h> #include <vtkImageCast.h> #include <vtkImageMapper3D.h> #include <vtkInteractorStyleImage.h> #include <vtkImageAccumulate.h> #include <vtkImageData.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageGridSource (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageGridSource.png</div> ==ImageGridSource.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageGridSource.h> #include <vtkImageMapper3D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageCast.h> int main(int, char *[]) { // Create an image vtkSmartPointer<vtkIm...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageGradientMagnitude (content was: "<div class="floatright">400px</div> ==ImageGradientMagnitude.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageGradientMagnitude.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkJPEGReader.h> #include <vtkImageActor.h> #include <vtkImage...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageGaussianSmooth (content was: "<div class="floatright">400px</div> ==ImageGaussianSmooth.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageGaussianSmooth.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageEllipsoidSource.h> #include <vtkImag...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageFFT (content was: "<div class="floatright">400px</div> ==ImageFFT.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageFFT.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkJPEGReader.h> #include <vtkImageActor.h> #include <vtkImageEllips...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageExport (content was: "==ImageExport.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkImageExport.h> #include <vtkSmartPointer.h> #include <vtkVersion.h> int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vtkImageData>::New(); // Specify the size of the image data int dims[3] = {2,3,1}; imageData->SetDimensions(dims[0], dims[1], dims[2]); #if VTK_MAJOR_VERSION <= 5 imageData->SetNumberOfScalarComponents(1...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageEllipsoidSource (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageEllipsoidSource.png</div> ==ImageEllipsoidSource.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageEllipsoidSource.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageCast.h> int main(int, char *[]) { //...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageDivergence (content was: "<div class="floatright">400px</div> ==ImageDivergence.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageCast.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageDivergence.h> #include <vtkImageGradient.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageCorrelation.h> #include <vtkInteractorStyleImage.h> #include <vtkImageActor.h...")
- 02:55, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageDilateErode3D (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageDilateErode3D.png</div> This example reads in a binary image and dilates one value and erodes another (morphological operations). ==ImageDilateErode3D.cxx== <source lang="cpp"> #include <vtkImageActor.h> #include <vtkImageCast.h> #include <vtkInteractorStyleImage.h> #include <vtkImageAccumulate.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #...")
- 02:54, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageDifference (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestImageDifference.png</div> This example makes a large square and a smaller square and subtracts them, leaving the outline of a square. ==ImageDifference.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageDifference.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowIntera...")
- 02:54, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageCorrelation (content was: "<div class="floatright">400px</div> ==ImageCorrelation.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageShiftScale.h> #include <vtkImageCast.h> #include <vtkImageMapper3D.h> #include <vtkMath.h> #include <vtkImageData.h> #include <vtkPointData.h> #include <vtkDataArray.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageCorrelation.h> #include <vtkInteractorStyleImage.h> #include <vtkIma...")
- 02:54, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageConvolve (content was: "<div class="floatright">400px</div> ==ImageConvolve.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageConvolve.h> #include <vtkImageMandelbrotSource.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageCast.h> int mai...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/WishList/Images/HistogramXYPlot (content was: "<div class="floatright">300px</div> This example works but there is an issue with vtkImageAccumulate. It appears the maximum frequency of a histogram generated by vtkImageAccumulate, when that frequency corresponds to the value of 0, cannot be disabled by setting ignore zero to true! See lines 245 and 218 in vtkImageAccumulate.cxx ==HistogramXYPlot.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkS...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/WishList/Images/HistogramBarChart (content was: "<div class="floatright">400px</div> This example works, but the testing images produced usually vary slightly from the baseline. ==HistogramBarChart.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkBarChartActor.h> #include <vtkFieldData.h> #include <vtkImageAccumulate.h> #include <vtkImageData.h> #include <vtkImageExtractComponents.h> #include <vtkIntArray.h> #include <vtkJPEGReader.h> #include <vtkLe...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/WishList/CompositeDataGeometryFilter (content was: "==CompositeDataGeometryFilter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkLSDynaReader.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkUnstructuredGrid.h> #include <vtkCompositeDataGeometryFilter.h> #include <vtkCompositeDataPipeline.h> int main(int argc, char *argv[]) { // Parse command line arguments if(arg...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/TexturedButtonWidget (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/TexturedButtonWidget TexturedButtonWidget] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/TextWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestTextWidget.png</div> :''See also: [[../../Visualization/DrawText]]'' ==TextWidget.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkTextWidget.h> #include <vtkTextActor.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkTextActor.h> #include <vtkTextProperty.h> #include <vtkTextRepresentation.h> #include <vtkCoordinate.h> #include <vtkRenderer.h>...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/SplineWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestSplineWidget.png</div> ==SplineWidget.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkSplineWidget2.h> int main(int, char *[]) { // A renderer and render window vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New(); vtkSmartPointer<vtkRenderWindow> renderWindow =...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/SphereWidgetEvents (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestSphereWidgetEvents.png</div> This example shows how to subclass a widget so that events can be further customized. Contributed by: Alex Malyushytskyy. ==SphereWidgetEvents.cxx== <source lang="cpp"> #include <vtkCallbackCommand.h> #include <vtkCommand.h> #include <vtkObjectFactory.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #includ...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/SphereWidget2 (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestSphereWidget2.png</div> The spherical coordinates of the widget's handle match the coordinates that it displays in the window. The world coordinates of the handle are also shown. ==SphereWidget2.cxx== <source lang="cpp"> #include <vtkCommand.h> #include <vtkMath.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkSphere.h> #in...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/SphereWidget (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/SphereWidget SphereWidget] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/Slider2D (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestSlider2D.png</div> == 2D Slider == This example demonstrates how to use a slider that is drawn in window coordinates - so if you move the scene the slider is not affected. Contrast this with the 3D slider widget that remains at a fixed location in the world coordinates. If the callback is connected to InteractionEvent, the scene will update immediately. This is not ideal if t...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/Slider (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestSlider.png</div> ==3D Slider== This example demonstrates how to use a 3D slider widget. Here, the slider controls the resolution of the sphere. The slider is positioned in world coordinates - so if you rotate/translate/scale the scene, the slider will change orientation/position/size. Contrast this with the 2D slider widget that remains at a fixed location in the window. If...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/SeedWidgetWithCustomCallback (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestSeedWidget.png</div> This example demonstrates how to place seed points in the scene. The seed points can be used for operations like connectivity, segmentation, and region growing. ==SeedWidgetWithCustomCallback.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkCommand.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkSphereSource.h> #include <vtkRend...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/RectilinearWipeWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestRectilinearWipeWidget.png</div> This example illustrates the Rectilinear Wipe widget. This widget is useful for comparing two images. There are 7 different image comparison modes. A rectilinear wipe is a 2x2 checkerboard pattern created by combining two separate images, where various combinations of the checker squares are possible. Using this widget, the user can adjust the layout of the checker pattern, such...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/SeedWidgetImage (content was: "==SeedWidgetImage.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkCommand.h> #include <vtkImageActor.h> #include <vtkImageCanvasSource2D.h> #include <vtkInteractorStyleImage.h> #include <vtkPointHandleRepresentation2D.h> #include <vtkPolyDataMapper.h> #include <vtkProperty2D.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSeedWidget.h> #include <vtkSeedRepresentation.h> #include <vtkSmartPointer.h> #inclu...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/SeedWidget (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Widgets_TestSeedWidget.png</div> This example demonstrates how to use vtkSeedWidget, which generates (seeds) points to be placed in the scene in the locations where the user clicks. The points can then be used for operations like connectivity, segmentation, and region growing. For an example using a custom callback where such operations can be assembled, see [[../SeedWidgetWithCustomCallback]] ==SeedWidget.cxx== <source...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/PlaneWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestPlaneWidget.png</div> ==PlaneWidget.cxx== <source lang="cpp"> #include <vtkPlaneWidget.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> int main(int, char *[]) { vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New(); vtkSmartPointer<vtkRenderWindow> renderWindow = vtkSmartPointer<vtkRenderWindow>::...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/OrientationMarkerWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestOrientationMarkerWidget.png</div> This example uses a polydata as an orientation icon. You can get the bunny data http://gitorious.org/vtkwikiexamples/wikiexamples/blobs/raw/master/Testing/Data/Bunny.vtp here. ==OrientationMarkerWidget.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkXMLPolyDataReader.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInterac...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/LogoWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestLogoWidget.png</div> Turn the widget on before the render. Otherwise, it won't appear until you interact with the scene. ==LogoWidget.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkImageCanvasSource2D.h> #include <vtkLogoRepresentation.h> #include <vtkLogoWidget.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkProperty2D.h> #include <vtkRenderWi...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/LineWidget2 (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestLineWidget2.png</div> ==LineWidget2.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkLineWidget2.h> #include <vtkLineRepresentation.h> #include <vtkCommand.h> // This does the actual work. // Cal...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/ImplicitPlaneWidget2 (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestImplicitPlaneWidget2.png</div> This example shows how to use the second generation ImplicitPlaneWidget2 to interactively define the clipping plane for a polydata. If no arguments are specified, a vtkSphereSource generates the polydata. By specifying a .vtp file, the example can operate on arbitrary polydata. For example, try VTKData/Data/cow.vtp. ==ImplicitPlaneWidget2.cxx== <source lang="cpp"> #include <vtkSm...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/ImageTracerWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestImageTracerWidget.png</div> ==ImageTracerWidget.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCallbackCommand.h> #include <vtkImageActor.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkImageTracerWidget.h> #include <vtkImageM...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/ImageTracerWidgetInsideContour (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Widgets_TestImageTracerWidgetInsideContour.png</div> ==ImageTracerWidgetInsideContour.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPolygon.h> #include <vtkImageData.h> #include <vtkCallbackCommand.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRe...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/ImageTracerWidgetNonPlanar (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestImageTracerWidgetNonPlanar.png</div> ==ImageTracerWidgetNonPlanar.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkImageTracerWidget.h> #include <vtkInteractorStyleTrackballCamera.h> int main(int...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/ImagePlaneWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestImagePlaneWidget.png</div> ==ImagePlaneWidget.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkImagePlaneWidget.h> #include <vtkInteractorStyleTrackballActor.h> #include <vtkInteractorStyleTrackba...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/HoverWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestHoverWidget.png</div> ==HoverWidget.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkCommand.h> #include <vtkHoverWidget.h> #include <vtkPolyDataMapper.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> class vtkHoverCallback : public vtkCommand { public: static vtkHoverCallback *New() {...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/DistanceWidget (content was: "* Contributed by Arnaud Gelas <div class="floatright">File:VTK_Examples_Baseline_Widgets_TestDistanceWidget.png</div> Click two points to see the distance between them. ==DistanceWidget.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkDistanceWidget.h> #include <vtkDistanceRepresentation.h> int main(int, char *[]) { // A renderer and render window vtkSmartP...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/ContourWidget (content was: "<div class="floatright">300px</div> This example generates a set of points which lie on a circle, and the contour through these points. This contour can be interactively warped/modified by dragging the control points. ==ContourWidget.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> // To setup the ContourWidget and its representation: #include <vtkContourWidget.h> #include <vtkProperty.h> #include <vtkOrientedG...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/CheckerboardWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestCheckerboardWidget.png</div> <div class="floatright">thumb|300px|After interacting with the widget</div> Compare two images with a checkerboard. The widget permits interactive control of the number of checkers in the x/y directions. Checkerboards are often used to compare the results of image registration. For an alternative image comparison w...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/BorderWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestBorderWidget.png</div> This example draws a border around a region selected with the mouse. Note that the default border color is white - so if you have a white background you will not see anything! ==BorderWidget.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkWidgetCallbackMapper.h> #include <vtkCommand.h> #include <vtkWidgetEvent.h> #include <vtkObjectFactory.h> #include <vtkActor.h> #inc...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/BoxWidget2 (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestBoxWidget2.png</div> This example uses a {{class|vtkBoxWidget2}} to manipulate an actor. The widget only contains the interaction logic; the actual box is drawn by the accompanying {{class|vtkBoxRepresentation}}. Contrary to the older {{class|vtkBoxWidget|older implementation}}, this widget doesn't provide functionality to assign it to one or more actors, so that has to be implemented manually. The box is dimens...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/CaptionWidget (content was: "<div class="floatright">File:VTK_Examples_Baseline_Widgets_TestCaptionWidget.png</div> ==CaptionWidget.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkCaptionWidget.h> #include <vtkCaptionRepresentation.h> #include <vtkCaptionActor2D.h> #include <vtkTextActo...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/BoxWidget (content was: "<div class="floatright">File:VTK Examples Baseline Widgets TestBoxWidget.png</div> This example uses a {{class|vtkBoxWidget}} to manipulate an actor. The class includes geometry to draw a box around the object, which is bound to it via <code>SetProp3D</code>. The box is dimensioned using the <code>SetPlaceFactor</code> method, and positioned with the <code>PlaceWidget</code> method. After the initial setup, synchronizing the box with the object is done through a custom call...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/BoxWidget (content was: "<div class="floatright">File:VTK Examples Baseline Widgets TestBoxWidget.png</div> This example uses a {{class|vtkBoxWidget}} to manipulate an actor. The class includes geometry to draw a box around the object, which is bound to it via <code>SetProp3D</code>. The box is dimensioned using the <code>SetPlaceFactor</code> method, and positioned with the <code>PlaceWidget</code> method. After the initial setup, synchronizing the box with the object is done through a custom call...")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/BiDimensionalWidget (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/BiDimensionalWidget BiDimensionalWidget] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/BalloonWidget (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/BalloonWidget BalloonWidget] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/AngleWidget (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/AngleWidget2D AngleWidget2D] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:52, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/AngleWidget2D (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/AngleWidget2D AngleWidget2D] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Widgets/AffineWidget (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/AffineWidget AffineWidget] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper (content was: "<div class="floatright">File:VTK_Examples_Baseline_VolumeRendering_TestSmartVolumeMapper.png</div> ==SmartVolumeMapper.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkSphere.h> #include <vtkSampleFunction.h> #include <vtkSmartVolumeMapper.h> #include <vtkColorTransferFunction.h> #include <vtkPiecewiseFunction.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkVolumeProperty...")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VolumeRendering/MinIntensityRendering (content was: "<div class="floatright">File:VTK_Examples_Baseline_VolumeRendering_TestMinIntensityRendering.png</div> ==MinIntensityRendering.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCamera.h> #include <vtkFiniteDifferenceGradientEstimator.h> #include <vtkImageClip.h> #include <vtkPiecewiseFunction.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkStructuredPoints.h> #include <vtkStructuredPointsReader.h...")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VolumeRendering/HAVSVolumeMapper (content was: "<div class="floatright">File:VTK_Examples_Baseline_VolumeRendering_TestHAVSVolumeMapper.png</div> ==HAVSVolumeMapper.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkHAVSVolumeMapper.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkStructuredPointsReader.h> #include <vtkSLCReader.h> #include <vtkStructuredPoints.h> #include <vtkUnstructuredGrid.h> #include <vtkThreshold.h> #include <vtkDataSetTri...")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VisualizationAlgorithms/TubesWithVaryingRadiusAndColors (content was: "<div class="floatright">File:VTK_Examples_Baseline_VisualizationAlgorithms_TestTubesWithVaryingRadiusAndColors.png</div> This example shows how to vary the radius of a tube with one scalar and color the tube with another. * Contributed by Marcus Thamson ==TubesWithVaryingRadiusAndColors.cxx== <source lang="cpp"> #include <math.h> #include <vtkVersion.h> #include <vtkPolyData.h> #include <vtkPoints.h> #include <vtkCellArray.h> #include <vtkDoubleArray.h> #include <vtkPoly...")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VisualizationAlgorithms/TubesFromSplines (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_VisualizationAlgorithms_TestTubesFromSplines.png</div> This example shows how to interpolate a set of points and generate tubes around the resulting polyline. Scalars associated with the points are also interpolated and used to vary the radius of the tube. '''NOTE:''' This example was inspired by a question asked by '...", and the only contributor was "Lorensen" (talk))
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VisualizationAlgorithms/FindCellIntersections (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_VisualizationAlgorithms_TestFindCellIntersections.png</div> This example shows how to use cell locator's FindCellsAlongLine method to visualize the cells that are intersected in an unstructured grid. The example uses the data file: https://github.com/lorensen/VTKWikiExamples/raw/master/Testing/Data/Disc_BiQuadraticQuad...", and the only contributor was "Lorensen" (talk))
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VisualizationAlgorithms/FilledContours (content was: "<div class="floatright">File:VTK_Examples_Baseline_VisualizationAlgorithms_TestFilledContours.png</div> == Create Filled Contours == This example produces filled contours using the vtkClipPolyData filter. There is a sample data file [http://public.kitware.com/cgi-bin/viewcvs.cgi/Data/filledContours.vtp?root=VTKData&view=log here] ==FilledContours.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkXMLPolyDataReader.h> #include <vtkAppendPolyData.h> #include...")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VisualizationAlgorithms/Cutter (content was: "<div class="floatright">300px</div> ==Cutter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCubeSource.h> #include <vtkPolyDataMapper.h> #include <vtkPlane.h> #include <vtkCutter.h> #include <vtkProperty.h> #include <vtkActor.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> int main(int, char *[]) { vtkSmartPointer<vtkCubeSource> cube =...")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VisualizationAlgorithms/CutWithScalars (content was: "<div class="floatright">File:VTK_Examples_Baseline_VisualizationAlgorithms_TestCutWithScalars.png</div> ==CutWithScalars.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkXMLPolyDataReader.h> #include <vtkPolyDataMapper.h> #include <vtkPolyData.h> #include <vtkDoubleArray.h> #include <vtkPoints.h> #include <vtkPointData.h> #include <vtkPlane.h> #includ...", and the only contributor was "Lorensen" (talk))
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/VisualizationAlgorithms/CutWithCutFunction (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/CutWithCutFunction CutWithCutFunction] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/Wireframe (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestWireframe.png</div> ==Wireframe.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkImageData.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData =...")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/WindowTitle (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestWindowName.png</div> This example shows how to change the title of the window. ==WindowTitle.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main(int, char *[]) { // Create a sphere vtkSmartP...")
- 02:51, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/WindowSize (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestWindowSize.png</div> ==WindowSize.cxx== <source lang="cpp" highlight="29"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> int main (int, char *[]) { // Create a sphere vtkSmartPointer<vtkSphereSource> sphereSource = v...")
- 02:45, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Visualization/ColorAnActor (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestColorAnActor.png</div> This example creates a red sphere. ==ColorAnActor.java== <source lang="java" highlight="30"> import vtk.*; public class ColorAnActor { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.lo...", and the only contributor was "Egk865" (talk))
- 02:45, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Visualization/Animation (content was: "This example demonstrates how to create a simple animation. A timer is used to move a sphere across a scene. ==Animation.java== <source lang="java"> import vtk.*; public class Animation { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loa...", and the only contributor was "Egk865" (talk))
- 02:45, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Visualization/AnimDataCone (content was: "==animDataCone.java== <source lang="Java"> // First we import the VTK package that will make available all // of the VTK commands to Java. import vtk.*; public class animDataCone { * * @param args: // load the necessary interface libraries on first reference to the // class. static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); Sys...", and the only contributor was "Jimcp" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/SwingIntegration/SwingHandleMouseEvents (content was: "This example shows how to display in a JLabel the point the mouse is hovering over using a mouse listener. ==SwingHandleMouseEvent.java== <source lang="java"> import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import vtk.*; public class SwingHandleMouseEvent extends JFrame { static { System.loadLibrary("vtkCommonJava"); S...", and the only contributor was "Egk865" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/SwingIntegration/JFrameRenderer (content was: "This example shows how to render a VTK scene in a JFrame using a vtkRenderWindowPanel. ==JFrameRenderer.java== <source lang="java"> import java.awt.*; import javax.swing.*; import vtk.*; public class JFrameRenderer extends JFrame { static { if (!vtkNativeLibrary.LoadAllNativeLibraries()) { for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { if (!lib.IsLoaded()) { System.out.println(lib.GetLibraryName() + " not loaded"); } }...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Miscellaneous/vtkCutter (content was: "This example demonstrates how to use vtkCutter by cutting through a cube. ==Cutter.java== <source lang="java"> import vtk.*; public class Cutter { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.l...", and the only contributor was "Egk865" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Miscellaneous/Cone6 (content was: "==Cone6.java== <source lang="Java"> // First we import the VTK package that will make available all // of the VTK commands to Java. import vtk.*; public class Cone6 { * * @param args: // load the necessary interface libraries on first reference to the // class. static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava");...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Miscellaneous/Screenshot (content was: "This example shows how to save the window to a file (png in this case). ==Screenshot.java== <source lang="java"> import vtk.*; public class Screenshot { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); Sy...", and the only contributor was "Egk865" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Interaction/SphereInteractorPanel (content was: "* This example creates three actors, two spheres and one a tube filter output from some arbitrary lines. * This example demonstrates the Switch style interactor that allows selection of the interaction options via keyboard events. "c" selects Camera interaction, "a" selects Actor interaction, "t" selects Trackball mode, "j" selects joystick mode, "r" resets the camera position to vi...", and the only contributor was "Jimcp" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Interaction/ExtrudeTest (content was: "* This extrusion test includes the addObserver callback on the RenderWindowInteractor to switch styles from trackballActor to trackballCamera. * This extrusion test also demonstrates the linearExtrusion and the RotationalExtrusion filters ==ExtrudeTest.Java== <source lang="Java"> import vtk.*; public class ExtrudeTest { * * @param args: // load the necessary interface l...", and the only contributor was "Jimcp" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/ImplicitFunctions/ImplicitSphere (content was: "This example creates a polygonal model of two spheres and 3 tubes, and then renders it to the screen. It will rotate the scene 360 degrees and then exit. The basic setup of source -> mapper -> actor -> renderer -> renderwindow is typical of most VTK programs. ==Sphere.java== <source lang="Java"> // // This example creates a polygonal model of two spheres and 3 tubes, and then renders it to // the screen. It will rotate the scene 360 degrees and then exit. The basic // setup o...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Imaging/ImageTest (content was: "==ImageTest.java== <source lang="Java"> import java.awt.FileDialog; import java.awt.Frame; import vtk.*; public class ImageTest { * * ImageTest provides a means to test the ImageReader2Factory * Image files understood by vtk are displayed, * all others are reported with a message.: vtkRenderWindow renWin; vtkRenderWindowInteractor iren; vtkRenderer ren1; vtkIm...", and the only contributor was "Jimcp" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/IO/WritePolyData (content was: "In this example, we add 10 points to a polygonal data (polydata) object and write the result to a VTP file. ==WritePolyData.java== <source lang="java"> import vtk.*; public class WritePolyData { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); Sys...", and the only contributor was "Egk865" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/IO/ReadPolyData (content was: "This example reads a polygonal data (.vtp) file. An example data set can be found at VTKData/Data/SyntheticPolyline.vtp ==ReadPolyData.java== <source lang="java"> import vtk.*; public class ReadPolyData { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"...", and the only contributor was "Egk865" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Graphs/SelectGraphVertices (content was: "==SelectGraphVertices.java== <source lang="Java"> import vtk.*; * Java language example to select edges and vertices from a generated Graph.: public class SelectGraphVertices { * * All Java programs require a host class. in addition, * these two instance variables provide access to the * callback data used in this example.: vtkGraphLayoutView view; vtkAnnot...", and the only contributor was "Jimcp" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/DataStructures/VisualizeKDTree (content was: "<div class="floatright">File:VTK_Examples_Baseline_DataStructures_TestVisualizeKDTree.png</div> This demo shows every level of a kdTree. ==VisualizeKDTree.java== <source lang="java"> import vtk.*; public class VisualizeKDTree { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.l...", and the only contributor was "Egk865" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Instructions/ForUsers (content was: "If you want to use VTK Examples you have several options. If you are a Wiki Example Developer, go here or a Wiki Example Administrator go here. ==Build an example== # Create a source directory (mkdir '''ExampleName''') # Copy and paste the source code under the heading '''ExampleName'''.cxx into an editor and save the file as '''ExampleName'''.cxx in the source director...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Instructions/ForDevelopers (content was: "<!-- __NOTOC__ --> The success of the VTK Wiki Examples depends on the contributions from the VTK user community. If you wish to contribute to this valuable resource, please follow these guidelines. If you are a Wiki Example User, go here or a Wiki Example Administrator go here. ==Create an Example== C++, C#, Tcl, Python and Java examples are welcome! Examples should illustrate a single conc...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Instructions/ForAdministrators (content was: "==DEPRECATED== Wiki Example Administrators have write access to the [https://github.com/lorensen/VTKWikiExamples.git git repository]. Wiki Example Developers do not need write access to the repository since the definitive copy of the source code resides on the Wiki. If you are a Wiki Example User go here or a Wiki Example Developer go here. Wiki Example Administrators maintain the CMakeLists.t...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/ImplicitFunctions/ImplicitDataSet (content was: " ==ImplicitDataSet.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkImplicitDataSet.h> #include <vtkRTAnalyticSource.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> int main(int argc, char **argv) { vtkSmartPointer<vtkRTAnalyticSource> waveletSource = vtkSmartPointer<vtkRTAnalyticSource>::New(); waveletSource->Update(); vtkSmartPointer<vtkImplicitDataSet> implicitWavelet = vtkSmartPointer<vtkImplicitDataSet>::New(); implicitWav...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/HowTo (content was: "* Create a login/user for the wiki (maybe you have already done this?) * Click "Edit" in the section you want to add something to * Create a new page and a link to the new page by adding: <pre> * What you want to display as the link </pre> * when you save these changes, there will now be a red link. When you click this link, it immediately brings you to the "edit" page of the new page * add the content and save it * the link automatically tu...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/GuideLines (content was: "__NOTOC__ == Requirements == Although education of new users in the main motivation, the VTK wiki examples should also: # Encourage good programming style # Promote the proper and modern way to use VTK and write VTK programs # Facilitate the nightly compilation and testing of examples that reside in the VTK wiki These requirements must be met without compromising the main goal of user education. == Guidelines == All examples should follow the VTK programming style. * The ind...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/vtkObject (content was: "An object class should be derived from vtkObject. It should provide a PrintSelf function, use vtkSet/Get macros for mutators/accessors, use vtkStandardNewMacro for it's only allowed constructor, and forcefully omit the copy constructor and assignment operator. An example header file is: <source lang="cpp"> #ifndef __vtkLidarPoint_h #define __vtkLidarPoint_h #include...", and the only contributor was "Daviddoria" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/vtkImageAlgorithm Source (content was: "==vtkImageAlgorithmSourceExample.cxx== <source lang="cpp"> #include "vtkImageAlgorithmSource.h" #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkXMLImageDataWriter.h> void PrintImage(vtkImageData* image); int main (int argc, char *argv[]) { vtkSmartPointer<vtkImageAlgorithmSource> source = vtkSmartPointer<vtkImageAlgorithmSource>::New(); source->Update(); vtkImageData* output = source->GetOutput(); std::cout << "Output image: " << std::en...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/SetClampMacro (content was: "This example demonstrates how to restrict an int member variable to the range 2 to 8. If a value less than 2 is specified, the variable is set to 2. If a value greater than 8 is specified, the variable is set to 8. ==SetClampMacro.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestClass1.h" int main (int argc, char *argv[]) { vtkSmartPointer<vtkTestClass> myClass = vtkSmartPointer<vtkTestClass>::New(); myClass->SetValue(1); cout << "Trie...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/PassInputTypeAlgorithm (content was: "==PassInputTypeAlgorithm.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include "vtkTestPassInputTypeAlgorithmFilter.h" int main(int, char *[]) { vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->InsertNextPoint(0.0, 0.0, 0.0); points->InsertNextPoint(0.0, 0.0, 1.0); vtkSmartPointer<vtkPolyData> inputPolydata = vtkSmartPointer<vtkPolyData>::New(); inputPolydata->Se...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/MultipleOutputPorts (content was: "==MultipleOutputPorts.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include "vtkTestMultipleOutputPortsFilter.h" int main (int, char *[]) { vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); vtkSmartPointer<vtkTestMultipleOutputPortsFilter> filter = vtkSmartPointer<vtkTestMultipleOutputPortsFilter>::New(); filter->SetInputConnection(sphereSource->GetOutput...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/MultipleInputConnections (content was: "==MultipleInputConnections.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestMultipleInputConnectionsFilter.h" int main(int, char*[]) { //setup the first input vtkSmartPointer<vtkPoints> points1 = vtkSmartPointer<vtkPoints>::New(); points1->InsertNextPoint(1.0, 2.0, 3.0); vtkSmartPointer<vtkPolyData> inputPolydata1 = vtkSmartPointer<vtkPolyData>::New(); inputPolydata1->SetPoints(points1); //setup the second input vtkSmartPointer<vtk...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/Macros (content was: "==Macros== ===String=== <source lang="cpp"> char* Filename; vtkSetStringMacro(Filename); </source> ===Bool=== <source lang="cpp"> vtkSetMacro(UseTransform, bool); vtkGetMacro(UseTransform, bool); vtkBooleanMacro(UseTransform, bool); </source> ===Normal Variable=== <source lang="cpp"> vtkGetMacro(ZRange, double); vtkSetMacro(ZRange, double); </source> ===Vector Vari...", and the only contributor was "Daviddoria" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/GetSetVector3Macro (content was: "==GetSetVector3Macro.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestClass3.h" int main(int, char*[]) { vtkSmartPointer<vtkTestClass> testClass = vtkSmartPointer<vtkTestClass>::New(); testClass->Update(); double test[3]; testClass->SetTestVector(test); double testOut[3]; testClass->GetTestVector(test); return EXIT_SUCCESS; } </source> ==vtkTestClass3.h== <source lang="cpp"> #ifndef __vtkTestClass_h #define __vtkTestClass_h #...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/FailedFilter (content was: "==FailedFilter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include "vtkTestFailedFilter.h" int main (int argc, char *argv[]) { vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); vtkSmartPointer<vtkTestFailedFilter> filter = vtkSmartPointer<vtkTestFailedFilter>::New(); filter->SetInputConnection(sphereSource->GetOutputPort()); filter->Update(); if(fi...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/Errors (content was: "==Errors.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkDataObject.h> #include <vtkObjectFactory.h> class TestClass : public vtkDataObject { public: static TestClass *New(); vtkTypeMacro(TestClass,vtkDataObject); TestClass() { vtkErrorMacro(<< "Test error."); } }; vtkStandardNewMacro(TestClass); int main(int argc, char *argv[]) { vtkSmartPointer<TestClass> test = vtkSmartPointer<TestClass>::New(); return EXIT_SUCCESS; } </sour...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/DebugMacro (content was: "==DebugMacro.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestClass2.h" int main(int, char*[]) { vtkSmartPointer<vtkTestClass> testClass = vtkSmartPointer<vtkTestClass>::New(); testClass->DebugOn(); testClass->Update(); return EXIT_SUCCESS; } </source> ==vtkTestClass2.h== <source lang="cpp"> #ifndef __vtkTestClass_h #define __vtkTestClass_h #include "vtkPolyDataAlgorithm.h" class vtkTestClass : public vtkPolyDataAlgorithm { public:...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/Broken/MultipleOutputConnections (content was: "==MultipleOutputConnections.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestMultipleOutputConnectionsFilter.h" int main(int, char*[]) { //setup the second input vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->InsertNextPoint(4.0, 5.0, 6.0); vtkSmartPointer<vtkPolyData> polydata = vtkSmartPointer<vtkPolyData>::New(); polydata->SetPoints(points); vtkSmartPointer<vtkTestMultipleOutputConnectionsFilter> fi...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/AlgorithmSourceMultipleOutputPorts (content was: "This example demonstrates how to setup a source that produces two outputs. The output on port 0 is of type vtkTestA and the Value gets set to 111. The output on port 1 is of type vtkTestB and the Value gets set to 222. ==AlgorithmSourceMultipleOutputPorts.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestMultipleOutputPortsSource.h" #include "vtkTestA.h" #include "vtkTestB.h" int main (int argc, char *argv[]) { vtkTestMultipleOutputPortsSource* source...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/WishList/Visualization/LayeredRenderers (content was: "==LayeredRenderers.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkTransform.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkVectorText.h> int main(int, char *[]) { // Create a sp...", and the only contributor was "Daviddoria" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/WishList/Plotting/PlotLegacyMethod (content was: "<div class="floatright">300px</div> ==PlotLegacyMethod.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkMath.h> #include <vtkDoubleArray.h> #include <vtkFieldData.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkXYPlotActor.h> int...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PlatonicSolid (content was: "Display all five Platonic solids in a grid. ==PlatonicSolid.py== <source lang="python"> #!/usr/bin/env python import vtk class PlatonicSolids(): def PlatonicSolids(self): # Each face has a different cell scalar # So create a lookup table with a different colour # for each face. lut = vtk.vtkLookupTable() lut.SetNumberOfTab...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PlanesIntersection (content was: "==PlanesIntersection.py== <source lang="python"> #!/usr/bin/env python from __future__ import print_function import vtk sphereSource = vtk.vtkSphereSource() sphereSource.Update() bounds = [0 for i in range(6)] sphereSource.GetOutput().GetBounds(bounds) box = vtk.vtkPoints() box.SetNumberOfPoints(8) xMin = bounds[0]; xMax = bounds[1] yMin = bounds[2]; yMax = bounds[3]...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Planes (content was: "==Planes.py== <source lang="python"> #!/usr/bin/env python import vtk # Use this variable to select one of the two methods below. SELECT_FRUSTUM_METHOD = True if SELECT_FRUSTUM_METHOD: # one way camera = vtk.vtkCamera() planesArray = [0 for i in range(24)] camera.GetFrustumPlanes(1, planesArray) planes = vtk.vtkPlanes() planes.SetFru...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Plane (content was: "==Plane.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkPlaneSource() source.SetCenter(1,0,0) source.SetNormal(1,2,3) # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInput(source.GetOutput()) # actor actor = vtk.vtkActor() actor...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/OrientedArrow (content was: "This example illustrates how to create and display an arrow that passes through two points. It demonstrates two different ways to apply the transform: # Use [http://www.vtk.org/doc/nightly/html/classvtkTransformPolyDataFilter.html vtkTransformPolyDataFilter] to create a new transformed polydata. This method is useful if the transformed polydata is needed later in the pipel...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/LongLine (content was: "==LongLine.py== <source lang="python"> #!/usr/bin/env python import vtk # Create five points. origin = [0.0, 0.0, 0.0] p0 = [1.0, 0.0, 0.0] p1 = [0.0, 1.0, 0.0] p2 = [0.0, 1.0, 2.0] p3 = [1.0, 2.0, 3.0] # Create a vtkPoints object and store the points in it points = vtk.vtkPoints() points.InsertNextPoint(origin) points.InsertNextPoint(p0) points.InsertNextPoint(p1) poin...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/LineSource (content was: "==LineSource.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkLineSource() source.SetPoint1(1,-1,0) source.SetPoint2(2,-3,0) # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInput(source.GetOutput()) # actor actor = vtk.vtkActor(...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Hexahedron (content was: "<div class="floatright">300px</div> This example creates eight points and creates a hexahedron from the points. ==Hexahedron.py== <source lang="python"> import vtk P0 = [0.0, 0.0, 0.0] P1 = [1.0, 0.0, 0.0] P2 = [1.0, 1.0, 0.0] P3 = [0.0, 1.0, 0.0] P4 = [0.0, 0.0, 1.0] P5 = [1.0, 0.0, 1.0] P6 = [1.0, 1.0, 1.0]...", and the only contributor was "Drfox" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/GeometricObjectsDemo (content was: "==GeometricObjectsDemo.py== <source lang="python"> #!/usr/bin/env python import vtk class GeometricObjects(): def GeometricObjects(self): GeometricObjects = list() GeometricObjects.append(vtk.vtkArrowSource()) GeometricObjects.append(vtk.vtkConeSource()) GeometricObjects.append(vtk.vtkCubeSource()) GeometricObjects...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Frustum (content was: "==Frustum.py== <source lang="python"> #!/usr/bin/env python import vtk camera = vtk.vtkCamera() planesArray = [0 for i in range(24)] camera.GetFrustumPlanes(1, planesArray) planes = vtk.vtkPlanes() planes.SetFrustumPlanes(planesArray) frustumSource = vtk.vtkFrustumSource() frustumSource.SetPlanes(planes) frustumSource.Update() frustum = frustumSource.GetOutput() mapp...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Disk (content was: "Image:Disk.png ==Disk.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkDiskSource() source.SetInnerRadius(1) source.SetOuterRadius(2) source.SetRadialResolution(100) source.SetCircumferentialResolution(100) source.Update() # mappe...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DistanceBetweenPoints (content was: "==DistanceBetweenPoints.py== <source lang="python"> from __future__ import print_function import vtk import math p0 = (0,0,0) p1 = (1,1,1) distSquared = vtk.vtkMath.Distance2BetweenPoints(p0,p1) dist = math.sqrt(distSquared) print("p0 = ", p0) print("p1 = ", p1) print("distance squared = ", distSquared) print("distance = ", dist) </source>")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DottedLine (content was: "==DottedLine.py== <source lang="python"> import vtk Line=vtk.vtkLineSource() Line.SetPoint1(-50,0,0) Line.SetPoint2(50,0,0) Line.SetResolution(100) Mapper=vtk.vtkPolyDataMapper() Mapper.SetInputConnection(Line.GetOutputPort()) Actor=vtk.vtkActor() Actor.SetMapper(Mapper) #create renderers and add actors of plane and cube ren = vtk.vtkRenderer() ren.AddActor(Actor) Actor.GetProperty().SetColor(1,1,0) Actor.GetProperty().SetLineStipplePattern(0xf0f0) Actor.GetProp...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/ExodusII/Read (content was: "==Brief Description== A simple Python script for reading and displaying ExodusII data with VTK. ==ReadExodusData.py== <source lang="python"> #!/usr/bin/env python # # This example was built using Python2.7 and VTK6.3 on OSX import vtk # Input file and variable filename = 'mug.e' nodal_var = 'convected' # Read Exodus Data reader = vtk.vtkExodusIIReader() reader.S...", and the only contributor was "Slaughter98" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/FilledPolygon (content was: "==FilledPolygon.py== <source lang="python"> import vtk #Create a cube cube = vtk.vtkSphereSource() cube.SetRadius(50) cube.SetThetaResolution(100) cube.SetPhiResolution(100) cubeMapper = vtk.vtkPolyDataMapper() cubeMapper.SetInputConnection(cube.GetOutputPort()) #create a plane to cut,here it cuts in the XZ direction (xz normal=(1,0,0);XY =(0,0,1),YZ =(0,1,0) plane = vtk.vtkPlane() plane.SetOrigin(20, 0, 0) plane.SetNormal(1, 0, 0) #create cutter cutter = vtk.vtkCutter...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Filtering/CombinePolyData (content was: "This example combines Polydata objects, and displays the result to the screen. ==CombinePolyData.py== <source lang="Python"> import vtk input1 = vtk.vtkPolyData() input2 = vtk.vtkPolyData() sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(5,0,0) sphereSource.Update() input1.ShallowCopy(sphereSource.GetOutput()) coneSource =vtk.vtkConeSource() coneSource.U...", and the only contributor was "DerPavlov" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Filtering/Delaunay2D (content was: "File:VTK_Examples_Python_Filtering_Delaunay2D.png ==vtkDelaunay2D.py== <source lang="python"> #!/usr/bin/python import vtk, random points = vtk.vtkPoints() for x in range(10): for y in range(10): points.InsertNextPoint(x + random.uniform(-.25, .25), y + random.uniform(-.25, .25), 0) aPolyData = vtk.vtkPolyData() aPolyData.SetPoints(points) aCellArray = vtk.vtkCellArray() boundary = vtk.vtkPolyData() boundary.SetPoints(...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/FrustumSource (content was: "This is a Python version of the C++ example for viewing a Frustum ==FrustumSource.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) planesArray=[0]*24 # Allocate a list of length 24 camera = vtk.vtkCamera() camera.GetFrustumPlanes(1, planesArray) planes=vtk.vtkPlanes...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Arrow (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_GeometricObjects_TestArrow.png</div> ==Arrow.py== <source lang="python"> # arrow.py adapted from the C++ vtk examples and translated to python. import vtk arrowSource = vtk.vtkArrowSource() #arrowSource.SetShaftRadius(0.01) #arrowSource.SetTipLength(.9) # Create a mapper and actor mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(arrowSource.GetOutputPort()) actor = vtk.vtkActor() actor.SetMapper(mapper) # V...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Axes (content was: "<div class="floatright">File:VTK_Examples_Baseline_GeometricObjects_TestAxes.png</div> This example shows how to position an AxesActor in 3D. Notice that position and orientation of the AxesActor is done with a user transform. ==Axes.py== <source lang="python"> import vtk #create a Sphere sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(0.0, 0.0, 0.0) sphereSource.S...", and the only contributor was "Drfox" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Cell3DDemonstration (content was: "<div class="floatright">File:VTK_Examples_Baseline_GeometricObjects_Cell3DDemonstration.png</div> ==Description== This is a demonstration of how to construct and display geometric objects using the classes derived from vtkCell3D. For each object we specify the points and cell Ids. From this we create an unstructured grid. In some cases a vtkCellArray is used and the...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/ColoredLines (content was: "==ColoredLines.py== <source lang="python"> #!/usr/bin/env python import vtk # Create three points. Join (Origin and P0) with a red line and # (Origin and P1) with a green line origin = [0.0, 0.0, 0.0] p0 = [1.0, 0.0, 0.0] p1 = [0.0, 1.0, 0.0] # Create a vtkPoints object and store the points in it pts = vtk.vtkPoints() pts.InsertNextPoint(origin) pts.InsertNextPoint(p0) p...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Cube (content was: "Display a cube ==Cube.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create cube cube = vtk.vtkCubeSource() # mapper cubeMapper = vtk.vtkPolyDataMapper() cubeMapper.SetInput(cube.GetOutput()) # actor cubeActor = vtk.vtkActor() cubeActor.SetMapper(cubeMapper)...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Cone (content was: "This program displays a cone on screen. Image:Cone.png ==Cone.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) WIDTH=640 HEIGHT=480 renWin.SetSize(WIDTH,HEIGHT) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create cone cone = vtk.vtkConeSource() cone.SetResolution(60) cone.SetCenter(-2,0,0) # mapper cone...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Cylinder (content was: "Image:Cylinder.png ==Cylinder.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkCylinderSource() source.SetCenter(0,0,0) source.SetRadius(5.0) source.SetHeight(7.0) source.SetResolution(100.0) # mapper mapper = vtk.vtkPolyDataMappe...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/DataSetSurface (content was: "==DataSetSurface.py== <source lang="python"> from vtk import* #Setup the coordinates of eight points #(the two faces must be in counter clockwise order as viewd from the outside) P0 = [0.0, 0.0, 0.0]; P1 = [1.0, 0.0, 0.0]; P2 = [1.0, 1.0, 0.0]; P3 = [0.0, 1.0, 0.0]; P4 = [0.0, 0.0, 1.0]; P5 = [1.0, 0.0, 1.0]; P6 = [1.0, 1.0, 1.0]; P7 = [0.0, 1.0, 1.0]; #Create the points points = vtkPoints(); points.InsertNextPoint(P0); points.InsertNextPoint(P1); points.InsertNextPoint(P2...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DataManipulation/LineOnMesh (content was: "x300px|x300px| Create a terrain with regularly spaced points and smooth the terrain (see VTK/Examples/Python/PolyData/SubdivisionFilters. Then, a vtkCellLocator is used to find the intersection between vertical lines and the surface (using t...", and the only contributor was "IMichka" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DataManipulation/KochSnowflake.py (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Visualization_TestKochSnowflake.png</div> ==Description== This script draws a Koch snowflake using the VTK. The general idea is to exercise some of the components of a vtkPolyData to produce something interesting rather than a boring old cube. Not that I have anything against cubes. There is also a C++ version of this example: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/KochSnowflake ==KochSnowflake.py== <sour...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DataManipulation/Cube.py (content was: "This is a transliteration of the C++ example [http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/DataManipulation/Cxx/Cube.cxx Examples/DataManipulation/Cxx/Cube.cxx] in the VTK source distribution. It illustrates the manual use of {{VTKDoxygenURL|vtkPolyData}} to construct a cube and differs from the Wiki examples VTK/Examples/Python/GeometricObjects/Display/Cube and VTK/Examples/Cxx/GeometricObjects/Cube, which use {{VTKDoxygenURL|vtkCube}}. ==Cube.py== <source lang=...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Cylinder (content was: "This example demonstrate a minimal visualization created with VTK. See also C++, Java and Tcl ==Cylinder.py== <source lang="python"> #!/usr/bin/env python # This simple example shows how to do basic rendering and pipeline # creation. import vtk # The colors m...", and the only contributor was "DaveDemarle" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/CurvaturesDemo (content was: "'''How to get the Gaussian and Mean curvatures of a surface.''' Two different surfaces are used in this demonstration with each surface coloured according to its Gaussian and Mean curvatures. * The first surface is a superquadric surface, this demonstrates the use of extra filters that are needed to get a nice smooth surface. * The second surface is a parametric surface, in this case the surface has already been triangulated so no extra processing is necessary. In order to...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/ColoredTriangle (content was: "==ColoredTriangle.py== <source lang="python"> import vtk from vtk import * #setup points and vertices Points = vtk.vtkPoints() Triangles = vtk.vtkCellArray() Points.InsertNextPoint(1.0, 0.0, 0.0) Points.InsertNextPoint(0.0, 0.0, 0.0) Points.InsertNextPoint(0.0, 1.0, 0.0) Triangle = vtk.vtkTriangle() Triangle.GetPointIds().SetId(0, 0) Triangle.GetPointIds().SetId(1, 1) Triangle.GetPointIds().SetId(2, 2) Triangles.InsertNextCell(Triangle) #setup colors Colors = vtk.vtkUnsigne...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/ColorActor (content was: "==ColorActor.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkSphereSource() source.SetCenter(0,0,0) source.SetRadius(5.0) # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInput(source.GetOutput()) # actor actor = vtk.vtkActor() a...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Camera (content was: "==Camera.py== <source lang="python"> from vtk import* #Create a sphere sphereSource =vtkSphereSource(); sphereSource.SetCenter(0.0, 0.0, 0.0); sphereSource.SetRadius(10); sphereSource.Update(); #Create a mapper and actor mapper =vtkPolyDataMapper (); mapper.SetInputConnection(sphereSource.GetOutputPort()); actor =vtkActor(); actor.SetMapper(mapper); camera =vtkCamera (); camera...", and the only contributor was "Jothy" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/BackgroundImage (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestBackgroundImage.png</div> This example displays an image as the "background" of a scene, and renders a superquadric in front of it. The example accepts a jpeg file on the command line to use as a background image. If there is no file, it generates a simple background. ==BackgroundImage.py== <source lang="python">...", and the only contributor was "Steve9" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Arrays/RenameArray (content was: "Works, but segfaults at the end? ==RenameArray.py== <source lang="python"> import vtk from vtk import * #setup sphere sphereSource = vtk.vtkSphereSource() sphereSource.Update() polydata = vtk.vtkPolyData() polydata.ShallowCopy(sphereSource.GetOutput()) normals = polydata.GetPointData().GetNormals(); normals.SetName("TestN") writer = vtk.vtkXMLPolyDataWriter(); writer.SetFileName("Test.vtp"); writer.SetInput(polydata); writer.Write(); </source>")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Arrays/GetValues (content was: "Seems to work, but segfaults at the end? Tested: No segfault in Python 2.7 and Python 3.4. ==GetValues.py== <source lang="python"> from __future__ import print_function import vtk from vtk import * #setup sphere sphereSource = vtk.vtkSphereSource() sphereSource.Update() polydata = vtk.vtkPolyData() polydata.ShallowCopy(sphereSource.GetOutput()) normals = polydata.GetPointData().GetNormals(); normal0 = normals.GetTuple3(0); print("Normal0: {:3.1f} {:3.1f} {:3.1f}".format(...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Animation (content was: "This example uses a timer to move a sphere across a scene. * Contributed by: Bryan Conrad ==Animation.py== <source lang="python"> from __future__ import print_function import vtk class vtkTimerCallback(): def __init__(self): self.timer_count = 0 def execute(self,obj,event): print(self.timer_count) self.actor.SetPosition(self.timer_count, self.timer_count,0); iren = obj iren.GetRenderWindow().Render() self.timer_count += 1 de...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Visualization/VectorField (content was: "The code bellow shows how to load a vector field from a vtu file, where some data is stored and we are only interrested in the vector field. '''Note:''' Please make sure that you adapt the code below to your system properties, like e.g. paths to natives vtk libraries. ==VectorFieldExample.java== <source lang="java"> package eu.mihosoft.vtk;...", and the only contributor was "Christian.poliwoda" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Visualization/Follower (content was: "The text stays right side up and facing the camera, while the cube does not. ==Follower.java== <source lang="java"> import vtk.*; public class Follower { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); S...", and the only contributor was "Egk865" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Outline (content was: "==Outline.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkConeSource() source.SetCenter(0,0,0) source.SetResolution(100) # mapper mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(source.GetOutpu...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/MultipleViewports (content was: "This example demonstrates how to use multiple viewports to display several scenes in one render window. * Contributed by: Bryan Conrad ==MultipleViewports.py== <source lang="python"> import vtk def main(): '''One render window, multiple viewports''' iren_list = [] rw = vtk.vtkRenderWindow() iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(rw)...", and the only contributor was "Bconrad" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Meshes/vtkClipDataSetWithPolydata (content was: "File:VTK_Examples_Python_Meshes_vtkClipDataSetWithPolydata.png An example that shows how to use the vtkClipDataSet to clip a vtkRectilinearGrid with an arbitrary polydata. vtkImplicitPolyDataDistance is used to turn the polydata into an implicit function. Every point of the grid is evaluated before sending to vtkClipDataSet. This example uses a vtkConeSource to generate p...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/MeshLabelImageColor (content was: "This example takes a label image in Meta format and meshes a single label of it. It then smoothes the mesh and colours the vertices according to the displacement error introduced by the smoothing. The whole thing is then displayed. An example data can be found here Media:labels.tgz ==MeshLabelImageColor.py== <source lang="python"> from __future__ import print_function import vtk input='labels.mhd' # Prepare to read the file readerVolume = vtk.vtkMetaImageReader() read...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/MeshLabelImage (content was: "This example takes a label image in Meta format and meshes each label. It then prints area and normal of each mesh cell to a file. An example data can be found here Media:labels.tgz * Contributed by Lynx Abraxas ==MeshLabelImage.py== <source lang="python"> import vtk input='labels.mhd' # Prepare to read the file readerVolume = vtk.vtkMetaImageReader() readerVolume.SetFileName(input) readerVolume.Update() # Extract the region of interest voi = vtk.vtkExtractVOI()...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/IterativeClosestPoints (content was: "==IterativeClosestPoints.py== <source lang="python"> from __future__ import print_function import vtk from vtk import * # ============ create source points ============== print("Creating source points...") sourcePoints = vtk.vtkPoints() sourceVertices = vtk.vtkCellArray() id = sourcePoints.InsertNextPoint(1.0, 0.1, 0.0) sourceVertices.InsertNextCell(1) sourceVertices.InsertCellPoint(id) id = sourcePoints.InsertNextPoint(0.1, 1.1, 0.0) sourceVertices.InsertNextCell(1) sourceV...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/InteractorStyleTrackballCamera (content was: "==InteractorStyleTrackballCamera.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) style = vtk.vtkInteractorStyleTrackballCamera() iren.SetInteractorStyl...", and the only contributor was "Daviddoria" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/InteractorStyleTrackballActor (content was: "Move, rotate, and scale an object in 3D. ==InteractorStyleTrackballActor.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) style = vtk.vtkInteractorStyl...", and the only contributor was "Daviddoria" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Interaction/MouseEventsObserver (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestMouseEvents.png</div> This example directly changes the observers of the vtkInteractor, which is an easy way to disable events or to add some simple callback functions. For a more general framework using vtkInteractorStyle see VTK/Examples/Python/Interaction/MouseEvents. This specific example just disables the left mouse button of the vtkInteractorStyleTrackballCamera and prints a simple message instead....")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Interaction/MouseEvents (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestMouseEvents.png</div> This example creates a new vtkInteractorStyle which can be used to implement custom reactions on user events. If you just want to disable single events you can also have a look at VTK/Examples/Python/Interaction/MouseEventsObserver. This specific example just prints a simple message and then calls the original eventhandler of the vtkInteractorStyleTrackballCamera. ==MouseEvents.py=...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Interaction/HighlightAPickedActor (content was: "File:VTK_Examples_Python_Interaction_HighlightPickedActor.png Shows how to customize vtkInteractorStyleTrackballCamera and vtkPropPicker to select a actor in the scene by pressing the left mouse button. ==HighlightPickedActor.py== <source lang="python"> import vtk NUMBER_OF_SPHERES = 10 class MouseInteractorHighLightActor(vtk.vtkInteractorStyleTrackballCamera):...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Infovis/SelectedGraphIDs (content was: "File:VTK_Examples_Python_Infovis_SelectedGraphIDs.png ==SelectedGraphIDs.py== <source lang="python"> #!/usr/bin/env python # This is a variation on VTK/Examples/Infovis/Python/selection.py # which shows how to use a vtkAnnotationLink to view the contents # of a selection from a vtkGraphLayoutView from __future__ import print_function import vtk source = vtk.vtkRandomGraphSource() source.DirectedOff() source.SetNumberOfVertices(100) source.SetEdgeProbability(0) # Basical...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Infovis/ParallelCoordinatesView (content was: "Parallel Coordinates View of the example data after selecting low Elevation values with lasso. ==ParallelCoordinatesView.py== <source lang="python"> #!/usr/bin/env python # Example of how to use Parallel Coordinates View to plot and compare # data set attributes. # Use the "u" character to toggle between "inspect modes" on the parallel # coordinates view (i.e. between selecting data and manipulating axes). # Lines which are commented out...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Infovis/ParallelCoordinatesExtraction (content was: "Selection in a Parallel Coordinates View is used to define indices to extract and view in a standard 3d render window ==ParallelCoordinatesExtraction.py== <source lang="python"> #!/usr/bin/env python # Example of how to use Parallel Coordinates View to plot and compare # data set attributes, and then to use selections in the parallel coordinates # view to extract and view data points associated with those selections # Use the "u" c...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Implicit/Sphere (content was: "File:python_examples_implicit_sphere.png Shows how to create a surface representing a sphere by creating an implicit sphere, sampling the implicit function, and finally contouring the sampled data to produce the surface. ==implicit_sphere.py== <source lang="python"> import vtk sphere = vtk.vtkSphere() sphere.SetCenter(0, 0, 0) sphere.SetRadius(0.5) # The sample functio...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Implicit/Quadric (content was: "File:python_example_quadric.png Create an ellipsoid by using the implicit quadric. ==implicit_quadric.py== <source lang="python"> import vtk #create an ellipsoid using a implicit quadric quadric = vtk.vtkQuadric() quadric.SetCoefficients(.5, 1, .2, 0, .1, 0, 0, .2, 0, 0) # The sample function generates a distance function from the implicit # function. This is then cont...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Implicit/Boolean (content was: "File:Python_examples_implicit_boolean_difference.png File:Python_examples_mplicit_bool_union.png File:python_examples_implicit_boolean_intersection.png Demonstration on how to perform boolean operations with implicit functions. ==implicit_boolean.py== <source lang="python"> import vtk # create a sphere sphere = vtk.vtkSphere() sphere.SetRadius(1) sphere.SetCente...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/ImageWeightedSum (content was: "File:VTK_Examples_Baseline_ImageData_TestImageWeightedSum.png *Translated to python from the c++ examples by Michka Popoff ==ImageWeightedSum.py== <source lang="python"> #!/usr/bin/env python import vtk # Create image 1 source1 = vtk.vtkImageMandelbrotSource() source1.SetWholeExtent(0, 255, 0, 255, 0, 0) source1.Update() source1Double = vtk.vtkImageCast() source1Doub...", and the only contributor was "IMichka" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Graphs/VisualizeGraph (content was: "File:VTK_Examples_Python_Graphs_VisualizeGraph.png * Contributed by Jim McCusker * Note: AddEdge() is not enabled through python, but AddGraphEdge() is. ==VisualizeGraph.py== <source lang="python"> #!/usr/bin/env python import vtk g = vtk.vtkMutableDirectedGraph() v1 = g.AddVertex() v2 = g.AddVertex() g.AddGraphEdge(v1, v2) g.AddGraphEdge(v1, v2) graphLayoutView = vtk.vtkGraphLayoutView() graphLayoutView.AddRepresentationFromInput(g) graphLayoutView.SetLayoutStrateg...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Graphs/SelectedVerticesAndEdges (content was: "File:VTK_Examples_Python_Graphs_SelectedVerticesAndEdges.png *Contributed by Eric Monson ==SelectedVerticesAndEdges.py== <source lang="python"> #!/usr/bin/env python from __future__ import print_function import vtk source = vtk.vtkRandomGraphSource() source.Update() view = vtk.vtkGraphLayoutView() view.AddRepresentationFromInputConnection(source.GetOutputPort()) def selectionCallback(caller, event): # In C++ there is some extra data passed to the callback, but in...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Graphs/NOVCAGraph (content was: "=NOVCA Graph= File:Graph.png * Contributed by Sanjaya Gajurel ==NOVCAGraph.py== <source lang="python"> #!/usr/bin/env python # Sanjaya Gajurel, Computational Scientist, Case Western Reserve University, April 2015 import sys import vtk import os #------------------------------------------------------------------------------ # Script Entry Point #------------------------------------------------------------------------------ if __name__ == "__main__": print "vtkGraph:...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Graphs/EdgeWeights (content was: "File:VTK_Examples_Python_Graphs_EdgeWeights.png * Contributed by Jim McCusker ==EdgeWeights.py== <source lang="python"> #!/usr/bin/env python import vtk g = vtk.vtkMutableDirectedGraph() # Create 3 vertices v1 = g.AddVertex() v2 = g.AddVertex() v3 = g.AddVertex() # Create a fully connected graph g.AddGraphEdge(v1, v2) g.AddGraphEdge(v2, v3) g.AddGraphEdge(v1, v3) # Create the edge weight array weights = vtk.vtkDoubleArray() weights.SetNumberOfComponents(1) weights.S...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Geovis/GeoAssignCoordinates (content was: "File:VTK_Examples_Python_Geovis_GeoAssignCoordinates.png * Contributed by Jim McCusker ==GeoAssignCoordinates.py== <source lang="python"> #!/usr/bin/python import vtk g = vtk.vtkMutableDirectedGraph() latitude = vtk.vtkDoubleArray() latitude.SetName("latitude") longitude = vtk.vtkDoubleArray() longitude.SetName("longitude") for i in range(-90, 90, 10): for j in range(-180, 180, 20): g.AddVertex() latitude.InsertNextValue(i) longitude.Insert...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/ParametricObjectsDemo (content was: "==Description== See [http://www.vtk.org/VTK/img/ParametricSurfaces.pdf Parametric Equations for Surfaces] by Andrew Maclean for an excellent description of these beautiful parametric surfaces. This example also demonstrates how to manipulate lists of VTK objects using lists. Notice how parameters of the various Parametric Objects are accessed and set in the parametricObjects list. File:python_examples_parametric_objects.png ==ParametricObjectsDemo.py== <source lang="pyth...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/ParametricObjects (content was: "<div class="floatright">File:VTK_Examples_Baseline_GeometricObjects_TestParametricObjects.png</div> ==Description== See [http://www.vtk.org/VTK/img/ParametricSurfaces.pdf Parametric Equations for Surfaces] by Andrew Maclean for an excellent description of these beautiful parametric surfaces. You can edit the following code by selecting any one of the functions and the...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Vertex (content was: "==Vertex.py== <source lang="python"> #!/usr/bin/env python import vtk points = vtk.vtkPoints() points.InsertNextPoint(0,0,0) vertex = vtk.vtkVertex() vertex.GetPointIds().SetId(0, 0) vertices = vtk.vtkCellArray() vertices.InsertNextCell(vertex) polydata = vtk.vtkPolyData() polydata.SetPoints(points) polydata.SetVerts(vertices) # Setup actor and mapper mapper = vtk.vt...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/TriangleStrip (content was: "==TriangleStrip.py== <source lang="python"> #!/usr/bin/env python import vtk points = vtk.vtkPoints() points.InsertNextPoint(0,0,0) points.InsertNextPoint(0,1,0) points.InsertNextPoint(1,0,0) points.InsertNextPoint(1.5,1,0) triangleStrip = vtk.vtkTriangleStrip() triangleStrip.GetPointIds().SetNumberOfIds(4) triangleStrip.GetPointIds().SetId(0,0) triangleStrip.GetPointIds...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Triangle (content was: "==DisplayTriangle.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create points points = vtk.vtkPoints() points.InsertNextPoint(1.0,0.0,0.0) points.InsertNextPoint(0.0,0.0,0.0) points.InsertNextPoint(0.0,1.0,0.0) triangle = vtk.vtkTriangle() triangle.GetPointIds(...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/TextActor (content was: "Image:Textactor.png ==TextActor.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create a text actor txt = vtk.vtkTextActor() txt.SetInput("Hello World!") txtprop=txt.GetTextProperty() txtprop.SetFontFamilyToArial() txtprop.SetFontSize(18) txtprop.SetColor(1,1...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Tetrahedron (content was: "==Tetrahedron.py== <source lang="python"> #!/usr/bin/env python import vtk points = vtk.vtkPoints() points.InsertNextPoint(0, 0, 0) points.InsertNextPoint(1, 0, 0) points.InsertNextPoint(1, 1, 0) points.InsertNextPoint(0, 1, 1) points.InsertNextPoint(5, 5, 5) points.InsertNextPoint(6, 5, 5) points.InsertNextPoint(6, 6, 5) points.InsertNextPoint(5, 6, 6) # The first tetra...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Sphere (content was: "==Sphere.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkSphereSource() source.SetCenter(0,0,0) source.SetRadius(5.0) # mapper mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(source.GetOutput()) el...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/RegularPolygonSource (content was: "This example creates a pentagon. ==RegularPolygonSource.py== <source lang="python"> #!/usr/bin/env python import vtk # Create a pentagon polygonSource = vtk.vtkRegularPolygonSource() #polygonSource.GeneratePolygonOff() polygonSource.SetNumberOfSides(5) polygonSource.SetRadius(5) polygonSource.SetCenter(0,0,0) polygonSource.Update() mapper = vtk.vtkPolyDataMapper() mappe...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Quad (content was: "==Quad.py== <source lang="python"> #!/usr/bin/env python import vtk # Create four points (must be in counter clockwise order) p0 = [0.0, 0.0, 0.0] p1 = [1.0, 0.0, 0.0] p2 = [1.0, 1.0, 0.0] p3 = [0.0, 1.0, 0.0] # Add the points to a vtkPoints object points = vtk.vtkPoints() points.InsertNextPoint(p0) points.InsertNextPoint(p1) points.InsertNextPoint(p2) points.InsertNextP...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Pyramid (content was: "==Pyramid.py== <source lang="python"> #!/usr/bin/env python import vtk points = vtk.vtkPoints() p0 = [1.0, 1.0, 1.0] p1 = [-1.0, 1.0, 1.0] p2 = [-1.0, -1.0, 1.0] p3 = [1.0, -1.0, 1.0] p4 = [0.0, 0.0, 0.0] points.InsertNextPoint(p0) points.InsertNextPoint(p1) points.InsertNextPoint(p2) points.InsertNextPoint(p3) points.InsertNextPoint(p4) pyramid = vtk.vtkPyramid() pyra...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PolygonIntersection (content was: "==PolygonIntersection.py== <source lang="python"> #!/usr/bin/env python from __future__ import print_function import vtk # Create a square in the x-y plane. points = vtk.vtkPoints() points.InsertNextPoint(0.0, 0.0, 0.0) points.InsertNextPoint(1.0, 0.0, 0.0) points.InsertNextPoint(1.0, 1.0, 0.0) points.InsertNextPoint(0.0, 1.0, 0.0) # Create the polygon polygon = vtk.vtkP...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Polygon (content was: "==Polygon.py== <source lang="python"> #!/usr/bin/env python import vtk # Setup four points points = vtk.vtkPoints() points.InsertNextPoint(0.0, 0.0, 0.0) points.InsertNextPoint(1.0, 0.0, 0.0) points.InsertNextPoint(1.0, 1.0, 0.0) points.InsertNextPoint(0.0, 1.0, 0.0) # Create the polygon polygon = vtk.vtkPolygon() polygon.GetPointIds().SetNumberOfIds(4) #make a quad polygon.GetPointIds().SetId(0, 0) polygon.GetPointIds().SetId(1, 1) polygon.GetPointIds().SetId(2, 2) polygon....")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PolyLine (content was: "==Polyline.py== <div class="floatright">300px</div> <source lang="python"> # This example demonstrates how to create a polyline through several ordered points. import vtk import math # vtkPoints represents 3D points. The data model for vtkPoints is an array of # vx-vy-vz triplets accessible by (point or cell) id. points = vtk.vtkPoints() points.SetNumberOfPoints(6) c = math.cos(math.pi/6) # helper variable...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PointSource (content was: "==PointSource.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source src = vtk.vtkPointSource() src.SetCenter(0,0,0) src.SetNumberOfPoints(50) src.SetRadius(5) src.Update() # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInput(src.GetOutput()) # ac...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Point (content was: "==Point.py== <source lang="python"> #!/usr/bin/env python import vtk # Create the geometry of a point (the coordinate) points = vtk.vtkPoints() p = [1.0, 2.0, 3.0] # Create the topology of the point (a vertex) vertices = vtk.vtkCellArray() id = points.InsertNextPoint(p) vertices.InsertNextCell(1) vertices.InsertCellPoint(id) # Create a polydata object point = vtk.vtkPo...", and the only contributor was "Amaclean" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/HardwareSelector (content was: "==HardwareSelector.py== <source lang="python"> from __future__ import print_function import vtk import vtk.util.numpy_support as VN # Callback for when selection is changed def selectionCallback(caller,eventId): hsel = vtk.vtkHardwareSelector() hsel.SetFieldAssociation(vtk.vtkDataObject.FIELD_ASSOCIATION_CELLS) hsel.SetRenderer(ren1) x,y = caller.GetRenderWindow().GetSize() # Create a small area around clicked point for selector area...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/GlyphTable (content was: "==GlyphTable.py== <source lang="python"> import vtk # This example uses a "glyph table" to change the shape of the 3d glyphs # according to a scalar value. # NOTE: The vtkGlyph3D filter doesn't copy over scalars to the glyphs # generated by a table like this for some reason... # The Wavelet Source is nice for generating a test vtkImageData set rt = vtk.vtkRTAnalyticSourc...", and the only contributor was "Emonson" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/ElevationBandsWithGlyphs (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestElevationBandsWithGlyphs.png</div> == Description == In this example we are coloring the surface by partitioning the elevation into bands and using arrows to display the normals on the surface. Rather beautiful surfaces are generated. The banded contour filter and an indexed lookup table are used alo...", and the only contributor was "Amaclean" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/CurvatureBandsWithGlyphs (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestCurvatureBandsWithGlyphs.png</div> == Description == In this example we are coloring the surface by partitioning the gaussian curvature into bands and using arrows to display the normals on the surface. Rather beautiful surfaces are generated. The banded contour filter and an indexed lookup table are...", and the only contributor was "Amaclean" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/CubeAxesActor (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestCubeAxesActor.png</div> *Translated to python from the .cxx examples by Michka Popoff ==CubeAxesActor.py== <source lang="python"> #!/usr/bin/env python import vtk # Create a superquadric superquadricSource = vtk.vtkSuperquadricSource() superquadricSource.SetPhiRoundness(3.1) superquadricSource.SetThet...", and the only contributor was "IMichka" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/ClampGlyphSizes (content was: "==ClampGlyphSizes.py== <source lang="python"> # Example of how to use range clamping with vtkGlyph3D filter. # # Note that the internal algorithm does this to figure out the eventual scale # of your data (say, if you're scaling by a scalar or vector magnitude): # # scale = (scalar value of that particular data index); # denominator = Range[1] - Range[0]; # scale = (scale < Range[0] ? Range[0] : (scale > Range[1] ? Range[1] : scale)); # scale = (scale - Range[0]) / denomina...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/AssignColorsCellFromLUT (content was: "== Description == Demonstrates how to assign colors to cells in a vtkPolyData structure using lookup tables. Two techniques are demonstrated: # Using a lookup table of predefined colors. # Using a lookup table generated from a color transfer function. The resultant display shows in the left-hand column, the cells in a plane colored by the two lookup tables and in the right-hand column, the same polydata that has been read in from a file demonstrating that the structures are i...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Vectortext (content was: "==VectorText.py== <source lang="python"> from vtk import* #Create a sphere textSource = vtkVectorText(); textSource.SetText("Hello"); textSource.Update(); #Create a mapper and actor mapper = vtkPolyDataMapper(); mapper.SetInputConnection(textSource.GetOutputPort()); actor =vtkActor(); actor.SetMapper(mapper); actor.GetProperty().SetColor(1.0, 0.0, 0.0); #Create a renderer, rend...", and the only contributor was "Jothy" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Variant (content was: "==Variant.py== <source lang="python"> from __future__ import print_function import vtk import sys # Unicode string for demonstration (etre with circumflex) if sys.hexversion >= 0x03000000: unicodeEtre = '\xeatre' # unicode in Python 3 else: unicodeEtre = unicode('\xeatre', 'latin1') # # Basic vtkVariant usage # # Default constructor v = vtk.vtkVariant() print("Invalid variant: %r, '%s'" % (v, v.GetTypeAsString())) # Copy constructor v = vtk.vtkVariant(vtk.vtkVariant...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/VTPReader (content was: "==VTPReader.py== <source lang="python"> reader = vtk.vtkXMLPolyDataReader() path = os.path.join(constant.BASE_DIR, "archive.vtp") #Archive path reader.SetFileName(path) reader.Update() mapper = vtk.vtkPolyDataMapper() mapper.SetInput(reader.GetOutput()) actor = vtk.vtkActor() actor.SetMapper(mapper) </source>")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Utilities/LUTUtilities (content was: "==Description== A class called LUTUtilities is demonstrated along with a test harness that shows you how to use the class. This class allows you to: * Print the contents of the lookup table * Compare two lookup tables to see if they are the same. The test harness is a function called: TestLookupTables that tests pairs of lookup tables against each other. The program will...", and the only contributor was "Amaclean" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/UnstructuredTransientVolumeRendering (content was: "Volume render unstructured transient data. ==vtkVolumeExample.py== <source lang="python"> #!/usr/bin/env python from __future__ import print_function from vtk import * tse = vtkTimeSourceExample() ex = tse.GetExecutive() tse.UpdateInformation() #inspect available time range and time steps print(ex.GetOutputInformation()) #make it grow because bounds are easy to inspect # tse.SetGrowing(1) ex.SetUpdateTimeStep(0,0.0) tse.Update() print(tse.GetOutput().GetBounds()) #pick s...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/TriangleCorners (content was: "==TriangleCorners.py== <source lang="python"> import vtk from vtk import * Points = vtk.vtkPoints() Points.InsertNextPoint(1.0, 0.0, 0.0) Points.InsertNextPoint(0.0, 0.0, 0.0) Points.InsertNextPoint(0.0, 1.0, 0.0) polydata = vtk.vtkPolyData() polydata.SetPoints(Points) if vtk.VTK_MAJOR_VERSION <= 5: polydata.Update() writer = vtk.vtkXMLPolyDataWriter(); writer.SetFileName("TrianglePoints.vtp"); if vtk.VTK_MAJOR_VERSION <= 5: writer.SetInput(polydata) else: writer...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/TriangleCornerVertices (content was: "==TriangleCornerVertices.py== <source lang="python"> import vtk from vtk import * Points = vtk.vtkPoints() Vertices = vtk.vtkCellArray() id = Points.InsertNextPoint(1.0, 0.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) id = Points.InsertNextPoint(0.0, 0.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) id = Points.InsertNextPoint(0.0, 1.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) polydata = vtk.vtkPolyData() polydata.SetPoin...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/TriangleColoredPoints (content was: "==TriangleColoredPoints.py== <source lang="python"> import vtk from vtk import * #setup points and vertices Points = vtk.vtkPoints() Vertices = vtk.vtkCellArray() id = Points.InsertNextPoint(1.0, 0.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) id = Points.InsertNextPoint(0.0, 0.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) id = Points.InsertNextPoint(0.0, 1.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) #setup colors Color...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/SumVTKImages (content was: "==SumVTKImages.py== <source lang="python"> #!/usr/bin/env python import vtk # ImageSets = List of Image sets # Weights = List of wieghts e.g [1, 1, 1] def SumVTKImages(ImageSets, Weights): NumOfImages = len(ImageSets) SumFilter = vtk.vtkImageWeightedSum() for x in range(0, NumOfImages, 1): SumFilter.AddInputConnection(ImageSets[x]) SumFilter.SetWeight(x, Weights[x]) SumFilter.Update() # Return summed Image as vtkImageData re...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/SolidColoredTriangle (content was: "==SolidColoredTriangle.py== <source lang="python"> import vtk from vtk import * #setup points and vertices Points = vtk.vtkPoints() Triangles = vtk.vtkCellArray() Points.InsertNextPoint(1.0, 0.0, 0.0) Points.InsertNextPoint(0.0, 0.0, 0.0) Points.InsertNextPoint(0.0, 1.0, 0.0) Triangle = vtk.vtkTriangle(); Triangle.GetPointIds().SetId(0, 0); Triangle.GetPointIds().SetId(1, 1); Triangle.GetPointIds().SetId(2, 2); Triangles.InsertNextCell(Triangle); #setup colors (setting...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Screenshot (content was: "==Screenshot.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkSphereSource() source.SetCenter(0,0,0) source.SetRadius(5.0) # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInput(source.GetOutput()) # actor actor = vtk.vtkActor() a...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/STLWriter (content was: "==STLWriter.py== <source lang="python"> #!/usr/bin/env python import vtk filename = "test.stl" sphereSource = vtk.vtkSphereSource() sphereSource.Update() # Write the stl file to disk stlWriter = vtk.vtkSTLWriter() stlWriter.SetFileName(filename) stlWriter.SetInputConnection(sphereSource.GetOutputPort()) stlWriter.Write() # Read and display for verification reader = vtk.vtkSTLReader() reader.SetFileName(filename) mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSIO...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/STLReader (content was: "This code snippet reads an STL file and creates a PolyData output ==STLReader.py== <source lang="python"> #!/usr/bin/env python import vtk filename = "myfile.stl" reader = vtk.vtkSTLReader() reader.SetFileName(filename) mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(reader.GetOutput()) else: mapper.SetInputConnection(reader.GetOutputPort()) actor = vtk.vtkActor() actor.SetMapper(mapper) # Create a rendering window and renderer r...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/RotationAroundLine (content was: "NOTE: this example shows both the original and the rotated object using different colors. Not exactly equivalent to the C++ example with the same name. Image:Rotationaroundline.png ==RotationAroundLine.py== <source lang="python"> import vtk # create two cones, rotate one of them. # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) WIDTH=640 HEIGHT=480 renWin.SetSize(WIDTH,HEIGHT) # create a renderwi...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/RectilinearGrid/vtkRectilinearGrid (content was: "File:VTK_Examples_Python_RectilinearGrid_RectilinearGrid.png Shows how to create a vtkRectilinearGrid. ==RectilinearGrid.py== <source lang="python"> import vtk x = [ -1.22396, -1.17188, -1.11979, -1.06771, -1.01562, -0.963542, -0.911458, -0.859375, -0.807292, -0.755208, -0.703125, -0.651042, -0.598958, -0.546875, -0.494792, -0.442708, -0.390625, -0.338542,...", and the only contributor was "Onlyjus" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/vtkImplicitPolyDataDistance (content was: "File:VTK_Examples_Python_Interaction_vtkImplicitPolyDataDistance.png Shows how to use vtkImplicitPolyDataDistance. ==HighlightPickedActor.py== <source lang="python"> import vtk import numpy as np sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(0.0, 0.0, 0.0) sphereSource.SetRadius(1.0) sphereSource.Update() sphereMapper = vtk.vtkPolyDataMapper() sphereMapper...", and the only contributor was "Onlyjus" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/WarpVector.py (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestWarpVector.png</div> ==Description== This script creates a vtkLine and deflects it using a vtkWarpVector. There is also a C++ version of this example: http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/WarpVector ==WarpVector.py== <source lang="python"> #!/usr/bin/env python #----------------------------------...", and the only contributor was "Steve9" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/SubdivisionFilters (content was: "File:VTK_Examples_Python_PolyData_SubdivisionFilters.png Create a terrain with regularly spaced points. The triangles are created manually. Then different types of smoothing filters are used to smooth the terrain. Left : initial terrain, middle : vtkLoopSubdivisionFilter, right : vtkButterflySubdivisionFilter *Contributed by Michka Popoff, with the help of Bill Lorensen...", and the only contributor was "IMichka" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/RuledSurfaceFilter (content was: "==ruledSurface.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) #Create the points fot the lines. points = vtk.vtkPoints() points.InsertPoint(0, 0, 0, 1)...", and the only contributor was "Linnemann" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/PolyDataToImageDataStencil (content was: "* Contributed by: Peter Gruber == Brief Description == This is an example from the vtkPolyDataToImageStencil tests. It converts the the polydata to imagedata and masks the given imagedata. Image:PolyDataToImageDataStencil.PNG ==PolyDataToImageDataStencil.py== <source lang="Python"> import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRo...", and the only contributor was "DerPavlov" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/PolyDataContourToImageData (content was: "* Contributed by: Lars Friedrich, Peter Gruber == Brief Description == This example generates a sphere, cuts it with a plane and, therefore, generates a circlular contour (vtkPolyData). Subsequently a binary image representation (vtkImageData) is extracted from it. Internally vtkPolyDataToImageStencil and vtkLinearExtrusionFilter are utilized. Both the circular poly da...", and the only contributor was "DerPavlov" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/ExtractSelectionCells (content was: "<div class="floatcenter">600px</div> ==ExtractSelectionCells.py== <source lang="python"> """ converted from: - http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelectionCells """ import vtk def main(): sphereSource = vtk.vtkSphereSource() sphereSource.Update() print("There are %s input...", and the only contributor was "Steve9" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/ExtractSelection (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestExtractSelection.png</div> This example creates 50 random points and extracts 10 of them (the points with ids 10-19). ==ExtractSelection.py== <source lang="python"> """ converted from: - http://www.vtk.org/Wiki/VTK/Examples/Python/PolyData/ExtractSelectionCells """ import vtk def main(): pointSource = vtk...", and the only contributor was "Steve9" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/BooleanOperationPolyDataFilter (content was: "Computes the intersection of two spheres NOTE: This example requires version 5.9.20111206 or higher. <div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestBooleanOperationPolyDataFilter.png</div> ==BooleanOperationPolyDataFilter.py== <source lang="Python"> #!/usr/bin/env python import vtk sphereSource1 = vtk.vtkSphereSource() sphereSource1.SetCenter(0....", and the only contributor was "DerPavlov" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Plotting/SpiderPlot (content was: "Translated from the c plus plus test File:SpiderPlot.jpg ==SpiderPlot.py== <source lang="python"> #!/usr/bin/env python import vtk import random numTuples = 12 bitter = vtk.vtkFloatArray() bitter.SetNumberOfTuples(numTuples) crispy = vtk.vtkFloatArray() crispy.SetNumberOfTuples(numTuples) crunchy = vtk.vtkFloatArray() crunchy.SetNumberOfTuples(numTuples) salty = vtk.vtkFloatArray() salty.SetNumberOfTuples(numTuples) oily = vtk.vtkFloatArray() oily.SetNumberOfTuples...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Plotting/ScatterPlot (content was: "File:VTK_Examples_Python_Plotting_ScatterPlot.png ==ScatterPlot.py== <source lang="python"> #!/usr/bin/env python from __future__ import division import vtk import math view = vtk.vtkContextView() view.GetRenderer().SetBackground(1.0, 1.0, 1.0) view.GetRenderWindow().SetSize(400, 300) chart = vtk.vtkChartXY() view.GetScene().AddItem(chart) chart.SetShowLegend(True) table = vtk.vtkTable() arrX = vtk.vtkFloatArray() arrX.SetName('X Axis') arrC = vtk.vtkFloatArray() arr...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PLYWriter (content was: "==PLYWriter.py== <source lang="python"> import vtk filename = "writeply.ply" sphereSource = vtk.vtkSphereSource() sphereSource.Update() plyWriter = vtk.vtkPLYWriter() plyWriter.SetFileName(filename) plyWriter.SetInputConnection(sphereSource.GetOutputPort()) plyWriter.Write() #Read and display for verication reader = vtk.vtkPLYReader() reader.SetFileName(filename) reader.Update() mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(reader.GetOutputPort()) actor = vt...")
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/IO/ReadImageData (content was: "==ReadImageData.tcl== <source lang="tcl"> package require vtk if { $argc != 1 } { puts "The command requires 1 argument: InputFileName" puts "Please try again." exit } set inputFile [lindex $argv 0] # Read the iamge data from a VTI file vtkXMLImageDataReader reader reader SetFileName $inputFile reader Update # Check for number of points set imagedata [reader GetOutput] set numPoints [$imagedata GetNumberOfPoints] if { $numPoints == 0 } { puts "Input Image has zero...")
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/IO/ReadDICOM (content was: "==ReadDICOM.tcl== <source lang="tcl"> package require vtk if { $argc != 2 } { puts "The command requires 2 arguments." puts "Please try again." exit } set folder [lindex $argv 0] set outputFile [lindex $argv 1] # Read all the DICOM files in the specified directory. vtkDICOMImageReader reader reader SetDirectoryName $folder reader Update set imagedata [reader GetOutput] vtkXMLImageDataWriter writer writer SetInput [reader GetOutput] writer SetFileName $outputFile writ...")
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/GeometricObjects/Tetra (content was: "==Tetra.tcl== <source lang="tcl"> package require vtk vtkUnstructuredGridWriter writer #Generate a synthetic Tetrahedron vtkPoints points points SetDataTypeToDouble points InsertNextPoint 0 -1 -1 points InsertNextPoint -1 -1 1 points InsertNextPoint 1 1 1 points InsertNextPoint 0 1 0 vtkTetra tetra [tetra GetPointIds] SetId 0 0 [tetra GetPointIds] SetId 1 1 [tetra GetPointIds] SetId 2 2 [tetra GetPointIds] SetId 3 3 set cellType [tetra GetCellType] vtkUnstructuredGrid tet...")
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/GeometricObjects/Sphere (content was: "==Sphere.tcl== <source lang="tcl"> package require vtk vtkXMLPolyDataWriter writer #Generate a synthetic sphere vtkSphereSource sphere sphere SetThetaResolution 12 sphere SetPhiResolution 12 sphere SetRadius 5.0 sphere Update #Write polydata file writer SetInput [sphere GetOutput] set filename "sphere.vtp" writer SetFileName $filename writer Update </source>")
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/GeometricObjects/Plane (content was: "==Plane.tcl== <source lang="tcl"> package require vtk vtkXMLPolyDataWriter writer #Generate a synthetic plane vtkPlaneSource plane plane SetCenter 1.0 0.0 0.0 plane SetNormal 1.0 0.0 0.0 set data [ plane GetOutput ] # Write the polydata file writer SetInput $data writer SetFileName "plane.vtp" writer Write </source>", and the only contributor was "JBallesteros" (talk))
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/GeometricObjects/Cube (content was: "==Cube.tcl== <source lang="tcl"> package require vtk vtkUnstructuredGridWriter writer #Generate a synthetic cube vtkCubeSource cube cube SetCenter 0.0 0.0 0.0 cube SetXLength 0.5 cube SetYLength 0.5 cube SetZLength 0.5 cube Update vtkDelaunay3D cubeMesh cubeMesh SetInput [ cube GetOutput ] cubeMesh Update #Write unstructured grid file writer SetInput [ cubeMesh GetOutput ] set filename "cube.vtu" writer SetFileName $filename writer Update </source>")
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/Cylinder (content was: "This example demonstrate a minimal visualization created with VTK. See also C++, Java and Python ==Cylinder.tcl== <source lang="tcl"> # # This simple example shows how to do basic rendering and pipeline # creation. # # We start off by loading some Tcl modules...", and the only contributor was "DaveDemarle" (talk))
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkWithNumpy (content was: "==vtkWithNumpy.py== <source lang="python"> # An example from scipy cookbook demonstrating the use of numpy arrys in vtk import vtk from numpy import * # We begin by creating the data we want to render. # For this tutorial, we create a 3D-image containing three overlaping cubes. # This data can of course easily be replaced by data from a medical CT-scan or anything else three dimensional. # The only limit is that the data must be reduced to unsigned 8 bit or 16 bit integers....")
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkVersion (content was: "==vtkVersion.py== <source lang="python"> from __future__ import print_function import vtk print(vtk.vtkVersion.GetVTKSourceVersion()) </source>")
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkUnstructuredGridReader (content was: "The following example demonstrates how to read an unstructured grid defined at a (legacy) *.vtk file and how to render it with VTK. An example input file is uGridEx.vtk (folder Data at [http://vtk.org/gitweb?p=VTKData.git;a=tree VTKData]) ==UnstructuredGridReader.py== <source lang="python"> #!/usr/bin/env python # -*- coding: utf-8 -*- # # by Panos Mavrogiorgos, email: pmav99...", and the only contributor was "Pmav99" (talk))
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkTextSource (content was: "==TextSource.py== <source lang="python"> from vtk import* #Create a sphere textSource = vtkTextSource(); textSource.SetText("Hello"); textSource.SetForegroundColor(1.0, 0.0, 0.0); textSource.BackingOn(); textSource.Update(); #Create a mapper and actor mapper = vtkPolyDataMapper(); mapper.SetInputConnection(textSource.GetOutputPort()); actor = vtkActor(); actor.SetMapper(mapper);...", and the only contributor was "Jothy" (talk))
- 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkImplicitDataSet (content was: "==ImplicitDataSet.py== <source lang="python"> # Example in which a cube is used to define an implicit function (through vtkImplicitDataSet) # which is then used to clip a sphere import vtk sphere = vtk.vtkSphereSource() sphere.SetCenter(1, 1, 1) sphere.SetRadius(1) sphere.Update() cube = vtk.vtkCubeSource() cube.SetBounds(-1,1,-1,1,-1,1) cube.Update() # Create 3D cells so vtkImplicitDataSet evaluates inside vs outside correctly tri = vtk.vtkDelaunay3D() tri.SetInput(cube.G...")