BaseDoor
TheBaseDoor class represents a door element in OpenPlans. It extends the Opening class and provides functionality for creating customizable doors with frames, panels, and rotation controls.
Constructor
Optional configuration object for the door. If not provided, default values will be used.
Properties
The element type identifier. Always set to
ElementType.DOOR.The current configuration of the door including dimensions, colors, and other properties.
Map containing sub-elements of the door (frame, panel, opening, finish).
Indicates whether the door is currently selected.
Indicates whether the door is in edit mode.
Getters & Setters
The display name of the door element.
The 3D position of the door in the scene as [x, y, z].
The width of the door opening.
The thickness of the door panel.
The height of the door panel.
The rotation value for the door panel (between 1 and 2, representing the opening angle).
The quadrant in which the door opens (1-4).
Methods
setOPConfig
New configuration object for the door.
getOPConfig
OPDoor - The current door configuration object.
setOPGeometry
showProfileView
True to show profile view (outline only), false to show normal view.
OPDoor
The configuration interface for door elements.Properties
Unique identifier for the door element.
Display name for the door.
Element type identifier.
Dimensions configuration for the door.
3D position of the door as [x, y, z].
Type of door (WOOD, GLASS, DOUBLEDOOR, SLIDING, FOLDING, DOUBLEACTION, OTHER).
Height of the door panel in meters.
Thickness of the door panel in meters.
Thickness of the door frame in meters.
Hexadecimal color value for the door frame (e.g., 0x000000).
Hexadecimal color value for the door panel (e.g., 0x8B4513).
Rotation value for the door opening (1-2, where 1 is fully open, 2 is closed).
Quadrant in which the door opens (1-4).
Array of 3D coordinate points defining the door geometry.
DoorType
Enum defining available door types:WOOD- Wooden doorGLASS- Glass doorDOUBLEDOOR- Double doorSLIDING- Sliding doorFOLDING- Folding doorDOUBLEACTION- Double action doorOTHER- Other door types