!XT (BREAK-16) (Sandbox) Remove double-newlines at the end of files.
[CRYENGINE.git] / Code / Sandbox / Plugins / EditorCommon / Gizmos / AxisHelperExtended.h
blob3c75e5380d006ebb88c02feacc4a0096016ba461
1 // Copyright 2001-2018 Crytek GmbH / Crytek Group. All rights reserved.
3 #pragma once
5 #include "IObjectManager.h"
6 #include "Objects/BaseObject.h"
7 #include "CryPhysics/physinterface.h"
9 struct SDisplayContext;
10 struct IPhysicalEntity;
12 //! This class draws an alignment line from a position to the world
13 class CAxisHelperExtended
15 public:
16 CAxisHelperExtended();
17 void DrawAxes(SDisplayContext& dc, const Matrix34& matrix);
19 private:
20 void DrawAxis(SDisplayContext& dc, const Vec3& direction, const float dist, const Vec3& up, const Vec3& color);
22 private:
23 Matrix34 m_matrix;
24 Vec3 m_position;
25 std::vector<IPhysicalEntity*> m_skipEntities;
26 std::vector<CBaseObjectPtr> m_objects;
27 CBaseObjectsArray m_objectsForPicker;
28 CBaseObject* m_pCurObject;
29 DWORD m_lastUpdateTime;
31 float m_lastDistNegX;
32 float m_lastDistNegY;
33 float m_lastDistNegZ;
34 float m_lastDistPosX;
35 float m_lastDistPosY;
36 float m_lastDistPosZ;
38 static const float ms_maxDist;