Description | Hierarchy | Fields | Methods | Properties |
type TRbwModelCube = class(TPaintBox)
TRbwModelCube
is a TPaintBox that draws a block on itself.) Typically, the block is drawn as if all the sides were the same length so the block is a cube. The cube can be drawn as either transparent or opaque. A selected area can be drawn on the cube. (See Selection1 and Selection2.) If the user clicks on the cube, ClickDirection can be used to determine where the user clicked with respect to the selected area.
![]() |
FBottomY: integer; |
![]() |
FCanClickFace: boolean; |
![]() |
FFraction: double; |
![]() |
FLeftX: integer; |
![]() |
FMouseX: integer; |
![]() |
FMouseY: integer; |
![]() |
FOnSelectFace: TNotifyEvent; |
![]() |
FOpaque: boolean; |
![]() |
FRightX: integer; |
![]() |
FSelectedFace: TRbwFace; |
![]() |
FSelection1: double; |
![]() |
FSelection2: double; |
![]() |
FShowSelection: boolean; |
![]() |
FTopY: integer; |
![]() |
FVanishingPointX: integer; |
![]() |
FVanishingPointY: integer; |
![]() |
FXOrigin: TRbwXOrigin; |
![]() |
FYOrigin: TRbwYOrigin; |
![]() |
FZOrigin: TRbwZOrigin; |
![]() |
FSelectionColor: TColor; |
![]() |
FBreaks: TBreakCollection; |
![]() |
procedure SetCanClickFace(const Value: boolean); |
![]() |
procedure SetSelectedFace(const Value: TRbwFace); |
![]() |
procedure SetSelection1(const Value: double); |
![]() |
procedure SetSelection2(const Value: double); |
![]() |
procedure SetShowSelection(const Value: boolean); |
![]() |
procedure SetOpaque(const Value: boolean); |
![]() |
procedure SetXOrigin(const Value: TRbwXOrigin); |
![]() |
procedure SetYOrigin(const Value: TRbwYOrigin); |
![]() |
procedure SetZOrigin(const Value: TRbwZOrigin); |
![]() |
procedure SetFraction(const Value: double); |
![]() |
procedure SetLeftX(const Value: integer); |
![]() |
procedure SetTopY(const Value: integer); |
![]() |
procedure SetVanishingPointX(const Value: integer); |
![]() |
procedure SetVanishingPointY(const Value: integer); |
![]() |
function GetCubeHeight: integer; |
![]() |
function GetCubeWidth: integer; |
![]() |
procedure SetCubeHeight(const Value: integer); |
![]() |
procedure SetCubeWidth(const Value: integer); |
![]() |
procedure SetSelectionColor(const Value: TColor); |
![]() |
procedure DrawSelection(BackTopY, BackBottomY, BackLeftX, BackRightX: Integer); |
![]() |
procedure BreakChanged(Sender: TObject); |
![]() |
procedure DblClick; override; |
![]() |
procedure DrawCube; |
![]() |
function GetFaceOfCube: TRbwFace; |
![]() |
procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override; |
![]() |
procedure Paint; override; |
![]() |
function ClickDirection(const X, Y: integer): TRbwClickDirection; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
FBottomY: integer; |
|
![]() |
FCanClickFace: boolean; |
|
![]() |
FFraction: double; |
|
![]() |
FLeftX: integer; |
|
![]() |
FMouseX: integer; |
|
![]() |
FMouseY: integer; |
|
![]() |
FOnSelectFace: TNotifyEvent; |
|
![]() |
FOpaque: boolean; |
|
![]() |
FRightX: integer; |
|
![]() |
FSelectedFace: TRbwFace; |
|
![]() |
FSelection1: double; |
|
![]() |
FSelection2: double; |
|
![]() |
FShowSelection: boolean; |
|
![]() |
FTopY: integer; |
|
![]() |
FVanishingPointX: integer; |
|
![]() |
FVanishingPointY: integer; |
|
![]() |
FXOrigin: TRbwXOrigin; |
|
![]() |
FYOrigin: TRbwYOrigin; |
|
![]() |
FZOrigin: TRbwZOrigin; |
|
![]() |
FSelectionColor: TColor; |
![]() |
FBreaks: TBreakCollection; |
![]() |
procedure SetCanClickFace(const Value: boolean); |
See CanClickFace. |
![]() |
procedure SetSelectedFace(const Value: TRbwFace); |
See SelectedFace. |
![]() |
procedure SetSelection1(const Value: double); |
See Selection1. |
![]() |
procedure SetSelection2(const Value: double); |
See Selection2. |
![]() |
procedure SetShowSelection(const Value: boolean); |
See ShowSelection. |
![]() |
procedure SetOpaque(const Value: boolean); |
See Opaque. |
![]() |
procedure SetXOrigin(const Value: TRbwXOrigin); |
See XOrigin. |
![]() |
procedure SetYOrigin(const Value: TRbwYOrigin); |
See YOrigin. |
![]() |
procedure SetZOrigin(const Value: TRbwZOrigin); |
See ZOrigin. |
![]() |
procedure SetFraction(const Value: double); |
See CubeFraction. |
![]() |
procedure SetLeftX(const Value: integer); |
See CubeLeftX. |
![]() |
procedure SetTopY(const Value: integer); |
See CubeTopY. |
![]() |
procedure SetVanishingPointX(const Value: integer); |
See CubeVanishingPointX. |
![]() |
procedure SetVanishingPointY(const Value: integer); |
See CubeVanishingPointY. |
![]() |
function GetCubeHeight: integer; |
See CubeHeight. |
![]() |
function GetCubeWidth: integer; |
See CubeWidth. |
![]() |
procedure SetCubeHeight(const Value: integer); |
See CubeHeight. |
![]() |
procedure SetCubeWidth(const Value: integer); |
See CubeWidth. |
![]() |
procedure SetSelectionColor(const Value: TColor); |
![]() |
procedure DrawSelection(BackTopY, BackBottomY, BackLeftX, BackRightX: Integer); |
![]() |
procedure BreakChanged(Sender: TObject); |
![]() |
procedure DblClick; override; |
If CanClickFace is true, |
![]() |
procedure DrawCube; |
SelectedFace indicates the direction of the slice of the cube that is selected. faNone indicates it is undetermined. faTop indicates it is parallel to the top surface. faFront indicates it is parallel to the front surface. faSide indicates it is parallel to the side surface. Selection1 and Selection2 give the fraction of the side of the cube along which the colored section is to be shown. The origin is determined by XOrigin, YOrigin, and ZOrigin. Selection2 should be greater than or equal to Selection1. Both Selection1 and Selection2 should be greater than or equal to 0 and less than or equal to 1. |
![]() |
function GetFaceOfCube: TRbwFace; |
|
![]() |
procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override; |
![]() |
procedure Paint; override; |
|
![]() |
function ClickDirection(const X, Y: integer): TRbwClickDirection; |
The result of If SelectedFace = faNone, If SelectedFace = faTop, If SelectedFace = faFront, If SelectedFace = faSide, |
![]() |
constructor Create(AOwner: TComponent); override; |
|
![]() |
destructor Destroy; override; |
![]() |
property Breaks: TBreakCollection read FBreaks; |
Protected declarations |
![]() |
property CanClickFace : boolean read FCanClickFace write SetCanClickFace; |
If |
![]() |
property SelectionColor: TColor read FSelectionColor write SetSelectionColor default clRed; |
![]() |
property CubeFraction : double read FFraction write SetFraction; |
See CubeVanishingPointX and CubeVanishingPointY. |
![]() |
property CubeHeight: integer read GetCubeHeight write SetCubeHeight; |
|
![]() |
property CubeLeftX : integer read FLeftX write SetLeftX; |
|
![]() |
property CubeTopY : integer read FTopY write SetTopY; |
|
![]() |
property CubeVanishingPointX : integer read FVanishingPointX
write SetVanishingPointX; |
|
![]() |
property CubeVanishingPointY : integer read FVanishingPointY
write SetVanishingPointY; |
CubeVanishingPointX and |
![]() |
property CubeWidth: integer read GetCubeWidth write SetCubeWidth; |
|
![]() |
property Opaque : boolean read FOpaque write SetOpaque; |
If |
![]() |
property SelectedFace : TRbwFace read FSelectedFace write SetSelectedFace; |
faNone indicates it is undetermined. faTop indicates it is parallel to the top surface. faFront indicates it is parallel to the front surface. faSide indicates it is parallel to the side surface. See OnSelectFace. |
![]() |
property Selection1 : double read FSelection1 write SetSelection1; |
|
![]() |
property Selection2 : double read FSelection2 write SetSelection2; |
Selection1 and |
![]() |
property ShowSelection : boolean read FShowSelection write SetShowSelection; |
|
![]() |
property XOrigin : TRbwXOrigin read FXOrigin write SetXOrigin; |
|
![]() |
property YOrigin : TRbwYOrigin read FYOrigin write SetYOrigin; |
|
![]() |
property ZOrigin : TRbwZOrigin read FZOrigin write SetZOrigin; |
|
![]() |
property OnSelectFace : TNotifyEvent read FOnSelectFace
write FOnSelectFace; |
|