Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-02-29 03:25:47 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-02-29 03:25:47 +0300
commita52eb7489f8daad8f68625b773276906a8fffd24 (patch)
tree8f777d711f84d6b7d450cc19219ea3a7c0d80620 /source/blender/editors/transform/transform_constraints.h
parent85f980c517e42d41352bf7190ae850239edc2f88 (diff)
Cleanup: Move transform_constraints declarations to its own header
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.h')
-rw-r--r--source/blender/editors/transform/transform_constraints.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_constraints.h b/source/blender/editors/transform/transform_constraints.h
new file mode 100644
index 00000000000..8938ca93ad8
--- /dev/null
+++ b/source/blender/editors/transform/transform_constraints.h
@@ -0,0 +1,48 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
+ * All rights reserved.
+ */
+
+/** \file
+ * \ingroup edtransform
+ */
+
+#ifndef __TRANSFORM_CONSTRAINTS_H__
+#define __TRANSFORM_CONSTRAINTS_H__
+
+struct TransInfo;
+
+void constraintNumInput(TransInfo *t, float vec[3]);
+void setConstraint(TransInfo *t, float space[3][3], int mode, const char text[]);
+void setAxisMatrixConstraint(TransInfo *t, int mode, const char text[]);
+void setLocalConstraint(TransInfo *t, int mode, const char text[]);
+void setUserConstraint(TransInfo *t, short orientation, int mode, const char text[]);
+void drawConstraint(TransInfo *t);
+void drawPropCircle(const struct bContext *C, TransInfo *t);
+void startConstraint(TransInfo *t);
+void stopConstraint(TransInfo *t);
+void getConstraintMatrix(TransInfo *t);
+void initSelectConstraint(TransInfo *t, float mtx[3][3]);
+void selectConstraint(TransInfo *t);
+void postSelectConstraint(TransInfo *t);
+void setNearestAxis(TransInfo *t);
+int constraintModeToIndex(const TransInfo *t);
+char constraintModeToChar(const TransInfo *t);
+bool isLockConstraint(TransInfo *t);
+int getConstraintSpaceDimension(TransInfo *t);
+
+#endif