Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
Metric.h File Reference
#include <cstddef>
#include <QString>
#include <QObject>
#include "physics/PhysicsBody.h"
Include dependency graph for Metric.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  Metric {
  PositionX , PositionY , PositionZ , VelocityX ,
  VelocityY , VelocityZ , Temperature , Count
}
 

Functions

QString metricLabel (Metric metric)
 
float objectSnapshotValue (Metric metric, const ObjectSnapshot &s)
 

Variables

constexpr std::size_t kPlottableMetricCount = static_cast<std::size_t>(Metric::Count)
 

Enumeration Type Documentation

◆ Metric

enum class Metric
strong
Enumerator
PositionX 
PositionY 
PositionZ 
VelocityX 
VelocityY 
VelocityZ 
Temperature 
Count 

Definition at line 9 of file Metric.h.

Function Documentation

◆ metricLabel()

QString metricLabel ( Metric  metric)
inline

Definition at line 23 of file Metric.h.

Here is the caller graph for this function:

◆ objectSnapshotValue()

float objectSnapshotValue ( Metric  metric,
const ObjectSnapshot s 
)
inline

Definition at line 37 of file Metric.h.

Here is the caller graph for this function:

Variable Documentation

◆ kPlottableMetricCount

constexpr std::size_t kPlottableMetricCount = static_cast<std::size_t>(Metric::Count)
inlineconstexpr

Definition at line 21 of file Metric.h.