Package org.nlogo.api

Examples of org.nlogo.api.Link.hidden()


      return !riding_agent && !turtle.hidden()
        && (turtle.alpha() > 0.0 || turtle.hasLabel());
    } else if (agent instanceof Link) {
      Link link = (Link) agent;
      return !link.hidden() && (link.alpha() > 0.0 || link.hasLabel());
    } else if (agent instanceof Patch3D) {
      // Patch3D supports the alpha variable, so check Patch3D
      // before checking the regular Patch.

      Patch3D patch = (Patch3D) agent;
View Full Code Here


  // detects which turtle(s) a pick-ray intersects with
  void pickLinks(List<Agent> agents, double[][] ray) {
    // detect any turtles in the pick-ray
    for (Agent a : world.links().agents()) {
      Link link = (Link) a;
      if (!link.hidden()) {
        double[] end1 = getTurtleCoords(link.end1(), 0);
        double[] end2 = getTurtleCoords(link.end2(), 0);

        double dist = Picker.distanceFromRayToSegment(ray, end1, end2);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.