Package rope.gui.slider
Class R_Slider
java.lang.Object
rope.core.Rope
rope.core.BigBang
rope.core.R_Graphic
rope.gui.Crope
rope.gui.slider.R_Slider
- All Implemented Interfaces:
R_Constants
,R_Constants_Colour
,R_GUI
-
Field Summary
Fields inherited from interface rope.core.R_Constants
ARC, BEGIN, BEZIER_VERTEX, BLANK, BOTTOM, BOX, BREAK, CARTESIAN, CENTER, CHAOS, CHOICE, CHORD, CIRCULAR, CLOSE, CLOUD, CORNER, CORNERS, COS, CROSS, CROSS_BOX_2, CROSS_BOX_3, CROSS_RECT, CUBE_LINE, CURVE_VERTEX, DECAGON, DIAGONAL, DIAMETER, DODECAGON, DOWN, DRAW, DXF, DYNAMIC, EAST, ELLIPSE, END, EQUATION, EULER, FIRST, FIT, FLOWER, FLUID, FX2D, G, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, HALF, HALF_PI, HENDECAGON, HEPTAGON, HEXAGON, HORIZONTAL, HOUSE, HPI, ICOSI_DODECAHEDRON_LINE, IMAGE, JAVA2D, LANDSCAPE, LAST, LEAF, LEFT, LINE, LINEAR, MAD, MAGNETIC, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MIX, NEXT, NONAGON, NONE, NORMAL, NORTH, NORTH_EAST, NORTH_WEST, NOTCH, NOTHING, NULL, OCTOGON, OCTOHEDRON_LINE, OPEN, ORDER, P2D, P3D, PDF, PENTAGON, PERLIN, PHI, PI, PIE, PIXEL, POINT, POLAR, POLYGON, PORTRAIT, POW, PREVIOUS, QPI, QUADRATIC_VERTEX, QUARTER_PI, RADIUS, RAND, RECT, REPEAT, RHOMBIC_COSI_DODECAHEDRON_SMALL_LINE, RIGHT, ROOT, ROOT2, RUN, SCALE, SEED, SHAPE, SIDE, SIN, SKY, SOUTH, SOUTH_EAST, SOUTH_WEST, SPAN, SPHERE, SPHERE_HIGH, SPHERE_LOW, SPHERE_MEDIUM, SPIRAL, SQUARE, STAR, STAR_3D, START, STATIC, STOP, SVG, TAN, TAU, TETRAHEDRON, TETRAHEDRON_LINE, TEXT, TOP, TREE, TRIANGLE, TWO_PI, UP, VERSION, VERTEX, VERTICAL, VIRUS, WALK, WEST
Fields inherited from interface rope.core.R_Constants_Colour
ABRICOT, ABYSSE, ACAJOU, ALPHA, AMARANTE, AMBRE, ANSI_BLACK, ANSI_BLACK_BACKGROUND, ANSI_BLUE, ANSI_BLUE_BACKGROUND, ANSI_CYAN, ANSI_CYAN_BACKGROUND, ANSI_GREEN, ANSI_GREEN_BACKGROUND, ANSI_PURPLE, ANSI_PURPLE_BACKGROUND, ANSI_RED, ANSI_RED_BACKGROUND, ANSI_RESET, ANSI_WHITE, ANSI_WHITE_BACKGROUND, ANSI_YELLOW, ANSI_YELLOW_BACKGROUND, ARGB, ARGENT, AUBERGINE, AZUR, BIS, BISTRE, BLACK, BLANC, BLEU, BLOND, BLOOD, BLUE, BOUTEILLE, BRIGHTNESS, BRIQUE, BRONZE, BROWN, CACHOU, CAERULEUM, CAFE, CANARD, CANELLE, CAPUCINE, CARMIN, CARMINE, CAROTTE, CELESTE, CERISE, CHAMOIS, CHARTREUSE, CHOCOLAT, CIEL, CITROUILLE, COBALT, COFFEE, COLOMBIN, CORAIL, CYAN, ELEPHANT, EVEQUE, FRANCE, FUSCHIA, GOLD, GRADIENT, GRADIENT_BRIGHTNESS, GRADIENT_HUE, GRADIENT_SATURATION, GRAY, GRAY_MEDIUM, GREEN, GRENAT, GRIS, GRIS_MOYEN, GUEULES, HSB, HUE, IMPERIAL, JAUNE, LAPIS_LAZULI, LAVANDE, LILAS, LIME, LIN, LUNE, MAGENTA, MANDARINE, MARRON, MAUVE, MIMOSA, MOON, MOUNTBATTEN, NANKIN, NAPLE, NOIR, NOISETTE, NUIT, OCRE, OCRE_JAUNE, OCRE_ROUGE, OLIVE, OR, ORANGE, OUTREMER, PALETTE, PAYNE, PERLE, PERROQUET, PINK, PISTACHE, POURPRE, PRUNE, PURPLE, RAINBOW, RED, RGB, RGBA, ROSE, ROUGE, SANG, SAPIN, SATURATION, SAUGE, SEPIA, SHAKUDOU, SILVER, SINOPLE, SMALT, SOURIS, SPECTRUM, TAUPE, TENEBRE, TILLEUL, TURQUOISE, VERMILLON, VERT, VERT_D_EAU, VERT_DE_GRIS, VESSIE, VIOLET, WHITE, YELLOW, ZINZOLIN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
get()
Return the normal value for the first molettefloat
get
(int index) Return the normal value for the the index (targret) molettefloat[]
get_all()
float
Return the value for the the main molette, the value is mapped with the min max valuefloat
get_final
(int index) Return the value for the the index (targret) molette, the value is mapped with the min max valuefloat
get_max()
float
float
get_min()
float
R_Mol[]
get_mol()
get_mol
(int index) vec2[]
get_mol_pos
(int index) get_molette_size
(int index) boolean
boolean
inside_molette
(int index) void
keep_selection
(boolean is) boolean
boolean
molette_used_is
(int index) void
select
(boolean auth) void
select
(boolean auth_1, boolean auth_2) boolean
boolean
select_is
(int index) set_curve
(int type, float power) Set curve is used to set a non linear value between the minimum and the maximum value of the slider.set_fill_mol
(int c) set_fill_mol
(int c_in, int c_out) set_min_max
(float min, float max) Deprecated.insteand use set_range(float min, float max);set_mol
(int type) set_mol_num
(int num) set_pos_mol
(int index) set_pos_mol
(int index, float x, float y) set_pos_mol
(vec2... pos_mol) set_range
(float min, float max) this function is used to set the final value of the sliderthis function is used to set the final value of the sliderset_size_mol
(float x, float y) set_size_mol
(vec2 size) set_stroke_mol
(int c) set_stroke_mol
(int c_in, int c_out) set_thickness_mol
(float thickness) set_value
(float... pos_norm) void
show_mol()
void
void
void
show_value
(float... value) void
update()
UPDATEvoid
update_midi
(int... value) void
update_midi
(int index, int value) boolean
used_is()
boolean
used_is
(int index) void
wheel
(boolean wheel_is) Methods inherited from class rope.gui.Crope
bottom, get_dna, get_font, get_font_size, get_id, get_id_midi, get_label, get_name, get_rank, get_rollover_type, get_type, inside, is_done, is_done_impl, left, opengl, pos, pos, pos, right, set_align_label_name, set_align_label_value, set_aspect, set_aspect, set_bri, set_fill, set_fill, set_fill_label, set_fill_label, set_font, set_font, set_font_size, set_hue, set_id, set_id_midi, set_label, set_label, set_label, set_mode, set_name, set_pos_label, set_pos_label, set_pos_value, set_pos_value, set_rank, set_rollover_type, set_root, set_rounded, set_sat, set_stroke, set_stroke, set_thickness, set_type, show_label, size, size, size, size, top
Methods inherited from class rope.core.R_Graphic
arc, arc, arc, arc, aspect, aspect, background, background, background, background, background, background, beginContour, beginDraw, beginShape, beginShape, bezierVertex, bezierVertex, bezierVertex, bezierVertex, bezierVertex, bezierVertex, box, box, box, circle, circle, clear, colorMode, colorMode, colorMode, colorMode, colorMode, colorMode, colorMode, createGraphics, curveVertex, curveVertex, curveVertex, curveVertex, curveVertex, curveVertex, ellipse, ellipse, ellipse, ellipse, ellipseMode, ellipseMode, endContour, endDraw, endShape, endShape, fill, fill, fill, fill, fill, fill, fill_is, fill_is, get, get_renderer, get_renderer, image, image, image, image, image, line, line, line, line, loadPixels, loadShader, noFill, noStroke, pass_graphic, plot, plot, plot, plot, plot_x2, plot_x2, point, point, point, point, pop, popMatrix, push, pushMatrix, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, rect, rect, rect, rect, rect, rect, rectMode, rectMode, renderer_P2D, renderer_P3D, rotate, rotateX, rotateXY, rotateXYZ, rotateXZ, rotateY, rotateYZ, rotateZ, scale, scale, scale, set, set, set, shader, shearX, shearY, sphere, sphereDetail, sphereDetail, square, square, stroke, stroke, stroke, stroke, stroke, stroke, stroke_is, stroke_is, strokeWeight, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, textAlign, textAlign, textFont, textFont, textSize, thickness, translate, translate, translate, triangle, triangle, triangle, updatePixels, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex
Methods inherited from class rope.core.BigBang
alpha, blue, brightness, color, color, color, color, createFont, createFont, createFont, getColorMode, getColorMode, green, hue, lerpColor, loadImage, longest_String, longest_String, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, noise, noiseSeed, pass_processing, pixel_density_is, pixel_density_is, red, saturation, save_BMP, save_frame, save_frame, save_frame, save_frame, sketchPath, sketchPath, start_PDF, start_PDF, start_PDF, width_char, width_char, width_char, width_String, width_String, width_String
Methods inherited from class rope.core.Rope
abs, abs, abs, abs, abs, abs, abs, abs, add, add, add, add, add, add, all, all, any, any, atan, barycenter, barycenter, barycenter, binary, binary, binary, binary, ceil, ceil, ceil, ceil, clamp, clamp, clamp, clamp, compare, compare, compare, compare, compare, compare, compare, compare, constrain, constrain, cos, cross, d_bell, d_cbrt, d_cos, d_normal, d_pow, d_sigmoid, d_sin, d_sqrt, dist, dist, dist, dist, dist, div, div, div, div, div, div, equal, equal, equal, equal, equal, equal, equal, equal, extension, extension_is, file_name, floor, floor, floor, floor, fract, fract, fract, fract, get_os, get_os_family, getColorMode, getColorMode, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, hex, hex, hex, hex, in_line, in_line, in_polygon, in_polygon, in_polygon, in_polygon, in_segment, in_segment, index_pixel_array, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, map, map, map, map, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, mix, mix, mix, mix, mod, mod, mod, mod, mod, mod, mod, mult, mult, mult, mult, mult, mult, only, only, pow, print_array, print_err, print_err_tempo, print_out, print_tempo, projection, projection, projection, projection, projection, projection, projection, projection, random, random, random_next_gaussian, random_next_gaussian, random_next_gaussian, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, round, round, round, round, sign, sign, sign, sign, sign, sign, sign, sign, sin, smoothstep, smoothstep, smoothstep, smoothstep, split, split, sq, sqrt, step, step, step, step, sub, sub, sub, sub, sub, sub, to_cartesian_2D, to_cartesian_2D, to_cartesian_2D, to_cartesian_3D, to_cartesian_3D, to_cartesian_3D, truncate, truncate, unbinary, unhex
-
Constructor Details
-
R_Slider
public R_Slider() -
R_Slider
-
R_Slider
public R_Slider(float x, float y, float sx, float sy)
-
-
Method Details
-
set_value
- Parameters:
pos_norm
- normal 0 to 1 array value to define the position of each molette on the slider- Returns:
- this
-
set_curve
Set curve is used to set a non linear value between the minimum and the maximum value of the slider.- Parameters:
type
- set the type of curve you want, for now only r.POW is availablepower
- set the power of the curve- Returns:
- this
-
set_min_max
Deprecated.insteand use set_range(float min, float max);- Parameters:
min
- define the minimum final value of the slidermax
- define the maximum final value of the slider- Returns:
- void
-
set_range
this function is used to set the final value of the slider- Parameters:
min
- define the minimum final value of the slidermax
- define the maximum final value of the slider- Returns:
- this
-
set_range
this function is used to set the final value of the slider- Parameters:
range
- vec2 who define the minimum and the maximum final value of the slider- Returns:
- this
-
set_mol_num
-
set_mol
-
set_size_mol
-
set_size_mol
-
set_pos_mol
-
set_pos_mol
-
set_pos_mol
-
set_pos_mol
-
set_fill_mol
-
set_fill_mol
-
set_stroke_mol
-
set_stroke_mol
-
set_thickness_mol
-
get_final
public float get_final(int index) Return the value for the the index (targret) molette, the value is mapped with the min max value- Parameters:
index
-- Returns:
- float
-
get_final
public float get_final()Return the value for the the main molette, the value is mapped with the min max value- Returns:
- float
-
get_min
public float get_min() -
get_max
public float get_max() -
get
public float get()Return the normal value for the first molette -
get
public float get(int index) Return the normal value for the the index (targret) molette -
get_all
public float[] get_all() -
get_mol
-
get_mol
-
get_min_norm
public float get_min_norm() -
get_max_norm
public float get_max_norm() -
get_min_pos
-
get_max_pos
-
show_struc
public void show_struc()- Specified by:
show_struc
in interfaceR_GUI
- Overrides:
show_struc
in classCrope
-
show_mol
public void show_mol() -
show_value
public void show_value()- Specified by:
show_value
in interfaceR_GUI
- Overrides:
show_value
in classCrope
-
show_value
public void show_value(float... value) -
update
public void update()UPDATE -
get_mol_pos
-
get_mol_pos
-
get_molette_size
-
molette_used_is
public boolean molette_used_is(int index) - Parameters:
index
-- Returns:
-
molette_used_is
public boolean molette_used_is() -
inside_molette
public boolean inside_molette(int index) - Parameters:
index
-- Returns:
-
inside_molette
public boolean inside_molette() -
select_is
public boolean select_is() -
select_is
public boolean select_is(int index) -
used_is
public boolean used_is() -
used_is
public boolean used_is(int index) -
wheel
public void wheel(boolean wheel_is) -
update_midi
public void update_midi(int... value) -
update_midi
public void update_midi(int index, int value) -
keep_selection
public void keep_selection(boolean is) -
select
public void select(boolean auth) -
select
public void select(boolean auth_1, boolean auth_2)
-