C# Класс Plot3D.Surface3DRenderer

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Project ( double x, double y, double z ) : PointF

Performs projection. Calculates screen coordinates for 3D point.

ReCalculateTransformationsCoeficients ( double obsX, double obsY, double obsZ, int xs0, int ys0, int screenWidth, int screenHeight, double screenDistance, double screenWidthPhys, double screenHeightPhys ) : void
RenderSurface ( Graphics graphics, long matrix, int adjustmentValue, bool newRender = false ) : void
Surface3DRenderer ( double obsX, double obsY, double obsZ, int xs0, int ys0, int screenWidth, int screenHeight, double screenDistance, double screenWidthPhys, double screenHeightPhys ) : System

Initializes a new instance of the Surface3DRenderer class. Calculates transformations coeficients.

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

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

Performs projection. Calculates screen coordinates for 3D point.
public Project ( double x, double y, double z ) : PointF
x double Point's x coordinate.
y double Point's y coordinate.
z double Point's z coordinate.
Результат System.Drawing.PointF

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

public ReCalculateTransformationsCoeficients ( double obsX, double obsY, double obsZ, int xs0, int ys0, int screenWidth, int screenHeight, double screenDistance, double screenWidthPhys, double screenHeightPhys ) : void
obsX double
obsY double
obsZ double
xs0 int
ys0 int
screenWidth int
screenHeight int
screenDistance double
screenWidthPhys double
screenHeightPhys double
Результат void

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

public RenderSurface ( Graphics graphics, long matrix, int adjustmentValue, bool newRender = false ) : void
graphics System.Drawing.Graphics
matrix long
adjustmentValue int
newRender bool
Результат void

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

Initializes a new instance of the Surface3DRenderer class. Calculates transformations coeficients.
public Surface3DRenderer ( double obsX, double obsY, double obsZ, int xs0, int ys0, int screenWidth, int screenHeight, double screenDistance, double screenWidthPhys, double screenHeightPhys ) : System
obsX double Observator's X position
obsY double Observator's Y position
obsZ double Observator's Z position
xs0 int X coordinate of screen
ys0 int Y coordinate of screen
screenWidth int Drawing area width in pixels.
screenHeight int Drawing area height in pixels.
screenDistance double The screen distance.
screenWidthPhys double Width of the screen in meters.
screenHeightPhys double Height of the screen in meters.
Результат System