BaseSingleWindow
TheBaseSingleWindow class represents a single-panel window element. It extends the Opening class and provides functionality for creating customizable windows with frames and glass panels.
Constructor
Optional configuration object for the window. If not provided, default values will be used.
Properties
The element type identifier. Always set to
ElementType.WINDOW.The current configuration of the window including dimensions, colors, and other properties.
Map containing sub-elements of the window (frame, panel, opening, finish).
Getters & Setters
The display name of the window element.
The 3D position of the window in the scene as [x, y, z].
The width of the window opening.
The thickness of the window glass.
The thickness of the window frame.
Methods
setOPConfig
getOPConfig
setOPGeometry
showProfileView
BaseDoubleWindow
TheBaseDoubleWindow class represents a double-panel window element with a central mullion divider. It supports independent rotation of left and right panels.
Constructor
Optional configuration object for the double window.
Getters & Setters
The rotation value for the left window panel (between 1 and 2).
The rotation value for the right window panel (between 1 and 2).
The quadrant in which the windows open (1-4).
OPSingleWindow
The configuration interface for single window elements.Properties
Unique identifier for the window element.
Display name for the window.
Element type identifier.
Dimensions configuration for the window.
3D position of the window as [x, y, z].
Type of window (CASEMENT, SLIDING, AWNING, FIXED, GLASS, WOOD, OTHER).
Height of the window panel in meters.
Thickness of the window glass in meters.
Thickness of the window frame in meters.
Hexadecimal color value for the window frame (e.g., 0x000000).
Hexadecimal color value for the window glass (e.g., 0x87CEEB).
Height from floor to window bottom in meters.
Array of 3D coordinate points defining the window geometry.
OPDoubleWindow
ExtendsOPSingleWindow with additional properties for double windows.
Additional Properties
Rotation value for the left window panel (1-2).
Rotation value for the right window panel (1-2).
Quadrant in which the windows open (1-4).
Width of the center divider between the two window panels in meters.
WindowType
Enum defining available window types:CASEMENT- Casement window (hinged)SLIDING- Sliding windowAWNING- Awning windowFIXED- Fixed window (non-opening)GLASS- Glass windowWOOD- Wooden windowOTHER- Other window types