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: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")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/Vector (content was: "==Vector.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkVector.h> #include <iostream> int main(int, char *[]) { vtkVector3d v(1.0, 2.0, 3.0); std::cout << v.GetX() << " " << v.GetY() << " " << v.GetZ() << std::endl; double* vals = v.GetData(); std::cout << vals[0] << " " << vals[1] << " " << vals[2] << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}} Category:VTKNoVizRequired")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/VectorArrayKnownLength (content was: "This example creates a VTK style float array of vectors. This can be easily interchanged with vtkIntArray, vtkDoubleArray, etc. ==VectorArrayKnownLength.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkFloatArray.h> int main(int, char *[]) { vtkSmartPointer<vtkFloatArray> distances = vtkSmartPointer<vtkFloatArray>::New(); distances->SetName("Distances"); distances->SetNumberOfComponents(3); distances->SetNumberOfTuples(5); //set values for(...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/VectorArrayUnknownLength (content was: "This example creates a VTK style float array of vectors. This can be easily interchanged with vtkIntArray, vtkDoubleArray, etc. The only difference between this example and the KnownLengthArrayOfVectors example is that <code>SetNumberOfValues()</code> is not called, and <code>SetTuple()</code> is replaced by <code>InsertNextTuple()</code>. ==VectorArrayUnknownLength.cxx== <source lang="cpp"> #include <vtkSmartPointer.h...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Utilities/WindowModifiedEvent (content was: "<div class="floatright">File:VTK_Examples_Baseline_Utilities_TestWindowModified.png</div> This example limits the horizontal window size to 400. ==WindowModifiedEvent.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 <vtkCallbackCommand.h> void WindowModifiedCal...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/LabelPlacementMapper (content was: "This example demonstrates how to add labels from an array to points. Each point is given a priority that determines which labels are visible when space is limited. <div class="floatcenter">File:VTK_Examples_Baseline_Visualization_TestLabelPlacementMapper.png</div> ==LabelPlacementMapper.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkActor2D.h> #include <vtkIntArray.h> #include <vtkLabelPlacementMapper.h> #include <vtkPointData.h> #include <vtkPointSetToLabelHi...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/LabelMesh (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Visualization_TestLabeledMesh.png</div> This example was translated into C++ from its TCL counterpart by Jake Nickel from the University of Iowa. It demonstrates the use of vtkLabeledDataMapper. This class is used for displaying numerical data from an underlying data set. In the case of this example, the underlying data are the point and cell ids. ==LabeledMesh.cxx== <source lang="cpp"> #include "vtkSmartPointer.h" #incl...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/LabelContours (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestLabelContours.png</div> This example labels isolines created by vtkContourFilter. After the isolines are generated, the resulting disconnected lines segments are gathered into polylines by vtkStripper. Then an appropriate position along each line is chosen to place the label for the contour. Two strategies for label placement are illustrated: a point at the midpoint of the line or a random point. vtkLabele...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/LODProp3D (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestLODProp3D.png</div> If you have a fast graphics card, you may not see a difference. ==LODProp3D.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkLODProp3D.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkCallbackCommand.h> #include <vtkProperty...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/KochSnowflake (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Visualization_TestKochSnowflake.png</div> ==Description== This demo uses recursion to represent a Koch snowflake fractal. For more information about this fractal, there are many resources on the web: http://en.wikipedia.org/wiki/Koch_snowflake, http://mathworld.wolfram.com/KochSnowflake.html. There is also a Python version of this demo: http://www.vtk.org/Wiki/VTK/Examples/Python/DataManipulation/KochSnowflake.py ==KochS...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/ImageOrientation (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Visualization_TestImageOrientation.png</div> ==ImageOrientation.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImagePermute.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageEllipsoidSource.h> #include <vtkImageCast.h> i...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/ImageMapper (content was: "This example demonstrates how to display an image in 2D. The size and position are in screen coordinates. <div class="floatcenter">File:VTK_Examples_Baseline_Visualization_TestImageMapper.png</div> ==ImageMapper.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> #in...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/HideAllActors (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestHideActors.png</div> Display two spheres, then hide everything and turn the screen red. ==HideAllActors.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkInteractorStyleTrackballCamera.h> #i...")
- 03:26, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Visualization/HideActor (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestHideActor.png</div> Display two spheres, then hide one, then hide both. ==HideActor.cxx== <source lang="cpp"> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkPropCollection.h> #include <vtkInteractorStyleTrackballC...")