C# Class FC3Editor.Tools.ToolSpline

Inheritance: ITool, IToolBase, IParameterProvider, IInputSink
Show file Open project: Azerothian/fc3editor

Protected Properties

Property Type Description
m_dragMode SplineController.SelectMode
m_dragStart FC3Editor.Nomad.Vec2
m_drawLastUpdate float
m_forward bool
m_hitDelta FC3Editor.Nomad.Vec2
m_hitPoint int
m_hitPos2 FC3Editor.Nomad.Vec2
m_paramEditTool ParamEnum
m_spline FC3Editor.Nomad.Spline
m_splineController FC3Editor.Nomad.SplineController
m_state ToolSpline.State

Public Methods

Method Description
Activate ( ) : void
Deactivate ( ) : void
GetContextHelp ( ) : string
GetMainParameter ( ) : IParameter
GetParameters ( ) : IEnumerable
GetSplineHelp ( ) : string
GetToolImage ( ) : Image
GetToolName ( ) : string
OnEditorEvent ( uint eventType, IntPtr eventPtr ) : void
OnInputAcquire ( ) : void
OnInputRelease ( ) : void
OnKeyEvent ( Editor keyEvent, KeyEventArgs keyEventArgs ) : bool
OnMouseEvent ( Editor mouseEvent, MouseEventArgs mouseEventArgs ) : bool
ToolSpline ( ) : System
Update ( float dt ) : void

Protected Methods

Method Description
DeleteSelection ( ) : void
IsDragRectangle ( RectangleF rect ) : bool
MovePointsToMouse ( bool add ) : void
RemovePointUnderMouse ( ) : void
SetSpline ( Spline spline ) : void
StartDrag ( SplineController dragMode ) : void
TestPoints ( ) : bool
TestSegments ( ) : bool

Method Details

Activate() public method

public Activate ( ) : void
return void

Deactivate() public method

public Deactivate ( ) : void
return void

DeleteSelection() protected method

protected DeleteSelection ( ) : void
return void

GetContextHelp() public abstract method

public abstract GetContextHelp ( ) : string
return string

GetMainParameter() public method

public GetMainParameter ( ) : IParameter
return IParameter

GetParameters() public abstract method

public abstract GetParameters ( ) : IEnumerable
return IEnumerable

GetSplineHelp() public method

public GetSplineHelp ( ) : string
return string

GetToolImage() public abstract method

public abstract GetToolImage ( ) : Image
return Image

GetToolName() public abstract method

public abstract GetToolName ( ) : string
return string

IsDragRectangle() protected method

protected IsDragRectangle ( RectangleF rect ) : bool
rect System.Drawing.RectangleF
return bool

MovePointsToMouse() protected method

protected MovePointsToMouse ( bool add ) : void
add bool
return void

OnEditorEvent() public method

public OnEditorEvent ( uint eventType, IntPtr eventPtr ) : void
eventType uint
eventPtr System.IntPtr
return void

OnInputAcquire() public method

public OnInputAcquire ( ) : void
return void

OnInputRelease() public method

public OnInputRelease ( ) : void
return void

OnKeyEvent() public method

public OnKeyEvent ( Editor keyEvent, KeyEventArgs keyEventArgs ) : bool
keyEvent FC3Editor.Nomad.Editor
keyEventArgs System.Windows.Forms.KeyEventArgs
return bool

OnMouseEvent() public method

public OnMouseEvent ( Editor mouseEvent, MouseEventArgs mouseEventArgs ) : bool
mouseEvent FC3Editor.Nomad.Editor
mouseEventArgs MouseEventArgs
return bool

RemovePointUnderMouse() protected method

protected RemovePointUnderMouse ( ) : void
return void

SetSpline() protected method

protected SetSpline ( Spline spline ) : void
spline FC3Editor.Nomad.Spline
return void

StartDrag() protected method

protected StartDrag ( SplineController dragMode ) : void
dragMode FC3Editor.Nomad.SplineController
return void

TestPoints() protected method

protected TestPoints ( ) : bool
return bool

TestSegments() protected method

protected TestSegments ( ) : bool
return bool

ToolSpline() public method

public ToolSpline ( ) : System
return System

Update() public method

public Update ( float dt ) : void
dt float
return void

Property Details

m_dragMode protected property

protected SplineController.SelectMode m_dragMode
return SplineController.SelectMode

m_dragStart protected property

protected Vec2,FC3Editor.Nomad m_dragStart
return FC3Editor.Nomad.Vec2

m_drawLastUpdate protected property

protected float m_drawLastUpdate
return float

m_forward protected property

protected bool m_forward
return bool

m_hitDelta protected property

protected Vec2,FC3Editor.Nomad m_hitDelta
return FC3Editor.Nomad.Vec2

m_hitPoint protected property

protected int m_hitPoint
return int

m_hitPos2 protected property

protected Vec2,FC3Editor.Nomad m_hitPos2
return FC3Editor.Nomad.Vec2

m_paramEditTool protected property

protected ParamEnum m_paramEditTool
return ParamEnum

m_spline protected property

protected Spline,FC3Editor.Nomad m_spline
return FC3Editor.Nomad.Spline

m_splineController protected property

protected SplineController,FC3Editor.Nomad m_splineController
return FC3Editor.Nomad.SplineController

m_state protected property

protected ToolSpline.State m_state
return ToolSpline.State