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

Public Types

typedef std::vector< double >::iterator iterator
 
typedef const std::vector< double >::const_iterator const_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

Curveclone () const
 
void setXAndY (const std::vector< double > &x, const std::vector< double > &y)
 
void setXAndY (const double x, const double y)
 
void setXErr (const double xerr)
 
void setXErr (const std::vector< double > &xerr)
 
void setYErr (const double yerr)
 
void setYErr (const std::vector< double > &yerr)
 
std::vector< double > const & getX () const
 
std::vector< double > const & getXErr () const
 
std::vector< double > const & getY () const
 
std::vector< double > const & getYErr () const
 
void clear ()
 
void setFillColor (std::string_view color)
 
std::string_view getFillColor () const
 
void setFill (bool on)
 
bool isFill ()
 
void setSymbol (char symbol)
 
const char & getSymbol () const
 
void setSymbolSize (int size)
 
const int & getSymbolSize () const
 
- 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 11 of file Curve.h.

Member Typedef Documentation

◆ const_iterator

typedef const std::vector<double>::const_iterator Curve::const_iterator

Definition at line 16 of file Curve.h.

◆ iterator

typedef std::vector<double>::iterator Curve::iterator

Definition at line 14 of file Curve.h.

Constructor & Destructor Documentation

◆ Curve()

Curve::Curve ( )

Definition at line 3 of file Curve.cpp.

Member Function Documentation

◆ clear()

void Curve::clear ( )
inline

Definition at line 95 of file Curve.h.

◆ clone()

Curve * Curve::clone ( ) const
virtual

Reimplemented from CanvasItem.

Definition at line 9 of file Curve.cpp.

◆ getFillColor()

std::string_view Curve::getFillColor ( ) const
inline

Definition at line 112 of file Curve.h.

◆ getSymbol()

const char & Curve::getSymbol ( ) const
inline

Definition at line 116 of file Curve.h.

◆ getSymbolSize()

const int & Curve::getSymbolSize ( ) const
inline

Definition at line 120 of file Curve.h.

◆ getX()

std::vector< double > const & Curve::getX ( ) const
inline

Definition at line 87 of file Curve.h.

◆ getXErr()

std::vector< double > const & Curve::getXErr ( ) const
inline

Definition at line 89 of file Curve.h.

◆ getY()

std::vector< double > const & Curve::getY ( ) const
inline

Definition at line 91 of file Curve.h.

◆ getYErr()

std::vector< double > const & Curve::getYErr ( ) const
inline

Definition at line 93 of file Curve.h.

◆ isFill()

bool Curve::isFill ( )
inline

Definition at line 108 of file Curve.h.

◆ setFill()

void Curve::setFill ( bool  on = true)
inline

Definition at line 106 of file Curve.h.

◆ setFillColor()

void Curve::setFillColor ( std::string_view  color)
inline

Definition at line 110 of file Curve.h.

◆ setSymbol()

void Curve::setSymbol ( char  symbol)
inline

Definition at line 114 of file Curve.h.

◆ setSymbolSize()

void Curve::setSymbolSize ( int  size)
inline

Definition at line 118 of file Curve.h.

◆ setXAndY() [1/2]

void Curve::setXAndY ( const double  x,
const double  y 
)

Definition at line 10 of file Curve.cpp.

◆ setXAndY() [2/2]

void Curve::setXAndY ( const std::vector< double > &  x,
const std::vector< double > &  y 
)
inline

Definition at line 77 of file Curve.h.

◆ setXErr() [1/2]

void Curve::setXErr ( const double  xerr)

Definition at line 21 of file Curve.cpp.

◆ setXErr() [2/2]

void Curve::setXErr ( const std::vector< double > &  xerr)
inline

Definition at line 83 of file Curve.h.

◆ setYErr() [1/2]

void Curve::setYErr ( const double  yerr)

Definition at line 28 of file Curve.cpp.

◆ setYErr() [2/2]

void Curve::setYErr ( const std::vector< double > &  yerr)
inline

Definition at line 85 of file Curve.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