PeriDyno 1.0.0
Loading...
Searching...
No Matches
imguiGizmo Struct Reference

#include <imGuIZMOquat.h>

Collaboration diagram for imguiGizmo:

Public Types

enum  {
  mode3Axes = 0x0001 , modeDirection = 0x0002 , modeDirPlane = 0x0004 , modeDual = 0x0008 ,
  modePanDolly = 0x0010 , modeMask = 0x00ff , cubeAtOrigin = 0x0100 , sphereAtOrigin = 0x0200 ,
  noSolidAtOrigin = 0x0400 , modeFullAxes = 0x0800 , axesModeMask = 0xff00
}
 
enum  { sphereTess16 , sphereTess8 , sphereTess4 , sphereTess2 }
 
enum  { CONE_SURF , CONE_CAP , CYL_SURF , CYL_CAP }
 
enum  { axisIsX , axisIsY , axisIsZ }
 
enum  solidSides { backSide , frontSide }
 

Public Member Functions

bool drawFunc (const char *label, float size)
 
void modeSettings (int mode)
 
void setDualMode (const int mode)
 
bool getTransforms (quat &q, const char *label, vec3 &dir, float size)
 
bool getTransforms (quat &q, const char *label, vec4 &axis_angle, float size)
 

Static Public Member Functions

static void buildPlane (const float size, const float thickness=planeThickness)
 
static void buildCube (const float size)
 
static void buildPolygon (const vec3 &size, ImVector< vec3 > &vtx, ImVector< vec3 > &norm)
 
static void buildSphere (const float radius, const int tessFactor)
 
static void buildCone (const float x0, const float x1, const float radius, const int slices)
 
static void buildCylinder (const float x0, const float x1, const float radius, const int slices)
 
static void resizeAxesOf (const vec3 &newSize)
 
static void restoreAxesSize ()
 
static void resizeSolidOf (float newSize)
 
static void restoreSolidSize ()
 
static void setDirectionColor (ImU32 dColor, const ImU32 pColor)
 
static void setDirectionColor (const ImVec4 &dColor, const ImVec4 &pColor)
 
static void setDirectionColor (ImU32 color)
 
static void setDirectionColor (const ImVec4 &color)
 
static void restoreDirectionColor ()
 
static void setSphereColors (const ImVec4 &a, const ImVec4 &b)
 
static void setSphereColors (ImU32 a, ImU32 b)
 
static void restoreSphereColors ()
 
static void setGizmoFeelingRot (float f)
 
static float getGizmoFeelingRot ()
 
static void setPanModifier (vgModifiers v)
 
static void setDollyModifier (vgModifiers v)
 
static void setDollyScale (float scale)
 
static float getDollyScale ()
 
static void setPanScale (float scale)
 
static float getPanScale ()
 

Public Attributes

quat qtV = quat(1.0f, vec3(0.0f))
 
quat qtV2 = quat(1.0f, vec3(0.0f))
 
vec3 posPanDolly = vec3(0.f)
 
vgButtons buttonPanDolly = vg::evLeftButton
 
int drawMode = mode3Axes
 
int axesOriginType = cubeAtOrigin
 
bool showFullAxes = false
 

Static Public Attributes

static ImVector< vec3sphereVtx
 
static ImVector< int > sphereTess
 
static ImVector< vec3cubeVtx
 
static ImVector< vec3cubeNorm
 
static ImVector< vec3planeVtx
 
static ImVector< vec3planeNorm
 
static ImVector< vec3arrowVtx [4]
 
static ImVector< vec3arrowNorm [4]
 
static bool solidAreBuilded = false
 
static bool dragActivate = false
 
static int coneSlices = 4
 
static float coneRadius = 0.07f
 
static float coneLength = 0.37f
 
static int cylSlices = 7
 
static float cylRadius = 0.02f
 
static float sphereRadius = .27f
 
static int sphereTessFactor = imguiGizmo::sphereTess4
 
static float cubeSize = .05f
 
static float planeSize = .33f
 
static float planeThickness = .015f
 
static vec3 axesResizeFactor
 
static vec3 savedAxesResizeFactor = imguiGizmo::axesResizeFactor
 
static float solidResizeFactor = 1.0f
 
static float savedSolidResizeFactor = imguiGizmo::solidResizeFactor
 
static ImU32 sphereColors [2] = { 0xff401010, 0xffc0a0a0 }
 
static ImU32 savedSphereColors [2] = { 0xff401010, 0xffc0a0a0 }
 
static ImVec4 directionColor
 
static ImVec4 savedDirectionColor = imguiGizmo::directionColor
 
static ImVec4 planeColor
 
static ImVec4 savedPlaneColor = imguiGizmo::planeColor
 
static float gizmoFeelingRot = 1.f
 
static float panScale = 1.f
 
static float dollyScale = 1.f
 
static vgModifiers panMod = vg::evControlModifier
 
static vgModifiers dollyMod = vg::evShiftModifier
 
static const int imguiGizmoDefaultSize
 

Detailed Description

Definition at line 68 of file imGuIZMOquat.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
mode3Axes 
modeDirection 
modeDirPlane 
modeDual 
modePanDolly 
modeMask 
cubeAtOrigin 
sphereAtOrigin 
noSolidAtOrigin 
modeFullAxes 
axesModeMask 

Definition at line 78 of file imGuIZMOquat.h.

◆ anonymous enum

anonymous enum
Enumerator
CONE_SURF 
CONE_CAP 
CYL_SURF 
CYL_CAP 

Definition at line 95 of file imGuIZMOquat.h.

◆ anonymous enum

anonymous enum
Enumerator
axisIsX 
axisIsY 
axisIsZ 

Definition at line 98 of file imGuIZMOquat.h.

◆ anonymous enum

anonymous enum
Enumerator
sphereTess16 
sphereTess8 
sphereTess4 
sphereTess2 

Definition at line 94 of file imGuIZMOquat.h.

◆ solidSides

Enumerator
backSide 
frontSide 

Definition at line 100 of file imGuIZMOquat.h.

Member Function Documentation

◆ buildCone()

void imguiGizmo::buildCone ( const float x0,
const float x1,
const float radius,
const int slices )
static

Definition at line 928 of file imGuIZMOquat.cpp.

Here is the caller graph for this function:

◆ buildCube()

static void imguiGizmo::buildCube ( const float size)
inlinestatic

Definition at line 112 of file imGuIZMOquat.h.

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

◆ buildCylinder()

void imguiGizmo::buildCylinder ( const float x0,
const float x1,
const float radius,
const int slices )
static

Definition at line 983 of file imGuIZMOquat.cpp.

Here is the caller graph for this function:

◆ buildPlane()

static void imguiGizmo::buildPlane ( const float size,
const float thickness = planeThickness )
inlinestatic

Definition at line 109 of file imGuIZMOquat.h.

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

◆ buildPolygon()

void imguiGizmo::buildPolygon ( const vec3 & size,
ImVector< vec3 > & vtx,
ImVector< vec3 > & norm )
static

Definition at line 828 of file imGuIZMOquat.cpp.

Here is the caller graph for this function:

◆ buildSphere()

void imguiGizmo::buildSphere ( const float radius,
const int tessFactor )
static

Definition at line 849 of file imGuIZMOquat.cpp.

Here is the caller graph for this function:

◆ drawFunc()

bool imguiGizmo::drawFunc ( const char * label,
float size )

Definition at line 416 of file imGuIZMOquat.cpp.

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

◆ getDollyScale()

static float imguiGizmo::getDollyScale ( )
inlinestatic

Definition at line 171 of file imGuIZMOquat.h.

◆ getGizmoFeelingRot()

static float imguiGizmo::getGizmoFeelingRot ( )
inlinestatic

Definition at line 158 of file imGuIZMOquat.h.

◆ getPanScale()

static float imguiGizmo::getPanScale ( )
inlinestatic

Definition at line 174 of file imGuIZMOquat.h.

◆ getTransforms() [1/2]

bool imguiGizmo::getTransforms ( quat & q,
const char * label,
vec3 & dir,
float size )
inline

Definition at line 196 of file imGuIZMOquat.h.

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

◆ getTransforms() [2/2]

bool imguiGizmo::getTransforms ( quat & q,
const char * label,
vec4 & axis_angle,
float size )
inline

Definition at line 211 of file imGuIZMOquat.h.

Here is the call graph for this function:

◆ modeSettings()

void imguiGizmo::modeSettings ( int mode)
inline

Definition at line 189 of file imGuIZMOquat.h.

Here is the caller graph for this function:

◆ resizeAxesOf()

static void imguiGizmo::resizeAxesOf ( const vec3 & newSize)
inlinestatic

Definition at line 123 of file imGuIZMOquat.h.

◆ resizeSolidOf()

static void imguiGizmo::resizeSolidOf ( float newSize)
inlinestatic

Definition at line 128 of file imGuIZMOquat.h.

◆ restoreAxesSize()

static void imguiGizmo::restoreAxesSize ( )
inlinestatic

Definition at line 125 of file imGuIZMOquat.h.

◆ restoreDirectionColor()

static void imguiGizmo::restoreDirectionColor ( )
inlinestatic

Definition at line 141 of file imGuIZMOquat.h.

◆ restoreSolidSize()

static void imguiGizmo::restoreSolidSize ( )
inlinestatic

Definition at line 130 of file imGuIZMOquat.h.

◆ restoreSphereColors()

static void imguiGizmo::restoreSphereColors ( )
inlinestatic

Definition at line 150 of file imGuIZMOquat.h.

◆ setDirectionColor() [1/4]

static void imguiGizmo::setDirectionColor ( const ImVec4 & color)
inlinestatic

Definition at line 140 of file imGuIZMOquat.h.

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

◆ setDirectionColor() [2/4]

static void imguiGizmo::setDirectionColor ( const ImVec4 & dColor,
const ImVec4 & pColor )
inlinestatic

Definition at line 135 of file imGuIZMOquat.h.

◆ setDirectionColor() [3/4]

static void imguiGizmo::setDirectionColor ( ImU32 color)
inlinestatic

Definition at line 139 of file imGuIZMOquat.h.

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

◆ setDirectionColor() [4/4]

static void imguiGizmo::setDirectionColor ( ImU32 dColor,
const ImU32 pColor )
inlinestatic

Definition at line 133 of file imGuIZMOquat.h.

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

◆ setDollyModifier()

static void imguiGizmo::setDollyModifier ( vgModifiers v)
inlinestatic

Definition at line 167 of file imGuIZMOquat.h.

◆ setDollyScale()

static void imguiGizmo::setDollyScale ( float scale)
inlinestatic

Definition at line 170 of file imGuIZMOquat.h.

◆ setDualMode()

void imguiGizmo::setDualMode ( const int mode)
inline

Definition at line 192 of file imGuIZMOquat.h.

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

◆ setGizmoFeelingRot()

static void imguiGizmo::setGizmoFeelingRot ( float f)
inlinestatic

Definition at line 157 of file imGuIZMOquat.h.

◆ setPanModifier()

static void imguiGizmo::setPanModifier ( vgModifiers v)
inlinestatic

Definition at line 166 of file imGuIZMOquat.h.

◆ setPanScale()

static void imguiGizmo::setPanScale ( float scale)
inlinestatic

Definition at line 173 of file imGuIZMOquat.h.

◆ setSphereColors() [1/2]

static void imguiGizmo::setSphereColors ( const ImVec4 & a,
const ImVec4 & b )
inlinestatic

Definition at line 145 of file imGuIZMOquat.h.

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

◆ setSphereColors() [2/2]

static void imguiGizmo::setSphereColors ( ImU32 a,
ImU32 b )
inlinestatic

Definition at line 147 of file imGuIZMOquat.h.

Member Data Documentation

◆ arrowNorm

ImVector< vec3 > imguiGizmo::arrowNorm
static

Definition at line 108 of file imGuIZMOquat.h.

◆ arrowVtx

ImVector< vec3 > imguiGizmo::arrowVtx
static

Definition at line 107 of file imGuIZMOquat.h.

◆ axesOriginType

int imguiGizmo::axesOriginType = cubeAtOrigin

Definition at line 184 of file imGuIZMOquat.h.

◆ axesResizeFactor

vec3 imguiGizmo::axesResizeFactor
static

Definition at line 281 of file imGuIZMOquat.h.

◆ buttonPanDolly

vgButtons imguiGizmo::buttonPanDolly = vg::evLeftButton

Definition at line 75 of file imGuIZMOquat.h.

◆ coneLength

float imguiGizmo::coneLength = 0.37f
static

Definition at line 253 of file imGuIZMOquat.h.

◆ coneRadius

float imguiGizmo::coneRadius = 0.07f
static

Definition at line 252 of file imGuIZMOquat.h.

◆ coneSlices

int imguiGizmo::coneSlices = 4
static

Definition at line 251 of file imGuIZMOquat.h.

◆ cubeNorm

ImVector< vec3 > imguiGizmo::cubeNorm
static

Definition at line 104 of file imGuIZMOquat.h.

◆ cubeSize

float imguiGizmo::cubeSize = .05f
static

Definition at line 265 of file imGuIZMOquat.h.

◆ cubeVtx

ImVector< vec3 > imguiGizmo::cubeVtx
static

Definition at line 103 of file imGuIZMOquat.h.

◆ cylRadius

float imguiGizmo::cylRadius = 0.02f
static

Definition at line 256 of file imGuIZMOquat.h.

◆ cylSlices

int imguiGizmo::cylSlices = 7
static

Definition at line 255 of file imGuIZMOquat.h.

◆ directionColor

ImVec4 imguiGizmo::directionColor
static

Definition at line 294 of file imGuIZMOquat.h.

◆ dollyMod

vgModifiers imguiGizmo::dollyMod = vg::evShiftModifier
static

Definition at line 305 of file imGuIZMOquat.h.

◆ dollyScale

float imguiGizmo::dollyScale = 1.f
static

Definition at line 304 of file imGuIZMOquat.h.

◆ dragActivate

bool imguiGizmo::dragActivate = false
static

Definition at line 181 of file imGuIZMOquat.h.

◆ drawMode

int imguiGizmo::drawMode = mode3Axes

Definition at line 183 of file imGuIZMOquat.h.

◆ gizmoFeelingRot

float imguiGizmo::gizmoFeelingRot = 1.f
static

Definition at line 302 of file imGuIZMOquat.h.

◆ imguiGizmoDefaultSize

const int imguiGizmo::imguiGizmoDefaultSize
static

Definition at line 308 of file imGuIZMOquat.h.

◆ panMod

vgModifiers imguiGizmo::panMod = vg::evControlModifier
static

Definition at line 305 of file imGuIZMOquat.h.

◆ panScale

float imguiGizmo::panScale = 1.f
static

Definition at line 304 of file imGuIZMOquat.h.

◆ planeColor

ImVec4 imguiGizmo::planeColor
static

Definition at line 297 of file imGuIZMOquat.h.

◆ planeNorm

ImVector< vec3 > imguiGizmo::planeNorm
static

Definition at line 106 of file imGuIZMOquat.h.

◆ planeSize

float imguiGizmo::planeSize = .33f
static

Definition at line 269 of file imGuIZMOquat.h.

◆ planeThickness

float imguiGizmo::planeThickness = .015f
static

Definition at line 270 of file imGuIZMOquat.h.

◆ planeVtx

ImVector< vec3 > imguiGizmo::planeVtx
static

Definition at line 105 of file imGuIZMOquat.h.

◆ posPanDolly

vec3 imguiGizmo::posPanDolly = vec3(0.f)

Definition at line 74 of file imGuIZMOquat.h.

◆ qtV

quat imguiGizmo::qtV = quat(1.0f, vec3(0.0f))

Definition at line 71 of file imGuIZMOquat.h.

◆ qtV2

quat imguiGizmo::qtV2 = quat(1.0f, vec3(0.0f))

Definition at line 72 of file imGuIZMOquat.h.

◆ savedAxesResizeFactor

vec3 imguiGizmo::savedAxesResizeFactor = imguiGizmo::axesResizeFactor
static

Definition at line 282 of file imGuIZMOquat.h.

◆ savedDirectionColor

ImVec4 imguiGizmo::savedDirectionColor = imguiGizmo::directionColor
static

Definition at line 295 of file imGuIZMOquat.h.

◆ savedPlaneColor

ImVec4 imguiGizmo::savedPlaneColor = imguiGizmo::planeColor
static

Definition at line 298 of file imGuIZMOquat.h.

◆ savedSolidResizeFactor

float imguiGizmo::savedSolidResizeFactor = imguiGizmo::solidResizeFactor
static

Definition at line 287 of file imGuIZMOquat.h.

◆ savedSphereColors

ImU32 imguiGizmo::savedSphereColors = { 0xff401010, 0xffc0a0a0 }
static

Definition at line 91 of file imGuIZMOquat.h.

◆ showFullAxes

bool imguiGizmo::showFullAxes = false

Definition at line 185 of file imGuIZMOquat.h.

◆ solidAreBuilded

bool imguiGizmo::solidAreBuilded = false
static

Definition at line 180 of file imGuIZMOquat.h.

◆ solidResizeFactor

float imguiGizmo::solidResizeFactor = 1.0f
static

Definition at line 286 of file imGuIZMOquat.h.

◆ sphereColors

ImU32 imguiGizmo::sphereColors = { 0xff401010, 0xffc0a0a0 }
static

Definition at line 90 of file imGuIZMOquat.h.

◆ sphereRadius

float imguiGizmo::sphereRadius = .27f
static

Definition at line 260 of file imGuIZMOquat.h.

◆ sphereTess

ImVector< int > imguiGizmo::sphereTess
static

Definition at line 102 of file imGuIZMOquat.h.

◆ sphereTessFactor

int imguiGizmo::sphereTessFactor = imguiGizmo::sphereTess4
static

Definition at line 261 of file imGuIZMOquat.h.

◆ sphereVtx

ImVector< vec3 > imguiGizmo::sphereVtx
static

Definition at line 101 of file imGuIZMOquat.h.


The documentation for this struct was generated from the following files: