Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorZones::IZoneDetection Class Referenceabstract

Pure-query subset of zone detection — read-only geometry lookup. More...

#include <phosphor-zones/include/PhosphorZones/IZoneDetector.h>

Inheritance diagram for PhosphorZones::IZoneDetection:
[legend]

Public Member Functions

 IZoneDetection ()=default
 
virtual ~IZoneDetection ()
 
virtual Layoutlayout () const =0
 
virtual ZoneDetectionResult detectZone (const QPointF &cursorPos) const =0
 
virtual ZoneDetectionResult detectMultiZone (const QPointF &cursorPos) const =0
 
virtual ZonezoneAtPoint (const QPointF &point) const =0
 
virtual ZonenearestZone (const QPointF &point) const =0
 
virtual QVector< Zone * > expandPaintedZonesToRect (const QVector< Zone * > &seedZones) const =0
 Paint-to-snap: expand painted zones to include all zones intersecting the bounding rect (same raycasting algorithm as detectMultiZone and the editor).
 

Protected Member Functions

 IZoneDetection (const IZoneDetection &)=default
 
IZoneDetectionoperator= (const IZoneDetection &)=default
 

Detailed Description

Pure-query subset of zone detection — read-only geometry lookup.

ISP-compliant slice of IZoneDetector. Consumers that need to resolve zones at a cursor / point without side-effects (editor paint-to-snap, fixtures, geometry tests) depend on this minimal surface instead of the full detector interface.

Non-QObject by design — pure data queries have no lifecycle signals. The full IZoneDetector interface (which carries signals) inherits from this, so ZoneDetector satisfies both at once.

Constructor & Destructor Documentation

◆ IZoneDetection() [1/2]

PhosphorZones::IZoneDetection::IZoneDetection ( )
default

◆ ~IZoneDetection()

virtual PhosphorZones::IZoneDetection::~IZoneDetection ( )
virtual

◆ IZoneDetection() [2/2]

PhosphorZones::IZoneDetection::IZoneDetection ( const IZoneDetection )
protecteddefault

Member Function Documentation

◆ detectMultiZone()

virtual ZoneDetectionResult PhosphorZones::IZoneDetection::detectMultiZone ( const QPointF &  cursorPos) const
pure virtual

Implemented in PhosphorZones::ZoneDetector.

◆ detectZone()

virtual ZoneDetectionResult PhosphorZones::IZoneDetection::detectZone ( const QPointF &  cursorPos) const
pure virtual

Implemented in PhosphorZones::ZoneDetector.

◆ expandPaintedZonesToRect()

virtual QVector< Zone * > PhosphorZones::IZoneDetection::expandPaintedZonesToRect ( const QVector< Zone * > &  seedZones) const
pure virtual

Paint-to-snap: expand painted zones to include all zones intersecting the bounding rect (same raycasting algorithm as detectMultiZone and the editor).

Implemented in PhosphorZones::ZoneDetector.

◆ layout()

virtual Layout * PhosphorZones::IZoneDetection::layout ( ) const
pure virtual

Implemented in PhosphorZones::ZoneDetector.

◆ nearestZone()

virtual Zone * PhosphorZones::IZoneDetection::nearestZone ( const QPointF &  point) const
pure virtual

Implemented in PhosphorZones::ZoneDetector.

◆ operator=()

IZoneDetection & PhosphorZones::IZoneDetection::operator= ( const IZoneDetection )
protecteddefault

◆ zoneAtPoint()

virtual Zone * PhosphorZones::IZoneDetection::zoneAtPoint ( const QPointF &  point) const
pure virtual

Implemented in PhosphorZones::ZoneDetector.


The documentation for this class was generated from the following file: