예제 #1
0
void ConnectionTracerRenderer::draw() {
  if (!_params.enabled.get()) {
    return;
  }
  auto renderer = ofGetCurrentRenderer();
  renderer->pushStyle();
  renderer->setFillMode(OF_OUTLINE);
  for (const auto& entity : _context.observers) {
    for (const auto& connection : entity->getObserverConnections()) {
      drawTracer(*connection, renderer);
    }
    for (const auto& connection : entity->getOccurrenceConnections()) {
      drawTracer(*connection, renderer);
    }
  }
  for (const auto& entity : _context.occurrences) {
    for (const auto& connection : entity->getObserverConnections()) {
      drawTracer(*connection, renderer);
    }
    for (const auto& connection : entity->getOccurrenceConnections()) {
      drawTracer(*connection, renderer);
    }
  }
  renderer->popStyle();
}
예제 #2
0
void Projekt::draw(){
	BasisApplication::draw();
	mSceneManager.draw();

	if(rocketTracer != NULL){
		drawTracer(rocketTracer);
	}
}