Skip to content
Snippets Groups Projects
Commit ce32aa45 authored by Andrew Maclean's avatar Andrew Maclean
Browse files

Merge branch 'Fix_Snippets.md' into 'master'

Removed a nonexistent link, fixed layout

See merge request !74
parents cb1e9bfd aa5ff3e1
No related branches found
No related tags found
1 merge request!74Removed a nonexistent link, fixed layout
### Description
Snippets are chunks of code that can be cut (*snipped*) and pasted into examples. We want each example to be stand-alone, so we do not keep the snippet code in a library.
### Available snippets
#### [ExampleTemplate](/Cxx/Snippets/ExampleTemplate}
A standard template for a vtk program that renders vtkPolyData
#### [ReadPolyData](/Cxx/Snippets/ReadPolyData.md)
Uses the appropriate vtkPolyData reader to read any vtkPolyData file.
#### [SaveSceneToFieldData](/Cxx/Snippets/SaveSceneToFieldData)
Stores the current vtkCamera location in a vtkDataSet's vtkFieldData.
#### [RestoreSceneFromFieldData](/Cxx/Snippets/RestoreSceneFromFieldData)
Restores the saved vtkCamera view from a vtkDataSet's vtkFieldData.
#### [SaveSceneToFile](/Cxx/Snippets/SaveSceneToFile)
Stores the current vtkCamera location in a file.
#### [RestoreSceneFromFile](/Cxx/Snippets/RestoreSceneFromFile)
Restores the saved vtkCamera view from a file.
#### [ChooseContrastingColor](/Cxx/Snippets/ChooseContrastingColor)
Given a color, find a contrasting color. If the given color is "light", use the lightColor otherwise use the darkColor
#### [ViewportBorders](/Cxx/Snippets/ViewportBorders)
Draw the borders of a vtkRenderer's viewports.
#### [WriteImage](/Cxx/Snippets/WriteImage)
Take a screen shot and save it to a file.
### Description
Snippets are chunks of code that can be cut (*snipped*) and pasted into examples. We want each example to be stand-alone, so we do not keep the snippet code in a library.
### Available snippets
#### [GetProgramParameters](/Python/Snippets/GetProgramParameters.md)
Get the program parameters.
#### [ReadPolyData](/Python/Snippets/ReadPolyData.md)
Uses the appropriate vtkPolyData reader to read any vtkPolyData file.
#### [WriteImage](/Python/Snippets/WriteImage.md)
Take a screen shot from the render window and write it to a file. The file extension selects the writer to use.
Take a screen shot from the render window and write it to a file. The file extension selects the writer to use.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment