Cleanup: Move transform_constraints declarations to its own header
This commit is contained in:
parent
85f980c517
commit
a52eb7489f
|
@ -102,6 +102,7 @@ set(SRC
|
|||
transform_snap_object.c
|
||||
|
||||
transform.h
|
||||
transform_constraints.h
|
||||
transform_convert.h
|
||||
transform_draw_cursors.h
|
||||
transform_mode.h
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
#include "BLT_translation.h"
|
||||
|
||||
#include "transform.h"
|
||||
#include "transform_constraints.h"
|
||||
#include "transform_convert.h"
|
||||
#include "transform_draw_cursors.h"
|
||||
#include "transform_mode.h"
|
||||
|
|
|
@ -829,8 +829,6 @@ void projectFloatView(TransInfo *t, const float vec[3], float adr[2]);
|
|||
void applyAspectRatio(TransInfo *t, float vec[2]);
|
||||
void removeAspectRatio(TransInfo *t, float vec[2]);
|
||||
|
||||
void drawPropCircle(const struct bContext *C, TransInfo *t);
|
||||
|
||||
struct wmKeyMap *transform_modal_keymap(struct wmKeyConfig *keyconf);
|
||||
|
||||
/*********************** transform_gizmo.c ********** */
|
||||
|
@ -844,32 +842,6 @@ void drawDial3d(const TransInfo *t);
|
|||
/*********************** TransData Creation and General Handling *********** */
|
||||
bool transdata_check_local_islands(TransInfo *t, short around);
|
||||
|
||||
/*********************** Constraints *****************************/
|
||||
|
||||
void drawConstraint(TransInfo *t);
|
||||
|
||||
void getConstraintMatrix(TransInfo *t);
|
||||
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 constraintNumInput(TransInfo *t, float vec[3]);
|
||||
|
||||
bool isLockConstraint(TransInfo *t);
|
||||
int getConstraintSpaceDimension(TransInfo *t);
|
||||
int constraintModeToIndex(const TransInfo *t);
|
||||
char constraintModeToChar(const TransInfo *t);
|
||||
|
||||
void startConstraint(TransInfo *t);
|
||||
void stopConstraint(TransInfo *t);
|
||||
|
||||
void initSelectConstraint(TransInfo *t, float mtx[3][3]);
|
||||
void selectConstraint(TransInfo *t);
|
||||
void postSelectConstraint(TransInfo *t);
|
||||
|
||||
void setNearestAxis(TransInfo *t);
|
||||
|
||||
/********************** Mouse Input ******************************/
|
||||
|
||||
typedef enum {
|
||||
|
|
|
@ -52,6 +52,9 @@
|
|||
#include "transform.h"
|
||||
#include "transform_snap.h"
|
||||
|
||||
/* Own include. */
|
||||
#include "transform_constraints.h"
|
||||
|
||||
static void drawObjectConstraint(TransInfo *t);
|
||||
|
||||
/* ************************** CONSTRAINTS ************************* */
|
||||
|
|
|
@ -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
|
|
@ -36,6 +36,7 @@
|
|||
#include "BLT_translation.h"
|
||||
|
||||
#include "transform.h"
|
||||
#include "transform_constraints.h"
|
||||
#include "transform_snap.h"
|
||||
#include "transform_mode.h"
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include "BLT_translation.h"
|
||||
|
||||
#include "transform.h"
|
||||
#include "transform_constraints.h"
|
||||
#include "transform_snap.h"
|
||||
#include "transform_mode.h"
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include "UI_interface.h"
|
||||
|
||||
#include "transform.h"
|
||||
#include "transform_constraints.h"
|
||||
#include "transform_convert.h"
|
||||
#include "transform_snap.h"
|
||||
#include "transform_mode.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include "UI_interface.h"
|
||||
|
||||
#include "transform.h"
|
||||
#include "transform_constraints.h"
|
||||
#include "transform_snap.h"
|
||||
#include "transform_mode.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue