Tabnine Logo
Animator.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
com.jogamp.opengl.util.Animator

Best Java code snippets using com.jogamp.opengl.util.Animator.add (Showing top 13 results out of 315)

origin: org.jogamp.jogl/jogl

/**
 * Creates a new Animator for a particular drawable.
 */
public Animator(final GLAutoDrawable drawable) {
  super();
  add(drawable);
  if(DEBUG) {
    System.err.println("Animator created, w/ "+drawable);
  }
}
origin: org.jogamp.jogl/jogl-all-noawt

/**
 * Creates a new Animator for a particular drawable.
 */
public Animator(final GLAutoDrawable drawable) {
  super();
  add(drawable);
  if(DEBUG) {
    System.err.println("Animator created, w/ "+drawable);
  }
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

/**
 * Creates a new Animator for a particular drawable.
 */
public Animator(final GLAutoDrawable drawable) {
  super();
  add(drawable);
  if(DEBUG) {
    System.err.println("Animator created, w/ "+drawable);
  }
}
origin: org.jogamp.jogl/jogl-all-noawt

/**
 * Creates a new Animator w/ an associated ThreadGroup for a particular drawable.
 */
public Animator(final ThreadGroup tg, final GLAutoDrawable drawable) {
  super();
  setThreadGroup(tg);
  add(drawable);
  if(DEBUG) {
    System.err.println("Animator created, ThreadGroup: "+threadGroup+" and "+drawable);
  }
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

/**
 * Creates a new Animator w/ an associated ThreadGroup for a particular drawable.
 */
public Animator(final ThreadGroup tg, final GLAutoDrawable drawable) {
  super();
  setThreadGroup(tg);
  add(drawable);
  if(DEBUG) {
    System.err.println("Animator created, ThreadGroup: "+threadGroup2+" and "+drawable);
  }
}
origin: org.jogamp.jogl/jogl

/**
 * Creates a new Animator w/ an associated ThreadGroup for a particular drawable.
 */
public Animator(final ThreadGroup tg, final GLAutoDrawable drawable) {
  super();
  setThreadGroup(tg);
  add(drawable);
  if(DEBUG) {
    System.err.println("Animator created, ThreadGroup: "+threadGroup+" and "+drawable);
  }
}
origin: matsim-org/matsim

public OTFHostControl(OTFServer aServer, Component aCanvas) {
  server = aServer;
  canvas = aCanvas;
  Collection<Double> steps = getTimeStepsdrawer();
  if (steps != null) {
    // Movie mode with timesteps
    Double[] dsteps = steps.toArray(new Double[steps.size()]);
    int min = dsteps[0].intValue();
    int max = dsteps[dsteps.length-1].intValue();
    simTime = new DefaultBoundedRangeModel(min, 0 /* extent */, min, max);
  } else {
    // Live mode without timesteps
    simTime = new DefaultBoundedRangeModel(0 /* value */, 0 /* extent */, 0 /* value */, Integer.MAX_VALUE /* max */);
  }
  simTime.addChangeListener(new ChangeListener() {
    @Override
    public void stateChanged(ChangeEvent e) {
      canvas.repaint();
    }
  });
  animator = new Animator();
  animator.add(((GLAutoDrawable) canvas));
  ((GLAutoDrawable) canvas).addGLEventListener(this);
  simTime.setValue(server.getLocalTime());
}
origin: com.io7m.jcamera/com.io7m.jcamera.examples.jogl

CameraLabWindow()
{
 final Container content = this.getContentPane();
 this.setJMenuBar(menu(this));
 final ExecutorService background_workers =
  NullCheck.notNull(Executors.newFixedThreadPool(1));
 final GLProfile profile = GLProfile.get(GLProfile.GL3);
 final GLCapabilities caps = new GLCapabilities(profile);
 final GLWindow window = GLWindow.create(caps);
 window.setSize(512, 512);
 final NewtCanvasAWT canvas = new NewtCanvasAWT(window);
 canvas.requestFocus();
 final JPanel canvas_panel = new JPanel();
 canvas_panel.add(canvas);
 final ExampleRenderer renderer = new ExampleRenderer();
 final Panel controls =
  new Panel(background_workers, renderer, canvas_panel, window);
 final FlowLayout layout = new FlowLayout(FlowLayout.LEADING, 8, 8);
 layout.setAlignOnBaseline(true);
 content.setLayout(layout);
 content.add(canvas_panel);
 content.add(controls);
 final Animator anim = new Animator();
 anim.add(window);
 anim.start();
}
origin: openimaj/openimaj

/**
 *    @param width
 *    @param height
 */
public Visualisation3D( final int width, final int height )
{
  this.window = new JOGLWindow( width, height );
  if( this.window.getDrawableSurface() == null )
    throw new RuntimeException( "Unable to get OpenGL surface." );
  this.window.getDrawableSurface().addGLEventListener( this );
  this.animator = new Animator( this.window.getDrawableSurface() );
  this.animator.add( this.window.getDrawableSurface() );
  this.animator.start();
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

glAnimator.setModeBits(false, AnimatorBase.MODE_EXPECT_AWT_RENDERING_THREAD); // No AWT thread involved!
glAnimator.setThreadGroup(tg);
glAnimator.add(glWindow);
glAnimator.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, null);
origin: com.io7m.jcamera/com.io7m.jcamera.examples.jogl

anim.add(window);
origin: com.io7m.jcamera/com.io7m.jcamera.examples.jogl

anim.add(window);
origin: org.jogamp.jogl/jogl-all-noawt

glAnimator.setModeBits(false, AnimatorBase.MODE_EXPECT_AWT_RENDERING_THREAD); // No AWT thread involved!
glAnimator.setThreadGroup(tg);
glAnimator.add(glWindow);
glAnimator.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, null);
com.jogamp.opengl.utilAnimatoradd

Popular methods of Animator

  • <init>
    Creates a new Animator for a particular drawable.
  • start
  • stop
  • isStarted
  • display
  • finishLifecycleAction
  • flushGLRunnables
  • getThreadName
  • handleUncaughtException
  • isAnimating
  • isPaused
  • setDrawablesExclCtxState
  • isPaused,
  • setDrawablesExclCtxState,
  • setThreadGroup,
  • remove,
  • setModeBits,
  • setRunAsFastAsPossible,
  • setUpdateFPSFrames

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now