![]() |
PeriDyno 1.0.0
|
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 |
enum ImGuizmo::MODE |
Enumerator | |
---|---|
LOCAL | |
WORLD |
Definition at line 189 of file ImGuizmo.h.
enum ImGuizmo::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.
enum ImGuizmo::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.
IMGUI_API void ImGuizmo::AllowAxisFlip | ( | bool | value | ) |
Definition at line 2247 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::BeginFrame | ( | ) |
Definition at line 296 of file ImGuizmo.cpp.
|
static |
|
static |
Definition at line 1156 of file ImGuizmo.cpp.
|
static |
Definition at line 776 of file ImGuizmo.cpp.
|
static |
|
static |
Definition at line 979 of file ImGuizmo.cpp.
void ImGuizmo::ComputeFrustumPlanes | ( | vec_t * | frustum, |
const float * | clip ) |
|
static |
|
static |
|
static |
Definition at line 1077 of file ImGuizmo.cpp.
void ImGuizmo::Cross | ( | const float * | a, |
const float * | b, | ||
float * | r ) |
Definition at line 281 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::DecomposeMatrixToComponents | ( | const float * | matrix, |
float * | translation, | ||
float * | rotation, | ||
float * | scale ) |
Definition at line 2193 of file ImGuizmo.cpp.
Definition at line 876 of file ImGuizmo.cpp.
float ImGuizmo::Dot | ( | const float * | a, |
const float * | b ) |
Definition at line 291 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::DrawCubes | ( | const float * | view, |
const float * | projection, | ||
const float * | matrices, | ||
int | matrixCount ) |
IMGUI_API void ImGuizmo::DrawGrid | ( | const float * | view, |
const float * | projection, | ||
const float * | matrix, | ||
const float | gridSize ) |
|
static |
Definition at line 1257 of file ImGuizmo.cpp.
|
static |
Definition at line 1170 of file ImGuizmo.cpp.
|
static |
Definition at line 1267 of file ImGuizmo.cpp.
|
static |
Definition at line 1350 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::Enable | ( | bool | enable | ) |
Definition at line 969 of file ImGuizmo.cpp.
void ImGuizmo::FPU_MatrixF_x_MatrixF | ( | const float * | a, |
const float * | b, | ||
float * | r ) |
void ImGuizmo::Frustum | ( | float | left, |
float | right, | ||
float | bottom, | ||
float | top, | ||
float | znear, | ||
float | zfar, | ||
float * | m16 ) |
Definition at line 1810 of file ImGuizmo.cpp.
|
static |
Definition at line 819 of file ImGuizmo.cpp.
|
static |
Definition at line 1756 of file ImGuizmo.cpp.
|
static |
Definition at line 1710 of file ImGuizmo.cpp.
Definition at line 797 of file ImGuizmo.cpp.
|
static |
Definition at line 1448 of file ImGuizmo.cpp.
|
static |
Definition at line 2092 of file ImGuizmo.cpp.
|
static |
Definition at line 1979 of file ImGuizmo.cpp.
|
static |
Definition at line 1866 of file ImGuizmo.cpp.
|
static |
Definition at line 863 of file ImGuizmo.cpp.
|
static |
Definition at line 881 of file ImGuizmo.cpp.
IMGUI_API bool ImGuizmo::IsOver | ( | ) |
|
static |
|
static |
|
static |
IMGUI_API bool ImGuizmo::IsUsing | ( | ) |
void ImGuizmo::LookAt | ( | const float * | eye, |
const float * | at, | ||
const float * | up, | ||
float * | m16 ) |
Definition at line 155 of file ImGuizmo.cpp.
vec_t ImGuizmo::makeVect | ( | float | _x, |
float | _y, | ||
float | _z = 0.f, | ||
float | _w = 0.f ) |
vec_t ImGuizmo::makeVect | ( | ImVec2 | v | ) |
Definition at line 272 of file ImGuizmo.cpp.
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.
void ImGuizmo::Normalize | ( | const float * | a, |
float * | r ) |
Definition at line 147 of file ImGuizmo.cpp.
Definition at line 280 of file ImGuizmo.cpp.
|
static |
Definition at line 55 of file ImGuizmo.cpp.
Definition at line 50 of file ImGuizmo.cpp.
|
static |
Definition at line 60 of file ImGuizmo.cpp.
Definition at line 184 of file ImGuizmo.h.
void ImGuizmo::Perspective | ( | float | fovyInDegrees, |
float | aspectRatio, | ||
float | znear, | ||
float | zfar, | ||
float * | m16 ) |
Definition at line 127 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::RecomposeMatrixFromComponents | ( | const float * | translation, |
const float * | rotation, | ||
const float * | scale, | ||
float * | matrix ) |
Definition at line 2212 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::SetDrawlist | ( | ImDrawList * | drawlist | ) |
Definition at line 902 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::SetGizmoSizeClipSpace | ( | float | value | ) |
Definition at line 2298 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::SetID | ( | int | id | ) |
Definition at line 2242 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::SetImGuiContext | ( | ImGuiContext * | ctx | ) |
Definition at line 907 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::SetOrthographic | ( | bool | isOrthographic | ) |
Definition at line 897 of file ImGuizmo.cpp.
IMGUI_API void ImGuizmo::SetRect | ( | float | x, |
float | y, | ||
float | width, | ||
float | height ) |
IMGUI_API void ImGuizmo::ViewManipulate | ( | float * | view, |
float | length, | ||
ImVec2 | position, | ||
ImVec2 | size, | ||
ImU32 | backgroundColor ) |
Definition at line 2510 of file ImGuizmo.cpp.
|
static |
Definition at line 762 of file ImGuizmo.cpp.
|
static |
Definition at line 47 of file ImGuizmo.cpp.
|
static |
Definition at line 737 of file ImGuizmo.cpp.
|
static |
Definition at line 736 of file ImGuizmo.cpp.
|
static |
Definition at line 734 of file ImGuizmo.cpp.
|
static |
Definition at line 753 of file ImGuizmo.cpp.
|
static |
Definition at line 742 of file ImGuizmo.cpp.
|
static |
Definition at line 740 of file ImGuizmo.cpp.
|
static |
Definition at line 751 of file ImGuizmo.cpp.
|
static |
Definition at line 750 of file ImGuizmo.cpp.
|
static |
Definition at line 752 of file ImGuizmo.cpp.
|
static |
Definition at line 46 of file ImGuizmo.cpp.
|
static |
Definition at line 748 of file ImGuizmo.cpp.
|
static |
Definition at line 747 of file ImGuizmo.cpp.
const float ImGuizmo::screenRotateSize = 0.06f |
Definition at line 48 of file ImGuizmo.cpp.
|
static |
Definition at line 741 of file ImGuizmo.cpp.
|
static |
Definition at line 754 of file ImGuizmo.cpp.
|
static |
Definition at line 639 of file ImGuizmo.cpp.
|
static |
Definition at line 749 of file ImGuizmo.cpp.
|
static |
Definition at line 744 of file ImGuizmo.cpp.
|
static |
Definition at line 743 of file ImGuizmo.cpp.
|
static |
Definition at line 45 of file ImGuizmo.cpp.