LibreCAD
|
#include <snapconstrain.h>
Public Member Functions | |
SimpleSnapConstrain & | operator= (const SimpleSnapConstrain &other) |
SimpleSnapConstrain () | |
SimpleSnapConstrain (uint16_t constrain, int divisions, double angle) | |
const uint16_t | constrain () const |
int | divisions () const |
double | angle () const |
SimpleSnapConstrain | setDivisions (int divisions) const |
SimpleSnapConstrain | setAngle (double angle) const |
SimpleSnapConstrain | enableConstrain (uint16_t constrain) const |
SimpleSnapConstrain | disableConstrain (uint16_t constrain) const |
bool | hasConstrain (uint16_t constrain) const |
Static Public Attributes | |
static const uint16_t | NONE = 0x00 |
static const uint16_t | ON_ENTITY = 0x01 |
static const uint16_t | ON_ENTITYPATH = 0x02 |
static const uint16_t | ENTITY_CENTER = 0x04 |
static const uint16_t | LOGICAL = 0x08 |
static const uint16_t | DIVIDED = 0x10 |
Private Attributes | |
uint16_t | _constrain |
int | _divisions |
double | _angle |
A SimpleSnapConstrain allow's setting up snapping where we are only interested in possible snap point's based on a location. Each entity that implements Snapable needs to take into the rules of SimpleSnapConstrain where possible and/or where it makes sense
Definition at line 15 of file snapconstrain.h.
|
inline |
Definition at line 37 of file snapconstrain.h.
|
inline |
Definition at line 42 of file snapconstrain.h.
|
inline |
Definition at line 55 of file snapconstrain.h.
|
inline |
Definition at line 47 of file snapconstrain.h.
|
inline |
Definition at line 71 of file snapconstrain.h.
|
inline |
Definition at line 51 of file snapconstrain.h.
|
inline |
Definition at line 67 of file snapconstrain.h.
|
inline |
Definition at line 75 of file snapconstrain.h.
|
inline |
Definition at line 27 of file snapconstrain.h.
|
inline |
Definition at line 63 of file snapconstrain.h.
|
inline |
Definition at line 59 of file snapconstrain.h.
|
private |
Definition at line 83 of file snapconstrain.h.
|
private |
Definition at line 81 of file snapconstrain.h.
|
private |
Definition at line 82 of file snapconstrain.h.
|
static |
Definition at line 24 of file snapconstrain.h.
|
static |
Definition at line 20 of file snapconstrain.h.
|
static |
Definition at line 22 of file snapconstrain.h.
|
static |
Definition at line 17 of file snapconstrain.h.
|
static |
Definition at line 18 of file snapconstrain.h.
|
static |
Definition at line 19 of file snapconstrain.h.