QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
_CohenSutherland Struct Reference

Public Types

typedef int OutCode
 

Public Member Functions

 _CohenSutherland (const QgsRectangle &rect)
 
OutCode computeOutCode (double x, double y)
 
bool isSegmentInRect (double x0, double y0, double x1, double y1)
 

Public Attributes

QgsRectangle mRect
 

Static Public Attributes

static const int BOTTOM = 4
 
static const int INSIDE = 0
 
static const int LEFT = 1
 
static const int RIGHT = 2
 
static const int TOP = 8
 

Detailed Description

Definition at line 467 of file qgspointlocator.cpp.

Member Typedef Documentation

◆ OutCode

Definition at line 471 of file qgspointlocator.cpp.

Constructor & Destructor Documentation

◆ _CohenSutherland()

_CohenSutherland::_CohenSutherland ( const QgsRectangle rect)
inlineexplicit

Definition at line 469 of file qgspointlocator.cpp.

Member Function Documentation

◆ computeOutCode()

OutCode _CohenSutherland::computeOutCode ( double  x,
double  y 
)
inline

Definition at line 481 of file qgspointlocator.cpp.

◆ isSegmentInRect()

bool _CohenSutherland::isSegmentInRect ( double  x0,
double  y0,
double  x1,
double  y1 
)
inline

Definition at line 495 of file qgspointlocator.cpp.

Member Data Documentation

◆ BOTTOM

const int _CohenSutherland::BOTTOM = 4
static

Definition at line 476 of file qgspointlocator.cpp.

◆ INSIDE

const int _CohenSutherland::INSIDE = 0
static

Definition at line 473 of file qgspointlocator.cpp.

◆ LEFT

const int _CohenSutherland::LEFT = 1
static

Definition at line 474 of file qgspointlocator.cpp.

◆ mRect

QgsRectangle _CohenSutherland::mRect

Definition at line 479 of file qgspointlocator.cpp.

◆ RIGHT

const int _CohenSutherland::RIGHT = 2
static

Definition at line 475 of file qgspointlocator.cpp.

◆ TOP

const int _CohenSutherland::TOP = 8
static

Definition at line 477 of file qgspointlocator.cpp.


The documentation for this struct was generated from the following file: