13 #include <QProgressBar> 15 #include <QOpenGLTexture> 31 Voxel(
const float value);
88 const Voxel&
voxel(
const int x,
const int y,
const int z)
const;
91 const int width()
const;
93 const int depth()
const;
95 const int size()
const;
97 bool loadFromFile(QString filename, QProgressBar* progressBar);
108 std::vector<Voxel> m_Voxels;
const bool operator>=(const Voxel &other) const
const Voxel & operator*=(const float &value)
const Voxel & voxel(const int i) const
Modified volume loader class from Vis 1.
const Voxel operator+(const Voxel &other) const
const bool operator<(const Voxel &other) const
const Voxel operator*(const float &value) const
const bool operator<=(const Voxel &other) const
void setValue(const float value)
QOpenGLTexture * generate3DTex()
generate3DTex transforms the loaded volume data set into a 3D texture which can be sampled in the gls...
const Voxel & operator+=(const Voxel &other)
const Voxel operator/(const float &value) const
const Voxel & operator-=(const Voxel &other)
const Voxel * voxels() const
const bool operator!=(const Voxel &other) const
const Voxel operator-(const Voxel &other) const
Helper class for Voxels with basic operators.
const float getValue() const
bool loadFromFile(QString filename, QProgressBar *progressBar)
const bool operator==(const Voxel &other) const
const bool operator>(const Voxel &other) const
const Voxel & operator/=(const float &value)