static void SetDeleteActive(bool state = true);
static void SetDimensionActive(bool state = true);
static void SetSnapMode(bool state = true);
+ static Vector SnapPointToGrid(Vector);
protected:
Vector position; // All objects have a position (doubles as reference point)
std::vector<Connection> connected;
// Class variables
+ public:
static QFont * font;
+ protected:
static bool fixedAngle;
static bool fixedLength;
static int viewportHeight;
static bool deleteActive;
static bool dimensionActive;
+ public:
static bool snapToGrid;
static bool ignoreClicks;
static bool dontMove;
public:
static bool selectionInProgress;
static QRectF selection;
+ static double gridSpacing; // Grid spacing in base units
};
#endif // __OBJECT_H__