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

#include <PlotHistogram.h>

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

Public Member Functions

 PlotHistogram (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::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)
 
- 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 ()
 

Protected Member Functions

void _Draw_Impl () override
 

Additional Inherited Members

- Public Attributes inherited from OvUI::Widgets::Plots::APlot
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 Attributes inherited from OvUI::Widgets::AWidget
Internal::WidgetContainerm_parent
 
std::string m_widgetID = "?"
 
bool m_autoExecutePlugins = true
 

Detailed Description

Plot displayed as an histogram

Constructor & Destructor Documentation

◆ PlotHistogram()

OvUI::Widgets::Plots::PlotHistogram::PlotHistogram ( 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()

void OvUI::Widgets::Plots::PlotHistogram::_Draw_Impl ( )
overrideprotectedvirtual

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