This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

98 lines
2.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/textract/Textract_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Textract
{
namespace Model
{
/**
* <p>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.</p> <p>An
* array of <code>Point</code> objects, <code>Polygon</code>, is returned by
* <a>DetectDocumentText</a>. <code>Polygon</code> represents a fine-grained
* polygon around detected text. For more information, see Geometry in the Amazon
* Textract Developer Guide. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/Point">AWS API
* Reference</a></p>
*/
class AWS_TEXTRACT_API Point
{
public:
Point();
Point(Aws::Utils::Json::JsonView jsonValue);
Point& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The value of the X coordinate for a point on a <code>Polygon</code>.</p>
*/
inline double GetX() const{ return m_x; }
/**
* <p>The value of the X coordinate for a point on a <code>Polygon</code>.</p>
*/
inline bool XHasBeenSet() const { return m_xHasBeenSet; }
/**
* <p>The value of the X coordinate for a point on a <code>Polygon</code>.</p>
*/
inline void SetX(double value) { m_xHasBeenSet = true; m_x = value; }
/**
* <p>The value of the X coordinate for a point on a <code>Polygon</code>.</p>
*/
inline Point& WithX(double value) { SetX(value); return *this;}
/**
* <p>The value of the Y coordinate for a point on a <code>Polygon</code>.</p>
*/
inline double GetY() const{ return m_y; }
/**
* <p>The value of the Y coordinate for a point on a <code>Polygon</code>.</p>
*/
inline bool YHasBeenSet() const { return m_yHasBeenSet; }
/**
* <p>The value of the Y coordinate for a point on a <code>Polygon</code>.</p>
*/
inline void SetY(double value) { m_yHasBeenSet = true; m_y = value; }
/**
* <p>The value of the Y coordinate for a point on a <code>Polygon</code>.</p>
*/
inline Point& WithY(double value) { SetY(value); return *this;}
private:
double m_x;
bool m_xHasBeenSet;
double m_y;
bool m_yHasBeenSet;
};
} // namespace Model
} // namespace Textract
} // namespace Aws