summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpathfindingconsole.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.h')
-rw-r--r--indra/newview/llfloaterpathfindingconsole.h302
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