| Description | Hierarchy | Fields | Methods | Properties |
type TBookShelf = class(TArenaObject)
An arena object representing a bookshelf. Below follows an example of a definition of a bookshelf and in Figure 1 the corresponding graphics is shown. Figure 2 shows the appearance of the bookshelf when the property HasBottomVerticalPlate is set to False.
Example definition of a bookshelf:
|
object MyBookShelf: TBookShelf Position = 0.000 0.000 0.000 Velocity = 0.000 0.000 0.000 Angle = 0.000 Height = 2.500 Mass = -1.000 RGBColor = 0 0 30 # Texture = Width = 1.200 Depth = 0.300 NumberOfShelves = 5 HasSurfaces = True BarThickness = 0.000 HasBottomVerticalPlate = False BottomVerticalPlateIndentation = 0.050 BottomVerticalPlateHeight = 0.080 MaterialThickness = 0.020 end |
|
|
|
![]() |
constructor Create(Owner: TArena); |
![]() |
destructor Destroy; override; |
![]() |
procedure AddAsStrings(Strings: TStringList); override; |
![]() |
function Edit(Dlg: TArenaObjectEditor = nil): Boolean; override; |
![]() |
procedure GenerateShapes; override; |
![]() |
constructor Create(Owner: TArena); |
Constructor
![]() |
destructor Destroy; override; |
Destructor.
![]() |
procedure AddAsStrings(Strings: TStringList); override; |
Adds all properties as strings to a list of strings. Used internally by TArena.SaveToFile.
![]() |
function Edit(Dlg: TArenaObjectEditor = nil): Boolean; override; |
Displays an edit dialog (for visual editing of the object's properties).
Nil. (Only used internally.)True if the user clicks the OK button, False otherwise.
![]() |
procedure GenerateShapes; override; |
Generates geometric representations of the object. The result of this procedure can be retrieved through the property Shapes.
This procedure is automatically called when needed and should never be called explicitly by a user.
![]() |
property BarThickness: real; |
![]() |
property BottomVerticalPlateHeight: real; |
![]() |
property BottomVerticalPlateIndentation: real; |
![]() |
property Depth: real; |
![]() |
property HasBottomVerticalPlate: Boolean; |
![]() |
property HasSurfaces: Boolean; |
![]() |
property MaterialThickness: real; |
![]() |
property NumberOfShelves: integer; |
![]() |
property Width: real; |
![]() |
property BarThickness: real; |
Thickness of the bars (one in each corner). This property is only considered when the property HasSurfaces is set to False.
![]() |
property BottomVerticalPlateHeight: real; |
Height of the plate located between the floor and the last shelf.
![]() |
property BottomVerticalPlateIndentation: real; |
Indentation of the bottom vertical plate.
![]() |
property Depth: real; |
The depth of the bookshelf. Assuming that the rotation angle is zero, the depth of the bookshelf extends along the Y-axis.
![]() |
property HasBottomVerticalPlate: Boolean; |
Indicates whether the bookshelf has vertical plates at the bottom or if it does not. See Figure 1 (True) and Figure 2 (False) above.
![]() |
property HasSurfaces: Boolean; |
Indicates whether the bookshelf has back and side surfaces or not.
![]() |
property MaterialThickness: real; |
Thickness of the shelves.
![]() |
property NumberOfShelves: integer; |
Number of shelves.
![]() |
property Width: real; |
Width of the bookshelf. Assuming that the rotation angle is zero, the width of the bookshelf extends along the X-axis.