7#ifndef __HDI_CORE_HIT_DATA__
8#define __HDI_CORE_HIT_DATA__
10#if defined(HDI_CORE_AIP_MODE)
93 const Art*
const art_,
96 const double tolerance_ = 2.0,
97 const bool adjustToZoom_ =
true
181 virtual std::unique_ptr<Art>
art()
const;
242 virtual std::unique_ptr<Bezier>
bezier()
const;
284 friend aip::HitData* __accessImpl(
const HitData&);
285 friend HitData __accessCtor(
const aip::HitData&);
297 void* __impl()
const;
307 typedef std::unique_ptr<HitData> HitDataUP;
308 typedef std::shared_ptr<HitData> HitDataSP;
309 typedef std::weak_ptr<HitData> HitDataWP;
311 extern aip::HitData* __accessImpl(
const HitData&);
312 extern HitData __accessCtor(
const aip::HitData&);
Handles general art-related functionality.
Definition: hdicoreArt.h:51
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:31
Allows for hit data creation, metadata access, snapping, etc.
Definition: hdicoreHitData.h:32
virtual HitType hitType() const
Gets the type of hit detected.
virtual ~HitData()
Destructs a HitData object.
virtual int16_t segPointIndex() const
Gets the segment point hit.
virtual bool operator!=(const HitData &rhs_) const
Tests whether a given HitData object is not the same as another.
virtual HitRequest request() const
Gets the original type of hit test performed.
virtual std::unique_ptr< Bezier > bezier() const
Gets the bezier for the segment hit.
virtual bool isEmpty() const
Gets whether the target HitData object is empty (constructed with the default ctor)
virtual int16_t segIndex() const
Gets the segment number of a path that was hit.
virtual bool operator==(const HitData &rhs_) const
Tests whether a given HitData object is the same as another.
virtual double tValue() const
Gets the t-value of the hit along a path.
virtual bool hit() const
Reports whether some art was hit.
virtual ArtboardPoint point() const
Gets the point hit.
virtual bool snapForHit(ArtboardPoint &pt__) const
Convenience method to modify and "snap" a given point if a hit has occurred.
virtual std::unique_ptr< TextRange > textRange() const
Gets the text range that was hit (preset to the range of the character that is at the hit point)
HitType
Describes the type hit that was actually detected from a request.
Definition: hdicoreHitData.h:41
virtual std::unique_ptr< Art > art() const
Gets the art that was hit (or NULL if none)
HitData()
Constructs an empty HitData object.
HitData(const HitData &hitData_)
Constructs a HitData object from an existing HitData object (copy constructor)
HitData(const Art *const art_, const ArtboardPoint &pt_, const HitRequest request_, const double tolerance_=2.0, const bool adjustToZoom_=true)
Constructs a HitData object from a hit test, with an optional tolerance and zoom adjustment.
virtual bool snapForHitType(const HitType type_, ArtboardPoint &pt__) const
Convenience method to modify and "snap" a given point only if a certain type of hit has occurred.
virtual HitData & operator=(const HitData &rhs_)
Assigns one HitData object to another.
Header file for geometric point manipulation on the Illustrator artboard.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
HitRequest
Describes the types of hit tests that can be performed (AKA a hit request)
Definition: hdicoreTypes.h:348