Package rope.image

Class R_Image_Manager

All Implemented Interfaces:
R_Constants, R_Constants_Colour

public class R_Image_Manager extends BigBang
  • Constructor Details

    • R_Image_Manager

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

    • load

      public void load(String... path_img)
    • add

      public void add(R_Image r_img)
    • add

      public void add(processing.core.PImage img_src)
    • add

      public void add(processing.core.PImage img_src, int index)
    • add

      public void add(processing.core.PImage img_src, String name)
    • add

      public void add(processing.core.PImage img_src, String name, int index)
    • clear

      public void clear()
      clear the list to start a new collection or not !
    • select

      public void select(int which_one)
      Parameters:
      which_one - choice the current image for the future !
    • select

      public void select(String target_name)
      Parameters:
      target_name - choice the current image for the future !
    • remove

      public void remove(int index)
      Parameters:
      index - remove image from the collection if this one is available.
    • size

      public int size()
      Returns:
      the size of the image collection
    • set

      public void set(R_Image r_img, int index)
    • set

      public void set(processing.core.PImage src_img, int index)
    • set

      public void set(processing.core.PImage src_img, String target_name)
    • list

      public ArrayList<R_Image> list()
    • rand

      public R_Image rand()
      Returns:
      a random R_Image from the list
    • get_current_name

      public String get_current_name()
    • get_name

      public String get_name(int index)
    • get_id

      public Long get_id(int index)
    • get_rank

      public int get_rank(String target_name)
    • get_current

      public R_Image get_current()
      Returns:
      the current R_Image
    • get

      public R_Image get(int target)
      Parameters:
      target -
      Returns:
      return a specific R_Image from the list is this one exist
    • get

      public R_Image get(String target_name)
      Parameters:
      target_name -
      Returns:
      return a specific R_Image from the list is this one exist
    • get_current_PImage

      public processing.core.PImage get_current_PImage()
      Returns:
      the current PImage
    • get_PImage

      public processing.core.PImage get_PImage(int target)
      Parameters:
      target -
      Returns:
      return a specific PImage from the list is this one exist
    • get_PImage

      public processing.core.PImage get_PImage(String target_name)
      Parameters:
      target_name -
      Returns:
      return a specific PImage from the list is this one exist