Defines

Scene and Node Hit Testing Flags

The following describes hit testing flags that can be sent to the node and scene hit testing methods. More...

Defines

#define  HIT_SELONLY   (1<<0)
  Hit test selected items only.
#define  HIT_UNSELONLY   (1<<2)
  Hit test unselected items only.
#define  HIT_ABORTONHIT   (1<<3)
  Abort the process of hit testing after finding any hit.
#define  HIT_SELSOLID   (1<<4)
  This treats selected items as solid and unselected items as not solid.
#define  HIT_ANYSOLID   (1<<5)
  This treats any item as solid.
#define  HIT_TRANSFORMGIZMO   (1<<6)
  This forces hit testing for the transform gizmos.
#define  HIT_SWITCH_GIZMO   (1<<7)
  This forces hit testing for the Switch axis when hit.
#define  HIT_MANIP_SUBHIT   (1<<8)
  This forces hit testing for sub-manipulators.
#define  HITFLTR_ALL   (1<<10)
  For hit testing everything which can be combined into the flags parameter.
#define  HITFLTR_OBJECTS   (1<<11)
  For hit testing just objects which can be combined into the flags parameter.
#define  HITFLTR_CAMERAS   (1<<12)
  For hit testing just cameras which can be combined into the flags parameter.
#define  HITFLTR_LIGHTS   (1<<13)
  For hit testing just lights which can be combined into the flags parameter.
#define  HITFLTR_HELPERS   (1<<14)
  For hit testing just helpers which can be combined into the flags parameter.
#define  HITFLTR_WSMOBJECTS   (1<<15)
  For hit testing just world space objects which can be combined into the flags parameter.
#define  HITFLTR_SPLINES   (1<<16)
  For hit testing just splines which can be combined into the flags parameter.
#define  HITFLTR_BONES   (1<<17)
  For hit testing just bones which can be combined into the flags parameter.
#define  HIT_SCENEXREFS   (1<<18)
  For hit testing scene xrefs.
#define  HIT_MANAGER_HIDDEN_SCENEXREFS   (1<<19)
  For hit testing scene xrefs hidden in the manager (identified by the XREF_SCENE_HIDEINMANAGERUI XRef flag e.g.
#define  HITFLAG_STARTUSERBIT   24
  Starting at this bit through the 31st bit can be used by plug-ins for sub-object hit testing.

Detailed Description

The following describes hit testing flags that can be sent to the node and scene hit testing methods.


Define Documentation

#define HIT_SELONLY   (1<<0)

Hit test selected items only.

#define HIT_UNSELONLY   (1<<2)

Hit test unselected items only.

#define HIT_ABORTONHIT   (1<<3)

Abort the process of hit testing after finding any hit.

#define HIT_SELSOLID   (1<<4)

This treats selected items as solid and unselected items as not solid.

Treating an item as solid means the face will be hit if the mouse is anywhere inside the face region and not just over a visible edge.

#define HIT_ANYSOLID   (1<<5)

This treats any item as solid.

Treating an item as solid means the face will be hit if the mouse is anywhere inside the face region and not just over a visible edge.

#define HIT_TRANSFORMGIZMO   (1<<6)

This forces hit testing for the transform gizmos.

#define HIT_SWITCH_GIZMO   (1<<7)

This forces hit testing for the Switch axis when hit.

The selection processor that does the hit-testing will include this flag when hit-testing on a MOUSE_POINT message, because when this flag is active and the transform gizmo's hit-testing hits the manipulator, it should switch the axis mode to the axis that is hit. Normally the transform gizmo hit-testing will only highlight the axis if it hits it - but when this flag is active it should also set the axis mode using PushAxisMode() or SetAxisMode()

#define HIT_MANIP_SUBHIT   (1<<8)

This forces hit testing for sub-manipulators.

#define HITFLTR_ALL   (1<<10)

For hit testing everything which can be combined into the flags parameter.

#define HITFLTR_OBJECTS   (1<<11)

For hit testing just objects which can be combined into the flags parameter.

#define HITFLTR_CAMERAS   (1<<12)

For hit testing just cameras which can be combined into the flags parameter.

#define HITFLTR_LIGHTS   (1<<13)

For hit testing just lights which can be combined into the flags parameter.

#define HITFLTR_HELPERS   (1<<14)

For hit testing just helpers which can be combined into the flags parameter.

#define HITFLTR_WSMOBJECTS   (1<<15)

For hit testing just world space objects which can be combined into the flags parameter.

#define HITFLTR_SPLINES   (1<<16)

For hit testing just splines which can be combined into the flags parameter.

#define HITFLTR_BONES   (1<<17)

For hit testing just bones which can be combined into the flags parameter.

#define HIT_SCENEXREFS   (1<<18)

For hit testing scene xrefs.

You must not make references to scene xrefs.

#define HIT_MANAGER_HIDDEN_SCENEXREFS   (1<<19)

For hit testing scene xrefs hidden in the manager (identified by the XREF_SCENE_HIDEINMANAGERUI XRef flag e.g.

closed containers). You must not make references to scene xrefs.

#define HITFLAG_STARTUSERBIT   24

Starting at this bit through the 31st bit can be used by plug-ins for sub-object hit testing.