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:31, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/VisualizeVTP (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestVisualizeVTP.png</div> This example shows how to load a vtp file and render it in an interactive window. The example accepts a .vtp file on the command line. ==VisualizeVTP.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkPolyDataMapper.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkXMLPolyDataReader.h>...")
  • 03:28, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/ImageOrder (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Visualization_TestImageOrder.png</div> ==ImageOrder.cxx== <source lang="cpp" highlight="45-51"> #include <vtkVersion.h> #include <vtkImageActor.h> #include <vtkImageData.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> static void CreateWhiteImage(vtkSmartPointer<vtkImageData> image); static void CreateRedImage...")
  • 03:28, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/ImageTransparency (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestImageTransparency.png</div> :''See also: [[../../Images/Transparency]] and [[../../Images/ImageStencil]]'' ==ImageTransparency.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkLookupTable.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageMapToColors.h> #include <vtkJPEGReader.h> #include <vtkPointData.h> #include <vtkRenderWindow.h> #i...")
  • 03:28, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/IsosurfaceSampling (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestIsosurfaceSampling.png</div> This example illustrates how to create an isosurface and create point data on that isosurface that is sampled from another dataset. This example creates an isosurface of a sphere and then uses the vtkProbeFilter to compute point data from a sampled cylinder. '''Note''', tha...", and the only contributor was "Lorensen" (talk))
  • 03:28, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/VersionMacros (content was: "==VersionMacros.cxx== <source lang="cpp"> #include <vtkPolyData.h> #include <vtkVersion.h> // NOTE: without this include, the VTK_[]_VERSION are not defined! // These functions allow you to output the version defines at compile time #define STR(x) STR2(x) #define STR2(x) #x int main(int, char *[]) { #if VTK_MAJOR_VERSION>5 || (VTK_MAJOR_VERSION==5 && VTK_MINOR_VERSION>4) #pragma message(STR(VTK_MAJOR_VERSION)) #endif return EXIT_SUCCESS; } </source> {{VTKCMakeLis...")
  • 03:28, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/ShareCamera (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Utilities_TestShareCamera.png</div> ==ShareCamera.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkProperty.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main(int, char *[]) { vtkSmartPointer<vtkRenderWindow> renderWindow = vtkSmartPoint...")
  • 03:28, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/ShallowCopy (content was: "==ShallowCopy.cxx== <source lang="cpp"> #include <vtkPolyData.h> #include <vtkSmartPointer.h> int main(int, char *[]) { vtkSmartPointer<vtkPolyData> polydata = vtkSmartPointer<vtkPolyData>::New(); vtkSmartPointer<vtkPolyData> polydataCopy = vtkSmartPointer<vtkPolyData>::New(); polydataCopy->ShallowCopy(polydata); return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}}")
  • 03:28, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/PointInPolygon (content was: "==PointInPolygon.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkPolygon.h> int main(int, char *[]) { // Create the polygon vtkSmartPointer<vtkPolygon> polygon = vtkSmartPointer<vtkPolygon>::New(); polygon->GetPoints()->InsertNextPoint(0.0, 0.0, 0.0); polygon->GetPoints()->InsertNextPoint(1.0, 0.0, 0.0); polygon->GetPoints()->InsertNextPoint(1.0, 1.0, 0.0); polygon->GetPoints()->InsertNextPoint(0.0, 1.0, 0.0); doubl...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/PCADemo (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestPCADemo.png</div> ==PCADemo.cxx== <source lang="cpp"> #include <vtkVersion.h> #include "vtkSmartPointer.h" #include "vtkLine.h" #include "vtkLineSource.h" #include "vtkTransform.h" #include "vtkVertexGlyphFilter.h" #include "vtkMath.h" #include "vtkDoubleArray.h" #include "vtkMultiBlockDataSet.h" #include "vtkPCAStatistics.h" #include "vtkStringArray.h" #include "vtkTable.h" #include "vtkTransformPolyDataFilte...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/ObserveError (content was: "When vtk encounters an error or warning, by default the message is written to standard output. This example shows how to catch the error or warning. The example prints to standard output, but an application may wish to present the error or warning in a different manner, e.g. write to a log file or present the message in a window. ==ObserveError.cxx== <source lang="cpp"> #in...", and the only contributor was "Lorensen" (talk))
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/LUTUtilities (content was: "==Description== A class called LUTUtilities is demonstrated along with a test harness that shows you how to use the class. This class allows you to: * Print the contents of the lookup table * Compare two lookup tables to see if they are the same. The test harness is a function called: TestLookupTables that tests pairs of lookup tables against each other. The program will not display any output if all tests are successful. ==LUTUtilities.cxx== <source lang="cpp"> #include <v...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/GetDataRoot (content was: "==GetDataRoot.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkTesting.h> int main(int, char *[]) { // Locate VTK_DATA_ROOT vtkSmartPointer<vtkTesting> testHelper = vtkSmartPointer<vtkTesting>::New(); std::string dataRoot = testHelper->GetDataRoot(); std::cout << "dataRoot: " << dataRoot << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}}")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/FullScreen (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Utilities_TestFullScreen.png</div> ==FullScreen.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main(int, char *[]) { // Create a sphere vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSp...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/ExtractArrayComponent (content was: "==ExtractArrayComponent.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkArrayCalculator.h> #include <vtkDoubleArray.h> #include <vtkPointData.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> int main(int, char *[]) { vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->InsertNextPoint(1.0, 0.0, 0.0); points->...", and the only contributor was "Daviddoria" (talk))
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/DeepCopy (content was: "==DeepCopy.cxx== <source lang="cpp"> #include <vtkPolyData.h> #include <vtkSmartPointer.h> int main(int, char *[]) { vtkSmartPointer<vtkPolyData> polydata = vtkSmartPointer<vtkPolyData>::New(); vtkSmartPointer<vtkPolyData> polydataCopy = vtkSmartPointer<vtkPolyData>::New(); polydataCopy->DeepCopy(polydata); return 0; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}}")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/CameraModifiedEvent (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestCameraModified.png</div> ==CameraModifiedEvent.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> #incl...", and the only contributor was "Lorensen" (talk))
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/CMakeVTKVersionCheck (content was: "==CMakeVTKVersionCheck.cxx== <source lang="cpp"> #include <vtkPolyData.h> int main(int, char *[]) { return EXIT_SUCCESS; } </source> ==CMakeLists.txt== <source lang="cmake"> # This works: # if(${VTK_MAJOR_VERSION} LESS 5 OR ${VTK_MINOR_VERSION} LESS 8) # message("Your VTK version is too old!") # else() # message("Valid VTK version.") # endif() # But this is...", and the only contributor was "Daviddoria" (talk))
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/Box (content was: "==Box.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkBox.h> int main(int, char *[]) { // Define a box double bounds[6] = {-1,1,-1,1,-1,1}; // Define a ray double rayOrigin[3] = {-5.0, 0, 0}; double rayDirection[3] = {1.0, 0, 0}; double intersection[3]; double t; char hit = vtkBox::IntersectBox(bounds, rayOrigin, rayDirection, intersection, t); if(!hit) { std::cout << "Not hit!" << std::endl; } else { // Intersect...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/BrownianPoints (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestBrownianPoints.png</div> ==BrownianPoints.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkArrowSource.h> #include <vtkBrownianPoints.h> #include <vtkCamera.h> #include <vtkGlyph3D.h> #include <vtkMath.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRend...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/CardinalSpline (content was: "This example takes two points that have associated scalar values and allows you to interpolate the value at any point on the line between them using cardinal spline interpolation. ==CardinalSpline.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCardinalSpline.h> #include <vtkFloatArray.h> int main(int, char *[]) { // Create a scalar array. The array could be associated with the scalars of a vtkDataSet vtkSmartPointer<vtkFloatArray> distances =...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/CheckVTKVersion (content was: "This example demonstrates how to check the VTK version with vtkVersion. ==CheckVTKVersion.cxx== <source lang="cpp"> #include <vtkVersion.h> int main(int, char *[]) { std::cout << vtkVersion::GetVTKSourceVersion() << std::endl; std::cout << vtkVersion::GetVTKMajorVersion() << std::endl; std::cout << vtkVersion::GetVTKMinorVersion() << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}} Category:VTKNoVizRequired")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/ColorLookupTable (content was: "This example shows how to create a table of colors that map from a continuous range of values. ==ColorLookupTable.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkLookupTable.h> int main(int, char *[]) { vtkSmartPointer<vtkLookupTable> lookupTable = vtkSmartPointer<vtkLookupTable>::New(); lookupTable->SetTableRange(0.0, 10.0); // If you don't want to use the whole color range, you can use // SetValueRange, SetHueRange, and SetSaturationRange...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/ColorTransferFunction (content was: "This example demonstrates how to map the values (0.0 to 10.0) to the colors (red to green). ==ColorTransferFunction.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkColorTransferFunction.h> int main(int, char *[]) { vtkSmartPointer<vtkColorTransferFunction> colorTransferFunction = vtkSmartPointer<vtkColorTransferFunction>::New(); colorTransferFunction->AddRGBPoint(0.0, 1, 0, 0); colorTransferFunction->AddRGBPoint(10.0, 0, 1, 0); double co...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/CommandSubclass (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestCommandSubclass.png</div> ==CommandSubclass.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkObjectFactory.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkCommand.h> class CommandSubclass2 : public vtkCommand { public: vtkTypeMacro(CommandSubcl...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/ConstructTable (content was: "This example creates a 3x3 table. The columns MUST be added first - if you attempt to call AddRow type functions, they will not do anything (or produce errors) because the table still has 0 columns until you tell it otherwise. This example adds 3 empty columns to the table, then goes back and fills them in. Warning: the table does not copy the data, so if you add the SAME column to the table each time, i.e. <source lang="cpp"> vtkSmartPointer<vtkVariantArray> col = vtkSmartPo...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/Coordinate (content was: "There are many possible coordinate conversions. This example demonstrates NormalizedDisplay->Display. ==Coordinate.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCoordinate.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> int main(int, char *[]) { vtkSmartPointer<vtkRenderWindow> rendererWindow = vtkSmartPointer<vtkRenderWindow>::New(); vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New(); rendererWindow->Add...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/CustomDenseArray (content was: "The only thing you have to do to enable your class to work with vtkDenseArray is add a single line: <source lang="cpp"> operator vtkVariant() const { return vtkVariant(); } </source> ==CustomDenseArray.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkDenseArray.h> struct Point { double x,y; operator vtkVariant() const { return vtkVariant(); } }; int main(int, char *[]) { Point point; point.x = 1.0; point.y = 2.0; std::cout << point.x...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/DataAnimation (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestDataAnimation.png</div> This causes one point of the sphere to be moved outwards at each iteration. ==DataAnimation.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkProgrammableFilter.h> #include <vtkCallbackCommand.h>...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/DataAnimationSubclass (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestDataAnimationSubclass.png</div> ==DataAnimationSubclass.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkObjectFactory.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkProgrammableFilter.h> #include <vtkCommand.h> class CommandSubclass : public vtkCom...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/DenseArrayRange (content was: "==DenseArrayRange.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkDenseArray.h> #include <vtkArrayRange.h> int main(int, char *[]) { vtkSmartPointer<vtkDenseArray<double> > array = vtkSmartPointer<vtkDenseArray<double> >::New(); array->Resize(5,1); for(unsigned int i = 0; i < 5; i++) { array->SetValue(i, 0, 2.0); double val = array->GetValue(i,0); std::cout << "val: " << val << std::endl; } //int extent = array->Ge...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/DetermineActorType (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestDetermineActorType.png</div> ==DetermineActorType.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkActorCollection.h> #include <vtkCubeAxesActor.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkSphereSource.h> int main(int, char *[]) { // Sphere vtkS...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/DiscretizableColorTransferFunction (content was: "==DiscretizableColorTransferFunction.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkDiscretizableColorTransferFunction.h> int main(int, char *[]) { vtkSmartPointer<vtkDiscretizableColorTransferFunction> discretizableColorTransferFunction = vtkSmartPointer<vtkDiscretizableColorTransferFunction>::New(); discretizableColorTransferFunction->DiscretizeOn(); discretizableColorTransferFunction->SetNumberOfValues(10); discretizableColorTransferF...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/FileOutputWindow (content was: "This example shows how to pipe error output to a text file instead of the usual vtk pop-up window. ==FileOutputWindow.cxx== <source lang="cpp"> #include <vtkFileOutputWindow.h> #include <vtkXMLPolyDataReader.h> #include <vtkSmartPointer.h> int main(int, char *[]) { vtkSmartPointer<vtkFileOutputWindow> fileOutputWindow = vtkSmartPointer<vtkFileOutputWindow>::New(); fileOutputWindow->SetFileName( "output.txt" ); // Note that the SetInstance function is a static me...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/FilenameFunctions (content was: "This example gets a list of all files in a directory. It then extracts the file extension and filename from each string. ==FilenameFunctions.cxx== <source lang="cpp" highlight="2,3,18,19,27,34,36,39"> #include <vtkSmartPointer.h> #include <vtkDirectory.h> #include <vtksys/SystemTools.hxx> #include <string> int main(int argc, char *argv[]) { std::string directoryName; if(argc < 2) { directoryName = std::string("."); } else { directoryName = std::string(...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/FrameRate (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestFrameRate.png</div> ==FrameRate.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCallbackCommand.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkMath.h> #include <vtkRenderWindow.h> #include <vtkTimerLog.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> static void CallbackFunction ( vtkObject* caller, long unsigned int even...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/FunctionParser (content was: "This example shows how to substitute values and evaluate a string such as "a+b". ==FunctionParser.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkFunctionParser.h> int main(int, char *[]) { vtkSmartPointer<vtkFunctionParser> functionParser = vtkSmartPointer<vtkFunctionParser>::New(); functionParser->SetFunction("a+b"); functionParser->SetScalarVariableValue( "a", 2); functionParser->SetScalarVariableValue( "b", 3); double result =...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/GetClassName (content was: "This example demonstrates the GetClassName function. This should be available for every VTK class. This is extremely helpful for debugging - you are able to determine the type of a variable that is passed as an abstract type. With this information, the list of functions that can be called on this variable can be determined. The example illustrates alternative ways to get the "name" of a class. Notice that the GetClassName provides a simple and useful solution. ==GetClassName....")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/KnownLengthArray (content was: "This example creates a VTK style float array. This can be easily interchanged with vtkIntArray, vtkDoubleArray, etc. The terminology is as follows: * <code>SetNumberOfComponents()</code>: sets the number of elements that a tuple in the array will have. See KnownLengthArrayOfVectors for an example with tuples with more than one element. * <code>SetNumberOfValues()</code>: sets the number of tuples the array will have. See...")
  • 03:27, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/OffScreenRendering (content was: "This example renders a scene directly to a file without displaying a window. You must turn on VTK_OPENGL_HAS_OSMESA in the VTK advanced build configuration. ==OffScreenRendering.cxx== <source lang="cpp"> #include <vtkVersion.h> #if VTK_MAJOR_VERSION >= 6 int main(int, char *argv[]) { std::cout << argv[0] << " requires VTK 5.10 or earlier. This VTK version is " << vtkVersion::GetVTKVersion() << std::endl; return EXIT_SUCCESS; } #else #include <vtkPolyDataMapper.h> #include...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/PCAStatistics (content was: "Note: You need the git version of VTK from 10/12/2010 or later to use this functionality. ==PCAStatistics.cxx== <source lang="cpp"> #include <vtkVersion.h> #include "vtkSmartPointer.h" #include "vtkDoubleArray.h" #include "vtkMultiBlockDataSet.h" #include "vtkPCAStatistics.h" #include "vtkStringArray.h" #include "vtkTable.h" int main(int, char*[]) { // Each one of these arrays is a single component of // the data. That is, if you have 3D spatial data (x,y,z) // you need...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/PiecewiseFunction (content was: "==PiecewiseFunction.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPiecewiseFunction.h> int main(int, char *[]) { vtkSmartPointer<vtkPiecewiseFunction> piecewiseFunction = vtkSmartPointer<vtkPiecewiseFunction>::New(); piecewiseFunction->AddPoint(0.0, 0.0); piecewiseFunction->AddPoint(1.0, 2.0); double test = piecewiseFunction->GetValue(0.25); std::cout << "test: " << test << " (should be 0.5)" << std::endl; return EXIT_SUCCESS; } <...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/Screenshot (content was: "<div class="floatright">300px|thumb|right|Output file</div> This example shows how to save the window to a file (png in this case). You can combine this with the [[../../Interaction/KeypressEvents|handle keypress events]] example to make a useful functionality. ==Screenshot.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #in...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/ShepardMethod (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestShepardMethod.png</div> This example samples unstructured points onto structured points using the Shepard method. The example starts with two points which have associated scalars (0 (black) and 1(white)). The results are displayed by coloring planes between the two points with the corresponding interpolated values. The values are reflected by black (0) to white (1). ==ShepardMethod.cxx== <source lang="cpp">...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/SortDataArray (content was: "==SortDataArray.cxx== <source lang="cpp"> #include <vtkSortDataArray.h> #include <vtkDoubleArray.h> #include <vtkIntArray.h> #include <vtkSmartPointer.h> int main(int, char *[]) { vtkSmartPointer<vtkDoubleArray> valueArray = vtkSmartPointer<vtkDoubleArray>::New(); valueArray->InsertNextValue(20.0); valueArray->InsertNextValue(10.0); valueArray->InsertNex...", and the only contributor was "Daviddoria" (talk))
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/SparseArray (content was: "==SparseArray.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSparseArray.h> int main(int, char *[]) { vtkSmartPointer<vtkSparseArray<double> > array = vtkSmartPointer<vtkSparseArray<double> >::New(); array->Resize(5,1); array->SetNullValue(-1); for(unsigned int i = 0; i < 5; i++) { array->SetValue(i, 0, i); } for(unsigned int i = 0; i < 6; i++) { double val = array->GetValue(i,0); std::cout << val << std::endl; }...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/TimeStamp (content was: "==TimeStamp.cxx== <source lang="cpp"> #include <vtkTimeStamp.h> int main(int, char *[]) { vtkTimeStamp timeStamp; std::cout << "Time stamp: " << timeStamp << std::endl; timeStamp.Modified(); std::cout << "Time stamp: " << timeStamp << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}} Category:VTKNoVizRequired")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/Timer (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestTimer.png</div> This example demonstrates how to use a timer with an interactor. It outputs a count every specified interval. ==Timer.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCommand.h> #include <vtkRenderer.h> #include <vtkRendererCollection.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> class vtkTimerCallback : public vtkCommand { public: static vtkT...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/TimerLog (content was: "==TimerLog.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkTimerLog.h> int main(int, char *[]) { vtkSmartPointer<vtkTimerLog> timerLog = vtkSmartPointer<vtkTimerLog>::New(); std::cout << "Current time: " << timerLog->GetUniversalTime() << std::endl; timerLog->MarkEvent("opened file"); timerLog->MarkEvent("did other stuff"); std::cout << "Timer log:" << *timerLog << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeList...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/UnknownLengthArray (content was: "The only difference between this example and the KnownLengthArray example is that <code>SetNumberOfValues()</code> is not called, and <code>SetValue()</code> is replaced by <code>InsertNextValue()</code>. ==UnknownLengthArray.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkFloatArray.h> int main(int, char *[]) { vtkSmartPointer<vtkFloatArray> distances = vtkSmartPointer<vtkFloatArray>::New(); distance...")
  • 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/Variant (content was: "==Variant.cxx== <source lang="cpp"> #include <vtkVariant.h> #include <iostream> #include <string> int main(int, char *[]) { double dVal = vtkVariant("2").ToDouble(); std::cout << "dVal: " << dVal << std::endl; std::string strVal = vtkVariant(dVal).ToString(); std::cout << "strVal: " << strVal << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}} Category:VTKNoVizRequired")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)