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).

Logs
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
  • 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...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkCutter (content was: "This example demonstrates how to use vtkCutter by cutting through a cube. * Contributed by Jothy ==vtkCutter.py== <source lang="python"> #!/usr/bin/env python # A simple script to demonstrate the vtkCutter function import vtk #Create a cube cube=vtk.vtkCubeSource() cube.SetXLength(40) cube.SetYLength(30) cube.SetZLength(20) cubeMapper=vtk.vtkPolyDataMapper() cubeMapper.SetInputConnection(cube.GetOutputPort()) #create a plane to cut,here it cuts in the XZ direction (xz norm...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/WriteTriangleToFile.py (content was: "==WriteTriangleToFile.py== <source lang="python"> import vtk from vtk import * Points = vtk.vtkPoints() Triangles = vtk.vtkCellArray() Triangle = vtk.vtkTriangle(); id = Points.InsertNextPoint(1.0, 0.0, 0.0) id = Points.InsertNextPoint(0.0, 0.0, 0.0) id = Points.InsertNextPoint(0.0, 1.0, 0.0) Triangle.GetPointIds().SetId(0, 0); Triangle.GetPointIds().SetId(1, 1); Triangle.GetPointIds().SetId(2, 2); Triangles.InsertNextCell(Triangle); polydata = vtk.vtkPolyData() polydata.S...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/WriteReadVtkImageData (content was: "==Brief Description== Generate image data, edit data points, store and reload it. ==ReadWriteVtkImageData.py== <source lang="python"> import vtk filename = "writeImageData.vti" imageData = vtk.vtkImageData() imageData.SetDimensions(3, 4, 5) if vtk.VTK_MAJOR_VERSION <= 5: imageData.SetNumberOfScalarComponents(1) imageData.SetScalarTypeToDouble() else: imageData.AllocateScalars(vtk.VTK_DOUBLE, 1) dims = imageData.GetDimensions() # Fill every entry of the image da...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/WindowTitle (content was: "This example demonstrates how to change the title of a render window. * Contributed by Bryan P. Conrad ==WindowTitle.py== <source lang="python"> import vtk def main(): #Create a sphere sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(0.0, 0.0, 0.0) sphereSource.SetRadius(5) #Create a mapper and actor mapper = vtk.vtkPolyDataMapper()...", and the only contributor was "Daviddoria" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/TextWidget (content was: "File:VTK Examples Python Widgets TextWidget.png A simple example of annotating a VTK image with movable and resizable text. ==TextWidget.py== <source lang="python"> #!/usr/bin/env python # -*- coding: utf-8 -*- # # by Panos Mavrogiorgos, email : pmav99 >a< gmail import vtk source = vtk.vtkSphereSource() output = source.GetOutput() mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(output) else: mapper.SetInputData(output) actor...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/SphereWidget (content was: "File:VTK Examples Python Widgets SphereWidget.png This example shows how to use the SphereWidget. ==SphereWidget.py== <source lang="python"> import vtk # Call back function def sphereCallback(obj, event): print('Center: {}, {}, {}'.format(*obj.GetCenter())) # A renderer and render window renderer = vtk.vtkRenderer() renderer.SetBackground(1, 1, 1) renwin = vtk.vtkR...", and the only contributor was "Onlyjus" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/ScalarBarWidget (content was: "File:VTK_Examples_Python_Widgets_ScalarBarWidget.png Display a movable and resizable scalar bar. An example input file is uGridEx.vtk (folder Data at [http://vtk.org/gitweb?p=VTKData.git;a=tree VTKData]) ==ScalarBarWidget.py== <source lang="python"> #!/usr/bin/env python # -*- coding: utf-8 -*- # # by Panos Mavrogiorgos, email : pmav99 >a< gmail import vtk # The source file file_name = "uGridEx.vtk" # Create a custom lut. The lut is used both at the mapper and at t...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/OrientationMarkerWidget (content was: "File:VTK_Examples_Python_Widgets_OrientationMarkerWidget.png Draws two cubes. One of them can be clicked to be rotated, and will rotate the second one. The second one has annotations on it, and can also be moved. ==vtkAnnotedCubeWithvtkOrientationWidget.py== <source lang="python"> # Contributed by Eric E Monson import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinte...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/EmbedPyQt2 (content was: "Another example on how to embed VTK in PyQT, with a QVTKRenderWindowInteractor ==EmbedInPyQt2.py== <source lang="python"> #!/usr/bin/env python # Contributed by Eric E Monson from PyQt4 import QtCore, QtGui from PyQt4.QtGui import QApplication import vtk from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor import sys class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(6...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/EmbedPyQt (content was: "'''Minimal working example of vtk embedding in PyQt.''' *Contributed by Michka Popoff, inspired by the example from Eric E Monson *See notes at the end for more details. ==EmbedInPyQt.py== <source lang="python"> #!/usr/bin/env python import sys import vtk from PyQt4 import QtCore, QtGui from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor class MainWindow(QtGui.QMainWindow): def __init__(self, parent = None): QtGui.QMainWindow.__init__(s...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/ContourWidget (content was: "File:VTK_Examples_Python_Widgets_ContourWidget.png Click on the white dots to select them and to deform the red line. * Contributed by Jim McCusker ==ContourWidget.py== <source lang="python"> #!/usr/bin/python import vtk import random import sys import math # Create the RenderWindow, Renderer and both Actors renderer = vtk.vtkRenderer() renderWindow = vtk.vtkRenderWindow() renderWindow.AddRenderer(renderer) interactor = vtk.vtkRenderWindowInteractor() interactor.Se...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/CompassWidget (content was: "File:VTK_Examples_Python_Widgets_CompassWidget.png Draws an interactive compass. * Contributed by Jothy ==Build Requirements== VTK_USE_GEOVIS:BOOL=ON (For VTK < VTK 5.4). ==CompassWidget.py== <source lang="python"> #!/usr/bin/env python import vtk # sphere sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(0.0, 0.0, 0.0) sphereSource.SetRadius(4.0) mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(sphereSource.GetOutput())...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/BoxWidget (content was: "File:VTK_Examples_Python_Widgets_BoxWidget.png An example that shows how to use the BoxWidget to interactively scale and rotate and object. ==BoxWidget.py== <source lang="python"> import vtk # Call back function to resize the cone def boxCallback(obj, event): t = vtk.vtkTransform() obj.GetTransform(t) obj.GetProp3D().SetUserTransform( t ) # Create a Cone...", and the only contributor was "Onlyjus" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Widgets/BalloonWidget (content was: "File:VTK_Examples_Python_Widgets_BalloonWidget-1.png File:VTK_Examples_Python_Widgets_BalloonWidget-2.png‎ ==BalloonWidget.py== <source lang="python"> #!/usr/bin/env python import vtk # Sphere sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(-4.0, 0.0, 0.0) sphereSource.SetRadius(4.0) sphereMapper = vtk.vtkPolyDataMapper() sphereMapper.SetInputConnection(sphereSource.GetOutputPort()) sphereActor = vtk.vtkActor() sphereActor.SetMapper(sphereMapper)...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Web/vtk-js (content was: "File:WarpScalar.jpgFile:HttpSceneLoader.jpg [http://kitware.github.io/vtk-js/ vtk.js] is an ES6 JavaScript class library which can be integrated into any web application. The toolkit leverages WebGL and supports a wide variety of visualization algorithms including scalar, vector, tensor, texture, and volumetric methods. The [http://kitware.github.io/vtk-...", and the only contributor was "Aron.helser" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Web/RemoteRenderer (content was: "VTK can be used as a remote renderer for a web page. Each user connecting to a web page starts a VTK process on the server, which renders into a VTK window, captures the result, and pushes the images to the client web page. This example server is taken from the ParaViewWeb [https://kitware.github.io/paraviewweb/examples/RemoteRenderer.html RemoteRender example]....", and the only contributor was "Aron.helser" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/VTKNamedColorPatches html (content was: "==Colors available in vtkNamedColors== <p>The class vtkNamedColors provides color names and their values for the convenience of the user.</p> <p>The following tables show the available colors along with their red, green and blue values.</p> ==Web color Names== These colors correspond to those in [http://en.wikipedia.org/wiki/Web_colors Web Colors]. <table style="font-size...", and the only contributor was "Amaclean" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/Streamlines (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestStreamLines.png</div> *Translated to python from the .cxx examples ==Streamlines.py== <source lang="python"> #!/usr/bin/env python # import os # os.chdir("VTKData/Data") import vtk pl3d = vtk.vtkMultiBlockPLOT3DReader() xyx_file = "combxyz.bin" q_file = "combq.bin" pl3d.SetXYZFileName(xyx_fil...", and the only contributor was "Diego0020" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/SphereTexture (content was: "File:VTK_Examples_Python_Visualization_SphereTexture.png This example shows how to apply an vtkImageData texture to an sphere vtkPolyData object. There is a sample data file [http://public.kitware.com/cgi-bin/viewcvs.cgi/Data/masonry-wide.jpg?root=VTKData&view=log here] ==SphereTexture.py== <source lang="python"> #!/usr/bin/env python ## # This example shows how to apply an vtkImageData texture to an sphere # vtkPolyData object. # Note: Input jpg file can be located in...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/QuadraticSurface (content was: "* Converted from c++ by Jim McCusker ==QuadraticSurface.py== <source lang="python"> #!/usr/bin/python from vtk import * def Sphere(): # create the quadric function definition quadric = vtkQuadric() quadric.SetCoefficients(1,1,1,0,0,0,0,0,0,0) # F(x,y,z) = a0*x^2 + a1*y^2 + a2*z^2 + a3*x*y + a4*y*z + a5*x*z + a6*x + a7*y + a8*z + a9 # F(x,y,...", and the only contributor was "Daviddoria" (talk))
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)