Inherited by DD::Image::ObjectGrid, and DD::Image::RegularGrid.
Public Member Functions | |
| unsigned int | getWidth () const |
| unsigned int | getHeight () const |
| unsigned int | getDepth () const |
| unsigned int | cellIndex (unsigned int x, unsigned int y, unsigned int z) const |
| const Vector3 & | cellSize () const |
| const Box3 & | bounds () const |
| virtual bool | getCellsAlongRay (ViewerContext *ctx, const Ray &ray, std::list< unsigned int > &candidates) const |
| virtual bool | processCellsAlongRay (ViewerContext *ctx, const Ray &ray, std::vector< bool > &tested, PrimitiveTestCache &primTested) |
| virtual bool | processCell (ViewerContext *ctx, unsigned int cellIndex, const Ray &ray, std::vector< bool > &tested, PrimitiveTestCache &primTested) |
| void | calculateCellSizes (int averageItemsPerCell, int totalItems) |
| virtual Vector4 | cellColor (unsigned int index) const |
| Get the cell color for wireframe draw. Used for debugging. | |
| void | draw_wireframe (ViewerContext *vtx) const |
| Draw the wireframe grid. Used for debugging. | |
Protected Member Functions | |
| void | clampGridDimensions () |
Protected Attributes | |
| unsigned int | _width |
| unsigned int | _height |
| unsigned int | _depth |
| Vector3 | _cellSize |
| Box3 | _bounds |