diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-05-15 09:07:21 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-05-15 09:07:21 -0400 |
commit | 5d43bc166d011e911e0492579b2f4f8bf015b48f (patch) | |
tree | ccc4cda5c2c2c3a5689f4a33dcfda2a896f21b8c /indra/newview/llfloaterpathfindingconsole.h | |
parent | a3f2cacf542e1d770698ef6c7e6ea1c0a5cd3368 (diff) | |
parent | e7eced3c87310b15ac20cc3cd470d67686104a14 (diff) |
Merge commit 'e7eced3' into release/luau-scripting: whitespace fix.
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.h')
-rw-r--r-- | indra/newview/llfloaterpathfindingconsole.h | 302 |
1 files changed, 151 insertions, 151 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.h b/indra/newview/llfloaterpathfindingconsole.h index e999e57741..42aee1ec46 100644 --- a/indra/newview/llfloaterpathfindingconsole.h +++ b/indra/newview/llfloaterpathfindingconsole.h @@ -1,4 +1,4 @@ -/** +/** * @file llfloaterpathfindingconsole.h * @brief "Pathfinding console" floater, allowing for viewing and testing of the pathfinding navmesh through Havok AI utilities. * @author Stinson@lindenlab.com @@ -50,171 +50,171 @@ class LLTextBase; class LLToolset; class LLFloaterPathfindingConsole -: public LLFloater +: public LLFloater { - friend class LLFloaterReg; + friend class LLFloaterReg; public: - virtual BOOL postBuild(); - virtual void onOpen(const LLSD& pKey); - virtual void onClose(bool pIsAppQuitting); + virtual BOOL postBuild(); + virtual void onOpen(const LLSD& pKey); + virtual void onClose(bool pIsAppQuitting); - static LLHandle<LLFloaterPathfindingConsole> getInstanceHandle(); + static LLHandle<LLFloaterPathfindingConsole> getInstanceHandle(); - BOOL isRenderNavMesh() const; - void setRenderNavMesh(BOOL pIsRenderNavMesh); + BOOL isRenderNavMesh() const; + void setRenderNavMesh(BOOL pIsRenderNavMesh); - BOOL isRenderWalkables() const; - void setRenderWalkables(BOOL pIsRenderWalkables); + BOOL isRenderWalkables() const; + void setRenderWalkables(BOOL pIsRenderWalkables); - BOOL isRenderStaticObstacles() const; - void setRenderStaticObstacles(BOOL pIsRenderStaticObstacles); + BOOL isRenderStaticObstacles() const; + void setRenderStaticObstacles(BOOL pIsRenderStaticObstacles); - BOOL isRenderMaterialVolumes() const; - void setRenderMaterialVolumes(BOOL pIsRenderMaterialVolumes); + BOOL isRenderMaterialVolumes() const; + void setRenderMaterialVolumes(BOOL pIsRenderMaterialVolumes); - BOOL isRenderExclusionVolumes() const; - void setRenderExclusionVolumes(BOOL pIsRenderExclusionVolumes); + BOOL isRenderExclusionVolumes() const; + void setRenderExclusionVolumes(BOOL pIsRenderExclusionVolumes); - BOOL isRenderWorld() const; - void setRenderWorld(BOOL pIsRenderWorld); - - BOOL isRenderWorldMovablesOnly() const; - void setRenderWorldMovablesOnly(BOOL pIsRenderWorldMovablesOnly); + BOOL isRenderWorld() const; + void setRenderWorld(BOOL pIsRenderWorld); - BOOL isRenderWaterPlane() const; - void setRenderWaterPlane(BOOL pIsRenderWaterPlane); - - BOOL isRenderXRay() const; - void setRenderXRay(BOOL pIsRenderXRay); - - BOOL isRenderAnyShapes() const; - U32 getRenderShapeFlags(); + BOOL isRenderWorldMovablesOnly() const; + void setRenderWorldMovablesOnly(BOOL pIsRenderWorldMovablesOnly); - LLPathingLib::LLPLCharacterType getRenderHeatmapType() const; - void setRenderHeatmapType(LLPathingLib::LLPLCharacterType pRenderHeatmapType); - void onRegionBoundaryCross(); + BOOL isRenderWaterPlane() const; + void setRenderWaterPlane(BOOL pIsRenderWaterPlane); + + BOOL isRenderXRay() const; + void setRenderXRay(BOOL pIsRenderXRay); + + BOOL isRenderAnyShapes() const; + U32 getRenderShapeFlags(); + + LLPathingLib::LLPLCharacterType getRenderHeatmapType() const; + void setRenderHeatmapType(LLPathingLib::LLPLCharacterType pRenderHeatmapType); + void onRegionBoundaryCross(); protected: private: - typedef enum - { - kConsoleStateUnknown, - kConsoleStateLibraryNotImplemented, - kConsoleStateRegionNotEnabled, - kConsoleStateRegionLoading, - kConsoleStateCheckingVersion, - kConsoleStateDownloading, - kConsoleStateHasNavMesh, - kConsoleStateError - } EConsoleState; - - // Does its own instance management, so clients not allowed - // to allocate or destroy. - LLFloaterPathfindingConsole(const LLSD& pSeed); - virtual ~LLFloaterPathfindingConsole(); - - void onTabSwitch(); - void onShowWorldSet(); - void onShowWorldMovablesOnlySet(); - void onShowNavMeshSet(); - void onShowWalkabilitySet(); - void onCharacterWidthSet(); - void onCharacterTypeSwitch(); - void onClearPathClicked(); - - void handleNavMeshZoneStatus(LLPathfindingNavMeshZone::ENavMeshZoneRequestStatus pNavMeshZoneRequestStatus); - - void onPathEvent(); - - void setDefaultInputs(); - void setConsoleState(EConsoleState pConsoleState); - void setWorldRenderState(); - void setNavMeshRenderState(); - void updateRenderablesObjects(); - - void updateControlsOnConsoleState(); - void updateViewerStatusOnConsoleState(); - void updateSimulatorStatusOnConsoleState(); - - void initializeNavMeshZoneForCurrentRegion(); - - void switchIntoTestPathMode(); - void switchOutOfTestPathMode(); - void updateCharacterWidth(); - void updateCharacterType(); - void clearPath(); - void updatePathTestStatus(); - - void registerSavedSettingsListeners(); - void deregisterSavedSettingsListeners(); - void handleRetrieveNeighborChange(LLControlVariable *pControl, const LLSD &pNewValue); - void handleNavMeshColorChange(LLControlVariable *pControl, const LLSD &pNewValue); - void fillInColorsForNavMeshVisualization(); - void cleanupRenderableRestoreItems(); - - LLRootHandle<LLFloaterPathfindingConsole> mSelfHandle; - LLTabContainer *mViewTestTabContainer; - LLPanel *mViewTab; - LLTextBase *mShowLabel; - LLCheckBoxCtrl *mShowWorldCheckBox; - LLCheckBoxCtrl *mShowWorldMovablesOnlyCheckBox; - LLCheckBoxCtrl *mShowNavMeshCheckBox; - LLTextBase *mShowNavMeshWalkabilityLabel; - LLComboBox *mShowNavMeshWalkabilityComboBox; - LLCheckBoxCtrl *mShowWalkablesCheckBox; - LLCheckBoxCtrl *mShowStaticObstaclesCheckBox; - LLCheckBoxCtrl *mShowMaterialVolumesCheckBox; - LLCheckBoxCtrl *mShowExclusionVolumesCheckBox; - LLCheckBoxCtrl *mShowRenderWaterPlaneCheckBox; - LLCheckBoxCtrl *mShowXRayCheckBox; - LLTextBase *mPathfindingViewerStatus; - LLTextBase *mPathfindingSimulatorStatus; - LLPanel *mTestTab; - LLTextBase *mCtrlClickLabel; - LLTextBase *mShiftClickLabel; - LLTextBase *mCharacterWidthLabel; - LLTextBase *mCharacterWidthUnitLabel; - LLSliderCtrl *mCharacterWidthSlider; - LLTextBase *mCharacterTypeLabel; - LLComboBox *mCharacterTypeComboBox; - LLTextBase *mPathTestingStatus; - LLButton *mClearPathButton; - - LLColor4 mErrorColor; - LLColor4 mWarningColor; - - LLPathfindingNavMeshZone::navmesh_zone_slot_t mNavMeshZoneSlot; - LLPathfindingNavMeshZone mNavMeshZone; - bool mIsNavMeshUpdating; - - boost::signals2::connection mRegionBoundarySlot; - boost::signals2::connection mTeleportFailedSlot; - LLPathfindingPathTool::path_event_slot_t mPathEventSlot; - - LLToolset *mPathfindingToolset; - LLToolset *mSavedToolset; - - boost::signals2::connection mSavedSettingRetrieveNeighborSlot; - boost::signals2::connection mSavedSettingWalkableSlot; - boost::signals2::connection mSavedSettingStaticObstacleSlot; - boost::signals2::connection mSavedSettingMaterialVolumeSlot; - boost::signals2::connection mSavedSettingExclusionVolumeSlot; - boost::signals2::connection mSavedSettingInteriorEdgeSlot; - boost::signals2::connection mSavedSettingExteriorEdgeSlot; - boost::signals2::connection mSavedSettingHeatmapMinSlot; - boost::signals2::connection mSavedSettingHeatmapMaxSlot; - boost::signals2::connection mSavedSettingNavMeshFaceSlot; - boost::signals2::connection mSavedSettingTestPathValidEndSlot; - boost::signals2::connection mSavedSettingTestPathInvalidEndSlot; - boost::signals2::connection mSavedSettingTestPathSlot; - boost::signals2::connection mSavedSettingWaterSlot; - - EConsoleState mConsoleState; - - std::vector<U32> mRenderableRestoreList; - - static LLHandle<LLFloaterPathfindingConsole> sInstanceHandle; + typedef enum + { + kConsoleStateUnknown, + kConsoleStateLibraryNotImplemented, + kConsoleStateRegionNotEnabled, + kConsoleStateRegionLoading, + kConsoleStateCheckingVersion, + kConsoleStateDownloading, + kConsoleStateHasNavMesh, + kConsoleStateError + } EConsoleState; + + // Does its own instance management, so clients not allowed + // to allocate or destroy. + LLFloaterPathfindingConsole(const LLSD& pSeed); + virtual ~LLFloaterPathfindingConsole(); + + void onTabSwitch(); + void onShowWorldSet(); + void onShowWorldMovablesOnlySet(); + void onShowNavMeshSet(); + void onShowWalkabilitySet(); + void onCharacterWidthSet(); + void onCharacterTypeSwitch(); + void onClearPathClicked(); + + void handleNavMeshZoneStatus(LLPathfindingNavMeshZone::ENavMeshZoneRequestStatus pNavMeshZoneRequestStatus); + + void onPathEvent(); + + void setDefaultInputs(); + void setConsoleState(EConsoleState pConsoleState); + void setWorldRenderState(); + void setNavMeshRenderState(); + void updateRenderablesObjects(); + + void updateControlsOnConsoleState(); + void updateViewerStatusOnConsoleState(); + void updateSimulatorStatusOnConsoleState(); + + void initializeNavMeshZoneForCurrentRegion(); + + void switchIntoTestPathMode(); + void switchOutOfTestPathMode(); + void updateCharacterWidth(); + void updateCharacterType(); + void clearPath(); + void updatePathTestStatus(); + + void registerSavedSettingsListeners(); + void deregisterSavedSettingsListeners(); + void handleRetrieveNeighborChange(LLControlVariable *pControl, const LLSD &pNewValue); + void handleNavMeshColorChange(LLControlVariable *pControl, const LLSD &pNewValue); + void fillInColorsForNavMeshVisualization(); + void cleanupRenderableRestoreItems(); + + LLRootHandle<LLFloaterPathfindingConsole> mSelfHandle; + LLTabContainer *mViewTestTabContainer; + LLPanel *mViewTab; + LLTextBase *mShowLabel; + LLCheckBoxCtrl *mShowWorldCheckBox; + LLCheckBoxCtrl *mShowWorldMovablesOnlyCheckBox; + LLCheckBoxCtrl *mShowNavMeshCheckBox; + LLTextBase *mShowNavMeshWalkabilityLabel; + LLComboBox *mShowNavMeshWalkabilityComboBox; + LLCheckBoxCtrl *mShowWalkablesCheckBox; + LLCheckBoxCtrl *mShowStaticObstaclesCheckBox; + LLCheckBoxCtrl *mShowMaterialVolumesCheckBox; + LLCheckBoxCtrl *mShowExclusionVolumesCheckBox; + LLCheckBoxCtrl *mShowRenderWaterPlaneCheckBox; + LLCheckBoxCtrl *mShowXRayCheckBox; + LLTextBase *mPathfindingViewerStatus; + LLTextBase *mPathfindingSimulatorStatus; + LLPanel *mTestTab; + LLTextBase *mCtrlClickLabel; + LLTextBase *mShiftClickLabel; + LLTextBase *mCharacterWidthLabel; + LLTextBase *mCharacterWidthUnitLabel; + LLSliderCtrl *mCharacterWidthSlider; + LLTextBase *mCharacterTypeLabel; + LLComboBox *mCharacterTypeComboBox; + LLTextBase *mPathTestingStatus; + LLButton *mClearPathButton; + + LLColor4 mErrorColor; + LLColor4 mWarningColor; + + LLPathfindingNavMeshZone::navmesh_zone_slot_t mNavMeshZoneSlot; + LLPathfindingNavMeshZone mNavMeshZone; + bool mIsNavMeshUpdating; + + boost::signals2::connection mRegionBoundarySlot; + boost::signals2::connection mTeleportFailedSlot; + LLPathfindingPathTool::path_event_slot_t mPathEventSlot; + + LLToolset *mPathfindingToolset; + LLToolset *mSavedToolset; + + boost::signals2::connection mSavedSettingRetrieveNeighborSlot; + boost::signals2::connection mSavedSettingWalkableSlot; + boost::signals2::connection mSavedSettingStaticObstacleSlot; + boost::signals2::connection mSavedSettingMaterialVolumeSlot; + boost::signals2::connection mSavedSettingExclusionVolumeSlot; + boost::signals2::connection mSavedSettingInteriorEdgeSlot; + boost::signals2::connection mSavedSettingExteriorEdgeSlot; + boost::signals2::connection mSavedSettingHeatmapMinSlot; + boost::signals2::connection mSavedSettingHeatmapMaxSlot; + boost::signals2::connection mSavedSettingNavMeshFaceSlot; + boost::signals2::connection mSavedSettingTestPathValidEndSlot; + boost::signals2::connection mSavedSettingTestPathInvalidEndSlot; + boost::signals2::connection mSavedSettingTestPathSlot; + boost::signals2::connection mSavedSettingWaterSlot; + + EConsoleState mConsoleState; + + std::vector<U32> mRenderableRestoreList; + + static LLHandle<LLFloaterPathfindingConsole> sInstanceHandle; }; #endif // LL_LLFLOATERPATHFINDINGCONSOLE_H |