C# Класс StandardizedDiffuseAlbedoMaps.OutputPanel

Наследование: System.Windows.Forms.Panel
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Client2ImageUV ImageUtility.float2
Client2ImageUV_NoSquareAspectRatio ImageUtility.float2
ImageClientRect System.Drawing.RectangleF
ImageUV2Client System.Drawing.PointF
ImageUV2Client_NoSquareAspectRatio System.Drawing.PointF
InitializeComponent void
UpdateCropRectangleVertices void

Открытые методы

Метод Описание
OutputPanel ( IContainer container ) : System
ResetCropRectangle ( ) : void

Resets the crop rectangle to the entire image

SetCropRectangle ( ImageUtility _Center, ImageUtility _HalfSize, float _Rotation ) : void

Sets the crop rectangle to a specific value

StartCalibrationTargetPicking ( CalibrationDone _Notify ) : void

Starts calibration target picking mode (user is expected to place the target with the mouse, then change the radius so the calibration can take place)

UpdateBitmap ( ) : void

Защищенные методы

Метод Описание
BuildClipVertices ( ImageUtility _Center, ImageUtility _HalfSize, ImageUtility _AxisX, ImageUtility _AxisY ) : ImageUtility.float2[]
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnMouseDown ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs e ) : void
OnSizeChanged ( EventArgs e ) : void

Приватные методы

Метод Описание
Client2ImageUV ( PointF _Position ) : ImageUtility.float2

This is the UVs used for crop rectangle computation The V is in [0,1] mapping from [0,ImageHeight] as usual but U takes into account aspect ratio to ensure pixels are always squares so for example if you image has an aspect ratio of 2 (Width = 2 * Height) then U will go from [-0.5,1.5] assuming 0.5 is always the center of the image. U span is then 1.5+0.5 = 2, which is twice the span of V [0,1] and we keep the correct aspect ratio

Client2ImageUV_NoSquareAspectRatio ( PointF _Position ) : ImageUtility.float2

This is a simple UV as used in 3D engines: (0,0) is top left corner of the image, (1,1) is bottom right corner

ImageClientRect ( ) : RectangleF
ImageUV2Client ( ImageUtility _Position ) : PointF
ImageUV2Client_NoSquareAspectRatio ( ImageUtility _Position ) : PointF
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

UpdateCropRectangleVertices ( ) : void

Описание методов

BuildClipVertices() защищенный Метод

protected BuildClipVertices ( ImageUtility _Center, ImageUtility _HalfSize, ImageUtility _AxisX, ImageUtility _AxisY ) : ImageUtility.float2[]
_Center ImageUtility
_HalfSize ImageUtility
_AxisX ImageUtility
_AxisY ImageUtility
Результат ImageUtility.float2[]

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

OnMouseDown() защищенный Метод

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseMove() защищенный Метод

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseUp() защищенный Метод

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnPaint() защищенный Метод

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

OnPaintBackground() защищенный Метод

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

OnSizeChanged() защищенный Метод

protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

OutputPanel() публичный Метод

public OutputPanel ( IContainer container ) : System
container IContainer
Результат System

ResetCropRectangle() публичный Метод

Resets the crop rectangle to the entire image
public ResetCropRectangle ( ) : void
Результат void

SetCropRectangle() публичный Метод

Sets the crop rectangle to a specific value
public SetCropRectangle ( ImageUtility _Center, ImageUtility _HalfSize, float _Rotation ) : void
_Center ImageUtility
_HalfSize ImageUtility
_Rotation float
Результат void

StartCalibrationTargetPicking() публичный Метод

Starts calibration target picking mode (user is expected to place the target with the mouse, then change the radius so the calibration can take place)
public StartCalibrationTargetPicking ( CalibrationDone _Notify ) : void
_Notify CalibrationDone
Результат void

UpdateBitmap() публичный Метод

public UpdateBitmap ( ) : void
Результат void