46 std::cout << QString(
"Volume: Simple, bounds=[%1]")
57 float linespacing =
mBounds(axis)/n_lines;
59 for(
int i = 0; i < n_lines; i++)
61 if(x > i*linespacing + linespacing/2 && x < i*linespacing + thickness + linespacing/2)
63 if(y > 0.0f && y < thickness)
99 if(
isOnLine(x, y-4.0f, 0.125f, 5, 2))
103 if(
isOnLine(x, y-5.0f, 0.0625f, 5, 2))
114 if(
isOnLine(x, z-3.0f, 0.25f, 5, 1))
119 if(
isOnLine(x, z-4.0f, 0.125f, 5, 1))
123 if(
isOnLine(x, z-5.0f, 0.0625f, 5, 1))
134 if(
isOnLine(z, y-3.0f, 0.25f, 5, 0))
139 if(
isOnLine(z, y-4.0f, 0.125f, 5, 0))
143 if(
isOnLine(z, y-5.0f, 0.0625f, 5, 0))
150 else if(x > 0 && x <
mBounds(0)
QString qstring_cast(const T &val)
virtual unsigned char evaluate(const cx::Vector3D &p) const
virtual bool isOnLine(float x, float y, float thickness, int n_lines, int axis) const
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
cxSimpleSyntheticVolume(Vector3D bounds)
virtual void printInfo() const
Namespace for all CustusX production code.