VTK/Examples/Java
From KitwarePublic
Click here for a tutorial on setting up your Java environment.
It would be appreciated if there are any Python VTK experts who could convert any of the c++ examples to Java!
Contents |
Input and Output
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| Read a polydata(.vtp) file | vtkXMLPolyDataReader | IO |
| Write a polygonal data (.vtp) file | vtkXMLPolyDataWriter | IO |
User Events
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| Handle keypress events | vtkRenderWindowInteractor | instance method ToggleStyle is added as a charevent observer callback |
Implicit Functions and Iso-surfaces
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| An implicit representation of a sphere | vtkSphere vtkAppendPolyData vtkTubeFilter | ImplicitFunctions, Append poly data, tube filter, sphere |
Data Structures
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| Visualize levels of the tree | vtkKdTreePointLocator |
Image Processing
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| vtkImageReader2Factory | vtkImageReader2Factory | use Java File Dialog to select Image File to Display |
Miscellaneous
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| vtkCutter | vtkCutter | |
| Screenshot | vtkWindowToImageFilter | |
| vtkBoxWidget | vtkBoxWidget | The missing Step 6 Java example from Examples/Tutorial |
Visualization
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| Animation | vtkTimerCallback | Move a sphere across a scene |
| Draw text that stays right side up | vtkFollower | |
| animDataCone | vtkRenderWindowInteractor | Animate a cone by modifying the polydata points - uses Interaction M key (Motion) to toggle animation. |
| Color an Actor | vtkActor::GetProperty::SetColor |
Interaction
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| Interact with the actors in a scene | vtkInteractorStyleTrackballActor vtkInteractorStyleTrackballCamera | The ToggleStyle and Addobserver to the RenderWindowInteractor iren allow toggling between TrackballActor and TrackBallCamera using the 'C' keyboard action |
| Switch Interactors in a panel | vtkInteractorStyleSwitch vtkCanvas | Switch style interaction adds C and A key actions for selecting Camera or Actor interaction, and T and J key actions for Trackball or Joystick interaction mode. Adds charEvent observer callback to restore the missing E and Q events to quit. |
Graphs
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| Select Graph Vertices | vtkAnnotationLink | Select Edges and vertices in a graph |
Swing Integration
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| Rendering in a JFrame | vtkRenderWindowPanel | Render a scene in a JFrame using a vtkRenderWindowPanel |
| Handle mouse events using a mouse listener | vtkRenderWindowPanel | Display in a JLabel the point the mouse is hovering over using a mouse listener |
Wish List
| Example Name | VTK Classes Demonstrated | Description |
|---|---|---|
| Handle mouse events | User Events |