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)- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/TransformFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestTransformFilter.png</div> This example stretches an arrow. ==TransformFilter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkArrowSource.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkTransform.h> #include <vtkTransformFilter.h> int main(int, char *[...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/TransformOrderDemo (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestTransformOrderDemo.png</div> This example creates an image. In the left viewport, it translates the image, then translates and rotates the image. In the right viewport, it rotates the image, then rotates and translates the image. One can see that the result is clearly not the same! ==TransformOrderDemo.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkTransform.h> #include <vtkAxesActor.h> #i...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/TransformPipeline (content was: "This example demonstrate how to connect a transformation for keeping coordinate one actor relative to another. I used a robotic arm because it's good example used originally by James D. Foley in book: Computer Graphics: Principles and Practice in C. Someone who read this book may want to know how to make it in VTK. <div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestTransformPipeline.png</div> ==TransformPipeline.cxx== <source lang="cpp"> //This example describ...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/TriangleArea (content was: "==TriangleArea.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCellArray.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkTriangle.h> int main(int, char *[]) { //setup points (geometry) vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); 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 );...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/TriangleColoredPoints (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestTriangleColoredPoints.png</div> This example shows how by adding a color to each vertex of a triangle, the triangle's color will be smoothly varying between the colors of the vertices. ==TriangleColoredPoints.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkXMLPolyDataWriter.h> #include <vtkPolyData.h> #include <vtkPointData.h> #include <vtkCell...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/TriangleSolidColor (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestTriangleSolidColor.png</div> ==TriangleSolidColor.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkXMLPolyDataWriter.h> #include <vtkPolyData.h> #include <vtkCellData.h> #include <vtkCellArray.h> #include <vtkTriangle.h> #include <vtkUnsignedCharArray.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <v...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/TubeFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestTube.png</div> This example creates a tube around a line. This is helpful because when you zoom the camera, the thickness of a line remains constant, while the thickness of a tube varies. ==TubeFilter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkLine.h> #include <vtkCellArray.h> #include <vtkTubeFilter.h> #include <vtkLineSource.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h>...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/VertexConnectivity (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestVertexConnectivity.png</div> The input must be only edges (i.e. vtkExtractEdges must be run). ==VertexConnectivity.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkIdList.h> #include <vtkPolyData.h> #include <vtkCellData.h> #include <vtkDoubleArray.h> #include <vtkDataSet.h> #include <vtkSphereSource.h> #include <vtkTriangleFilter.h> #include <vtkExtractEdges.h> #incl...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/WarpScalar (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestWarpScalar.png</div> ==WarpScalar.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkDoubleArray.h> #include <vtkPointData.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkWarpScalar.h> #include <vtkMath.h> int main(int, char *[]...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/WarpSurface (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestWarpSurface.png</div> The image was produced using [https://raw.githubusercontent.com/lorensen/VTKWikiExamples/master/Testing/Data/cowHead.vtp this data] and a scale of .1. ==WarpSurface.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkVersion.h> #include <vtkWarpVector.h> #include <vtk...", and the only contributor was "Lorensen" (talk))
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/WarpVector (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/WarpVector WarpVector] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/WeightedTransformFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestWeightedTransformFilter.png</div> ==WeightedTransformFilter.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSphereSource.h> #include <vtkTransformFilter.h> #include <vtkProperty.h> #include <vtkCamera.h> #include <vtkFloatArray.h> #include <vtkPointData.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #inclu...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/BorderWidgetQt (content was: "==BorderWidgetQtDriver.cxx== <source lang="cpp"> #include <QApplication> #include "BorderWidgetQt.h" int main(int argc, char* argv[]) { QApplication app( argc, argv ); BorderWidgetQt borderWidgetQt; borderWidgetQt.show(); return app.exec(); } </source> ==BorderWidgetQt.cxx== <source lang="cpp"> #include "BorderWidgetQt.h" #include <vtkBorderWidget.h> #include <vtkCommand.h> #include <vtkPolyDataMapper.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #includ...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/EventQtSlotConnect (content was: "==EventQtSlotConnectDriver.cxx== <source lang="cpp"> #include <QApplication> #include "EventQtSlotConnect.h" int main(int argc, char** argv) { QApplication app(argc, argv); EventQtSlotConnect eventQtSlotConnect; eventQtSlotConnect.show(); return app.exec(); } </source> ==EventQtSlotConnect.h== <source lang="cpp"> #ifndef EventQtSlotConnect_H #define EventQtSlotConnect_H #include "ui_EventQtSlotConnect.h" #include <QMainWindow> #include <vtkSmartPointer.h> class...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/ImageDataToQImage (content was: "This example shows how a {{class|vtkImageData}} can be converted into a [//doc.qt.io/qt-5/qimage.html QImage]. See also the QImageToImageSource example. ==ImageDataToQImage.cxx== <source lang="cpp" highlight="40-68"> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <QImage> #include <QColor> #include <QApplication> // Create a green 50x50 imageData for demonstration purposes vtkSmartPointer<...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/QImageToImageSource (content was: "This example demonstrates the use of {{class|vtkQImageToImageSource}}. See also the ImageDataToQImage example. ==QImageToImageSource.cxx== <source lang="cpp"> #include <QApplication> #include <QPixmap> #include "vtkSmartPointer.h" #include "vtkQImageToImageSource.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); QPixmap pixmap(10,10); QColor color(10,20,30); pixmap.fill(color); vtkSmartPointer<vtkQI...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/QtBarChart (content was: "==QtBarChart.cxx== <source lang="cpp"> #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> #include <vtkVersion.h> #define VTK_CREATE(type, name) \ vtkSmartPointer<type> name = vtkSmartPointer<type>::New() // Monthly circulation data static int data_2008[] =...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/RenderWindowNoUiFile (content was: "==Description== This is a very basic example that shows how to create a Qt window. Typically, one would want to design a form in the QtDesigner (this is shown in RenderWindowUi) File:Qt-RenderWindowNoUiFile.png ==RenderWindowNoUiFile.cxx== <source lang="cpp"> #include <QApplication> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <QVTKWidget.h>...")
- 03:18, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance (content was: "==Description== Using a QVTKWidget with the Qt Multiple Inheritance model. In contrast to the single inheritance example the main widget is here derived from QMainWindow as well as the class defining the form (Ui::RenderWindowUIMultipleInheritance). File:Qt-RenderWindowUISingleInheritance.png ==RenderWindowUIMultipleInheritanceDriver.cxx== <source lang="cpp"> #include <QApplication> #include "RenderWindowUIMultipleInheritance.h" int main(int argc, char** argv) { QAppl...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance (content was: "==Description== Using a QVTKWidget with the Qt Single Inheritance model File:Qt-RenderWindowUISingleInheritance.png ==RenderWindowUISingleInheritanceDriver.cxx== <source lang="cpp"> #include <QApplication> #include "RenderWindowUISingleInheritance.h" int main( int argc, char** argv ) { // QT Stuff QApplication app( argc, argv ); RenderWindowUISingleInheritance renderWindowUISingleInheritance; renderWindowUISingleInheritance.show(); return app.exec(); } </...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/ShareCameraQt (content was: "==ShareCameraQtDriver.cxx== <source lang="cpp"> #include <QApplication> #include "ShareCameraQt.h" int main( int argc, char** argv ) { // QT Stuff QApplication app( argc, argv ); ShareCameraQt shareCameraQt; shareCameraQt.show(); return app.exec(); } </source> ==ShareCameraQt.h== <source lang="cpp"> #ifndef ShareCameraQt_H #define ShareCameraQt_H #include <QMainWindow> #include "ui_ShareCameraQt.h" class ShareCameraQt : public QMainWindow, public Ui::ShareCa...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/ShowEvent (content was: "==Description== Small example (not doing anything actually) to show the use of the overwritten QWidget::showEvent() function to initialize the VTK widget when it is actually used, not directly in the constructor. File:ShowEvent.png ==ShowEventDriver.cxx== <source lang="cpp"> #include <QApplication> #include "ShowEvent.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); ShowEvent showEvent; showEvent.show(); return app.exec(); } </source> ==Sho...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt (content was: "==Description== Although this example includes ui_SideBySideRenderWindowsQt.h, this file is not distributed, it is created by Qt at compile time. File:Qt-SideBySideRenderWindowsQt.png ==SideBySideRenderWindowsQtDriver.cxx== <source lang="cpp"> #include <QApplication> #include "SideBySideRenderWindowsQt.h" int main( int argc, char** argv ) { // QT Stuff QApplication app( argc, argv ); SideBySideRenderWindowsQt sideBySideRenderWindowsQt; sideBySideRenderWindows...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/RectilinearGrid/RectilinearGrid (content was: "<div class="floatright">File:VTK_Examples_Baseline_RectilinearGrid_TestRectilinearGrid.png</div> Category:VTK/Examples/RectilinearGrid ==RectilinearGrid.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkRectilinearGrid.h> #include <vtkMath.h> #include <vtkDoubleArray.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main(int, c...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/RectilinearGrid/RectilinearGridToTetrahedra (content was: "Category:VTK/Examples/RectilinearGrid ==RectilinearGridToTetrahedra.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkXMLUnstructuredGridWriter.h> #include <vtkRectilinearGrid.h> #include <vtkRectilinearGridToTetrahedra.h> #include <vtkUnstructuredGrid.h> #include <vtkMath.h> #include <vtkDoubleArray.h> int main(int, char *[]) { // Create a grid vtkSmartPointer<vtkRectilinearGrid> grid = vtkSmartPointer<vtkRectilinearGrid...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/RectilinearGrid/VisualizeRectilinearGrid (content was: "<div class="floatright">File:VTK_Examples_Baseline_RectilinearGrid_TestVisualizeRectilinearGrid.png</div> Category:VTK/Examples/RectilinearGrid ==VisualizeRectilinearGrid.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkRectilinearGrid.h> #include <vtkMath.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkShrinkFilter....")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Remote/FrenetSerretFrame (content was: "<div class="floatright">File:VTK_Examples_Baseline_Remote_TestFrenetSerretFrame.png</div> This example requires the remote module ''SplineDrivenImageSampler.'' Check to see if the file ''SplineDrivenImageSlicer.remote.cmake'' exists in VTK/Remote. If it does not, copy [https://gitlab.kitware.com/vtk/vtk/raw/master/Remote/SplineDrivenImageSlicer.remote.cmake this file] t...", and the only contributor was "Lorensen" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Remote/FrenetSerretFrameDemo (content was: "<div class="floatright">File:VTK_Examples_Baseline_Remote_TestFrenetSerretFrameDemo.png</div> This example requires the remote module ''SplineDrivenImageSampler.'' Check to see if the file ''SplineDrivenImageSlicer.remote.cmake'' exists in VTK/Remote. If it does not, copy [https://gitlab.kitware.com/vtk/vtk/raw/master/Remote/SplineDrivenImageSlicer.remote.cmake this fil...", and the only contributor was "Lorensen" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/RenderMan/PolyDataRIB (content was: "<div class="floatcenter">256px</div> <div class="floatcenter">256px</div> To see the RenderMan results for this example, download and install the [http://renderman.pixar.com/view/non-commercial-renderman non-commercial version of RenderMan]. ==PolyDataRIB.cxx== <source lang="cpp"> #include <vtkXMLPol...", and the only contributor was "Lorensen" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Rendering/AmbientSpheres (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Rendering/AmbientSpheres AmbientSpheres] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =", and the only contributor was "Lorensen" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Rendering/CylinderRenderingProperties (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Rendering_CylinderRenderProperties.png</div> ==CylinderRenderingProperties.cxx== <source lang="cpp"> #include "vtkCylinderSource.h" #include "vtkPolyDataMapper.h" #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkProperty.h" #include "vtkCame...", and the only contributor was "Lorensen" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Rendering/DiffuseSpheres (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Lighting_TestDiffuseSpheres.png</div> ==DiffuseSpheres.cxx== <source lang="cpp"> #include "vtkSmartPointer.h" #include "vtkSphereSource.h" #include "vtkPolyDataMapper.h" #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkProperty.h" #include "...", and the only contributor was "Lorensen" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Rendering/SpecularSpheres (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Rendering_SpecularSpheres.png</div> ==SpecularSpheres.cxx== <source lang="cpp"> #include "vtkSmartPointer.h" #include "vtkSphereSource.h" #include "vtkPolyDataMapper.h" #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkProperty.h" #include "v...", and the only contributor was "Lorensen" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/DistanceBetweenPoints (content was: "This example finds the squared distance and the Euclidean distance between two 3D points. ==DistanceBetweenPoints.cxx== <source lang="cpp"> #include <vtkMath.h> int main(int, char *[]) { // Create two points. double p0[3] = {0.0, 0.0, 0.0}; double p1[3] = {1.0, 1.0, 1.0}; // Find the squared distance between the points. double squaredDistance = vtkMath::Distance2BetweenPoints(p0, p1); // Take the square root to get the Euclidean distance between the points....")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/DistancePointToLine (content was: "This example computes the distance from a point to a line. ==DistancePointToLine.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkLine.h> #include <vtkPoints.h> int main(int, char *[]) { double lineP0[3] = {0.0, 0.0, 0.0}; double lineP1[3] = {2.0, 0.0, 0.0}; double p0[3] = {1.0, 0, 0}; double p1[3] = {1.0, 2.0, 0}; /* vtkSmartPoi...", and the only contributor was "Daviddoria" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/DistancePointToLine/CMakeLists.txt (content was: "cmake_minimum_required(VERSION 2.6) PROJECT(DistancePointToLine) FIND_PACKAGE(VTK REQUIRED) INCLUDE(${VTK_USE_FILE}) ADD_EXECUTABLE(DistancePointToLine DistancePointToLine.cxx) TARGET_LINK_LIBRARIES(DistancePointToLine vtkHybrid)", and the only contributor was "Daviddoria" (talk))
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/DistancePointToLine/DistancePointToLine.cxx (content was: "#include <vtkSmartPointer.h> #include <vtkLine.h> #include <vtkPoints.h> int main(int, char *[]) { double lineP0[3] = {0.0, 0.0, 0.0}; double lineP1[3] = {2.0, 0.0, 0.0}; double p0[3] = {1.0, 0, 0}; double p1[3] = {1.0, 2.0, 0}; vtkSmartPointer<vtkLine> line = vtkSmartPointer<vtkLine>::New(); line->GetPoints()->SetPoint(0, lineP0); line->GetPoints()->SetPoint(0, lineP1);: { double dist0 = vtkLine::DistanceToLine(p0, lineP0, lineP1); s...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/FloatingPointExceptions (content was: "This example makes the illegal division by zero produce an error: Error: Floating point exception detected. Signal 8 rather than simply store "inf" in y. ==FloatingPointExceptions.cxx== <source lang="cpp"> #include <vtkFloatingPointExceptions.h> // Avoid the "potential divide by 0" warning from the Microsoft // compiler, since this example intentionally divides by 0 #ifdef _MSC_VER #pragma warning (disable: 4723) #endif int main(int, char *[]) { // Disabled by default wit...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/GaussianRandomNumber (content was: "This example generates 3 random numbers from a Gaussian distribution with mean 0.0 and standard deviation 2.0. ==GaussianRandomNumber.cxx== <source lang="cpp"> #include <vtkMath.h> #include <time.h> int main(int, char *[]) { //The number of random numbers we wish to produce unsigned int numRand = 3; //without this line, the random numbers will be the same every iteration vtkMath::RandomSeed(time(NULL)); //Generate numRand random numbers from a Gaussian dis...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/PerspectiveTransform (content was: "The perspective transform automatically appends the "homogeneous 1" to the point before it is multiplied by the matrix. It then divides the first 3 coordinates of the result by the 4th coordinate of the result. For comparison, the standard projection (vtkTransform) is also performed with the same matrix and the same point. Note that the results are much different. ==PerspectiveTransform.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPerspectiveTransform.h>...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/ProjectPointPlane (content was: "This example projects a point onto a plane. To use this example, you must have the CVSHEAD version of VTK (as of 2/2/2010). ==ProjectPointPlane.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPlane.h> int main(int, char *[]) { vtkSmartPointer<vtkPlane> plane = vtkSmartPointer<vtkPlane>::New(); plane->SetOrigin(0.0, 0.0, 0.0); plane->SetNormal(0.0, 0.0, 1.0); double p[3] = {23.1, 54.6, 9.2}; double origin[3] = {0.0, 0.0, 0.0}; double n...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/RandomSequence (content was: "This is the "new" (December, 2009) VTK way to produce random numbers. It is actually a random sequence generator. ==RandomSequence.cxx== <source lang="cpp"> #include <vtkMinimalStandardRandomSequence.h> #include <vtkSmartPointer.h> int main(int, char *[]) { //Create a random sequence generator. vtkSmartPointer<vtkMinimalStandardRandomSequence> sequence = vtkSmartPointer<vtkMinimalStandardRandomSequence>::New(); // initialize the sequence sequence->SetSeed(1);...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/SimpleOperations/UniformRandomNumber (content was: "This example generates 3 random numbers between 0 and 2 from a uniform distribution. ==UniformRandomNumber.cxx== <source lang="cpp"> #include <vtkMath.h> #include <time.h> int main(int, char *[]) { // Set the number of random numbers we wish to produce to 3. unsigned int numRand = 3; // Without this line, the random numbers will be the same every iteration. vtkMath::RandomSeed(time(NULL)); // Generate numRand random numbers from a uniform distribution between...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/StructuredData/GetLinearPointId (content was: "==GetLinearPointId.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkStructuredData.h> #include <vtkStructuredGrid.h> int main(int, char *[]) { // Create a grid vtkSmartPointer<vtkStructuredGrid> structuredGrid = vtkSmartPointer<vtkStructuredGrid>::New(); // Set the dimensions of the grid { int dims[3] = {5,10,1}; structuredGrid->SetDimensions(dims); } // Retrieve the dimensions of the grid int dimensions[3]; structuredGrid->GetD...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/StructuredGrid/BlankPoint (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_StructuredGrid_TestBlankPointOK.png</div> ==BlankPoint.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkIdList.h> #include <vtkProperty.h> #include <vtkStructuredGrid.h> #include <vtkXMLStructuredGridWriter.h> #include <vtkMath.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #inclu...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/StructuredGrid/StructuredGrid (content was: "<div class="floatright">File:VTK_Examples_Baseline_StructuredGrid_TestStructuredGrid.png</div> This example reads and writes points into a structured grid. Required version: You must have the CVS HEAD of VTK as of 2/17/10. ==StructuredGrid.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkStructuredGrid.h> #include <vtkXMLStructuredGridWriter.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #incl...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/StructuredGrid/StructuredGridOutline (content was: "<div class="floatright">File:VTK_Examples_Baseline_StructuredGrid_TestStructuredGridOutline.png</div> Visualize the outline of a structured grid. ==StructuredGridOutline.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkStructuredGrid.h> #include <vtkXMLStructuredGridWriter.h> #include <vtkMath.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInte...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/StructuredGrid/VisualizeStructuredGrid (content was: "<div class="floatright">File:VTK_Examples_Baseline_StructuredGrid_TestVisualizeStructuredGrid.png</div> Visualize the points of a structured grid. ==VisualizeStructuredGrid.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkStructuredGrid.h> #include <vtkXMLStructuredGridWriter.h> #include <vtkMath.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/StructuredGrid/VisualizeStructuredGridCells (content was: "<div class="floatright">File:VTK_Examples_Baseline_StructuredGrid_TestVisualizeCells.png</div> ==VisualizeStructuredGridCells.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkDataSetMapper.h> #include <vtkMath.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkShrinkFilter.h> #include <vtkStructuredGrid.h> #include <vtkUnstructuredGrid.h> int main(in...")
- 03:17, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/StructuredPoints/StructuredPointsToUnstructuredGrid (content was: "==StructuredPointsToUnstructuredGrid.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkStructuredPoints.h> #include <vtkXMLUnstructuredGridWriter.h> #include <vtkUnstructuredGrid.h> int main(int argc, char *argv[]) { // Create a structuredpoints vtkSmartPointer<vtkStructuredPoints> structuredPoints = vtkSmartPointer<vtkStructuredPoints>::New(); // Specify the size of the image data structuredPoints->SetDimensions(2,3,1); structuredPoints->Se...")