8 #include "API/Grids/BaseCell.hpp"
10 #include <libxml/parser.h>
28 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
36 virtual double getCost() {
return 0; };
41 Eigen::Vector3d getCorner() {
return _corner; }
45 int getIndex() {
return _index; }
47 void setCorner(
const Eigen::Vector3d& corner) { _corner = corner; }
48 void setGrid(
ThreeDGrid* grid ) { _grid = grid; }
52 void drawColorGradient(
double value,
double min,
double max ,
bool inverse =
false );
54 bool writeToXml(xmlNodePtr cur);
55 bool readCellFromXml(xmlNodePtr cur);
57 bool operator==( ThreeDCell otherCell) {
return ((otherCell._index) == (this->_index)); }
61 Eigen::Vector3d _corner;
Eigen::Vector3d getRandomPoint()
Random Point In ThreeDCell.
Definition: ThreeDCell.cpp:97
Definition: ThreeDGrid.hpp:24
bool isInsideCell(Eigen::Vector3d point)
Function is inside cell.
Definition: ThreeDCell.cpp:67
Definition: BaseCell.hpp:11
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ThreeDCell()
Constructor of cell.
Definition: ThreeDCell.cpp:24
virtual ~ThreeDCell()
Constructor of cell.
Definition: ThreeDCell.cpp:57
Eigen::Vector3d getCenter()
Function to get the center of the cell.
Definition: ThreeDCell.cpp:78
Definition: ThreeDCell.hpp:25
Eigen::Vector3d getCellSize()
Gets the cell size.
Definition: ThreeDCell.cpp:119
void drawColorGradient(double value, double min, double max, bool inverse=false)
should be between min and max the min value that value can take the max value that value can take ...
Definition: ThreeDCell.cpp:232