data points data of profile management class More...
#include <DataPoints.h>


Classes | |
| union | DataArray |
| data array type More... | |
Public Types | |
| enum | ArrayType { DOUBLE, FLOAT } |
| the type of array | |
Public Member Functions | |
| DataPoints (ArrayType type=DOUBLE) | |
| constructor More... | |
| DataPoints (const DataPoints &pts) | |
| copy constructor More... | |
| virtual | ~DataPoints () |
| destructor | |
| DataPoints & | operator= (const DataPoints &other) |
| substitution operator More... | |
| void * | getXData () |
| gets the pointer of x data array More... | |
| void * | getYData () |
| gets the pointer of y data array More... | |
Public Member Functions inherited from kome::core::XYData | |
| XYData () | |
| constructor | |
| virtual | ~XYData () |
| destructor | |
| double | getMinX () |
| gets minimum x More... | |
| double | getMaxX () |
| gets maximum x More... | |
| double | getMinY () |
| gets minimum y More... | |
| double | getMaxY () |
| gets maximum y More... | |
| void | clearPoints () |
| clear all data points | |
| void | addPoint (const double x, const double y) |
| adds point More... | |
| void | insertPoint (const unsigned int index, const double x, const double y) |
| insertts point More... | |
| void | updatePoint (const unsigned int index, const double x, const double y) |
| updates points More... | |
| void | deletePoint (const unsigned int index) |
| delete point More... | |
| unsigned int | getLength () |
| gets the number of points @return the number of points | |
| double | getX (const unsigned int index) |
| gets x coordinate More... | |
| double | getY (const unsigned int index) |
| gets y coordinate More... | |
| void | reserve (const unsigned int num) |
| reserves enough contiguous memory of array More... | |
| unsigned long | getVersion () |
| gets the version More... | |
| int | searchIndex (const double x) |
| searches index of specified x value. More... | |
| int | getNearestIndex (const double x) |
| gets nearest index More... | |
| void | filter (const double absY=0.0, const double relY=0.0) |
| executes filter More... | |
| void | getPoints (std::vector< Point< double > > &points, const bool ySort, const bool desc) |
| gets points array More... | |
| bool | importData (boost::function< int(void *, int) > readFun) |
| imports data More... | |
| bool | exportData (boost::function< int(void *, int) > writeFun) |
| exports data More... | |
Protected Member Functions | |
| virtual void | onClearPoints () |
| This method is called by clearPoints method. (override method) | |
| virtual void | onAddPoint (const double x, const double y) |
| This method is called by addPoint method. (override method) More... | |
| virtual void | onInsertPoint (const unsigned int index, const double x, const double y) |
| This method is called by insertPoint method. (override method) More... | |
| virtual void | onDeletePoint (const unsigned int index) |
| This method is called by deletePoint method. (override method) More... | |
| virtual unsigned int | onGetLength () |
| this method is called by getLength method (override method) More... | |
| virtual double | onGetX (const unsigned int index) |
| This method is called by getX method. (override method) More... | |
| virtual double | onGetY (const unsigned int index) |
| This method is called by getY method. (override method) More... | |
| virtual void | onReserve (const unsigned int num) |
| This method is called by reserve method. (override method) More... | |
| void | changeSize (const unsigned int size) |
| change the array of data More... | |
Protected Member Functions inherited from kome::core::XYData | |
| void | updateRange () |
| updates range | |
| virtual bool | onLoadData (boost::function< int(void *, int) > readFun) |
| loads data from file More... | |
| virtual bool | onSaveData (boost::function< int(void *, int) > writeFun) |
| saves data to file More... | |
Protected Attributes | |
| ArrayType | m_type |
| DataArray | m_xArray |
| DataArray | m_yArray |
| unsigned int | m_arraySize |
| unsigned int | m_length |
Protected Attributes inherited from kome::core::XYData | |
| bool | m_updated |
| double | m_minX |
| double | m_maxX |
| double | m_minY |
| double | m_maxY |
| unsigned long | m_version |
Additional Inherited Members | |
Static Protected Attributes inherited from kome::core::XYData | |
| static unsigned long | m_currentVersion = 0 |
| version More... | |
data points data of profile management class
Definition at line 25 of file DataPoints.h.
| kome::core::DataPoints::DataPoints | ( | ArrayType | type = DOUBLE | ) |
constructor
| [in] | type | the type of array |
Definition at line 31 of file DataPoints.cpp.

| kome::core::DataPoints::DataPoints | ( | const DataPoints & | pts | ) |
|
protected |
change the array of data
| [in] | size | new size |
Definition at line 279 of file DataPoints.cpp.

| void * kome::core::DataPoints::getXData | ( | ) |
| void * kome::core::DataPoints::getYData | ( | ) |
|
protectedvirtual |
This method is called by addPoint method. (override method)
| [in] | x | x coordinate of point to be added |
| [in] | y | y coordinate of point to be added |
Implements kome::core::XYData.
Definition at line 170 of file DataPoints.cpp.

|
protectedvirtual |
This method is called by deletePoint method. (override method)
| [in] | index | point index |
Implements kome::core::XYData.
Definition at line 227 of file DataPoints.cpp.
|
protectedvirtual |
this method is called by getLength method (override method)
Implements kome::core::XYData.
Definition at line 247 of file DataPoints.cpp.
|
protectedvirtual |
This method is called by getX method. (override method)
| [in] | index | the index of point |
Implements kome::core::XYData.
Definition at line 252 of file DataPoints.cpp.
|
protectedvirtual |
This method is called by getY method. (override method)
| [in] | index | the index of point |
Implements kome::core::XYData.
Definition at line 260 of file DataPoints.cpp.
|
protectedvirtual |
This method is called by insertPoint method. (override method)
| [in] | index | insert position |
| [in] | x | x coordinate of point |
| [in] | y | y coordinate of point |
Implements kome::core::XYData.
Definition at line 191 of file DataPoints.cpp.

|
protectedvirtual |
This method is called by reserve method. (override method)
| [in] | num | of points to be reserved |
Implements kome::core::XYData.
Definition at line 268 of file DataPoints.cpp.

| DataPoints & kome::core::DataPoints::operator= | ( | const DataPoints & | other | ) |
substitution operator
| [in] | other | source data points |
Definition at line 88 of file DataPoints.cpp.
|
protected |
the size of array
Definition at line 86 of file DataPoints.h.
|
protected |
the number of data points
Definition at line 89 of file DataPoints.h.
|
protected |
type of array
Definition at line 77 of file DataPoints.h.
|
protected |
the array of x data
Definition at line 80 of file DataPoints.h.
|
protected |
the array of y data
Definition at line 83 of file DataPoints.h.
1.8.6