Point¶
Must Override¶
- BasePoint._get_identifier() str | None¶
Get the native object’s unique identifier.
This is the environment implementation of
IdentifierMixin.identifier.If the native object does not have an identifier assigned, one may be assigned with
IdentifierMixin.getIdentifier- Returns:
The unique identifier assigned to the object as a
str, orNoneindicating the object has no identifier.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._get_name() str | None[source]¶
Get the name of the native point.
This is the environment implementation of the
BasePoint.nameproperty getter.- Returns:
A
strrepresenting the point’s name orNone. The value will be normalized withnormalizers.normalizePointName.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._get_smooth() bool[source]¶
Get the native point’s smooth state.
This is the environment implementation of the
BasePoint.smoothproperty getter.- Returns:
A
boolindicating the point’s smooth state. The value will be normalized withnormalizers.normalizeBoolean.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._get_type() str[source]¶
Get the native point’s type.
This is the environment implementation of the
BasePoint.typeproperty getter.- Returns:
A
strrepresenting the type of the point. The value will be normalized withnormalizers.normalizePointType.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._get_x() int | float[source]¶
Get the x coordinate of the native point.
Description
This is the environment implementation of the
BasePoint.xproperty getter.- Returns:
An
intor afloatrepresenting the point’s x coordinate. The value will be normalized withnormalizers.normalizeX.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._get_y() int | float[source]¶
Get the y coordinate of the native point.
This is the environment implementation of the
BasePoint.yproperty getter.- Returns:
An
intor afloatrepresenting the point’s y coordinate. The value will be normalized withnormalizers.normalizeY.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._set_name(value: str) None[source]¶
Set the name of the native point.
This is the environment implementation of the
BasePoint.nameproperty setter.- Parameters:
value – The point name as a
str. The value will have been normalized withnormalizers.normalizePointName.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._set_smooth(value: bool) None[source]¶
Set the native point’s smooth state.
This is the environment implementation of the
BasePoint.smoothproperty setter.- Parameters:
value – The point’s smooth state as a
bool. The value will have been normalized withnormalizers.normalizeBoolean.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._set_type(value: str) None[source]¶
Set the native point’s type.
Description
This is the environment implementation of the
BasePoint.typeproperty setter.- Parameters:
value – The point type definition as a
str. The value will have been normalized withnormalizers.normalizePointType.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._set_x(value: int | float) None[source]¶
Set the x coordinate of the native point.
This is the environment implementation of the
BasePoint.xproperty setter.- Parameters:
value – The point’s x coodinate to set as an
intorfloat. The value will have been normalized withnormalizers.normalizeX.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
- BasePoint._set_y(value: int | float) None[source]¶
Set the y coordinate of the native point.
This is the environment implementation of the
BasePoint.yproperty setter.- Parameters:
value – The point’s y coordinate as an
intorfloat. The value will have been normalized withnormalizers.normalizeY.- Raises:
NotImplementedError – If the method has not been overridden by a subclass.
Important
Subclasses must override this method.
May Override¶
- BasePoint._get_index() int | None[source]¶
Get the index of the native point.
This is the environment implementation of the
BasePoint.indexproperty getter.- Returns:
An
intrepresenting the point’s index within an ordered list of the parent contour’s points, orNoneif the point does not belong to a contour. The value will be normalized withnormalizers.normalizeIndex.
Note
Subclasses may override this method.
- BasePoint._init(*args: Any, **kwargs: Any) None¶
Initialize the native object.
This is the environment implementation of
BaseObject.__init__.- Parameters:
*args – Any positional arguments.
**kwargs – Any keyword arguments.
Note
Subclasses may override this method.
- BasePoint._moveBy(value: list[int | float] | tuple[int | float, int | float], **kwargs: Any) None¶
Move the native object according to the given coordinates.
This is the environment implementation of
BaseObject.moveBy.- Parameters:
value – The x and y values to move the object by as a Coordinate. The value will have been normalized with
normalizers.normalizeTransformationOffset.**kwargs – Additional keyword arguments.
Note
Subclasses may override this method.
- BasePoint._rotateBy(value: float, origin: list[int | float] | tuple[int | float, int | float], **kwargs: Any) None¶
Rotate the native object by the specified value.
This is the environment implementation of
TransformationMixin.rotateBy.- Parameters:
value – The angle at which to rotate the object as an
intor afloat. The value will have been normalized withnormalizers.normalizeRotationAngle.origin – The point at which the rotation should originate as a Coordinate or
None. The value will have been normalized withnormalizers.normalizeCoordinateTuple.**kwargs – Additional keyword arguments.
Note
Subclasses may override this method.
- BasePoint._round(**kwargs: Any) None[source]¶
Round the native point’s coordinates.
This is the environment implementation of
BasePoint.round.- Parameters:
**kwargs – Additional keyword arguments.
Note
Subclasses may override this method.
- BasePoint._scaleBy(value: list[int | float] | tuple[float, float], origin: list[int | float] | tuple[int | float, int | float], **kwargs: Any) None¶
Scale the native object according to the given values.
This is the environment implementation of
BaseObject.scaleBy.- Parameters:
value – The value to scale the glyph by as a single
intorfloat, or atupleorlistof twointorfloatvalues representing the values(x, y). The value will have been normalized withnormalizeTransformationScale.origin – The point at which the scale should originate as a Coordinate or
None. The value will have been normalized withnormalizers.normalizeCoordinateTuple.**kwargs – Additional keyword arguments.
Note
Subclasses may override this method.
- BasePoint._skewBy(value: list[int | float] | tuple[float, float], origin: list[int | float] | tuple[int | float, int | float], **kwargs: Any) None¶
Skew the native object by the given value.
This is the environment implementation of
TransformationMixin.skewBy.- Parameters:
value – The value by which to skew the object as either a single
intorfloatcorresponding to the x direction, or atupleof twointorfloatvalues corresponding to the x and y directions. The value will have been normalized withnormalizers.normalizeTransformationSkewAngle.origin – The point at which the rotation should originate as a Coordinate or
None. The value will have been normalized withnormalizers.normalizeCoordinateTuple.**kwargs – Additional keyword arguments.
Note
Subclasses may override this method.
- BasePoint._transformBy(matrix: list[int | float] | tuple[float, float, float, float, float, float], **kwargs: Any) None[source]¶
Transform the native point.
This is the environment implementation of
BasePoint.transformBy.- Parameters:
matrix – The transformation to apply as a Transformation Matrix.
**kwargs – Additional keyword arguments.
Note
Subclasses may override this method.