Aspose::BarCode::BarCodeRecognition::Quadrangle Class Reference

Stores a set of four Points that represent a Quadrangle region. More...

Inherits System::IEquatable< System::SharedPtr< Aspose::BarCode::BarCodeRecognition::Quadrangle > >.

Public Member Functions

System::Drawing::Point get_LeftTop () const
 Gets left-top corner Point of Quadrangle region More...
 
void set_LeftTop (System::Drawing::Point value)
 Gets left-top corner Point of Quadrangle region More...
 
System::Drawing::Point get_RightTop () const
 Gets right-top corner Point of Quadrangle region More...
 
void set_RightTop (System::Drawing::Point value)
 Gets right-top corner Point of Quadrangle region More...
 
System::Drawing::Point get_RightBottom () const
 Gets right-bottom corner Point of Quadrangle region More...
 
void set_RightBottom (System::Drawing::Point value)
 Gets right-bottom corner Point of Quadrangle region More...
 
System::Drawing::Point get_LeftBottom () const
 Gets left-bottom corner Point of Quadrangle region More...
 
void set_LeftBottom (System::Drawing::Point value)
 Gets left-bottom corner Point of Quadrangle region More...
 
bool get_IsEmpty ()
 Tests whether all Points of this Quadrangle have values of zero. More...
 
System::Drawing::Rectangle get_BoundingRectangle ()
 Gets Rectangle bounding this Quadrangle More...
 
 Quadrangle ()
 Initializes a new empty instance of the Quadrangle class. More...
 
 Quadrangle (System::Drawing::Point leftTop, System::Drawing::Point rightTop, System::Drawing::Point rightBottom, System::Drawing::Point leftBottom)
 Initializes a new instance of the Quadrangle class with the describing points. More...
 
bool Contains (System::Drawing::Point pt)
 Determines if the specified Point is contained within this Quadrangle class. More...
 
bool Contains (int32_t x, int32_t y)
 Determines if the specified point is contained within this Quadrangle class. More...
 
bool Contains (System::SharedPtr< Quadrangle > quad)
 Determines if the specified Quadrangle is contained or intersect this Quadrangle class. More...
 
bool Contains (System::Drawing::Rectangle rect)
 Determines if the specified Rectangle is contained or intersect this Quadrangle class. More...
 
bool Equals (System::SharedPtr< Quadrangle > other) override
 Returns a value indicating whether this instance is equal to a specified Quadrangle value. More...
 
int32_t GetHashCode () const override
 Returns the hash code for this instance. More...
 
System::String ToString () const override
 Returns a human-readable string representation of this Quadrangle. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Static Public Attributes

static System::SharedPtr< QuadrangleEmpty
 Represents a Quadrangle class with its properties left uninitialized. More...
 

Friends

bool operator== (System::SharedPtr< Quadrangle > first, System::SharedPtr< Quadrangle > second)
 
bool operator!= (System::SharedPtr< Quadrangle > first, System::SharedPtr< Quadrangle > second)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Stores a set of four Points that represent a Quadrangle region.

Constructor & Destructor Documentation

◆ Quadrangle() [1/2]

Aspose::BarCode::BarCodeRecognition::Quadrangle::Quadrangle ( )

Initializes a new empty instance of the Quadrangle class.

◆ Quadrangle() [2/2]

Aspose::BarCode::BarCodeRecognition::Quadrangle::Quadrangle ( System::Drawing::Point  leftTop,
System::Drawing::Point  rightTop,
System::Drawing::Point  rightBottom,
System::Drawing::Point  leftBottom 
)

Initializes a new instance of the Quadrangle class with the describing points.

Parameters
leftTopA Point that represents the left-top corner of the Quadrangle.
rightTopA Point that represents the right-top corner of the Quadrangle.
rightBottomA Point that represents the right-bottom corner of the Quadrangle.
leftBottomA Point that represents the left-bottom corner of the Quadrangle.

Member Function Documentation

◆ Contains() [1/4]

bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Contains ( System::Drawing::Point  pt)

Determines if the specified Point is contained within this Quadrangle class.

Parameters
ptThe Point to test.
Returns
Returns true if Point is contained within this Quadrangle class; otherwise, false.

◆ Contains() [2/4]

bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Contains ( int32_t  x,
int32_t  y 
)

Determines if the specified point is contained within this Quadrangle class.

Parameters
xThe x point cordinate.
yThe y point cordinate.


Returns
Returns true if point is contained within this Quadrangle class; otherwise, false.

◆ Contains() [3/4]

bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Contains ( System::SharedPtr< Quadrangle quad)

Determines if the specified Quadrangle is contained or intersect this Quadrangle class.

Parameters
quadThe Quadrangle to test.
Returns
Returns true if Quadrangle is contained or intersect this Quadrangle class; otherwise, false.

◆ Contains() [4/4]

bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Contains ( System::Drawing::Rectangle  rect)

Determines if the specified Rectangle is contained or intersect this Quadrangle class.

Parameters
rectThe Rectangle to test.
Returns
Returns true if Rectangle is contained or intersect this Quadrangle class; otherwise, false.

◆ Equals()

bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Equals ( System::SharedPtr< Quadrangle other)
overridevirtual

Returns a value indicating whether this instance is equal to a specified Quadrangle value.

Parameters
otherAn Quadrangle value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.

Implements System::IEquatable< System::SharedPtr< Aspose::BarCode::BarCodeRecognition::Quadrangle > >.

◆ get_BoundingRectangle()

System::Drawing::Rectangle Aspose::BarCode::BarCodeRecognition::Quadrangle::get_BoundingRectangle ( )

Gets Rectangle bounding this Quadrangle

Returns Rectangle bounding this Quadrangle

◆ get_IsEmpty()

bool Aspose::BarCode::BarCodeRecognition::Quadrangle::get_IsEmpty ( )

Tests whether all Points of this Quadrangle have values of zero.

Returns true if all Points of this Quadrangle have values of zero; otherwise, false.

◆ get_LeftBottom()

System::Drawing::Point Aspose::BarCode::BarCodeRecognition::Quadrangle::get_LeftBottom ( ) const

Gets left-bottom corner Point of Quadrangle region

A left-bottom corner Point of Quadrangle region

◆ get_LeftTop()

System::Drawing::Point Aspose::BarCode::BarCodeRecognition::Quadrangle::get_LeftTop ( ) const

Gets left-top corner Point of Quadrangle region

A left-top corner Point of Quadrangle region

◆ get_RightBottom()

System::Drawing::Point Aspose::BarCode::BarCodeRecognition::Quadrangle::get_RightBottom ( ) const

Gets right-bottom corner Point of Quadrangle region

A right-bottom corner Point of Quadrangle region

◆ get_RightTop()

System::Drawing::Point Aspose::BarCode::BarCodeRecognition::Quadrangle::get_RightTop ( ) const

Gets right-top corner Point of Quadrangle region

A right-top corner Point of Quadrangle region

◆ GetHashCode()

int32_t Aspose::BarCode::BarCodeRecognition::Quadrangle::GetHashCode ( ) const
overridevirtual

Returns the hash code for this instance.

Returns
A 32-bit signed integer hash code.

Reimplemented from System::Object.

◆ set_LeftBottom()

void Aspose::BarCode::BarCodeRecognition::Quadrangle::set_LeftBottom ( System::Drawing::Point  value)

Gets left-bottom corner Point of Quadrangle region

A left-bottom corner Point of Quadrangle region

◆ set_LeftTop()

void Aspose::BarCode::BarCodeRecognition::Quadrangle::set_LeftTop ( System::Drawing::Point  value)

Gets left-top corner Point of Quadrangle region

A left-top corner Point of Quadrangle region

◆ set_RightBottom()

void Aspose::BarCode::BarCodeRecognition::Quadrangle::set_RightBottom ( System::Drawing::Point  value)

Gets right-bottom corner Point of Quadrangle region

A right-bottom corner Point of Quadrangle region

◆ set_RightTop()

void Aspose::BarCode::BarCodeRecognition::Quadrangle::set_RightTop ( System::Drawing::Point  value)

Gets right-top corner Point of Quadrangle region

A right-top corner Point of Quadrangle region

◆ ToString()

System::String Aspose::BarCode::BarCodeRecognition::Quadrangle::ToString ( ) const
overridevirtual

Returns a human-readable string representation of this Quadrangle.

Returns
A string that represents this Quadrangle.

Reimplemented from System::Object.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( System::SharedPtr< Quadrangle first,
System::SharedPtr< Quadrangle second 
)
friend

◆ operator==

bool operator== ( System::SharedPtr< Quadrangle first,
System::SharedPtr< Quadrangle second 
)
friend

Member Data Documentation

◆ Empty

System::SharedPtr<Quadrangle> Aspose::BarCode::BarCodeRecognition::Quadrangle::Empty
static

Represents a Quadrangle class with its properties left uninitialized.

Quadrangle