-
Notifications
You must be signed in to change notification settings - Fork 0
/
InteractiveSPC.h
51 lines (32 loc) · 1.3 KB
/
InteractiveSPC.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
///-------------------------------------------------------------------------------------------------
// file: InteractiveSPC.h
//
///-------------------------------------------------------------------------------------------------
#include "stdafx.h"
#include "ClassData.h"
#include "FileHandling.h"
#pragma once
class InteractiveSPC
{
public:
ClassData data;
FileHandling newFile;
InteractiveSPC() {};
InteractiveSPC(ClassData&, double, double);
void fillGraphLocations();
/* Drawing data sets. */
void drawData(float x1, float y1, float x2, float y2, int i, int j);
void display();
// *** STUFF BELOW THIS IS FOR DRAGGING GRAPHS *** //////////////////////////////////////////
/* DRAGGING GRAPH STUFF */
/// <summary> If the mouse is clicked, held and dragging. </summary>
bool dragging = false;
/// <summary> Holds what graphs being clicked. </summary>
int graphClicked = -1;
int coordinatesClicked = -1; //Wagle
/* This method takes the passed mouse click coordinates and finds the graph clicked on. */
float findClickedGraph(double x, double y);
int findClickedCoordinate(double x, double y);
void drawCircle(int x, int y);
void drawRectangle(float rect_x1, float rect_x2, float rect_y1, float rect_y2, float r, float g, float b);
};