Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
MeasureTool Interface Reference
Inheritance diagram for MeasureTool:
[legend]

Public Member Functions

override void OnMouseMoveEvent (float x, float y)
 
override void OnMousePressEvent (float x, float y, WETMouseButtonFlag buttons)
 
override void OnKeyPressEvent (KeyCode key, bool isAutoRepeat)
 
override void OnActivate ()
 
override void OnDeActivate ()
 
- Public Member Functions inherited from WorldEditorTool
void OnKeyPressEvent (KeyCode key, bool isAutoRepeat)
 
void OnKeyReleaseEvent (KeyCode key, bool isAutoRepeat)
 
void OnEnterEvent ()
 
void OnLeaveEvent ()
 
void OnMouseMoveEvent (float x, float y)
 
void OnMouseDoubleClickEvent (float x, float y, WETMouseButtonFlag buttons)
 
void OnMousePressEvent (float x, float y, WETMouseButtonFlag buttons)
 
void OnMouseReleaseEvent (float x, float y, WETMouseButtonFlag buttons)
 
void OnWheelEvent (int delta)
 
void OnActivate ()
 
void OnDeActivate ()
 
void OnAfterLoadWorld ()
 
void OnBeforeUnloadWorld ()
 
- Public Member Functions inherited from Managed
proto external ref Managed Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor)
 

Protected Attributes

bool m_bCheckAgainstEntities
 
ref DebugTextScreenSpace m_Text
 
ref DebugTextScreenSpace m_Crosshair
 
ref array< ref DebugTextWorldSpacem_aSegmentLengths
 
ref Shape m_Polyline
 
vector m_vPrevious3DPoint
 
vector m_vCurrent3DPoint
 
float m_fDistancePrevious
 
float m_fDistanceCurrent
 
vector m_aLinePoints [1000]
 
int m_iLinePointsCount
 
float m_fLastX
 
float m_fLastY
 

Additional Inherited Members

- Static Public Member Functions inherited from WorldEditorTool
static proto bool GetModifierKeyState (ModifierKey key)
 key is of type ModifierKey
 
static proto void UpdatePropertyPanel ()
 
- Public Attributes inherited from WorldEditorTool
WorldEditorAPI m_API
 

Member Function Documentation

◆ OnActivate()

override void MeasureTool.OnActivate ( )

Implements WorldEditorTool.

◆ OnDeActivate()

override void MeasureTool.OnDeActivate ( )

Implements WorldEditorTool.

◆ OnKeyPressEvent()

override void MeasureTool.OnKeyPressEvent ( KeyCode  key,
bool  isAutoRepeat 
)

Implements WorldEditorTool.

◆ OnMouseMoveEvent()

override void MeasureTool.OnMouseMoveEvent ( float  x,
float  y 
)

Implements WorldEditorTool.

◆ OnMousePressEvent()

override void MeasureTool.OnMousePressEvent ( float  x,
float  y,
WETMouseButtonFlag  buttons 
)

Implements WorldEditorTool.

Member Data Documentation

◆ m_aLinePoints

vector MeasureTool.m_aLinePoints[1000]
protected

◆ m_aSegmentLengths

ref array<ref DebugTextWorldSpace> MeasureTool.m_aSegmentLengths
protected

◆ m_bCheckAgainstEntities

bool MeasureTool.m_bCheckAgainstEntities
protected

◆ m_Crosshair

ref DebugTextScreenSpace MeasureTool.m_Crosshair
protected

◆ m_fDistanceCurrent

float MeasureTool.m_fDistanceCurrent
protected

◆ m_fDistancePrevious

float MeasureTool.m_fDistancePrevious
protected

◆ m_fLastX

float MeasureTool.m_fLastX
protected

◆ m_fLastY

float MeasureTool.m_fLastY
protected

◆ m_iLinePointsCount

int MeasureTool.m_iLinePointsCount
protected

◆ m_Polyline

ref Shape MeasureTool.m_Polyline
protected

◆ m_Text

ref DebugTextScreenSpace MeasureTool.m_Text
protected

◆ m_vCurrent3DPoint

vector MeasureTool.m_vCurrent3DPoint
protected

◆ m_vPrevious3DPoint

vector MeasureTool.m_vPrevious3DPoint
protected

The documentation for this interface was generated from the following file: