NAPISD
PAHdb website C++ backend
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Plot Class Reference
Inheritance diagram for Plot:
CanvasItem LineProperties

Public Types

typedef std::vector< std::unique_ptr< CanvasItem > >::iterator iterator
 
- Public Types inherited from CanvasItem
enum class  Type : char {
  I_None , I_Point , I_Line , I_Curve ,
  I_Plot , I_Text , I_Panels
}
 
- Public Types inherited from LineProperties
enum class  Style : char {
  Continuous = 1 , Dashed , LongDashed , LongDashedShortGaps ,
  DashedLongGasp
}
 

Public Member Functions

virtual Plotclone () const
 
 Plot (Plot const &other)
 
CanvasItemoperator[] (std::size_t idx)
 
iterator begin () noexcept
 
iterator end () noexcept
 
void add (CanvasItem &item)
 
void add (std::vector< CanvasItem > &items)
 
void clear ()
 
void erase (std::vector< std::unique_ptr< CanvasItem > >::iterator begin, std::vector< std::unique_ptr< CanvasItem > >::iterator end)
 
void setXLimits (const std::array< double, 2 > &limits)
 
std::array< double, 2 > const & getXLimits () const
 
void setYLimits (const std::array< double, 2 > &limits)
 
std::array< double, 2 > const & getYLimits () const
 
void setZLimits (const std::array< double, 2 > &limits)
 
std::array< double, 2 > const & getZLimits () const
 
void setXMargins (const std::array< double, 2 > &margins)
 
std::array< double, 2 > const & getXMargins () const
 
void setYMargins (const std::array< double, 2 > &margins)
 
std::array< double, 2 > const & getYMargins () const
 
void setZMargins (const std::array< double, 2 > &margins)
 
std::array< double, 2 > const & getZMargins () const
 
void setTitle (std::string_view title)
 
std::string_view getTitle () const
 
void setDrawHorizontalGrid (bool on)
 
LinePropertiesgetHorizontalGrid ()
 
bool isDrawHorizontalGrid () const
 
void setDrawVerticalGrid (bool on)
 
LinePropertiesgetVerticalGrid ()
 
bool isDrawVerticalGrid () const
 
void setDrawHorizontalFineGrid (bool on)
 
bool isDrawHorizontalFineGrid () const
 
void setDrawVerticalFineGrid (bool on)
 
bool isDrawVerticalFineGrid () const
 
void setAdvance (bool on)
 
bool isAdvance () const
 
std::vector< Axis > & getXAxis ()
 
std::vector< Axis > & getYAxis ()
 
std::vector< Axis > & getZAxis ()
 
void setFontSize (double size)
 
const double & getFontSize () const
 
void setMajorTickLength (double length)
 
const double & getMajorTickLength () const
 
void setMinorTickLength (double length)
 
const double & getMinorTickLength () const
 
void test ()
 
- Public Member Functions inherited from LineProperties
void setColor (std::string_view color)
 
std::string_view getColor () const
 
void setLineWidth (int width)
 
const int & getLineWidth () const
 
void setLineStyle (Style style)
 
const Style & getLineStyle () const
 

Additional Inherited Members

- Public Attributes inherited from CanvasItem
Type type
 

Detailed Description

Definition at line 20 of file Plot.h.

Member Typedef Documentation

◆ iterator

typedef std::vector<std::unique_ptr<CanvasItem>>::iterator Plot::iterator

Definition at line 23 of file Plot.h.

Constructor & Destructor Documentation

◆ Plot() [1/2]

Plot::Plot ( )

Definition at line 3 of file Plot.cpp.

◆ Plot() [2/2]

Plot::Plot ( Plot const &  other)

Definition at line 17 of file Plot.cpp.

Member Function Documentation

◆ add() [1/2]

void Plot::add ( CanvasItem item)

Definition at line 47 of file Plot.cpp.

◆ add() [2/2]

void Plot::add ( std::vector< CanvasItem > &  items)

Definition at line 49 of file Plot.cpp.

◆ begin()

iterator Plot::begin ( )
inlinenoexcept

Definition at line 30 of file Plot.h.

◆ clear()

void Plot::clear ( )
inline

Definition at line 165 of file Plot.h.

◆ clone()

Plot * Plot::clone ( ) const
virtual

Reimplemented from CanvasItem.

Definition at line 46 of file Plot.cpp.

◆ end()

iterator Plot::end ( )
inlinenoexcept

Definition at line 32 of file Plot.h.

◆ erase()

void Plot::erase ( std::vector< std::unique_ptr< CanvasItem > >::iterator  begin,
std::vector< std::unique_ptr< CanvasItem > >::iterator  end 
)
inline

Definition at line 168 of file Plot.h.

◆ getFontSize()

const double & Plot::getFontSize ( ) const
inline

Definition at line 263 of file Plot.h.

◆ getHorizontalGrid()

LineProperties & Plot::getHorizontalGrid ( )
inline

Definition at line 229 of file Plot.h.

◆ getMajorTickLength()

const double & Plot::getMajorTickLength ( ) const
inline

Definition at line 269 of file Plot.h.

◆ getMinorTickLength()

const double & Plot::getMinorTickLength ( ) const
inline

Definition at line 277 of file Plot.h.

◆ getTitle()

std::string_view Plot::getTitle ( ) const
inline

Definition at line 199 of file Plot.h.

◆ getVerticalGrid()

LineProperties & Plot::getVerticalGrid ( )
inline

Definition at line 237 of file Plot.h.

◆ getXAxis()

std::vector< Axis > & Plot::getXAxis ( )
inline

Definition at line 281 of file Plot.h.

◆ getXLimits()

std::array< double, 2 > const & Plot::getXLimits ( ) const
inline

Definition at line 201 of file Plot.h.

◆ getXMargins()

std::array< double, 2 > const & Plot::getXMargins ( ) const
inline

Definition at line 213 of file Plot.h.

◆ getYAxis()

std::vector< Axis > & Plot::getYAxis ( )
inline

Definition at line 283 of file Plot.h.

◆ getYLimits()

std::array< double, 2 > const & Plot::getYLimits ( ) const
inline

Definition at line 205 of file Plot.h.

◆ getYMargins()

std::array< double, 2 > const & Plot::getYMargins ( ) const
inline

Definition at line 217 of file Plot.h.

◆ getZAxis()

std::vector< Axis > & Plot::getZAxis ( )
inline

Definition at line 285 of file Plot.h.

◆ getZLimits()

std::array< double, 2 > const & Plot::getZLimits ( ) const
inline

Definition at line 209 of file Plot.h.

◆ getZMargins()

std::array< double, 2 > const & Plot::getZMargins ( ) const
inline

Definition at line 221 of file Plot.h.

◆ isAdvance()

bool Plot::isAdvance ( ) const
inline

Definition at line 257 of file Plot.h.

◆ isDrawHorizontalFineGrid()

bool Plot::isDrawHorizontalFineGrid ( ) const
inline

Definition at line 245 of file Plot.h.

◆ isDrawHorizontalGrid()

bool Plot::isDrawHorizontalGrid ( ) const
inline

Definition at line 231 of file Plot.h.

◆ isDrawVerticalFineGrid()

bool Plot::isDrawVerticalFineGrid ( ) const
inline

Definition at line 253 of file Plot.h.

◆ isDrawVerticalGrid()

bool Plot::isDrawVerticalGrid ( ) const
inline

Definition at line 239 of file Plot.h.

◆ operator[]()

CanvasItem & Plot::operator[] ( std::size_t  idx)
inline

Definition at line 163 of file Plot.h.

◆ setAdvance()

void Plot::setAdvance ( bool  on = true)
inline

Definition at line 259 of file Plot.h.

◆ setDrawHorizontalFineGrid()

void Plot::setDrawHorizontalFineGrid ( bool  on = true)
inline

Definition at line 241 of file Plot.h.

◆ setDrawHorizontalGrid()

void Plot::setDrawHorizontalGrid ( bool  on = true)
inline

Definition at line 225 of file Plot.h.

◆ setDrawVerticalFineGrid()

void Plot::setDrawVerticalFineGrid ( bool  on = true)
inline

Definition at line 249 of file Plot.h.

◆ setDrawVerticalGrid()

void Plot::setDrawVerticalGrid ( bool  on = true)
inline

Definition at line 233 of file Plot.h.

◆ setFontSize()

void Plot::setFontSize ( double  size)
inline

Definition at line 261 of file Plot.h.

◆ setMajorTickLength()

void Plot::setMajorTickLength ( double  length)
inline

Definition at line 265 of file Plot.h.

◆ setMinorTickLength()

void Plot::setMinorTickLength ( double  length)
inline

Definition at line 273 of file Plot.h.

◆ setTitle()

void Plot::setTitle ( std::string_view  title)
inline

Definition at line 197 of file Plot.h.

◆ setXLimits()

void Plot::setXLimits ( const std::array< double, 2 > &  limits)
inline

Definition at line 173 of file Plot.h.

◆ setXMargins()

void Plot::setXMargins ( const std::array< double, 2 > &  margins)
inline

Definition at line 185 of file Plot.h.

◆ setYLimits()

void Plot::setYLimits ( const std::array< double, 2 > &  limits)
inline

Definition at line 177 of file Plot.h.

◆ setYMargins()

void Plot::setYMargins ( const std::array< double, 2 > &  margins)
inline

Definition at line 189 of file Plot.h.

◆ setZLimits()

void Plot::setZLimits ( const std::array< double, 2 > &  limits)
inline

Definition at line 181 of file Plot.h.

◆ setZMargins()

void Plot::setZMargins ( const std::array< double, 2 > &  margins)
inline

Definition at line 193 of file Plot.h.

◆ test()

void Plot::test ( )
inline

Definition at line 113 of file Plot.h.


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

Since FY2019 the NASA Ames PAH IR Spectroscopic Database is being supported through a directed Work Package at NASA Ames titled: "Laboratory Astrophysics - The NASA Ames PAH IR Spectroscopic Database".
Since FY2023 the NASA Ames PAH IR Spectroscopic Database is being supported through the Laboratory Astrophysics Rd 2 directed Work Package at NASA Ames.
© Copyright 2021-2025, Christiaan Boersma