trase
Data.hpp File Reference

Contains classes and functions for handling data and aesthetics. More...

#include <cassert>
#include <functional>
#include <map>
#include <memory>
#include <set>
#include <unordered_map>
#include <vector>
#include "util/BBox.hpp"
#include "util/Colors.hpp"
#include "util/ColumnIterator.hpp"
#include "util/Exception.hpp"
#include "Data.tcc"
Include dependency graph for Data.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  trase::RawData
 Raw data class, impliments a matrix with row major order. More...
 
struct  trase::Aesthetic
 Aesthetics are a collection of tag classes that represent each aesthetic Each aesthetic has a name, and an index from 0 -> size, where size is the total number of aesthetics. More...
 
struct  trase::Aesthetic::x
 the data to display on the x-axis of the plot More...
 
struct  trase::Aesthetic::y
 the data to display on the y-axis of the plot More...
 
struct  trase::Aesthetic::color
 the color of each plotting element, scaled from 0 -> 1 More...
 
struct  trase::Aesthetic::size
 the size of each plotting element, scaled from 1 pixel to 1/20 size of y-axis More...
 
struct  trase::Aesthetic::fill
 the fill color of each plotting element, scaled from 0 -> 1 More...
 
struct  trase::Aesthetic::xmin
 the minimum x coordinate of the data More...
 
struct  trase::Aesthetic::ymin
 the minimum y coordinate of the data More...
 
struct  trase::Aesthetic::xmax
 the maximum x coordinate of the data More...
 
struct  trase::Aesthetic::ymax
 the maximum y coordinate of the data More...
 
class  trase::DataWithAesthetic
 Combination of the RawData class and Aesthetics, this class points to a RawData object, and contains a mapping from aesthetics to RawData column numbers. More...
 

Typedefs

using trase::Limits = Aesthetic::Limits
 Each aesthetic (except for xmin/ymin/xmax/ymax) has a set of min/max limits, or scales, that are used for plotting.
 

Functions

DataWithAesthetic trase::create_data ()
 creates a new, empty dataset More...
 

Detailed Description

Contains classes and functions for handling data and aesthetics.

Function Documentation

◆ create_data()

DataWithAesthetic trase::create_data ( )

creates a new, empty dataset

Returns
an empty DataWithAesthetic