예제 #1
0
SpikeGraph::SpikeGraph() {
	x = 0;
	y = 0;
	w = 240;
	h = 105;
	spikeWidth = 10;
	scounter = 0;
	speed = 1 / 4.0;
	for (int i = 0; i < 12; i++) {
		newSpike(0, 1, w - (i + 1)*spikeWidth * 2);
		newSpike(0, -1, w - (i + 1)*spikeWidth * 2);
	}

	maskShader.load("shadersGL3/null.vert", "shadersGL3/spike.frag");

	tline1 = newTickLine(0, 0, w, 40, 0, COLOR_LINE);
	tline2 = newTickLine(0, h + 30, w, 40, 0, COLOR_LINE);

	// Animation settings
	events.clear();
	newEvent(0, 300, 0, 1); // intro
	newEvent(0, -1, 1, 1); // main
	currentEvent = events[0];

	updateDependencyEvents();
	updateDependencyDelays(getDelay());
}
예제 #2
0
BoxVisualization::BoxVisualization() {
  x = 0;
  y = 0;
  w = 240;
  h = 11*GRID_SIZE;
  setDelay(0);

  waves = Waves();
  waves.setPos(ofPoint(285,375));
  
  tline1.w = w;
  tline1.duration = 40;
  tline1.setDelay(0);
  
  tline2.y = h;
  tline2.w = w;
  tline2.duration = 40;
  tline2.setDelay(0);
  
  texts.clear();
  int textDelay = -55;
  // Top Left
  texts.push_back(newText("SYSTEM SUMMARY", 5,
                          5, 7,
                          10, delay+textDelay,
                          COLOR_135,
                          false));
  // Top Right
  texts.push_back(newText("WAVES VISUALIZATION", 5,
                          w-5, 7,
                          10, delay+textDelay-5,
                          COLOR_55,
                          true));
  // Bottom Right
  texts.push_back(newText("HIGH LOAD", 5,
                          w-5, h-18,
                          10, delay+textDelay-10,
                          COLOR_55,
                          true));
  texts.push_back(newText("ALL ACTIVITY", 5,
                          w-4, h-11,
                          10, delay+textDelay-10,
                          COLOR_55,
                          true));
  // Bottom Left
  texts.push_back(newText("ANALYSIS OF", 5,
                          5,h-18,
                          10, delay+textDelay-15,
                          COLOR_55,
                          false));
  texts.push_back(newText("SYSTEM UTILIZATION", 5,
                          5,h-11,
                          10, delay+textDelay-15,
                          COLOR_55,
                          false));
  
  // Animation settings
  events.clear();
  newEvent(0, 300, 0, 1); // intro
  newEvent(0, -1, 1, 1); // main
  currentEvent = events[0];
  
  updateDependencyEvents();
  updateDependencyDelays(getDelay());
}