#include <Plot2D.hpp>
Public Types | |
typedef std::shared_ptr< const Plot2D > | ConstPtr |
typedef std::vector< ConstPtr > | ConstVec |
typedef std::weak_ptr< const Plot2D > | ConstWeakPtr |
typedef std::shared_ptr< Plot2D > | Ptr |
typedef std::vector< Ptr > | Vec |
typedef std::weak_ptr< Plot2D > | WeakPtr |
Signals | |
void | signalClose (QString &windowTitle) |
Public Member Functions | |
void | axesFontSize (unsigned axesFontSize) |
axis title font size for all axes More... | |
QString | axisTitleFromUnits (const std::string &units) |
axis titles based on units More... | |
virtual void | backgourndColor (QColor color) |
background color More... | |
void | bottomAxisFont (const QFont &axisFont) |
axis title font size for bottom axis More... | |
QFont | bottomAxisFont () const |
axis title font size for bottom axis More... | |
void | bottomAxisFontSize (const unsigned axisFontSize) |
axis title font size for bottom axis More... | |
unsigned | bottomAxisFontSize () const |
axis title font size for bottom axis More... | |
void | bottomAxisTitle (const std::string &bottomAxisTitle) |
bottom axis title More... | |
std::string | bottomAxisTitle () const |
bottom axis title More... | |
void | bottomTickFontSize (unsigned tickFontSize) |
tick font size for bottom axis More... | |
void | exportImageToFile (int w, int h) |
image exporting More... | |
void | generateImage (const openstudio::path &file, int w=800, int h=600) |
image generation More... | |
void | leftAxisFont (const QFont &axisFont) |
axis title font size for left axis More... | |
QFont | leftAxisFont () const |
axis title font size for left axis More... | |
void | leftAxisFontSize (const unsigned axisFontSize) |
axis title font size for left axis More... | |
unsigned | leftAxisFontSize () const |
axis title font size for left axis More... | |
void | leftAxisTitle (const std::string &leftAxisTitle) |
left axis title More... | |
std::string | leftAxisTitle () const |
left axis title More... | |
void | leftAxisTitleFromUnits (const std::string &units) |
axis titles based on units More... | |
void | leftTickFontSize (unsigned tickFontSize) |
tick font size for left axis More... | |
void | plotTitle (const std::string &title) |
graph title More... | |
std::string | plotTitle () const |
graph title More... | |
QwtPlot * | qwtPlot () |
access to qwtPlot widget More... | |
void | rightAxisFont (const QFont &axisFont) |
axis title font size for right axis More... | |
QFont | rightAxisFont () const |
axis title font size for right axis More... | |
void | rightAxisFontSize (const unsigned axisFontSize) |
axis title font size for right axis More... | |
unsigned | rightAxisFontSize () const |
axis title font size for right axis More... | |
void | rightAxisTitle (const std::string &rightAxisTitle) |
right axis title More... | |
std::string | rightAxisTitle () const |
right axis title More... | |
void | rightAxisTitleFromUnits (const std::string &units) |
axis titles based on units More... | |
void | rightTickFontSize (unsigned tickFontSize) |
tick font size for right axis More... | |
void | tickFontSize (unsigned tickFontSize) |
tick font size for all axes More... | |
void | titleFont (const QFont &titleFont) |
title font More... | |
QFont | titleFont () const |
title font size More... | |
void | titleFontSize (const unsigned titleFontSize) |
title font size More... | |
unsigned | titleFontSize () const |
title font size More... | |
void | topAxisFont (const QFont &axisFont) |
axis title font size for top axis More... | |
QFont | topAxisFont () const |
axis title font size for top axis More... | |
void | topAxisFontSize (const unsigned axisFontSize) |
axis title font size for top axis More... | |
unsigned | topAxisFontSize () const |
axis title font size for top axis More... | |
void | topAxisTitle (const std::string &topAxisTitle) |
top axis title More... | |
std::string | topAxisTitle () const |
top axis title More... | |
void | topTickFontSize (unsigned tickFontSize) |
tick font size for top axis More... | |
void | windowTitle (const std::string &title) |
window title More... | |
std::string | windowTitle () const |
window title - More... | |
virtual void | xCenterSpan (double center, double span)=0 |
update based on center and span More... | |
virtual | ~Plot2D () |
destructor More... | |
Public Attributes | |
void setupUi * | widget |
setup widget items and layout More... | |
Protected Attributes | |
QwtPlot * | m_qwtPlot |
QVBoxLayout * | m_vBoxLayout |
Plot2D * | parent |
constructor More... | |
Plot2D is the wrapper around qwtPlot.
typedef std::shared_ptr<const Plot2D > openstudio::Plot2D::ConstPtr |
typedef std::vector<ConstPtr> openstudio::Plot2D::ConstVec |
typedef std::weak_ptr<const Plot2D > openstudio::Plot2D::ConstWeakPtr |
typedef std::shared_ptr< Plot2D > openstudio::Plot2D::Ptr |
typedef std::vector<Ptr> openstudio::Plot2D::Vec |
typedef std::weak_ptr< Plot2D > openstudio::Plot2D::WeakPtr |
|
virtual |
destructor
void openstudio::Plot2D::axesFontSize | ( | unsigned | axesFontSize | ) |
axis title font size for all axes
QString openstudio::Plot2D::axisTitleFromUnits | ( | const std::string & | units | ) |
axis titles based on units
|
virtual |
background color
void openstudio::Plot2D::bottomAxisFont | ( | const QFont & | axisFont | ) |
axis title font size for bottom axis
QFont openstudio::Plot2D::bottomAxisFont | ( | ) | const |
axis title font size for bottom axis
void openstudio::Plot2D::bottomAxisFontSize | ( | const unsigned | axisFontSize | ) |
axis title font size for bottom axis
unsigned openstudio::Plot2D::bottomAxisFontSize | ( | ) | const |
axis title font size for bottom axis
void openstudio::Plot2D::bottomAxisTitle | ( | const std::string & | bottomAxisTitle | ) |
bottom axis title
std::string openstudio::Plot2D::bottomAxisTitle | ( | ) | const |
bottom axis title
void openstudio::Plot2D::bottomTickFontSize | ( | unsigned | tickFontSize | ) |
tick font size for bottom axis
image generation
void openstudio::Plot2D::leftAxisFont | ( | const QFont & | axisFont | ) |
axis title font size for left axis
QFont openstudio::Plot2D::leftAxisFont | ( | ) | const |
axis title font size for left axis
void openstudio::Plot2D::leftAxisFontSize | ( | const unsigned | axisFontSize | ) |
axis title font size for left axis
unsigned openstudio::Plot2D::leftAxisFontSize | ( | ) | const |
axis title font size for left axis
void openstudio::Plot2D::leftAxisTitle | ( | const std::string & | leftAxisTitle | ) |
left axis title
std::string openstudio::Plot2D::leftAxisTitle | ( | ) | const |
left axis title
void openstudio::Plot2D::leftAxisTitleFromUnits | ( | const std::string & | units | ) |
axis titles based on units
void openstudio::Plot2D::leftTickFontSize | ( | unsigned | tickFontSize | ) |
tick font size for left axis
void openstudio::Plot2D::plotTitle | ( | const std::string & | title | ) |
graph title
std::string openstudio::Plot2D::plotTitle | ( | ) | const |
graph title
|
inline |
access to qwtPlot widget
void openstudio::Plot2D::rightAxisFont | ( | const QFont & | axisFont | ) |
axis title font size for right axis
QFont openstudio::Plot2D::rightAxisFont | ( | ) | const |
axis title font size for right axis
void openstudio::Plot2D::rightAxisFontSize | ( | const unsigned | axisFontSize | ) |
axis title font size for right axis
unsigned openstudio::Plot2D::rightAxisFontSize | ( | ) | const |
axis title font size for right axis
void openstudio::Plot2D::rightAxisTitle | ( | const std::string & | rightAxisTitle | ) |
right axis title
std::string openstudio::Plot2D::rightAxisTitle | ( | ) | const |
right axis title
void openstudio::Plot2D::rightAxisTitleFromUnits | ( | const std::string & | units | ) |
axis titles based on units
void openstudio::Plot2D::rightTickFontSize | ( | unsigned | tickFontSize | ) |
tick font size for right axis
|
signal |
void openstudio::Plot2D::tickFontSize | ( | unsigned | tickFontSize | ) |
tick font size for all axes
void openstudio::Plot2D::titleFont | ( | const QFont & | titleFont | ) |
title font
QFont openstudio::Plot2D::titleFont | ( | ) | const |
title font size
void openstudio::Plot2D::titleFontSize | ( | const unsigned | titleFontSize | ) |
title font size
unsigned openstudio::Plot2D::titleFontSize | ( | ) | const |
title font size
void openstudio::Plot2D::topAxisFont | ( | const QFont & | axisFont | ) |
axis title font size for top axis
QFont openstudio::Plot2D::topAxisFont | ( | ) | const |
axis title font size for top axis
void openstudio::Plot2D::topAxisFontSize | ( | const unsigned | axisFontSize | ) |
axis title font size for top axis
unsigned openstudio::Plot2D::topAxisFontSize | ( | ) | const |
axis title font size for top axis
void openstudio::Plot2D::topAxisTitle | ( | const std::string & | topAxisTitle | ) |
top axis title
std::string openstudio::Plot2D::topAxisTitle | ( | ) | const |
top axis title
void openstudio::Plot2D::topTickFontSize | ( | unsigned | tickFontSize | ) |
tick font size for top axis
void openstudio::Plot2D::windowTitle | ( | const std::string & | title | ) |
window title
|
inline |
window title -
|
pure virtual |
update based on center and span
Implemented in openstudio::FloodPlot, and openstudio::LinePlot.
|
protected |
|
protected |
|
protected |
constructor
void setupUi * openstudio::Plot2D::widget |
setup widget items and layout