Package experimenting
Class ScatterPlot
java.lang.Object
experimenting.ScatterPlot
public class ScatterPlot
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScatterPlot.Data
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.ArrayList<ScatterPlot.Data>
m_data
(package private) glm_.vec2.Vec2
m_max
(package private) glm_.vec2.Vec2
m_min
(package private) glm_.vec2.Vec2
m_minMax
(package private) glm_.vec2.Vec2
m_offset
(package private) glm_.vec2.Vec2
m_size
-
Constructor Summary
Constructors Constructor Description ScatterPlot()
-
Method Summary
Modifier and Type Method Description void
addData(double x, double y, int a_id, int a_color)
void
clearData()
int
dataCount()
(package private) void
doPlot(ImGuiWrapper a_imgui, java.util.ArrayList<ScatterPlot.Data> a_selectedData)
void
setColor(int a_id, int a_color)
glm_.vec2.Vec2
toScreenPos(glm_.vec2.Vec2 a_pointIn, glm_.vec2.Vec2 a_screenPosOut)
-
Field Details
-
Constructor Details
-
ScatterPlot
public ScatterPlot()
-
-
Method Details
-
dataCount
public int dataCount() -
clearData
public void clearData() -
setColor
public void setColor(int a_id, int a_color) -
toScreenPos
public glm_.vec2.Vec2 toScreenPos(glm_.vec2.Vec2 a_pointIn, glm_.vec2.Vec2 a_screenPosOut) -
addData
public void addData(double x, double y, int a_id, int a_color) -
doPlot
-