HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DM_Defines.h File Reference
#include <UT/UT_Array.h>
#include <GU/GU_SelectType.h>
#include <GUI/GUI_RenderCommon.h>
#include <BM/BM_KeyBindings.h>
#include <RE/RE_Types.h>
#include <UT/UT_Vector2.h>
#include <UT/UT_Vector3.h>
+ Include dependency graph for DM_Defines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DM_ViewportMBlurDOFParms
 
class  DM_ViewportFogParms
 

Macros

#define DM_DRAW_SELECTED   0x01
 
#define DM_DRAW_NONSELECTED   0x02
 
#define DM_DRAW_ALL   (DM_DRAW_SELECTED | DM_DRAW_NONSELECTED)
 
#define DM_PICKED_NOTHING   0
 
#define DM_PICKED_POINT   1
 
#define DM_PICKED_EDGE   2
 
#define DM_PICKED_NORMAL   3
 
#define DM_PICKED_PRIMITIVE   4
 
#define DM_VIEWPORT_MAX_PICK_DIST   RE_MAX_PICK_DIST
 
#define DM_VIEWPORT_SNAP_NEAR_PICK_DIST   RE_MAX_PICK_DIST
 
#define DM_VIEWPORT_HANDLE_PICK_DIST   5
 
#define DM_VIEWPORT_HANDLE_PICK_OVERLAP_DIST   5
 
#define DM_VIEWPORT_GEO_PICK_DIST   5
 
#define DM_VIEWPORT_GEO_PICK_OVERLAP_DIST   5
 
#define DM_VIEWPORT_SNAP_PICK_DIST   10
 
#define DM_VIEWPORT_SNAP_PICK_OVERLAP_DIST   10
 
#define DM_VIEWPORT_PEANUT_SNAP_PICK_DIST   10
 
#define DM_VIEWPORT_PEANUT_SNAP_PICK_OVERLAP_DIST   7
 
#define DM_X_AXIS   'X'
 
#define DM_Y_AXIS   'Y'
 
#define DM_Z_AXIS   'Z'
 
#define DM_x_AXIS   'x'
 
#define DM_y_AXIS   'y'
 
#define DM_z_AXIS   'z'
 
#define DM_ROTATE_BY   45
 
#define DM_PRIMARY_BUTTON   UI_LEFT_BUTTON
 
#define DM_SECONDARY_BUTTON   UI_MIDDLE_BUTTON
 
#define DM_TERTIARY_BUTTON   UI_RIGHT_BUTTON
 
#define DM_SELECTDRAG_BUTTON   UI_LEFT_BUTTON
 
#define DM_SAFESELECT_BUTTON   UI_MIDDLE_BUTTON
 
#define DM_FINISH_BUTTON   UI_RIGHT_BUTTON
 
#define DM_VIEW_MEMORY_NAME   "View"
 
#define DM_SNAPSHOT_MEMORY_NAME   "Snapshot"
 
#define DM_LABEL_HOFFSET   0.15
 
#define DM_LABEL_VOFFSET   0.05
 

Enumerations

enum  DM_SelectionStyle {
  DM_STYLE_UNKNOWN = -1, DM_STYLE_BOX_PICK = 0, DM_STYLE_LASSO_PICK, DM_STYLE_BRUSH_PICK,
  DM_STYLE_LASER_PICK, DM_STYLE_NUM_ENTRIES
}
 
enum  {
  DM_OBJ_GEO = 0x00000001, DM_OBJ_CAM = 0x00000002, DM_OBJ_LIGHT = 0x00000004, DM_OBJ_BONE = 0x00000008,
  DM_OBJ_NULL = 0x00000010, DM_OBJ_BLEND = 0x00000020, DM_OBJ_OTHER = 0x00000040, DM_OBJ_ALL = 0x0000007F
}
 
enum  DM_SelectionFacing { DM_SEL_ALLOW_FRONT_AND_BACK = 0, DM_SEL_ALLOW_FRONT, DM_SEL_ALLOW_BACK, DM_SEL_ALLOW_NUM }
 
enum  { DM_SEL_CONNECTIVITY_VIEWPORT = 0, DM_SEL_CONNECTIVITY_3D, DM_SEL_CONNECTIVITY_UV, DM_SEL_CONNECTIVITY_NUM_ENTRIES }
 
enum  {
  DM_CLIPPLANE_TOP = 0, DM_CLIPPLANE_BOTTOM, DM_CLIPPLANE_LEFT, DM_CLIPPLANE_RIGHT,
  DM_CLIPPLANE_FRONT, DM_CLIPPLANE_BACK, DM_NUM_CLIPPLANES
}
 
enum  DM_SelectMode {
  DM_SELECTMODE_INVALID = -1, DM_SELECTMODE_OBJECT = 0, DM_SELECTMODE_GEOMETRY, DM_SELECTMODE_DYNAMICS,
  DM_SELECTMODE_SCENE_GRAPH, DM_NUM_SELECTMODES
}
 
enum  DM_DopSelectMode { DM_DOPSELECTMODE_DETAILS = 0, DM_DOPSELECTMODE_POINTS, DM_DOPSELECTMODE_POLYGONS, DM_NUM_DOPSELECTMODES }
 
enum  DM_InspectMode { DM_INSPECTMODE_OBJECTS = 0, DM_INSPECTMODE_PRIMITIVES, DM_INSPECTMODE_PIXELS, DM_NUM_INSPECTMODES }
 
enum  DM_InfoTextMode { DM_INFOTEXT_OFF = 0, DM_INFOTEXT_SELECTED_ONLY, DM_INFOTEXT_ALWAYS }
 
enum  DM_GeoSortMode { DM_GEO_UNSORTED = 0, DM_GEO_SORTED_NEAR_FIRST, DM_GEO_SORTED_FAR_FIRST }
 
enum  DM_SnapMode {
  DM_SNAP_MODE_NONE = -1, DM_SNAP_MODE_GRID = 0, DM_SNAP_MODE_PRIM, DM_SNAP_MODE_POINT,
  DM_SNAP_MODE_MULTI, DM_SNAP_MODE_LAST
}
 mode types for snapping More...
 
enum  DM_SnapshotOptionType {
  DM_SNAPSHOT_HIDE_AT_SOURCE, DM_SNAPSHOT_FACTOR_VALUE, DM_SNAPSHOT_VISIBLE_OBJECTS, DM_SNAPSHOT_HIDE_HANDLES,
  DM_SNAPSHOT_COMPARE_MODE
}
 Enumerates options that can change and whose changes are broadcast. More...
 
enum  DM_SelectionModifierKeys { DM_SMK_TOGGLE_REMOVE_ADD, DM_SMK_ADD_TOGGLE_REMOVE }
 
enum  DM_DrawablePrimitive : short { DM_DrawablePrimitive::Circle, DM_DrawablePrimitive::Sphere, DM_DrawablePrimitive::Tube }
 
enum  DM_SnapPriority : unsigned {
  DM_SnapPriority::GeoEdge = 0, DM_SnapPriority::GeoPoint, DM_SnapPriority::Midpoint, DM_SnapPriority::Primitive,
  DM_SnapPriority::BreakPoint, DM_SnapPriority::GridPoint, DM_SnapPriority::GridEdge, DM_SnapPriority::PrimGuidePoint,
  DM_SnapPriority::PrimGuideEdge
}
 
enum  DM_SnapSelection { DM_SNAP_TO_ALL = 0, DM_SNAP_TO_SELECTED, DM_SNAP_TO_NON_SELECTED }
 
enum  DM_ViewportFogType { DM_FOG_UNIFORM, DM_FOG_VOLUME }
 

Macro Definition Documentation

#define DM_DRAW_ALL   (DM_DRAW_SELECTED | DM_DRAW_NONSELECTED)

Definition at line 29 of file DM_Defines.h.

#define DM_DRAW_NONSELECTED   0x02

Definition at line 28 of file DM_Defines.h.

#define DM_DRAW_SELECTED   0x01

Definition at line 27 of file DM_Defines.h.

#define DM_FINISH_BUTTON   UI_RIGHT_BUTTON

Definition at line 221 of file DM_Defines.h.

#define DM_LABEL_HOFFSET   0.15

Definition at line 227 of file DM_Defines.h.

#define DM_LABEL_VOFFSET   0.05

Definition at line 228 of file DM_Defines.h.

#define DM_PICKED_EDGE   2

Definition at line 35 of file DM_Defines.h.

#define DM_PICKED_NORMAL   3

Definition at line 36 of file DM_Defines.h.

#define DM_PICKED_NOTHING   0

Definition at line 33 of file DM_Defines.h.

#define DM_PICKED_POINT   1

Definition at line 34 of file DM_Defines.h.

#define DM_PICKED_PRIMITIVE   4

Definition at line 37 of file DM_Defines.h.

#define DM_PRIMARY_BUTTON   UI_LEFT_BUTTON

Definition at line 215 of file DM_Defines.h.

#define DM_ROTATE_BY   45

Definition at line 74 of file DM_Defines.h.

#define DM_SAFESELECT_BUTTON   UI_MIDDLE_BUTTON

Definition at line 220 of file DM_Defines.h.

#define DM_SECONDARY_BUTTON   UI_MIDDLE_BUTTON
Examples:
SOP/MSS_CustomBrushState.C.

Definition at line 216 of file DM_Defines.h.

#define DM_SELECTDRAG_BUTTON   UI_LEFT_BUTTON

Definition at line 219 of file DM_Defines.h.

#define DM_SNAPSHOT_MEMORY_NAME   "Snapshot"

Definition at line 225 of file DM_Defines.h.

#define DM_TERTIARY_BUTTON   UI_RIGHT_BUTTON

Definition at line 217 of file DM_Defines.h.

#define DM_VIEW_MEMORY_NAME   "View"

Definition at line 224 of file DM_Defines.h.

#define DM_VIEWPORT_GEO_PICK_DIST   5

Definition at line 45 of file DM_Defines.h.

#define DM_VIEWPORT_GEO_PICK_OVERLAP_DIST   5

Definition at line 46 of file DM_Defines.h.

#define DM_VIEWPORT_HANDLE_PICK_DIST   5

Definition at line 43 of file DM_Defines.h.

#define DM_VIEWPORT_HANDLE_PICK_OVERLAP_DIST   5

Definition at line 44 of file DM_Defines.h.

#define DM_VIEWPORT_MAX_PICK_DIST   RE_MAX_PICK_DIST

Definition at line 41 of file DM_Defines.h.

#define DM_VIEWPORT_PEANUT_SNAP_PICK_DIST   10

Definition at line 49 of file DM_Defines.h.

#define DM_VIEWPORT_PEANUT_SNAP_PICK_OVERLAP_DIST   7

Definition at line 50 of file DM_Defines.h.

#define DM_VIEWPORT_SNAP_NEAR_PICK_DIST   RE_MAX_PICK_DIST

Definition at line 42 of file DM_Defines.h.

#define DM_VIEWPORT_SNAP_PICK_DIST   10

Definition at line 47 of file DM_Defines.h.

#define DM_VIEWPORT_SNAP_PICK_OVERLAP_DIST   10

Definition at line 48 of file DM_Defines.h.

#define DM_X_AXIS   'X'

Definition at line 65 of file DM_Defines.h.

#define DM_x_AXIS   'x'

Definition at line 68 of file DM_Defines.h.

#define DM_Y_AXIS   'Y'

Definition at line 66 of file DM_Defines.h.

#define DM_y_AXIS   'y'

Definition at line 69 of file DM_Defines.h.

#define DM_Z_AXIS   'Z'

Definition at line 67 of file DM_Defines.h.

#define DM_z_AXIS   'z'

Definition at line 70 of file DM_Defines.h.

Enumeration Type Documentation

anonymous enum
Enumerator
DM_OBJ_GEO 
DM_OBJ_CAM 
DM_OBJ_LIGHT 
DM_OBJ_BONE 
DM_OBJ_NULL 
DM_OBJ_BLEND 
DM_OBJ_OTHER 
DM_OBJ_ALL 

Definition at line 76 of file DM_Defines.h.

anonymous enum
Enumerator
DM_SEL_CONNECTIVITY_VIEWPORT 
DM_SEL_CONNECTIVITY_3D 
DM_SEL_CONNECTIVITY_UV 
DM_SEL_CONNECTIVITY_NUM_ENTRIES 

Definition at line 94 of file DM_Defines.h.

anonymous enum
Enumerator
DM_CLIPPLANE_TOP 
DM_CLIPPLANE_BOTTOM 
DM_CLIPPLANE_LEFT 
DM_CLIPPLANE_RIGHT 
DM_CLIPPLANE_FRONT 
DM_CLIPPLANE_BACK 
DM_NUM_CLIPPLANES 

Definition at line 101 of file DM_Defines.h.

Enumerator
DM_DOPSELECTMODE_DETAILS 
DM_DOPSELECTMODE_POINTS 
DM_DOPSELECTMODE_POLYGONS 
DM_NUM_DOPSELECTMODES 

Definition at line 123 of file DM_Defines.h.

enum DM_DrawablePrimitive : short
strong
Enumerator
Circle 
Sphere 
Tube 

Definition at line 186 of file DM_Defines.h.

Enumerator
DM_GEO_UNSORTED 
DM_GEO_SORTED_NEAR_FIRST 
DM_GEO_SORTED_FAR_FIRST 

Definition at line 150 of file DM_Defines.h.

Enumerator
DM_INFOTEXT_OFF 
DM_INFOTEXT_SELECTED_ONLY 
DM_INFOTEXT_ALWAYS 

Definition at line 143 of file DM_Defines.h.

Enumerator
DM_INSPECTMODE_OBJECTS 
DM_INSPECTMODE_PRIMITIVES 
DM_INSPECTMODE_PIXELS 
DM_NUM_INSPECTMODES 

Definition at line 133 of file DM_Defines.h.

Enumerator
DM_SEL_ALLOW_FRONT_AND_BACK 
DM_SEL_ALLOW_FRONT 
DM_SEL_ALLOW_BACK 
DM_SEL_ALLOW_NUM 

Definition at line 87 of file DM_Defines.h.

The set of modifier keys used for selections assigned on Shift, Ctrl, and Ctrl+Shift, respectively.

Enumerator
DM_SMK_TOGGLE_REMOVE_ADD 
DM_SMK_ADD_TOGGLE_REMOVE 

Definition at line 180 of file DM_Defines.h.

Enumerator
DM_STYLE_UNKNOWN 
DM_STYLE_BOX_PICK 
DM_STYLE_LASSO_PICK 
DM_STYLE_BRUSH_PICK 
DM_STYLE_LASER_PICK 
DM_STYLE_NUM_ENTRIES 

Definition at line 54 of file DM_Defines.h.

Enumerator
DM_SELECTMODE_INVALID 
DM_SELECTMODE_OBJECT 
DM_SELECTMODE_GEOMETRY 
DM_SELECTMODE_DYNAMICS 
DM_SELECTMODE_SCENE_GRAPH 
DM_NUM_SELECTMODES 

Definition at line 113 of file DM_Defines.h.

mode types for snapping

Enumerator
DM_SNAP_MODE_NONE 
DM_SNAP_MODE_GRID 
DM_SNAP_MODE_PRIM 
DM_SNAP_MODE_POINT 
DM_SNAP_MODE_MULTI 
DM_SNAP_MODE_LAST 

Definition at line 158 of file DM_Defines.h.

enum DM_SnapPriority : unsigned
strong
Enumerator
GeoEdge 
GeoPoint 
Midpoint 
Primitive 
BreakPoint 
GridPoint 
GridEdge 
PrimGuidePoint 
PrimGuideEdge 

Definition at line 194 of file DM_Defines.h.

Enumerator
DM_SNAP_TO_ALL 
DM_SNAP_TO_SELECTED 
DM_SNAP_TO_NON_SELECTED 

Definition at line 208 of file DM_Defines.h.

Enumerates options that can change and whose changes are broadcast.

Enumerator
DM_SNAPSHOT_HIDE_AT_SOURCE 
DM_SNAPSHOT_FACTOR_VALUE 
DM_SNAPSHOT_VISIBLE_OBJECTS 
DM_SNAPSHOT_HIDE_HANDLES 
DM_SNAPSHOT_COMPARE_MODE 

Definition at line 169 of file DM_Defines.h.

Enumerator
DM_FOG_UNIFORM 
DM_FOG_VOLUME 

Definition at line 248 of file DM_Defines.h.