Package rope.mesh

Class R_Bloc

All Implemented Interfaces:
R_Constants, R_Constants_Colour

public class R_Bloc extends R_Graphic
  • Constructor Details

    • R_Bloc

      public R_Bloc(processing.core.PApplet pa, int width, int height)
    • R_Bloc

      public R_Bloc(processing.core.PApplet pa)
  • Method Details

    • set_id

      public void set_id(int id)
    • set_magnetism

      public void set_magnetism(int magnetism)
    • set_colour_build

      public void set_colour_build(int colour_build)
    • fill

      public void fill(int fill)
      Description copied from class: R_Graphic
      This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it
      Overrides:
      fill in class R_Graphic
      Parameters:
      fill - in value for the stroke color
    • stroke

      public void stroke(int stroke)
      Description copied from class: R_Graphic
      This Processing clone method, add check if any PGraphics is active, and if it's a case work on it
      Overrides:
      stroke in class R_Graphic
      Parameters:
      stroke - in value for the stroke color
    • thickness

      public void thickness(float thickness)
      Description copied from class: R_Graphic
      This method is like strokeWeight of Processing
      Overrides:
      thickness in class R_Graphic
      Parameters:
      thickness - float value for the strokeWeight
    • set_name

      public void set_name(String name)
    • get

      public vec3[] get()
    • get_fill

      public int get_fill()
    • get_stroke

      public int get_stroke()
    • get_thickness

      public float get_thickness()
    • get_name

      public String get_name()
    • get_id

      public int get_id()
    • get_coord

      public vec2 get_coord()
    • get_magnetism

      public int get_magnetism()
    • get_data

      public String get_data()
    • in_bloc

      public boolean in_bloc(float x, float y)
    • end_is

      public boolean end_is()
    • select_point_is

      public boolean select_point_is()
    • select_is

      public boolean select_is()
    • update

      public void update(float x, float y)
      Parameters:
      x -
      y - update all coord from the x, y. nothing happen if don't do that !!!
    • build

      public void build(float x, float y, boolean event_is)
      If the coord is not to close of an other, this point is added
      Parameters:
      x -
      y -
      event_is - if it's true, the bloc is build again.
      See Also:
    • build

      public void build(float x, float y, boolean event_is, boolean security_is)
      If the coord is not to close of an other, this point is added
      Parameters:
      x -
      y -
      event_is - if it's true, the bloc is build again.
      security_is - if it's true the point can be added
      See Also:
    • move

      public void move(float x, float y, boolean event_is)
      move
    • move_point

      public void move_point(float x, float y, boolean event_is)
    • reset_all_points

      public void reset_all_points()
      select
    • select_all_points

      public void select_all_points()
    • select_point

      public void select_point(float x, float y)
    • select

      public void select(float x, float y)
      Parameters:
      x - float coord
      y - float coord x, y coord is use to set the selection to true if the both are in the bloc.
    • select_is

      public void select_is(boolean is)
    • select_point_is

      public void select_point_is(boolean is)
    • clear

      public void clear()
      Description copied from class: R_Graphic
      clone Processing function() clear
      Overrides:
      clear in class R_Graphic
    • show_available_point

      public boolean show_available_point(float x, float y)
    • show_available_point

      public boolean show_available_point(float x, float y, processing.core.PGraphics other)
    • show_anchor_point

      public void show_anchor_point()
    • show_anchor_point

      public void show_anchor_point(processing.core.PGraphics other)
    • show_struc

      public void show_struc()
    • show_struc

      public void show_struc(processing.core.PGraphics other)
    • show

      public void show()
    • show

      public void show(processing.core.PGraphics other)