33 #ifndef ICL_HAVE_OPENGL 35 #pragma WARNING("this header must not be included if ICL_HAVE_OPENGL is not defined") 37 #warning "this header must not be included if ICL_HAVE_OPENGL is not defined" 57 void init(
int nXCells,
int nYCells,
const std::vector<Vec> &allGridPoints,
bool lines,
bool quads) ;
63 GridSceneObject(
int nXCells,
int nYCells,
const std::vector<Vec> &allGridPoints,
64 bool lines=
true,
bool quads=
true) ;
69 bool lines=
true,
bool quads=
true);
72 inline int getIdx(
int x,
int y)
const {
return x+nXCells*y; }
75 Vec &
getNode(
int x,
int y){
return m_vertices[getIdx(x,y)]; }
78 const Vec &
getNode(
int x,
int y)
const {
return m_vertices[getIdx(x,y)]; }
90 inline int getWidth()
const {
return nXCells; }
undocument this line if you encounter any issues!
Definition: Any.h:37
int getIdx(int x, int y) const
returns the node index of given node x/y position
Definition: GridSceneObject.h:72
#define ICLGeom_API
Definition: CompatMacros.h:179
utils::Size getSize() const
returns grid dimension (nXCells * nYCells)
Definition: GridSceneObject.h:87
int nXCells
grid width
Definition: GridSceneObject.h:53
int nYCells
grid height
Definition: GridSceneObject.h:54
Vec & getNode(int x, int y)
returns node at given x/y grid position
Definition: GridSceneObject.h:75
Size class of the ICL.
Definition: Size.h:61
const Vec & getNode(const utils::Point &p) const
returns node at given grid position (const)
Definition: GridSceneObject.h:84
int getHeight() const
returns grid height
Definition: GridSceneObject.h:93
const Vec & getNode(int x, int y) const
returns node at given x/y grid position (const)
Definition: GridSceneObject.h:78
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
Vec & getNode(const utils::Point &p)
returns node at given grid position
Definition: GridSceneObject.h:81
int getWidth() const
returns grid width
Definition: GridSceneObject.h:90
The SceneObject class defines visible objects in scenes or scene graph nodes.
Definition: SceneObject.h:140
SceneObject specialization for grid like objects.
Definition: GridSceneObject.h:52