PeriDyno 1.0.0
Loading...
Searching...
No Matches
ImGuizmo Namespace Reference

Classes

struct  Context
 
struct  matrix_t
 
struct  vec_t
 

Enumerations

enum  MOVETYPE {
  MT_NONE , MT_MOVE_X , MT_MOVE_Y , MT_MOVE_Z ,
  MT_MOVE_YZ , MT_MOVE_ZX , MT_MOVE_XY , MT_MOVE_SCREEN ,
  MT_ROTATE_X , MT_ROTATE_Y , MT_ROTATE_Z , MT_ROTATE_SCREEN ,
  MT_SCALE_X , MT_SCALE_Y , MT_SCALE_Z , MT_SCALE_XYZ
}
 
enum  OPERATION {
  TRANSLATE_X = (1u << 0) , TRANSLATE_Y = (1u << 1) , TRANSLATE_Z = (1u << 2) , ROTATE_X = (1u << 3) ,
  ROTATE_Y = (1u << 4) , ROTATE_Z = (1u << 5) , ROTATE_SCREEN = (1u << 6) , SCALE_X = (1u << 7) ,
  SCALE_Y = (1u << 8) , SCALE_Z = (1u << 9) , BOUNDS = (1u << 10) , TRANSLATE = TRANSLATE_X | TRANSLATE_Y | TRANSLATE_Z ,
  ROTATE = ROTATE_X | ROTATE_Y | ROTATE_Z | ROTATE_SCREEN , SCALE = SCALE_X | SCALE_Y | SCALE_Z
}
 
enum  MODE { LOCAL , WORLD }
 

Functions

static OPERATION operator& (OPERATION lhs, OPERATION rhs)
 
static bool operator!= (OPERATION lhs, int rhs)
 
static bool operator== (OPERATION lhs, int rhs)
 
static bool Intersects (OPERATION lhs, OPERATION rhs)
 
static bool Contains (OPERATION lhs, OPERATION rhs)
 
void FPU_MatrixF_x_MatrixF (const float *a, const float *b, float *r)
 
void Frustum (float left, float right, float bottom, float top, float znear, float zfar, float *m16)
 
void Perspective (float fovyInDegrees, float aspectRatio, float znear, float zfar, float *m16)
 
void Cross (const float *a, const float *b, float *r)
 
float Dot (const float *a, const float *b)
 
void Normalize (const float *a, float *r)
 
void LookAt (const float *eye, const float *at, const float *up, float *m16)
 
template<typename T>
T Clamp (T x, T y, T z)
 
template<typename T>
T max (T x, T y)
 
template<typename T>
T min (T x, T y)
 
template<typename T>
bool IsWithin (T x, T y, T z)
 
vec_t makeVect (float _x, float _y, float _z=0.f, float _w=0.f)
 
vec_t makeVect (ImVec2 v)
 
vec_t Normalized (const vec_t &v)
 
vec_t Cross (const vec_t &v1, const vec_t &v2)
 
float Dot (const vec_t &v1, const vec_t &v2)
 
vec_t BuildPlan (const vec_t &p_point1, const vec_t &p_normal)
 
static bool IsTranslateType (int type)
 
static bool IsRotateType (int type)
 
static bool IsScaleType (int type)
 
static int GetMoveType (OPERATION op, vec_t *gizmoHitProportion)
 
static int GetRotateType (OPERATION op)
 
static int GetScaleType (OPERATION op)
 
static ImVec2 worldToPos (const vec_t &worldPos, const matrix_t &mat, ImVec2 position=ImVec2(gContext.mX, gContext.mY), ImVec2 size=ImVec2(gContext.mWidth, gContext.mHeight))
 
static void ComputeCameraRay (vec_t &rayOrigin, vec_t &rayDir, ImVec2 position=ImVec2(gContext.mX, gContext.mY), ImVec2 size=ImVec2(gContext.mWidth, gContext.mHeight))
 
static float GetSegmentLengthClipSpace (const vec_t &start, const vec_t &end)
 
static float GetParallelogram (const vec_t &ptO, const vec_t &ptA, const vec_t &ptB)
 
vec_t PointOnSegment (const vec_t &point, const vec_t &vertPos1, const vec_t &vertPos2)
 
static float IntersectRayPlane (const vec_t &rOrigin, const vec_t &rVector, const vec_t &plan)
 
static float DistanceToPlane (const vec_t &point, const vec_t &plan)
 
static bool IsInContextRect (ImVec2 p)
 
void SetRect (float x, float y, float width, float height)
 
void SetOrthographic (bool isOrthographic)
 
void SetDrawlist (ImDrawList *drawlist)
 
void SetImGuiContext (ImGuiContext *ctx)
 
void BeginFrame ()
 
bool IsUsing ()
 
bool IsOver ()
 
bool IsOver (OPERATION op)
 
void Enable (bool enable)
 
static void ComputeContext (const float *view, const float *projection, float *matrix, MODE mode)
 
static void ComputeColors (ImU32 *colors, int type, OPERATION operation)
 
static void ComputeTripodAxisAndVisibility (int axisIndex, vec_t &dirAxis, vec_t &dirPlaneX, vec_t &dirPlaneY, bool &belowAxisLimit, bool &belowPlaneLimit)
 
static void ComputeSnap (float *value, float snap)
 
static void ComputeSnap (vec_t &value, const float *snap)
 
static float ComputeAngleOnPlan ()
 
static void DrawRotationGizmo (OPERATION op, int type)
 
static void DrawHatchedAxis (const vec_t &axis)
 
static void DrawScaleGizmo (OPERATION op, int type)
 
static void DrawTranslationGizmo (OPERATION op, int type)
 
static bool CanActivate ()
 
static void HandleAndDrawLocalBounds (const float *bounds, matrix_t *matrix, const float *snapValues, OPERATION operation)
 
static bool HandleTranslation (float *matrix, float *deltaMatrix, OPERATION op, int &type, const float *snap)
 
static bool HandleScale (float *matrix, float *deltaMatrix, OPERATION op, int &type, const float *snap)
 
static bool HandleRotation (float *matrix, float *deltaMatrix, OPERATION op, int &type, const float *snap)
 
void DecomposeMatrixToComponents (const float *matrix, float *translation, float *rotation, float *scale)
 
void RecomposeMatrixFromComponents (const float *translation, const float *rotation, const float *scale, float *matrix)
 
void SetID (int id)
 
void AllowAxisFlip (bool value)
 
bool Manipulate (const float *view, const float *projection, OPERATION operation, MODE mode, float *matrix, float *deltaMatrix, const float *snap, const float *localBounds, const float *boundsSnap)
 
void SetGizmoSizeClipSpace (float value)
 
void ComputeFrustumPlanes (vec_t *frustum, const float *clip)
 
void DrawCubes (const float *view, const float *projection, const float *matrices, int matrixCount)
 
void DrawGrid (const float *view, const float *projection, const float *matrix, const float gridSize)
 
void ViewManipulate (float *view, float length, ImVec2 position, ImVec2 size, ImU32 backgroundColor)
 
OPERATION operator| (OPERATION lhs, OPERATION rhs)
 

Variables

static const float ZPI = 3.14159265358979323846f
 
static const float RAD2DEG = (180.f / ZPI)
 
static const float DEG2RAD = (ZPI / 180.f)
 
const float screenRotateSize = 0.06f
 
static const OPERATION TRANSLATE_PLANS [3] = { TRANSLATE_Y | TRANSLATE_Z, TRANSLATE_X | TRANSLATE_Z, TRANSLATE_X | TRANSLATE_Y }
 
static Context gContext
 
static const vec_t directionUnary [3] = { makeVect(1.f, 0.f, 0.f), makeVect(0.f, 1.f, 0.f), makeVect(0.f, 0.f, 1.f) }
 
static const ImU32 directionColor [3] = { IM_COL32(0xAA, 0, 0, 0xFF), IM_COL32(0, 0xAA, 0, 0xFF), IM_COL32(0, 0, 0xAA, 0XFF) }
 
static const ImU32 planeColor [3] = { IM_COL32(0xAA, 0, 0, 0x61), IM_COL32(0, 0xAA, 0, 0x61), IM_COL32(0, 0, 0xAA, 0x61) }
 
static const ImU32 selectionColor = IM_COL32(0xFF, 0x80, 0x10, 0x8A)
 
static const ImU32 inactiveColor = IM_COL32(0x99, 0x99, 0x99, 0x99)
 
static const ImU32 translationLineColor = IM_COL32(0xAA, 0xAA, 0xAA, 0xAA)
 
static const char * translationInfoMask []
 
static const char * scaleInfoMask [] = { "X : %5.2f", "Y : %5.2f", "Z : %5.2f", "XYZ : %5.2f" }
 
static const char * rotationInfoMask [] = { "X : %5.2f deg %5.2f rad", "Y : %5.2f deg %5.2f rad", "Z : %5.2f deg %5.2f rad", "Screen : %5.2f deg %5.2f rad" }
 
static const int translationInfoIndex [] = { 0,0,0, 1,0,0, 2,0,0, 1,2,0, 0,2,0, 0,1,0, 0,1,2 }
 
static const float quadMin = 0.5f
 
static const float quadMax = 0.8f
 
static const float quadUV [8] = { quadMin, quadMin, quadMin, quadMax, quadMax, quadMax, quadMax, quadMin }
 
static const int halfCircleSegmentCount = 64
 
static const float snapTension = 0.5f
 

Enumeration Type Documentation

◆ MODE

Enumerator
LOCAL 
WORLD 

Definition at line 189 of file ImGuizmo.h.

◆ MOVETYPE

Enumerator
MT_NONE 
MT_MOVE_X 
MT_MOVE_Y 
MT_MOVE_Z 
MT_MOVE_YZ 
MT_MOVE_ZX 
MT_MOVE_XY 
MT_MOVE_SCREEN 
MT_ROTATE_X 
MT_ROTATE_Y 
MT_ROTATE_Z 
MT_ROTATE_SCREEN 
MT_SCALE_X 
MT_SCALE_Y 
MT_SCALE_Z 
MT_SCALE_XYZ 

Definition at line 603 of file ImGuizmo.cpp.

◆ OPERATION

Enumerator
TRANSLATE_X 
TRANSLATE_Y 
TRANSLATE_Z 
ROTATE_X 
ROTATE_Y 
ROTATE_Z 
ROTATE_SCREEN 
SCALE_X 
SCALE_Y 
SCALE_Z 
BOUNDS 
TRANSLATE 
ROTATE 
SCALE 

Definition at line 166 of file ImGuizmo.h.

Function Documentation

◆ AllowAxisFlip()

IMGUI_API void ImGuizmo::AllowAxisFlip ( bool value)

Definition at line 2247 of file ImGuizmo.cpp.

◆ BeginFrame()

IMGUI_API void ImGuizmo::BeginFrame ( )

Definition at line 912 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ BuildPlan()

vec_t ImGuizmo::BuildPlan ( const vec_t & p_point1,
const vec_t & p_normal )

Definition at line 296 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CanActivate()

static bool ImGuizmo::CanActivate ( )
static

Definition at line 1439 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ Clamp()

template<typename T>
T ImGuizmo::Clamp ( T x,
T y,
T z )

Definition at line 187 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ ComputeAngleOnPlan()

static float ImGuizmo::ComputeAngleOnPlan ( )
static

Definition at line 1156 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ComputeCameraRay()

static void ImGuizmo::ComputeCameraRay ( vec_t & rayOrigin,
vec_t & rayDir,
ImVec2 position = ImVec2(gContext.mX, gContext.mY),
ImVec2 size = ImVec2(gContext.mWidth, gContext.mHeight) )
static

Definition at line 776 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ComputeColors()

static void ImGuizmo::ComputeColors ( ImU32 * colors,
int type,
OPERATION operation )
static

Definition at line 1034 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ ComputeContext()

static void ImGuizmo::ComputeContext ( const float * view,
const float * projection,
float * matrix,
MODE mode )
static

Definition at line 979 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ComputeFrustumPlanes()

void ImGuizmo::ComputeFrustumPlanes ( vec_t * frustum,
const float * clip )

Definition at line 2304 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ ComputeSnap() [1/2]

static void ImGuizmo::ComputeSnap ( float * value,
float snap )
static

Definition at line 1130 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ ComputeSnap() [2/2]

static void ImGuizmo::ComputeSnap ( vec_t & value,
const float * snap )
static

Definition at line 1148 of file ImGuizmo.cpp.

Here is the call graph for this function:

◆ ComputeTripodAxisAndVisibility()

static void ImGuizmo::ComputeTripodAxisAndVisibility ( int axisIndex,
vec_t & dirAxis,
vec_t & dirPlaneX,
vec_t & dirPlaneY,
bool & belowAxisLimit,
bool & belowPlaneLimit )
static

Definition at line 1077 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Contains()

static bool ImGuizmo::Contains ( OPERATION lhs,
OPERATION rhs )
static

Definition at line 71 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ Cross() [1/2]

void ImGuizmo::Cross ( const float * a,
const float * b,
float * r )

Definition at line 135 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ Cross() [2/2]

vec_t ImGuizmo::Cross ( const vec_t & v1,
const vec_t & v2 )

Definition at line 281 of file ImGuizmo.cpp.

◆ DecomposeMatrixToComponents()

IMGUI_API void ImGuizmo::DecomposeMatrixToComponents ( const float * matrix,
float * translation,
float * rotation,
float * scale )

Definition at line 2193 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DistanceToPlane()

static float ImGuizmo::DistanceToPlane ( const vec_t & point,
const vec_t & plan )
static

Definition at line 876 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dot() [1/2]

float ImGuizmo::Dot ( const float * a,
const float * b )

Definition at line 142 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ Dot() [2/2]

float ImGuizmo::Dot ( const vec_t & v1,
const vec_t & v2 )

Definition at line 291 of file ImGuizmo.cpp.

◆ DrawCubes()

IMGUI_API void ImGuizmo::DrawCubes ( const float * view,
const float * projection,
const float * matrices,
int matrixCount )

Definition at line 2342 of file ImGuizmo.cpp.

Here is the call graph for this function:

◆ DrawGrid()

IMGUI_API void ImGuizmo::DrawGrid ( const float * view,
const float * projection,
const float * matrix,
const float gridSize )

Definition at line 2454 of file ImGuizmo.cpp.

Here is the call graph for this function:

◆ DrawHatchedAxis()

static void ImGuizmo::DrawHatchedAxis ( const vec_t & axis)
static

Definition at line 1257 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawRotationGizmo()

static void ImGuizmo::DrawRotationGizmo ( OPERATION op,
int type )
static

Definition at line 1170 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawScaleGizmo()

static void ImGuizmo::DrawScaleGizmo ( OPERATION op,
int type )
static

Definition at line 1267 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawTranslationGizmo()

static void ImGuizmo::DrawTranslationGizmo ( OPERATION op,
int type )
static

Definition at line 1350 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Enable()

IMGUI_API void ImGuizmo::Enable ( bool enable)

Definition at line 969 of file ImGuizmo.cpp.

◆ FPU_MatrixF_x_MatrixF()

void ImGuizmo::FPU_MatrixF_x_MatrixF ( const float * a,
const float * b,
float * r )

Definition at line 79 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ Frustum()

void ImGuizmo::Frustum ( float left,
float right,
float bottom,
float top,
float znear,
float zfar,
float * m16 )

Definition at line 102 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ GetMoveType()

static int ImGuizmo::GetMoveType ( OPERATION op,
vec_t * gizmoHitProportion )
static

Definition at line 1810 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetParallelogram()

static float ImGuizmo::GetParallelogram ( const vec_t & ptO,
const vec_t & ptA,
const vec_t & ptB )
static

Definition at line 819 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetRotateType()

static int ImGuizmo::GetRotateType ( OPERATION op)
static

Definition at line 1756 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetScaleType()

static int ImGuizmo::GetScaleType ( OPERATION op)
static

Definition at line 1710 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSegmentLengthClipSpace()

static float ImGuizmo::GetSegmentLengthClipSpace ( const vec_t & start,
const vec_t & end )
static

Definition at line 797 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleAndDrawLocalBounds()

static void ImGuizmo::HandleAndDrawLocalBounds ( const float * bounds,
matrix_t * matrix,
const float * snapValues,
OPERATION operation )
static

Definition at line 1448 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleRotation()

static bool ImGuizmo::HandleRotation ( float * matrix,
float * deltaMatrix,
OPERATION op,
int & type,
const float * snap )
static

Definition at line 2092 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleScale()

static bool ImGuizmo::HandleScale ( float * matrix,
float * deltaMatrix,
OPERATION op,
int & type,
const float * snap )
static

Definition at line 1979 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleTranslation()

static bool ImGuizmo::HandleTranslation ( float * matrix,
float * deltaMatrix,
OPERATION op,
int & type,
const float * snap )
static

Definition at line 1866 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IntersectRayPlane()

static float ImGuizmo::IntersectRayPlane ( const vec_t & rOrigin,
const vec_t & rVector,
const vec_t & plan )
static

Definition at line 863 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Intersects()

static bool ImGuizmo::Intersects ( OPERATION lhs,
OPERATION rhs )
static

Definition at line 65 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ IsInContextRect()

static bool ImGuizmo::IsInContextRect ( ImVec2 p)
static

Definition at line 881 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsOver() [1/2]

IMGUI_API bool ImGuizmo::IsOver ( )

Definition at line 941 of file ImGuizmo.cpp.

Here is the call graph for this function:

◆ IsOver() [2/2]

IMGUI_API bool ImGuizmo::IsOver ( OPERATION op)

Definition at line 948 of file ImGuizmo.cpp.

Here is the call graph for this function:

◆ IsRotateType()

static bool ImGuizmo::IsRotateType ( int type)
static

Definition at line 628 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ IsScaleType()

static bool ImGuizmo::IsScaleType ( int type)
static

Definition at line 633 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ IsTranslateType()

static bool ImGuizmo::IsTranslateType ( int type)
static

Definition at line 623 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ IsUsing()

IMGUI_API bool ImGuizmo::IsUsing ( )

Definition at line 936 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ IsWithin()

template<typename T>
bool ImGuizmo::IsWithin ( T x,
T y,
T z )

Definition at line 190 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ LookAt()

void ImGuizmo::LookAt ( const float * eye,
const float * at,
const float * up,
float * m16 )

Definition at line 155 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeVect() [1/2]

vec_t ImGuizmo::makeVect ( float _x,
float _y,
float _z = 0.f,
float _w = 0.f )

Definition at line 271 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ makeVect() [2/2]

vec_t ImGuizmo::makeVect ( ImVec2 v)

Definition at line 272 of file ImGuizmo.cpp.

◆ Manipulate()

IMGUI_API bool ImGuizmo::Manipulate ( const float * view,
const float * projection,
OPERATION operation,
MODE mode,
float * matrix,
float * deltaMatrix,
const float * snap,
const float * localBounds,
const float * boundsSnap )

Definition at line 2252 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ max()

template<typename T>
T ImGuizmo::max ( T x,
T y )

Definition at line 188 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ min()

template<typename T>
T ImGuizmo::min ( T x,
T y )

Definition at line 189 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ Normalize()

void ImGuizmo::Normalize ( const float * a,
float * r )

Definition at line 147 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Normalized()

vec_t ImGuizmo::Normalized ( const vec_t & v)

Definition at line 280 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

static bool ImGuizmo::operator!= ( OPERATION lhs,
int rhs )
static

Definition at line 55 of file ImGuizmo.cpp.

◆ operator&()

static OPERATION ImGuizmo::operator& ( OPERATION lhs,
OPERATION rhs )
static

Definition at line 50 of file ImGuizmo.cpp.

◆ operator==()

static bool ImGuizmo::operator== ( OPERATION lhs,
int rhs )
static

Definition at line 60 of file ImGuizmo.cpp.

◆ operator|()

OPERATION ImGuizmo::operator| ( OPERATION lhs,
OPERATION rhs )
inline

Definition at line 184 of file ImGuizmo.h.

◆ Perspective()

void ImGuizmo::Perspective ( float fovyInDegrees,
float aspectRatio,
float znear,
float zfar,
float * m16 )

Definition at line 127 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PointOnSegment()

vec_t ImGuizmo::PointOnSegment ( const vec_t & point,
const vec_t & vertPos1,
const vec_t & vertPos2 )
inline

Definition at line 841 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ RecomposeMatrixFromComponents()

IMGUI_API void ImGuizmo::RecomposeMatrixFromComponents ( const float * translation,
const float * rotation,
const float * scale,
float * matrix )

Definition at line 2212 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetDrawlist()

IMGUI_API void ImGuizmo::SetDrawlist ( ImDrawList * drawlist)

Definition at line 902 of file ImGuizmo.cpp.

◆ SetGizmoSizeClipSpace()

IMGUI_API void ImGuizmo::SetGizmoSizeClipSpace ( float value)

Definition at line 2298 of file ImGuizmo.cpp.

◆ SetID()

IMGUI_API void ImGuizmo::SetID ( int id)

Definition at line 2242 of file ImGuizmo.cpp.

◆ SetImGuiContext()

IMGUI_API void ImGuizmo::SetImGuiContext ( ImGuiContext * ctx)

Definition at line 907 of file ImGuizmo.cpp.

◆ SetOrthographic()

IMGUI_API void ImGuizmo::SetOrthographic ( bool isOrthographic)

Definition at line 897 of file ImGuizmo.cpp.

◆ SetRect()

IMGUI_API void ImGuizmo::SetRect ( float x,
float y,
float width,
float height )

Definition at line 886 of file ImGuizmo.cpp.

Here is the caller graph for this function:

◆ ViewManipulate()

IMGUI_API void ImGuizmo::ViewManipulate ( float * view,
float length,
ImVec2 position,
ImVec2 size,
ImU32 backgroundColor )

Definition at line 2510 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ worldToPos()

static ImVec2 ImGuizmo::worldToPos ( const vec_t & worldPos,
const matrix_t & mat,
ImVec2 position = ImVec2(gContext.mX, gContext.mY),
ImVec2 size = ImVec2(gContext.mWidth, gContext.mHeight) )
static

Definition at line 762 of file ImGuizmo.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DEG2RAD

const float ImGuizmo::DEG2RAD = (ZPI / 180.f)
static

Definition at line 47 of file ImGuizmo.cpp.

◆ directionColor

const ImU32 ImGuizmo::directionColor[3] = { IM_COL32(0xAA, 0, 0, 0xFF), IM_COL32(0, 0xAA, 0, 0xFF), IM_COL32(0, 0, 0xAA, 0XFF) }
static

Definition at line 737 of file ImGuizmo.cpp.

◆ directionUnary

const vec_t ImGuizmo::directionUnary[3] = { makeVect(1.f, 0.f, 0.f), makeVect(0.f, 1.f, 0.f), makeVect(0.f, 0.f, 1.f) }
static

Definition at line 736 of file ImGuizmo.cpp.

◆ gContext

Context ImGuizmo::gContext
static

Definition at line 734 of file ImGuizmo.cpp.

◆ halfCircleSegmentCount

const int ImGuizmo::halfCircleSegmentCount = 64
static

Definition at line 753 of file ImGuizmo.cpp.

◆ inactiveColor

const ImU32 ImGuizmo::inactiveColor = IM_COL32(0x99, 0x99, 0x99, 0x99)
static

Definition at line 742 of file ImGuizmo.cpp.

◆ planeColor

const ImU32 ImGuizmo::planeColor[3] = { IM_COL32(0xAA, 0, 0, 0x61), IM_COL32(0, 0xAA, 0, 0x61), IM_COL32(0, 0, 0xAA, 0x61) }
static

Definition at line 740 of file ImGuizmo.cpp.

◆ quadMax

const float ImGuizmo::quadMax = 0.8f
static

Definition at line 751 of file ImGuizmo.cpp.

◆ quadMin

const float ImGuizmo::quadMin = 0.5f
static

Definition at line 750 of file ImGuizmo.cpp.

◆ quadUV

const float ImGuizmo::quadUV[8] = { quadMin, quadMin, quadMin, quadMax, quadMax, quadMax, quadMax, quadMin }
static

Definition at line 752 of file ImGuizmo.cpp.

◆ RAD2DEG

const float ImGuizmo::RAD2DEG = (180.f / ZPI)
static

Definition at line 46 of file ImGuizmo.cpp.

◆ rotationInfoMask

const char* ImGuizmo::rotationInfoMask[] = { "X : %5.2f deg %5.2f rad", "Y : %5.2f deg %5.2f rad", "Z : %5.2f deg %5.2f rad", "Screen : %5.2f deg %5.2f rad" }
static

Definition at line 748 of file ImGuizmo.cpp.

◆ scaleInfoMask

const char* ImGuizmo::scaleInfoMask[] = { "X : %5.2f", "Y : %5.2f", "Z : %5.2f", "XYZ : %5.2f" }
static

Definition at line 747 of file ImGuizmo.cpp.

◆ screenRotateSize

const float ImGuizmo::screenRotateSize = 0.06f

Definition at line 48 of file ImGuizmo.cpp.

◆ selectionColor

const ImU32 ImGuizmo::selectionColor = IM_COL32(0xFF, 0x80, 0x10, 0x8A)
static

Definition at line 741 of file ImGuizmo.cpp.

◆ snapTension

const float ImGuizmo::snapTension = 0.5f
static

Definition at line 754 of file ImGuizmo.cpp.

◆ TRANSLATE_PLANS

const OPERATION ImGuizmo::TRANSLATE_PLANS[3] = { TRANSLATE_Y | TRANSLATE_Z, TRANSLATE_X | TRANSLATE_Z, TRANSLATE_X | TRANSLATE_Y }
static

Definition at line 639 of file ImGuizmo.cpp.

◆ translationInfoIndex

const int ImGuizmo::translationInfoIndex[] = { 0,0,0, 1,0,0, 2,0,0, 1,2,0, 0,2,0, 0,1,0, 0,1,2 }
static

Definition at line 749 of file ImGuizmo.cpp.

◆ translationInfoMask

const char* ImGuizmo::translationInfoMask[]
static
Initial value:
= { "X : %5.3f", "Y : %5.3f", "Z : %5.3f",
"Y : %5.3f Z : %5.3f", "X : %5.3f Z : %5.3f", "X : %5.3f Y : %5.3f",
"X : %5.3f Y : %5.3f Z : %5.3f" }

Definition at line 744 of file ImGuizmo.cpp.

◆ translationLineColor

const ImU32 ImGuizmo::translationLineColor = IM_COL32(0xAA, 0xAA, 0xAA, 0xAA)
static

Definition at line 743 of file ImGuizmo.cpp.

◆ ZPI

const float ImGuizmo::ZPI = 3.14159265358979323846f
static

Definition at line 45 of file ImGuizmo.cpp.