Plot2D.cpp 845 Bytes
Newer Older
Jan Kremer's avatar
Jan Kremer committed
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
// Fill out your copyright notice in the Description page of Project Settings.

#include "Plot2D.h"
#include "PlotCanvas.h"

// Sets default values
APlot2D::APlot2D()
{
 	// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

}

void APlot2D::Redraw()
{
	switch (PlotType)
	{
	case EPlotType::Histo:
		PlotCanvas->DrawHistogramPlot(1024);
		break;
	case EPlotType::Scatter:
		PlotCanvas->DrawScatterPlot();
		break;
	case EPlotType::ParallelCoordinates:
		PlotCanvas->DrawParallelCoordinatesPlot();
		break;
	case EPlotType::None:
	default:
		break;
	}
}

// Called when the game starts or when spawned
void APlot2D::BeginPlay()
{
	Super::BeginPlay();
	
}

// Called every frame
void APlot2D::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

}