7 #include "CollisionVisualization.h"
8 #include "VectorMath.h"
10 #include "Buildings.h"
11 #include "ICallback.h"
12 #include "Rendering.h"
15 #include <unordered_map>
21 namespace CollisionVisualization
36 bool IsSelected(
const std::string& materialId)
const;
37 bool IsFlashing(
const std::string& materialId)
const;
39 void Select(
const std::string& materialId);
40 void SetFlashingState(
const std::string& materialId,
bool flashing);
41 void CycleFlashing(
const std::string& materialId);
42 void Deselect(
const std::string& materialId);
45 void Update(
float dt);
48 void NotifyCollisionResourcesChanged();
50 typedef std::unordered_map<const MaterialSelectionModelEntry*, MultiMaterialSelectionView*> ModelEntryToView;
52 void RefreshViewRenderables();
53 void RemoveAllViews();
54 std::vector<std::string> GetAssociatedLandmarkTextureNames(
const std::string& prefix)
const;
55 std::vector<std::string> GetAllSelectedCollisionMaterialIds()
const;
66 ModelEntryToView m_modelEntryToView;
68 float m_flashingPhase;
69 bool m_needRefreshViewRenderables;
72 const float m_flashFrequency;
73 const float m_flashSaturateScale;
74 const float m_flashAlphaMin;
75 const float m_flashAlphaMax;