()
| 34 | // ----------------------------------------------------------------- |
| 35 | |
| 36 | public VTKCanvas() { |
| 37 | setLayout(new BorderLayout()); |
| 38 | // Create the buttons. |
| 39 | vtkCanvas renWin = new vtkCanvas(); |
| 40 | add(renWin, BorderLayout.CENTER); |
| 41 | vtkConeSource cone = new vtkConeSource(); |
| 42 | cone.SetResolution(8); |
| 43 | vtkPolyDataMapper coneMapper = new vtkPolyDataMapper(); |
| 44 | coneMapper.SetInputConnection(cone.GetOutputPort()); |
| 45 | |
| 46 | vtkActor coneActor = new vtkActor(); |
| 47 | coneActor.SetMapper(coneMapper); |
| 48 | |
| 49 | renWin.GetRenderer().AddActor(coneActor); |
| 50 | AxesActor aa = new AxesActor(renWin.GetRenderer()); |
| 51 | renWin.GetRenderer().AddActor(aa); |
| 52 | } |
| 53 | |
| 54 | public static void main(String s[]) { |
| 55 | VTKCanvas panel = new VTKCanvas(); |
nothing calls this directly
no test coverage detected