int Object::viewportHeight = 0;
bool Object::deleteActive = false;
bool Object::dimensionActive = false;
+bool Object::snapToGrid = true;
Object::Object(): position(Vector(0, 0)), parent(0), state(OSInactive), oldState(OSInactive),
{
}
+// This returns a pointer to the point passed in, if it coincides. Otherwise returns NULL.
+/*virtual*/ Vector * Object::GetPointAt(Vector)
+{
+ return 0;
+}
+
ObjectState Object::GetState(void)
{
return state;
parent = newParent;
}
+Dimension * Object::GetAttachedDimension(void)
+{
+ return attachedDimension;
+}
+
// Class methods...
void Object::SetFixedAngle(bool state/*= true*/)
{
dimensionActive = state;
}
+
+void Object::SetSnapMode(bool state/*= true*/)
+{
+ snapToGrid = state;
+}