Unit 'GR32_ColorGradients' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#pl_graphics32]

TBarycentricGradientSampler

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: GR32_ColorGradients.pas line 154

type TBarycentricGradientSampler = class(TCustomSparsePointGradientSampler)

protected

  FColorPoints: array [0..2] of TColor32FloatPoint;

  

  FDists: array [0..1] of TFloatPoint;

  

  function GetCount; override;

  

  function GetColor(); override;

  

  function GetColorPoint(); override;

  

  function GetPoint(); override;

  

  procedure SetColor(); override;

  

  procedure SetColorPoint(); override;

  

  procedure SetPoint(); override;

  

  procedure AssignTo(); override;

  

  procedure CalculateBarycentricCoordinates();

  

public

  constructor Create(); virtual; overload;

  

  function IsPointInTriangle();

  

  procedure SetPoints(); override;

  

  procedure SetColorPoints();

  

  procedure PrepareSampling; override;

  

  function GetSampleFloat(); override;

  

  function GetSampleFloatInTriangle();

  

end;

Inheritance

TBarycentricGradientSampler

  

|

TCustomSparsePointGradientSampler

  

|

TCustomSampler

  

|

TNotifiablePersistent

  

|

TPlainInterfacedPersistent

  

|

TObject,IInterface



CT Web help

CodeTyphon Studio