Vis2_CO2Data
 
Loading...
Searching...
No Matches
DetailsOnDemand Class Reference

Manages the display of detailed information about a specific country. Handles the positioning and updating of the detail display. More...

Inherits MonoBehaviour.

Public Member Functions

void ShowDetails (string name, float co2, float perCap, float population, float area, Vector3 position)
 Displays the details with the provided data.
 
void ShowDetails ()
 Activates the details panel.
 
void RemoveDetails ()
 Hides the details panel.
 
void SetCountry (string name)
 Updates the displayed country name.
 
void SetCo2 (float data)
 Updates the displayed CO2 emissions.
 
void SetPerCap (float data)
 Updates the displayed per capita CO2 emissions.
 
void SetPopulation (float data)
 Updates the displayed population.
 
void SetArea (float data)
 Updates the displayed area.
 
void SetGlobalPosition (Vector3 position)
 Updates the global position of the details panel.
 

Detailed Description

Manages the display of detailed information about a specific country. Handles the positioning and updating of the detail display.

Member Function Documentation

◆ RemoveDetails()

void DetailsOnDemand.RemoveDetails ( )

Hides the details panel.

◆ SetArea()

void DetailsOnDemand.SetArea ( float data)

Updates the displayed area.

Parameters
dataThe area value.

◆ SetCo2()

void DetailsOnDemand.SetCo2 ( float data)

Updates the displayed CO2 emissions.

Parameters
dataThe CO2 emissions value.

◆ SetCountry()

void DetailsOnDemand.SetCountry ( string name)

Updates the displayed country name.

Parameters
nameThe name of the country.

◆ SetGlobalPosition()

void DetailsOnDemand.SetGlobalPosition ( Vector3 position)

Updates the global position of the details panel.

Parameters
positionThe new global position.

◆ SetPerCap()

void DetailsOnDemand.SetPerCap ( float data)

Updates the displayed per capita CO2 emissions.

Parameters
dataThe per capita CO2 emissions value.

◆ SetPopulation()

void DetailsOnDemand.SetPopulation ( float data)

Updates the displayed population.

Parameters
dataThe population value.

◆ ShowDetails() [1/2]

void DetailsOnDemand.ShowDetails ( )

Activates the details panel.

◆ ShowDetails() [2/2]

void DetailsOnDemand.ShowDetails ( string name,
float co2,
float perCap,
float population,
float area,
Vector3 position )

Displays the details with the provided data.

Parameters
nameThe name of the country.
co2The CO2 emissions of the country.
perCapThe per capita CO2 emissions of the country.
populationThe population of the country.
areaThe area of the country.
positionThe position to display the details at.

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