OpenStudioCore:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
openstudio::LinePlot Class Reference

#include <LinePlot.hpp>

+ Inheritance diagram for openstudio::LinePlot:

Public Types

typedef std::shared_ptr< const
LinePlot
ConstPtr
 
typedef std::vector< ConstPtrConstVec
 
typedef std::weak_ptr< const
LinePlot
ConstWeakPtr
 
typedef std::shared_ptr< LinePlotPtr
 
typedef std::vector< PtrVec
 
typedef std::weak_ptr< LinePlotWeakPtr
 
- Public Types inherited from openstudio::Plot2D
typedef std::shared_ptr< const
Plot2D
ConstPtr
 
typedef std::vector< ConstPtrConstVec
 
typedef std::weak_ptr< const
Plot2D
ConstWeakPtr
 
typedef std::shared_ptr< Plot2DPtr
 
typedef std::vector< PtrVec
 
typedef std::weak_ptr< Plot2DWeakPtr
 

Public Member Functions

void linePlotData (LinePlotData::Ptr data, const std::string &name, QColor color=Qt::blue, double offset=0.0)
 set the data More...
 
void linePlotLeftRightAxesData (LinePlotData::Ptr leftAxisData, LinePlotData::Ptr rightAxisData, const std::string &leftName, const std::string &rightName, QColor leftColor=Qt::blue, QColor rightColor=Qt::green)
 set left and right axes data More...
 
const int lineThickness () const
 
void setLineThickness (const int &width)
 set thickness of all curves on a line plot More...
 
void timeseriesData (TimeSeries tsData, const std::string &name, QColor color=Qt::blue)
 convenience wrapper for timeseries data More...
 
void xCenterSpan (double center, double span)
 update based on center and span More...
 
virtual ~LinePlot ()
 virtual destructor More...
 
- Public Member Functions inherited from openstudio::Plot2D
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 ~Plot2D ()
 destructor More...
 

Public Attributes

void scaleCurves * curve
 scaling function for more than 3 units More...
 
LinePlotparent
 constructor More...
 
- Public Attributes inherited from openstudio::Plot2D
void setupUi * widget
 setup widget items and layout More...
 

Static Public Attributes

static LinePlot::Ptr create * parent
 create More...
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *e)
 drop target support for drag/drop operations More...
 

Additional Inherited Members

- Signals inherited from openstudio::Plot2D
void signalClose (QString &windowTitle)
 
- Protected Attributes inherited from openstudio::Plot2D
QwtPlot * m_qwtPlot
 
QVBoxLayout * m_vBoxLayout
 
Plot2Dparent
 constructor More...
 

Detailed Description

line plots data in a nice image

Member Typedef Documentation

typedef std::shared_ptr<const LinePlot > openstudio::LinePlot::ConstPtr
typedef std::weak_ptr<const LinePlot > openstudio::LinePlot::ConstWeakPtr
typedef std::shared_ptr< LinePlot > openstudio::LinePlot::Ptr
typedef std::vector<Ptr> openstudio::LinePlot::Vec
typedef std::weak_ptr< LinePlot > openstudio::LinePlot::WeakPtr

Constructor & Destructor Documentation

virtual openstudio::LinePlot::~LinePlot ( )
inlinevirtual

virtual destructor

Member Function Documentation

void openstudio::LinePlot::dragEnterEvent ( QDragEnterEvent *  e)
inlineprotected

drop target support for drag/drop operations

void openstudio::LinePlot::linePlotData ( LinePlotData::Ptr  data,
const std::string &  name,
QColor  color = Qt::blue,
double  offset = 0.0 
)

set the data

void openstudio::LinePlot::linePlotLeftRightAxesData ( LinePlotData::Ptr  leftAxisData,
LinePlotData::Ptr  rightAxisData,
const std::string &  leftName,
const std::string &  rightName,
QColor  leftColor = Qt::blue,
QColor  rightColor = Qt::green 
)

set left and right axes data

const int openstudio::LinePlot::lineThickness ( ) const
inline
void openstudio::LinePlot::setLineThickness ( const int width)

set thickness of all curves on a line plot

void openstudio::LinePlot::timeseriesData ( TimeSeries  tsData,
const std::string &  name,
QColor  color = Qt::blue 
)

convenience wrapper for timeseries data

void openstudio::LinePlot::xCenterSpan ( double  center,
double  span 
)
virtual

update based on center and span

Implements openstudio::Plot2D.

Member Data Documentation

void scaleCurves * openstudio::LinePlot::curve

scaling function for more than 3 units

LinePlot* openstudio::LinePlot::parent

constructor

LinePlot::Ptr create* openstudio::LinePlot::parent
static

create