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

#include <FloodPlot.hpp>

+ Inheritance diagram for openstudio::FloodPlot:

Public Types

typedef std::shared_ptr< const
FloodPlot
ConstPtr
 
typedef std::vector< ConstPtrConstVec
 
typedef std::weak_ptr< const
FloodPlot
ConstWeakPtr
 
typedef std::shared_ptr
< FloodPlot
Ptr
 
typedef std::vector< PtrVec
 
typedef std::weak_ptr< FloodPlotWeakPtr
 
- 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 colorLevels (Vector &colorLevels)
 specific color map color stop values More...
 
void colorMap (FloodPlotColorMap::ColorMapList clrMap)
 set the color map More...
 
void colorMapRange (double min, double max)
 color map range min and max values More...
 
void contourLevels (Vector &contourValues)
 contour level limits More...
 
void dataAutoRange ()
 data autoscaling More...
 
 FloodPlot (const Matrix &m)
 matrix constructor More...
 
void floodPlotData (FloodPlotData::Ptr data)
 set the data More...
 
void showContour (bool on)
 show the contour map More...
 
void showSpectrogram (bool on)
 show the spectrogram More...
 
void timeseriesData (TimeSeries tsData)
 convenience wrapper for timeseries data More...
 
void xCenterSpan (double center, double span)
 update based on center and span More...
 
virtual ~FloodPlot ()
 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...
 

Static Public Member Functions

static FloodPlot::Ptr create (const Matrix &m)
 

Public Attributes

QAction * colorMapSelection
 
QAction * contourPlot
 
FloodPlotparent
 default constructor More...
 
- Public Attributes inherited from openstudio::Plot2D
void setupUi * widget
 setup widget items and layout More...
 

Static Public Attributes

static FloodPlot::Ptr createparent
 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

FloodPlot plots data in a nice image.

Member Typedef Documentation

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

Constructor & Destructor Documentation

openstudio::FloodPlot::FloodPlot ( const Matrix &  m)

matrix constructor

virtual openstudio::FloodPlot::~FloodPlot ( )
inlinevirtual

virtual destructor

Member Function Documentation

void openstudio::FloodPlot::colorLevels ( Vector &  colorLevels)

specific color map color stop values

void openstudio::FloodPlot::colorMap ( FloodPlotColorMap::ColorMapList  clrMap)

set the color map

void openstudio::FloodPlot::colorMapRange ( double  min,
double  max 
)

color map range min and max values

void openstudio::FloodPlot::contourLevels ( Vector &  contourValues)

contour level limits

static FloodPlot::Ptr openstudio::FloodPlot::create ( const Matrix &  m)
static
void openstudio::FloodPlot::dataAutoRange ( )

data autoscaling

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

drop target support for drag/drop operations

void openstudio::FloodPlot::floodPlotData ( FloodPlotData::Ptr  data)

set the data

void openstudio::FloodPlot::showContour ( bool  on)

show the contour map

void openstudio::FloodPlot::showSpectrogram ( bool  on)

show the spectrogram

void openstudio::FloodPlot::timeseriesData ( TimeSeries  tsData)

convenience wrapper for timeseries data

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

update based on center and span

Implements openstudio::Plot2D.

Member Data Documentation

QAction* openstudio::FloodPlot::colorMapSelection
QAction* openstudio::FloodPlot::contourPlot
FloodPlot* openstudio::FloodPlot::parent

default constructor

FloodPlot::Ptr create* openstudio::FloodPlot::parent
static

create