#include <clipping.h>
Public Member Functions | |
bool | clip (const Eigen::Vector3f &p0, const Eigen::Vector3f &p1, Eigen::Vector3f &q0, Eigen::Vector3f &q1) |
CohenSutherlandClipping () | |
int | computeCode (float x, float y, float z=0.0f) |
void | setBorders (float x_min, float x_max, float y_min, float y_max, float z_min, float z_max) |
Private Attributes | |
float | xmax |
float | xmin |
float | ymax |
float | ymin |
float | zmax |
float | zmin |
Static Private Attributes | |
static const int | BOTTOM = 4 |
static const int | FAR = 32 |
static const int | LEFT = 1 |
static const int | NEAR = 16 |
static const int | RIGHT = 2 |
static const int | TOP = 8 |
Definition at line 71 of file clipping.h.
Definition at line 74 of file clipping.h.
bool cob_3d_mapping::CohenSutherlandClipping::clip | ( | const Eigen::Vector3f & | p0, |
const Eigen::Vector3f & | p1, | ||
Eigen::Vector3f & | q0, | ||
Eigen::Vector3f & | q1 | ||
) |
int cob_3d_mapping::CohenSutherlandClipping::computeCode | ( | float | x, |
float | y, | ||
float | z = 0.0f |
||
) | [inline] |
Definition at line 92 of file clipping.h.
void cob_3d_mapping::CohenSutherlandClipping::setBorders | ( | float | x_min, |
float | x_max, | ||
float | y_min, | ||
float | y_max, | ||
float | z_min, | ||
float | z_max | ||
) | [inline] |
Definition at line 83 of file clipping.h.
const int cob_3d_mapping::CohenSutherlandClipping::BOTTOM = 4 [static, private] |
Definition at line 122 of file clipping.h.
const int cob_3d_mapping::CohenSutherlandClipping::FAR = 32 [static, private] |
Definition at line 119 of file clipping.h.
const int cob_3d_mapping::CohenSutherlandClipping::LEFT = 1 [static, private] |
Definition at line 124 of file clipping.h.
const int cob_3d_mapping::CohenSutherlandClipping::NEAR = 16 [static, private] |
Definition at line 120 of file clipping.h.
const int cob_3d_mapping::CohenSutherlandClipping::RIGHT = 2 [static, private] |
Definition at line 123 of file clipping.h.
const int cob_3d_mapping::CohenSutherlandClipping::TOP = 8 [static, private] |
Definition at line 121 of file clipping.h.
float cob_3d_mapping::CohenSutherlandClipping::xmax [private] |
Definition at line 113 of file clipping.h.
float cob_3d_mapping::CohenSutherlandClipping::xmin [private] |
Definition at line 112 of file clipping.h.
float cob_3d_mapping::CohenSutherlandClipping::ymax [private] |
Definition at line 115 of file clipping.h.
float cob_3d_mapping::CohenSutherlandClipping::ymin [private] |
Definition at line 114 of file clipping.h.
float cob_3d_mapping::CohenSutherlandClipping::zmax [private] |
Definition at line 117 of file clipping.h.
float cob_3d_mapping::CohenSutherlandClipping::zmin [private] |
Definition at line 116 of file clipping.h.