25 std::cout << QString(
"Volume: Simple, bounds=[%1]")
36 float linespacing =
mBounds(axis)/n_lines;
38 for(
int i = 0; i < n_lines; i++)
40 if(x > i*linespacing + linespacing/2 && x < i*linespacing + thickness + linespacing/2)
42 if(y > 0.0f && y < thickness)
78 if(
isOnLine(x, y-4.0f, 0.125f, 5, 2))
82 if(
isOnLine(x, y-5.0f, 0.0625f, 5, 2))
98 if(
isOnLine(x, z-4.0f, 0.125f, 5, 1))
102 if(
isOnLine(x, z-5.0f, 0.0625f, 5, 1))
113 if(
isOnLine(z, y-3.0f, 0.25f, 5, 0))
118 if(
isOnLine(z, y-4.0f, 0.125f, 5, 0))
122 if(
isOnLine(z, y-5.0f, 0.0625f, 5, 0))
129 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.