Unlock instant, AI-driven research and patent intelligence for your innovation.

The method of describing the coordinate transformation matrix of primitives by using the mirror image and rotation parameters of primitives

A technology of coordinate transformation matrix and rotation parameters, which is applied in the field of drawing software, can solve problems such as mirroring parameters, rotation parameters errors, failure to reflect the sequence of mirroring operations and rotation operations, etc., and achieve the effect of convenient interoperability

Active Publication Date: 2019-03-29
INTEGRATED ELECTRONICS SYST LAB
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the coordinate transformation matrix of the primitive records a section, which cannot reflect the sequence of mirroring operations and rotation operations
If we can't determine this order, then we get mirror parameters, rotation parameters may be wrong

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • The method of describing the coordinate transformation matrix of primitives by using the mirror image and rotation parameters of primitives
  • The method of describing the coordinate transformation matrix of primitives by using the mirror image and rotation parameters of primitives
  • The method of describing the coordinate transformation matrix of primitives by using the mirror image and rotation parameters of primitives

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The method for describing the coordinate transformation matrix of the primitive by using the mirror image and rotation parameters of the primitive includes the following steps:

[0026] Step 1. Add variables in the primitive and initialize the primitive, such as figure 1 shown;

[0027] Set the bool variable m_mirrorX used to record the mirror flag of the primitive in the x direction and set it to false; set the bool variable m_mirrorY used to record the mirror flag of the primitive in the y direction and set it to false, and set it to record The integer variable m_direction of the rotation direction of the primitive is set to 0, and the values ​​of the rotation direction of the primitive are 0, 1, 2, and 3 respectively representing the original position, clockwise rotation 90°, clockwise rotation 180°, clockwise rotation Rotate 270°; set the variable m_bClone used to record whether the primitive is in the cloned state and initialize it to false;

[0028] Step 2, use ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The method of describing the coordinate transformation matrix of the primitive with the mirror image and rotation parameters of the primitive includes the following steps: (1) adding variables m_bMirrorX and m_bMirrorY used to record the mirror image flag of the primitive in the x and y directions inside the primitive to record The variable m_direction of the rotation direction of the primitive and the variable m_bClone whether it is in the clone state and initialize the primitive; (2) mirror the primitive; (3) perform the rotation operation on the primitive. Through the present invention, the transposition matrix of the primitive is described by the three parameters of the mirror image mark of the primitive in the x and y directions, and the rotation direction of the primitive, and is described in a fixed way of first mirroring and then rotating, and recalculated after each mirroring or rotation With these three parameters, only three parameters are needed to accurately restore the true state of the graphic element, and it is convenient to interoperate with graphics from other manufacturers.

Description

technical field [0001] The invention relates to the field of drawing software, in particular to a method for describing a coordinate transformation matrix of a graphic element by using the mirror image parameter and the rotation parameter of the graphic element. Background technique [0002] In the drawing software, mirroring and rotation operations are performed on the primitives. General drawing software will use the coordinate transformation matrix of the primitive to describe this, because the coordinate transformation matrix is ​​very convenient and can handle various scaling, mirroring, rotation, translation, tilting, etc. and also supports superposition operations. Tilting is not used in general drawing software. The translation operation can be recorded by the coordinates of the primitive, and the zoom can be directly recorded by the zoom factor. When the rotation of the primitive is a right-angle rotation (ie 90°, 180°, 270°, 360°); the only thing that needs atten...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T11/60
CPCG06T11/60G06T2210/32
Inventor 白振勇
Owner INTEGRATED ELECTRONICS SYST LAB