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 50 | older 50) (20 | 50 | 100 | 250 | 500)- 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...")