Overload  1.1
Game engine with editor
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OvUI::Widgets::Plots::APlot Class Referenceabstract

#include <APlot.h>

Inheritance diagram for OvUI::Widgets::Plots::APlot:
OvUI::Widgets::DataWidget< std::vector< float > > OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable OvUI::Widgets::Plots::PlotHistogram OvUI::Widgets::Plots::PlotLines

Public Member Functions

 APlot (const std::vector< float > &p_data=std::vector< float >(), float p_minScale=std::numeric_limits< float >::min(), float p_maxScale=std::numeric_limits< float >::max(), const OvMaths::FVector2 &p_size={ 0.0f, 0.0f }, const std::string &p_overlay="", const std::string &p_label="", int p_forceHover=-1)
 
- Public Member Functions inherited from OvUI::Widgets::DataWidget< std::vector< float > >
 DataWidget (std::vector< float > &p_dataHolder)
 
virtual void Draw () override
 
void NotifyChange ()
 
- Public Member Functions inherited from OvUI::Widgets::AWidget
 AWidget ()
 
void LinkTo (const AWidget &p_widget)
 
void Destroy ()
 
bool IsDestroyed () const
 
void SetParent (Internal::WidgetContainer *p_parent)
 
bool HasParent () const
 
Internal::WidgetContainerGetParent ()
 
- Public Member Functions inherited from OvUI::Plugins::Pluginable
 ~Pluginable ()
 
template<typename T , typename... Args>
T & AddPlugin (Args &&... p_args)
 
template<typename T >
T * GetPlugin ()
 
void ExecutePlugins ()
 
void RemoveAllPlugins ()
 

Public Attributes

std::vector< float > data
 
float minScale
 
float maxScale
 
OvMaths::FVector2 size
 
std::string overlay
 
std::string label
 
int forceHover
 
- Public Attributes inherited from OvUI::Widgets::AWidget
bool enabled = true
 
bool lineBreak = true
 

Protected Member Functions

virtual void _Draw_Impl () override=0
 

Additional Inherited Members

- Protected Attributes inherited from OvUI::Widgets::AWidget
Internal::WidgetContainerm_parent
 
std::string m_widgetID = "?"
 
bool m_autoExecutePlugins = true
 

Detailed Description

Base class for any plot widget

Constructor & Destructor Documentation

◆ APlot()

OvUI::Widgets::Plots::APlot::APlot ( const std::vector< float > &  p_data = std::vector<float>(),
float  p_minScale = std::numeric_limits<float>::min(),
float  p_maxScale = std::numeric_limits<float>::max(),
const OvMaths::FVector2 p_size = { 0.0f, 0.0f },
const std::string &  p_overlay = "",
const std::string &  p_label = "",
int  p_forceHover = -1 
)

Constructor

Parameters
p_data
p_minScale
p_maxScale
p_size
p_overlay
p_label
p_forceHover@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

Member Function Documentation

◆ _Draw_Impl()

virtual void OvUI::Widgets::Plots::APlot::_Draw_Impl ( )
overrideprotectedpure virtual

Member Data Documentation

◆ data

std::vector<float> OvUI::Widgets::Plots::APlot::data

◆ forceHover

int OvUI::Widgets::Plots::APlot::forceHover

◆ label

std::string OvUI::Widgets::Plots::APlot::label

◆ maxScale

float OvUI::Widgets::Plots::APlot::maxScale

◆ minScale

float OvUI::Widgets::Plots::APlot::minScale

◆ overlay

std::string OvUI::Widgets::Plots::APlot::overlay

◆ size

OvMaths::FVector2 OvUI::Widgets::Plots::APlot::size

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