OpeningParams class final
An opening's parameters (spec 08 D6), in mm.
- host: the host wall's handle;
- position: the distance along the host's centreline from the host's
startto the opening's centre, in the host's group-local space; - width: the opening's extent along the centreline;
- kind: fixed at creation, so copyWith cannot change it;
- hinge and swing: a door's; a window or a gap carries them (the
tools write
startandleft) and never reads them.
Value-equal with exact == on every field: stored values. fromJson
accepts anything well-typed: a position outside the wall (drawn clamped,
D8) or a degenerate width (D6: it cuts and generates nothing) loads.
Constructors
- OpeningParams(Handle host, double position, double width, OpeningKind kind, {HingeEnd hinge = HingeEnd.start, SwingSide swing = SwingSide.left})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hinge → HingeEnd
-
final
- host → Handle
-
final
- kind → OpeningKind
-
final
- position → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- swing → SwingSide
-
final
- typeId → String
-
no setter
- width → double
-
final
Methods
-
copyWith(
{Handle? host, double? position, double? width, HingeEnd? hinge, SwingSide? swing}) → OpeningParams -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - All six keys, for every kind, in this order (D6): one shape, one round-trip path. The host is its integer value; enums are their names.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, Object?> json) → OpeningParams - Throws on a missing key, a host that is not a handle, or an unknown enum name.
Constants
- componentTypeId → const String