discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

ObjectGrips class final

The shell's one object grip provider (spec 08 D16): it dispatches by the type that names the group's object (_of).

  • WallParams → walls (07 D11's end grips, 08 D13);
  • OpeningParams → openings (the slide grip);
  • RoomParams → rooms (spec 10 D21's label grip);
  • SeparatorParams → separators (spec 10 D21's end grips), when the shell handed over its RoomInputs;
  • DimensionParams → dimensions (spec 11 D13's offset grip and end grips), when the shell handed over its SpatialIndex;
  • anything else → no grips, no drag and no preview.

movable is the dispatched provider's answer: openings says false for an opening and rooms for a room, which the select tool neither moves nor rotates, and walls, separators and dimensions true; a group with none of these components is movable. One rule per provider, not a copy of it here (Task 14 F2).

Constructors

ObjectGrips({required double? edgeAperture(), double labelAperture()?, RoomInputs? roomInputs, SpatialIndex? index, bool objectSnap()?})
edgeAperture is the slide grip's edge-snap aperture in world, or null with object snap off (Ruling 08-15).

Properties

dimensions → DimensionGrips?
final
hashCode → int
The hash code for this object.
no setterinherited
openings → OpeningGrips
final
rooms → RoomGrips
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
separators → SeparatorGrips?
final
walls → WallGrips
final

Methods

drag(DraftDocument d, Handle group, Grip grip, Vector2 world) → DraftCommand?
The one command that moves grip of group to world, or null when that drag is refused (a degenerate result, say). world is only read during the call.
gripsOf(DraftDocument d, Handle group) → List<Grip>
group's grips, in world; empty when group is not one of this provider's objects. The list order is each grip's ordinal.
movable(DraftDocument d, Handle group) → bool
False when the select tool must not move or rotate the root-level group (spec 08 D16): a move or rotate skips it, as it skips a fill, the rotation grip needs some other movable key, and its body shows no move cursor. True for any group this provider does not own.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preview(DraftDocument d, Handle group, Grip grip, Vector2 world) → List<(EntityKind, GeometryPayload)>
What drag would draw, in world: the pieces a reshape preview paints, computed once per pointer move, never per frame. Empty when there is nothing to show. world is only read during the call.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited