QGIS API Documentation  2.10.1-Pisa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 193 of file qgspointlocator.cpp.

Member Typedef Documentation

Definition at line 197 of file qgspointlocator.cpp.

Constructor & Destructor Documentation

_CohenSutherland::_CohenSutherland ( const QgsRectangle rect)
inline

Definition at line 195 of file qgspointlocator.cpp.

Member Function Documentation

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

Definition at line 207 of file qgspointlocator.cpp.

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

Definition at line 221 of file qgspointlocator.cpp.

Member Data Documentation

const int _CohenSutherland::BOTTOM = 4
static

Definition at line 202 of file qgspointlocator.cpp.

const int _CohenSutherland::INSIDE = 0
static

Definition at line 199 of file qgspointlocator.cpp.

const int _CohenSutherland::LEFT = 1
static

Definition at line 200 of file qgspointlocator.cpp.

QgsRectangle _CohenSutherland::mRect

Definition at line 205 of file qgspointlocator.cpp.

const int _CohenSutherland::RIGHT = 2
static

Definition at line 201 of file qgspointlocator.cpp.

const int _CohenSutherland::TOP = 8
static

Definition at line 203 of file qgspointlocator.cpp.


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