ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::graph::GraphTrace Class Reference

#include <graph.h>

Public Member Functions

void init (Graph *g)
 
void set_name (std::string name)
 
void set_sensor (sensor::Sensor *sensor)
 
uint8_t get_line_thickness ()
 
void set_line_thickness (uint8_t val)
 
enum LineType get_line_type ()
 
void set_line_type (enum LineType val)
 
Color get_line_color ()
 
void set_line_color (Color val)
 
bool get_continuous ()
 
void set_continuous (bool continuous)
 
std::string get_name ()
 
const HistoryDataget_tracedata ()
 

Protected Attributes

sensor::Sensorsensor_ {nullptr}
 
std::string name_ {""}
 
uint8_t line_thickness_ {3}
 
Color line_color_ {COLOR_ON}
 
bool continuous_ {false}
 
HistoryData data_
 
friend Graph
 
friend GraphLegend
 

Detailed Description

Definition at line 108 of file graph.h.

Member Function Documentation

◆ get_continuous()

bool esphome::graph::GraphTrace::get_continuous ( )
inline

Definition at line 119 of file graph.h.

◆ get_line_color()

Color esphome::graph::GraphTrace::get_line_color ( )
inline

Definition at line 117 of file graph.h.

◆ get_line_thickness()

uint8_t esphome::graph::GraphTrace::get_line_thickness ( )
inline

Definition at line 113 of file graph.h.

◆ get_line_type()

enum LineType esphome::graph::GraphTrace::get_line_type ( )
inline

Definition at line 115 of file graph.h.

◆ get_name()

std::string esphome::graph::GraphTrace::get_name ( )
inline

Definition at line 121 of file graph.h.

◆ get_tracedata()

const HistoryData* esphome::graph::GraphTrace::get_tracedata ( )
inline

Definition at line 122 of file graph.h.

◆ init()

void esphome::graph::GraphTrace::init ( Graph g)

Definition at line 52 of file graph.cpp.

◆ set_continuous()

void esphome::graph::GraphTrace::set_continuous ( bool  continuous)
inline

Definition at line 120 of file graph.h.

◆ set_line_color()

void esphome::graph::GraphTrace::set_line_color ( Color  val)
inline

Definition at line 118 of file graph.h.

◆ set_line_thickness()

void esphome::graph::GraphTrace::set_line_thickness ( uint8_t  val)
inline

Definition at line 114 of file graph.h.

◆ set_line_type()

void esphome::graph::GraphTrace::set_line_type ( enum LineType  val)
inline

Definition at line 116 of file graph.h.

◆ set_name()

void esphome::graph::GraphTrace::set_name ( std::string  name)
inline

Definition at line 111 of file graph.h.

◆ set_sensor()

void esphome::graph::GraphTrace::set_sensor ( sensor::Sensor sensor)
inline

Definition at line 112 of file graph.h.

Field Documentation

◆ continuous_

bool esphome::graph::GraphTrace::continuous_ {false}
protected

Definition at line 130 of file graph.h.

◆ data_

HistoryData esphome::graph::GraphTrace::data_
protected

Definition at line 131 of file graph.h.

◆ Graph

friend esphome::graph::GraphTrace::Graph
protected

Definition at line 133 of file graph.h.

◆ GraphLegend

friend esphome::graph::GraphTrace::GraphLegend
protected

Definition at line 134 of file graph.h.

◆ line_color_

Color esphome::graph::GraphTrace::line_color_ {COLOR_ON}
protected

Definition at line 129 of file graph.h.

◆ line_thickness_

uint8_t esphome::graph::GraphTrace::line_thickness_ {3}
protected

Definition at line 127 of file graph.h.

◆ name_

std::string esphome::graph::GraphTrace::name_ {""}
protected

Definition at line 126 of file graph.h.

◆ sensor_

sensor::Sensor* esphome::graph::GraphTrace::sensor_ {nullptr}
protected

Definition at line 125 of file graph.h.


The documentation for this class was generated from the following files: