Interface PickState

All Superinterfaces:
AppState
All Known Implementing Classes:
BasePickState, MouseAppState, TouchAppState

public interface PickState extends AppState
Interface that pick event app states will implement so that the GuiGlobals user need not worry about which one(s) is/are active. Generally, only MouseAppState or TouchAppState are active at any one time. If we ever support both being active at once then we can wrap them in a composite object that implements this interface.
  • Field Details

  • Method Details

    • setIncludeDefaultCollisionRoots

      void setIncludeDefaultCollisionRoots(boolean b)
    • getIncludeDefaultCollisionRoots

      boolean getIncludeDefaultCollisionRoots()
    • addCollisionRoot

      void addCollisionRoot(ViewPort viewPort)
    • addCollisionRoot

      void addCollisionRoot(ViewPort viewPort, String layer)
    • addCollisionRoot

      void addCollisionRoot(Spatial root, ViewPort viewPort)
    • addCollisionRoot

      void addCollisionRoot(Spatial root, ViewPort viewPort, String layer)
    • removeCollisionRoot

      void removeCollisionRoot(ViewPort viewPort)
    • removeCollisionRoot

      void removeCollisionRoot(Spatial root)
    • setPickLayerOrder

      void setPickLayerOrder(String... layers)
    • getPickLayerOrder

      String[] getPickLayerOrder()
    • requestEnabled

      void requestEnabled(Object owner)
      Signifies that the specified owner needs the pick state to be enabled.
    • releaseEnabled

      boolean releaseEnabled(Object owner)
      Signifies that the specified owner no longer needs the pick state to be enabled. Will return true if the state is still enabled (because of other requests) or false if the state is now disabled.
    • hasRequestedEnabled

      boolean hasRequestedEnabled(Object owner)
      Returns true if the specified owner has an active request for picking to be enabled.
    • resetEnabled

      boolean resetEnabled()
      Refreshes the enabled/disabled state based on the current request count. This is useful to reset the 'stack' if a forced enable/disable was previously done.