Class TCustomPhongShading

Unit

Declaration

type TCustomPhongShading = class(TObject)

Description

Abstract class for Phong shading

Hierarchy

Overview

Fields

Protected FLightPosition3D: TPoint3D;

Methods

Protected function GetLightPosition: TPoint;
Protected function GetLightPositionF: TPointF;
Protected function GetLightPositionZ: integer;
Public procedure Draw(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: single; ofsX,ofsY: integer; Color : TBGRAPixel); overload; virtual; abstract;
Public procedure Draw(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: single; ofsX,ofsY: integer; ColorMap : TBGRACustomBitmap); overload; virtual; abstract;
Public procedure DrawScan(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: single; ofsX,ofsY: integer; ColorScan : IBGRAScanner); virtual; abstract;
Protected procedure SetLightPosition(AValue: TPoint);
Protected procedure SetLightPositionF(AValue: TPointF);
Protected procedure SetLightPositionZ(AValue: integer);

Properties

Public property LightPosition: TPoint read GetLightPosition write SetLightPosition;
Public property LightPosition3D: TPoint3D read FLightPosition3D write FLightPosition3D;
Public property LightPositionF: TPointF read GetLightPositionF write SetLightPositionF;
Public property LightPositionZ: integer read GetLightPositionZ write SetLightPositionZ;

Description

Fields

Protected FLightPosition3D: TPoint3D;

This item has no description.

Methods

Protected function GetLightPosition: TPoint;

This item has no description.

Protected function GetLightPositionF: TPointF;

This item has no description.

Protected function GetLightPositionZ: integer;

This item has no description.

Public procedure Draw(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: single; ofsX,ofsY: integer; Color : TBGRAPixel); overload; virtual; abstract;

Render the specified map on the destination bitmap with one solid color. Map altitude indicate the global height of the map.

Public procedure Draw(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: single; ofsX,ofsY: integer; ColorMap : TBGRACustomBitmap); overload; virtual; abstract;

Render with a color map of the same size as the height map. Map altitude indicate the global height of the map.

Public procedure DrawScan(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: single; ofsX,ofsY: integer; ColorScan : IBGRAScanner); virtual; abstract;

Render with a scanner. Map altitude indicate the global height of the map.

Protected procedure SetLightPosition(AValue: TPoint);

This item has no description.

Protected procedure SetLightPositionF(AValue: TPointF);

This item has no description.

Protected procedure SetLightPositionZ(AValue: integer);

This item has no description.

Properties

Public property LightPosition: TPoint read GetLightPosition write SetLightPosition;

This item has no description.

Public property LightPosition3D: TPoint3D read FLightPosition3D write FLightPosition3D;

This item has no description.

Public property LightPositionF: TPointF read GetLightPositionF write SetLightPositionF;

This item has no description.

Public property LightPositionZ: integer read GetLightPositionZ write SetLightPositionZ;

This item has no description.