Package vtk

Examples of vtk.vtkPanel$WindowSetObserver


        return renWin.GetRenderer();
    }

    public VTKTubePanel() {
        setLayout(new BorderLayout());
        renWin = new vtkPanel();
        add(renWin, BorderLayout.CENTER);
        // set the minimum size to ensure the screen will resize
        renWin.setMinimumSize(new Dimension(100, 100));
        //addAxis();
    }
View Full Code Here


  public static void main(String[] args) {
    // Build the VTK 3D view
    // (Should be done before using any vtk
    //  object or load the native
    //  library first)
    vtkPanel panel3D = new vtkPanel();
    // Build a simple VTK pipeline
    vtkConeSource coneSource = new vtkConeSource();
    coneSource.SetRadius(2);
    coneSource.SetAngle(15);
    coneSource.SetHeight(2);
    coneSource.SetResolution(10);
    vtkPolyDataMapper coneMapper = new vtkPolyDataMapper();
    coneMapper.SetInput(coneSource.GetOutput());
    vtkActor coneActor = new vtkActor();
    coneActor.SetMapper(coneMapper);
    // Add actor in 3D Panel
    panel3D.GetRenderer().AddActor(coneActor);
    // Build Java Frame and include the VTK view
    JFrame frame = new JFrame("Artenum Demo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().setLayout(new BorderLayout());
    frame.getContentPane().add(panel3D, BorderLayout.CENTER);
View Full Code Here

TOP

Related Classes of vtk.vtkPanel$WindowSetObserver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.