6 #include "RenderableBase.h"
9 #include "CollisionVisualization.h"
10 #include "Rendering.h"
11 #include "SingleSphere.h"
18 namespace CollisionVisualization
24 Rendering::LayerIds::Values layerId,
25 const dv3& ecefPosition,
37 virtual m44 CalcModelViewProjection(
const dv3& ecefCameraPosition,
const m44& viewProjection,
const float environmentFlatteningScale)
const;
43 virtual const v4& GetColor()
const {
return m_color; }
44 virtual const std::vector<std::array<v4, 2>>& GetHeightClipPlanes()
const {
return m_heightClipPlanes; }
45 virtual bool IsDepthTest()
const {
return m_depthTest; }
46 virtual bool IsDepthWrite()
const {
return m_depthWrite; }
47 virtual bool IsDepthBias()
const {
return m_depthBias; }
48 virtual bool IsAlphaBlend()
const {
return m_alphaBlend; }
50 virtual const std::array<v4, 2>& GetCurrentHeightClipPlanePair()
const;
52 virtual void SetColor(
const v4& color) { m_color = color; }
53 virtual void SetHeightClipPlanes(
const std::vector<std::array<v4, 2>>& heightClipPlanes) { m_heightClipPlanes = heightClipPlanes; }
54 virtual void SetDepthTest(
bool enabled) { m_depthTest = enabled; }
55 virtual void SetDepthWrite(
bool enabled) { m_depthWrite = enabled; }
56 virtual void SetDepthBias(
bool enabled) { m_depthBias = enabled; }
57 virtual void SetAlphaBlend(
bool enabled) { m_alphaBlend = enabled; }
65 std::vector<std::array<v4, 2>> m_heightClipPlanes;
71 mutable std::vector<std::array<v4, 2>>::const_iterator m_currentHeightClipPlanePair;