/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Textract { namespace Model { /** *

The X and Y coordinates of a point on a document page. The X and Y values * that are returned are ratios of the overall document page size. For example, if * the input document is 700 x 200 and the operation returns X=0.5 and Y=0.25, then * the point is at the (350,50) pixel coordinate on the document page.

An * array of Point objects, Polygon, is returned by * DetectDocumentText. Polygon represents a fine-grained * polygon around detected text. For more information, see Geometry in the Amazon * Textract Developer Guide.

See Also:

AWS API * Reference

*/ class Point { public: AWS_TEXTRACT_API Point(); AWS_TEXTRACT_API Point(Aws::Utils::Json::JsonView jsonValue); AWS_TEXTRACT_API Point& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value of the X coordinate for a point on a Polygon.

*/ inline double GetX() const{ return m_x; } /** *

The value of the X coordinate for a point on a Polygon.

*/ inline bool XHasBeenSet() const { return m_xHasBeenSet; } /** *

The value of the X coordinate for a point on a Polygon.

*/ inline void SetX(double value) { m_xHasBeenSet = true; m_x = value; } /** *

The value of the X coordinate for a point on a Polygon.

*/ inline Point& WithX(double value) { SetX(value); return *this;} /** *

The value of the Y coordinate for a point on a Polygon.

*/ inline double GetY() const{ return m_y; } /** *

The value of the Y coordinate for a point on a Polygon.

*/ inline bool YHasBeenSet() const { return m_yHasBeenSet; } /** *

The value of the Y coordinate for a point on a Polygon.

*/ inline void SetY(double value) { m_yHasBeenSet = true; m_y = value; } /** *

The value of the Y coordinate for a point on a Polygon.

*/ inline Point& WithY(double value) { SetY(value); return *this;} private: double m_x; bool m_xHasBeenSet = false; double m_y; bool m_yHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws