Project Chrono: chrono::vehicle::ChMapData Class Reference

Public Member Functions | List of all members
chrono::vehicle::ChMapData Class Reference

## Description

Utility class for reading and setting an (x,y) map.

`#include <ChUtilsJSON.h>`

## Public Member Functions
| ChMapData ()
| Construct a ChMapData with an empty map.
void | Read (const rapidjson::Value &a)
| Read data from the specified JSON object.
void | Set (ChFunctionInterp &map, double x_factor=1, double y_factor=1) const
| Set the map data to the specified recorder function.
void | Set (std::vector< std::pair< double, double > > &vec, double x_factor=1, double y_factor=1) const
| Set the map data to the specified vector of pairs.

## Member Function Documentation

## ◆ Set() [1/2]

void chrono::vehicle::ChMapData::Set | ( | ChFunctionInterp & | map,
|  | double | x_factor = 1,
|  | double | y_factor = 1 ) const

Set the map data to the specified recorder function.

The map data is scaled by the specified factors.

## ◆ Set() [2/2]

void chrono::vehicle::ChMapData::Set | ( | std::vector< std::pair< double, double > > & | vec,
|  | double | x_factor = 1,
|  | double | y_factor = 1 ) const

Set the map data to the specified vector of pairs.

The map data is scaled by the specified factors.

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

- D:/W/B/src/chrono-9.0.1/src/chrono_vehicle/utils/ChUtilsJSON.h
- D:/W/B/src/chrono-9.0.1/src/chrono_vehicle/utils/ChUtilsJSON.cpp