# coding: utf-8

"""
    Onshape REST API

    The Onshape REST API consumed by all clients.  # noqa: E501

    The version of the OpenAPI document: 1.106
    Contact: api-support@onshape.zendesk.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class BTMSketchImageEntity(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {
        'origin_x': 'float',
        'origin_y': 'float',
        'xaxis_x': 'float',
        'xaxis_y': 'float',
        'aspect_ratio': 'float'
    }

    attribute_map = {
        'origin_x': 'originX',
        'origin_y': 'originY',
        'xaxis_x': 'xaxisX',
        'xaxis_y': 'xaxisY',
        'aspect_ratio': 'aspectRatio'
    }

    def __init__(self, origin_x=None, origin_y=None, xaxis_x=None, xaxis_y=None, aspect_ratio=None):  # noqa: E501
        """BTMSketchImageEntity - a model defined in OpenAPI"""  # noqa: E501

        self._origin_x = None
        self._origin_y = None
        self._xaxis_x = None
        self._xaxis_y = None
        self._aspect_ratio = None
        self.discriminator = None

        if origin_x is not None:
            self.origin_x = origin_x
        if origin_y is not None:
            self.origin_y = origin_y
        if xaxis_x is not None:
            self.xaxis_x = xaxis_x
        if xaxis_y is not None:
            self.xaxis_y = xaxis_y
        if aspect_ratio is not None:
            self.aspect_ratio = aspect_ratio

    @property
    def origin_x(self):
        """Gets the origin_x of this BTMSketchImageEntity.  # noqa: E501


        :return: The origin_x of this BTMSketchImageEntity.  # noqa: E501
        :rtype: float
        """
        return self._origin_x

    @origin_x.setter
    def origin_x(self, origin_x):
        """Sets the origin_x of this BTMSketchImageEntity.


        :param origin_x: The origin_x of this BTMSketchImageEntity.  # noqa: E501
        :type: float
        """

        self._origin_x = origin_x

    @property
    def origin_y(self):
        """Gets the origin_y of this BTMSketchImageEntity.  # noqa: E501


        :return: The origin_y of this BTMSketchImageEntity.  # noqa: E501
        :rtype: float
        """
        return self._origin_y

    @origin_y.setter
    def origin_y(self, origin_y):
        """Sets the origin_y of this BTMSketchImageEntity.


        :param origin_y: The origin_y of this BTMSketchImageEntity.  # noqa: E501
        :type: float
        """

        self._origin_y = origin_y

    @property
    def xaxis_x(self):
        """Gets the xaxis_x of this BTMSketchImageEntity.  # noqa: E501


        :return: The xaxis_x of this BTMSketchImageEntity.  # noqa: E501
        :rtype: float
        """
        return self._xaxis_x

    @xaxis_x.setter
    def xaxis_x(self, xaxis_x):
        """Sets the xaxis_x of this BTMSketchImageEntity.


        :param xaxis_x: The xaxis_x of this BTMSketchImageEntity.  # noqa: E501
        :type: float
        """

        self._xaxis_x = xaxis_x

    @property
    def xaxis_y(self):
        """Gets the xaxis_y of this BTMSketchImageEntity.  # noqa: E501


        :return: The xaxis_y of this BTMSketchImageEntity.  # noqa: E501
        :rtype: float
        """
        return self._xaxis_y

    @xaxis_y.setter
    def xaxis_y(self, xaxis_y):
        """Sets the xaxis_y of this BTMSketchImageEntity.


        :param xaxis_y: The xaxis_y of this BTMSketchImageEntity.  # noqa: E501
        :type: float
        """

        self._xaxis_y = xaxis_y

    @property
    def aspect_ratio(self):
        """Gets the aspect_ratio of this BTMSketchImageEntity.  # noqa: E501


        :return: The aspect_ratio of this BTMSketchImageEntity.  # noqa: E501
        :rtype: float
        """
        return self._aspect_ratio

    @aspect_ratio.setter
    def aspect_ratio(self, aspect_ratio):
        """Sets the aspect_ratio of this BTMSketchImageEntity.


        :param aspect_ratio: The aspect_ratio of this BTMSketchImageEntity.  # noqa: E501
        :type: float
        """

        self._aspect_ratio = aspect_ratio

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, BTMSketchImageEntity):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
