예제 #1
0
 public void render() {
   if (mouseOver()) {
     p5.fill(230);
   } else {
     p5.fill(200);
   }
   p5.noStroke();
   p5.rect(x, y, w, h);
 }
예제 #2
0
  public void reset() {

    this.y = (p5.timeChooser.y + p5.timeChooser.h - h);

    // reset Cam Position
    p5.cam_eyetargetpos = p5.cam_eye2Dpos.copy();
  }
예제 #3
0
  public CamMover(TagExplorerProcessing2 p5, int x, int y, int chooserH) {
    super(x, y);

    this.p5 = p5;

    h = 36;
    w = h * 2;

    this.x = x;
    this.y =
        y
            - h; // startY    	// + p5.timeline.mapExpCam(p5.cam_eyetargetpos.z - (p5.height / 2.0f)
                 // / p5.tan(PConstants.PI * 30.0f / 180.0f), h) - hFeld;

    minY = this.y - chooserH;
    maxY = this.y;

    // MinTime Feld
    mover = p5.createShape();
    mover.fill(p5.cTagDark);
    mover.noStroke();

    mover.vertex(0 + h, 0);
    mover.vertex(0 + w, 0);
    mover.vertex(0 + w, h);
    mover.vertex(0, h);

    mover.end();
  }
예제 #4
0
  public void render() {
    // FlŠche

    p5.pushMatrix();
    p5.translate(x, y);

    if (mouseOver() && p5.setZTimeAxis) {
      mover.fill(p5.cBorderHover);
    } else {
      mover.fill(p5.cTagDark);
    }
    p5.shape(mover);

    // Icon
    p5.imageMode(PConstants.CORNER);
    p5.image(p5.cameraImg, h, 0, h, h);

    p5.popMatrix();
  }