SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Spline Class Reference

#include <mat_tools.h>

Public Member Functions

 CSG_Spline (void)
virtual ~CSG_Spline (void)
void Destroy (void)
bool Create (double *xValues, double *yValues, int nValues, double yA=1.0e30, double yB=1.0e30)
bool Create (double yA=1.0e30, double yB=1.0e30)
void Add (double x, double y)
int Get_Count (void) const
double Get_xMin (void) const
double Get_xMax (void) const
double Get_x (int i) const
double Get_y (int i) const
bool Get_Value (double x, double &y)
double Get_Value (double x)

Protected Member Functions

bool _Create (double yA, double yB)

Protected Attributes

bool m_bCreated
CSG_Vector m_x
CSG_Vector m_y
CSG_Vector m_z

Detailed Description

Definition at line 1429 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Spline()

CSG_Spline::CSG_Spline ( void )

Definition at line 63 of file mat_spline.cpp.

References m_bCreated.

◆ ~CSG_Spline()

CSG_Spline::~CSG_Spline ( void )
virtual

Definition at line 69 of file mat_spline.cpp.

References Destroy().

Member Function Documentation

◆ _Create()

bool CSG_Spline::_Create ( double yA,
double yB )
protected

Definition at line 128 of file mat_spline.cpp.

References CSG_Vector::Create(), Get_Count(), m_bCreated, m_x, m_y, and m_z.

Referenced by Create(), and Create().

◆ Add()

void CSG_Spline::Add ( double x,
double y )

Definition at line 114 of file mat_spline.cpp.

References m_bCreated, m_x, and m_y.

Referenced by Create().

◆ Create() [1/2]

bool CSG_Spline::Create ( double * xValues,
double * yValues,
int nValues,
double yA = 1.0e30,
double yB = 1.0e30 )

Definition at line 90 of file mat_spline.cpp.

References _Create(), Add(), and Destroy().

Referenced by Get_Value().

◆ Create() [2/2]

bool CSG_Spline::Create ( double yA = 1.0e30,
double yB = 1.0e30 )

Definition at line 103 of file mat_spline.cpp.

References _Create().

◆ Destroy()

void CSG_Spline::Destroy ( void )

Definition at line 80 of file mat_spline.cpp.

References m_bCreated, m_x, m_y, and m_z.

Referenced by Create(), and ~CSG_Spline().

◆ Get_Count()

int CSG_Spline::Get_Count ( void ) const
inline

Definition at line 1442 of file mat_tools.h.

References m_x.

Referenced by _Create(), and Get_Value().

◆ Get_Value() [1/2]

double CSG_Spline::Get_Value ( double x)

Definition at line 248 of file mat_spline.cpp.

References Get_Value().

◆ Get_Value() [2/2]

bool CSG_Spline::Get_Value ( double x,
double & y )

Definition at line 206 of file mat_spline.cpp.

References Create(), Get_Count(), m_bCreated, m_x, m_y, and m_z.

Referenced by CSG_Grids::Get_Value(), and Get_Value().

◆ Get_x()

double CSG_Spline::Get_x ( int i) const
inline

Definition at line 1445 of file mat_tools.h.

References m_x.

◆ Get_xMax()

double CSG_Spline::Get_xMax ( void ) const
inline

Definition at line 1444 of file mat_tools.h.

References m_x.

◆ Get_xMin()

double CSG_Spline::Get_xMin ( void ) const
inline

Definition at line 1443 of file mat_tools.h.

References m_x.

◆ Get_y()

double CSG_Spline::Get_y ( int i) const
inline

Definition at line 1446 of file mat_tools.h.

References m_y.

Member Data Documentation

◆ m_bCreated

bool CSG_Spline::m_bCreated
protected

Definition at line 1454 of file mat_tools.h.

Referenced by _Create(), Add(), CSG_Spline(), Destroy(), and Get_Value().

◆ m_x

CSG_Vector CSG_Spline::m_x
protected

Definition at line 1456 of file mat_tools.h.

Referenced by _Create(), Add(), Destroy(), Get_Count(), Get_Value(), Get_x(), Get_xMax(), and Get_xMin().

◆ m_y

CSG_Vector CSG_Spline::m_y
protected

Definition at line 1456 of file mat_tools.h.

Referenced by _Create(), Add(), Destroy(), Get_Value(), and Get_y().

◆ m_z

CSG_Vector CSG_Spline::m_z
protected

Definition at line 1456 of file mat_tools.h.

Referenced by _Create(), Destroy(), and Get_Value().


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