CPP-TOOLBOX
Loading...
Searching...
No Matches
vertex_geometry::Grid Class Reference

#include <vertex_geometry.hpp>

Public Member Functions

 Grid (int rows, int cols, float width=2.0f, float height=2.0f, float origin_x=0.0f, float origin_y=0.0f, float origin_z=0.0f)
 
 Grid (int rows, int cols, const Rectangle &rect)
 
Rectangle get_at (int col, int row) const
 
std::vector< Rectangleget_selection (float x0, float y0, float x1, float y1) const
 
std::vector< Rectangleget_rectangles_in_bounding_box (int row1, int col1, int row2, int col2) const
 
std::vector< Rectangleget_row (int row) const
 
std::vector< Rectangleget_column (int col) const
 

Public Attributes

const int rows
 
const int cols
 

Constructor & Destructor Documentation

◆ Grid() [1/2]

vertex_geometry::Grid::Grid ( int rows,
int cols,
float width = 2.0f,
float height = 2.0f,
float origin_x = 0.0f,
float origin_y = 0.0f,
float origin_z = 0.0f )

◆ Grid() [2/2]

vertex_geometry::Grid::Grid ( int rows,
int cols,
const Rectangle & rect )

Member Function Documentation

◆ get_at()

Rectangle vertex_geometry::Grid::get_at ( int col,
int row ) const

◆ get_column()

std::vector< Rectangle > vertex_geometry::Grid::get_column ( int col) const

◆ get_rectangles_in_bounding_box()

std::vector< Rectangle > vertex_geometry::Grid::get_rectangles_in_bounding_box ( int row1,
int col1,
int row2,
int col2 ) const

◆ get_row()

std::vector< Rectangle > vertex_geometry::Grid::get_row ( int row) const

◆ get_selection()

std::vector< Rectangle > vertex_geometry::Grid::get_selection ( float x0,
float y0,
float x1,
float y1 ) const

Member Data Documentation

◆ cols

const int vertex_geometry::Grid::cols

◆ rows

const int vertex_geometry::Grid::rows

The documentation for this class was generated from the following files: