1 /**************************************************************************************** 2 * Copyright (c) 2008-2011 Soren Harward <stharward@gmail.com> * 3 * * 4 * This program is free software; you can redistribute it and/or modify it under * 5 * the terms of the GNU General Public License as published by the Free Software * 6 * Foundation; either version 2 of the License, or (at your option) any later * 7 * version. * 8 * * 9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 11 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 12 * * 13 * You should have received a copy of the GNU General Public License along with * 14 * this program. If not, see <http://www.gnu.org/licenses/>. * 15 ****************************************************************************************/ 16 17 #ifndef APG_CONSTRAINT 18 #define APG_CONSTRAINT 19 20 #include "ConstraintNode.h" 21 22 #include <QObject> 23 24 /* ABC for all Constraints */ 25 class Constraint : public ConstraintNode { 26 Q_OBJECT 27 public: getNodeType()28 int getNodeType() const override { return ConstraintNode::ConstraintType; } 29 30 protected: 31 Constraint( ConstraintNode* ); 32 }; 33 34 #endif 35