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)
  • 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...")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)