C# Class FC3Editor.Tools.ToolPaint

Inheritance: ITool, IToolBase, IParameterProvider, IInputSink
Mostrar archivo Open project: Azerothian/fc3editor

Protected Properties

Property Type Description
m_brush FC3Editor.Nomad.PaintBrush
m_cursorPos FC3Editor.Nomad.Vec3
m_cursorValid bool
m_distortion FC3Editor.Parameters.ParamFloat
m_grabMode FC3Editor.Parameters.ParamBool
m_hardness FC3Editor.Parameters.ParamFloat
m_opacity FC3Editor.Parameters.ParamFloat
m_painting ToolPaint.PaintingMode
m_radius FC3Editor.Parameters.ParamFloat
m_square FC3Editor.Parameters.ParamBool

Public Methods

Method Description
Activate ( ) : void
Deactivate ( ) : void
GetContextHelp ( ) : string
GetMainParameter ( ) : IParameter
GetParameters ( ) : IEnumerable
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
Update ( float dt ) : void

Protected Methods

Method Description
CreateBrush ( ) : void
DestroyBrush ( ) : void
GetPaintContextHelp ( ) : string
GetShortcutContextHelp ( ) : string
OnBeginPaint ( ) : void
OnEndPaint ( ) : void
OnPaint ( float dt, Vec2 pos ) : void
OnPaintGrab ( float x, float y ) : void
OnShortcutDelta ( float delta ) : void
_GetParameters ( ) : IEnumerable

Method Details

Activate() public method

public Activate ( ) : void
return void

CreateBrush() protected method

protected CreateBrush ( ) : void
return void

Deactivate() public method

public Deactivate ( ) : void
return void

DestroyBrush() protected method

protected DestroyBrush ( ) : void
return void

GetContextHelp() public abstract method

public abstract GetContextHelp ( ) : string
return string

GetMainParameter() public method

public GetMainParameter ( ) : IParameter
return IParameter

GetPaintContextHelp() protected method

protected GetPaintContextHelp ( ) : string
return string

GetParameters() public method

public GetParameters ( ) : IEnumerable
return IEnumerable

GetShortcutContextHelp() protected method

protected GetShortcutContextHelp ( ) : string
return string

GetToolImage() public abstract method

public abstract GetToolImage ( ) : Image
return Image

GetToolName() public abstract method

public abstract GetToolName ( ) : string
return string

OnBeginPaint() protected method

protected OnBeginPaint ( ) : void
return void

OnEditorEvent() public method

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

OnEndPaint() protected method

protected OnEndPaint ( ) : void
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

OnPaint() protected method

protected OnPaint ( float dt, Vec2 pos ) : void
dt float
pos FC3Editor.Nomad.Vec2
return void

OnPaintGrab() protected method

protected OnPaintGrab ( float x, float y ) : void
x float
y float
return void

OnShortcutDelta() protected method

protected OnShortcutDelta ( float delta ) : void
delta float
return void

Update() public method

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

_GetParameters() protected method

protected _GetParameters ( ) : IEnumerable
return IEnumerable

Property Details

m_brush protected_oe property

protected PaintBrush,FC3Editor.Nomad m_brush
return FC3Editor.Nomad.PaintBrush

m_cursorPos protected_oe property

protected Vec3,FC3Editor.Nomad m_cursorPos
return FC3Editor.Nomad.Vec3

m_cursorValid protected_oe property

protected bool m_cursorValid
return bool

m_distortion protected_oe property

protected ParamFloat,FC3Editor.Parameters m_distortion
return FC3Editor.Parameters.ParamFloat

m_grabMode protected_oe property

protected ParamBool,FC3Editor.Parameters m_grabMode
return FC3Editor.Parameters.ParamBool

m_hardness protected_oe property

protected ParamFloat,FC3Editor.Parameters m_hardness
return FC3Editor.Parameters.ParamFloat

m_opacity protected_oe property

protected ParamFloat,FC3Editor.Parameters m_opacity
return FC3Editor.Parameters.ParamFloat

m_painting protected_oe property

protected ToolPaint.PaintingMode m_painting
return ToolPaint.PaintingMode

m_radius protected_oe property

protected ParamFloat,FC3Editor.Parameters m_radius
return FC3Editor.Parameters.ParamFloat

m_square protected_oe property

protected ParamBool,FC3Editor.Parameters m_square
return FC3Editor.Parameters.ParamBool