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

Method for describing primitive coordinate transformation matrix by use of mirror images and rotation parameters of primitive

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: 2017-02-22
INTEGRATED ELECTRONICS SYST LAB
View PDF5 Cites 2 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
  • Method for describing primitive coordinate transformation matrix by use of mirror images and rotation parameters of primitive
  • Method for describing primitive coordinate transformation matrix by use of mirror images and rotation parameters of primitive
  • Method for describing primitive coordinate transformation matrix by use of mirror images and rotation parameters of primitive

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The method for describing the coordinate transformation matrix of the primitive with the mirror image and rotation parameters of the primitive includes the following steps: Step 1, adding variables in the primitive and initializing 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 mirro...

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 invention discloses a method for describing a primitive coordinate transformation matrix by use of mirror images and rotation parameters of a primitive. The method comprises the following steps: step 1, additionally setting a variable m_bMirrorX used for recording a mirror image sign of the primitive in an x direction, a variable m_bMirrorY used for recording a mirror image sign of the primitive in a y direction, a variable m_direction used for recording the rotation direction of the primitive and a variable m_bClone used for recording whether the primitive is at a cloning state inside the primitive, and performing primitive initialization; step 2, performing mirror image operation on the primitive; and step 3, performing rotation operation on the primitive. Through the mode provdied by the invention, when a transposition matrix of the primitive is described by use of the three parameters, i.e., the mirror image sign of the primitive in the x direction, the mirror image sign of the primitive in the y direction and the rotation direction of the primitive, description is performed according to a fixed mode of "mirroring first and then rotation", and the three parameters are re-calculated each time the mirroring or the rotation is performed, such that the real state of the primitive can be accurately restored only by use of the three parameters, and mutual operation with figures of other manufacturers is conveniently carried out.

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 Applications(China)
IPC IPC(8): G06T11/60
CPCG06T11/60G06T2210/32
Inventor 白振勇
Owner INTEGRATED ELECTRONICS SYST LAB