Start cleaning geometry module.
This commit is contained in:
parent
26ecae46b3
commit
cd688f608f
52 changed files with 493 additions and 277 deletions
|
@ -1,29 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include "Rectangle.h"
|
||||
#include "Bounds.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
template<typename T>
|
||||
class Grid
|
||||
{
|
||||
public:
|
||||
Grid(const ntk::Rectangle& bounds);
|
||||
Grid(const Bounds& bounds);
|
||||
|
||||
const ntk::Rectangle& getBounds() const;
|
||||
const Bounds& getBounds() const;
|
||||
|
||||
double getXSpacing() const;
|
||||
|
||||
double getYSpacing() const;
|
||||
|
||||
const std::vector<T>& getValues() const;
|
||||
const std::vector<double>& getValues() const;
|
||||
|
||||
void resetBounds(const ntk::Rectangle& bounds);
|
||||
void resetBounds(const Bounds& bounds);
|
||||
|
||||
void setValues(const std::vector<std::size_t>& indices, T value);
|
||||
void setValues(const std::vector<std::size_t>& indices, double value);
|
||||
|
||||
private:
|
||||
ntk::Rectangle mBounds;
|
||||
std::vector<T> mValues;
|
||||
Bounds mBounds;
|
||||
std::vector<double> mValues;
|
||||
unsigned mNumX{5};
|
||||
unsigned mNumY{5};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue