Sets the mirror attribute for cellrefs, cellrefarrays and text element. The datatype is set to t, if the element is selected. Reading the refered cell is possible with depend. ![]() Parameters: cap 0 for no caps, 1 for round caps, 2 for square caps.įor cell references and cell array references the refered cell is set. If the datatype is t, the element is selected. If set to true the whole element is selected. This method has no effect on other elements. (introduced with verion 20120824)Įlements having a transfomation (text, cellref, cellrefArray) will be scaled. If the text is identical with the first argument, it is replaced with the second arugment.Įlements having a transfomation (text, cellref, cellrefArray) will be rotated in deg. The minimum possible coordinate is returned, if the element is not selected.īool element::replaceText( string old, string new) The minimum coordinates of all selected elements is returned. pos will keep unchanged, if no vertex is selected. The minimum coordinates of all selected vertexes is returned, if bigger than pos. pos will keep unchanged, if the design does not contain any element. The minimum coordinates is returned, if less than pos. The maximum possible coordinate is returned, if the element is not selected. The maximum coordinates of all selected vertexes is returned. pos will keep unchanged, if nothing is selected. The maximum coordinates of all selected vertexes is returned, if less than pos. The maximum coordinates is returned, if bigger than pos. It has no function for cellRefs and cellRefArrays. Returns: true if element is a text otherwise false Returns: true if element is a polygon otherwise false Returns: true if element is a path otherwise false assign( 34) 6 # to output radius use 7 puts radius. The point is set to the centre point and the integer is set to the radius.įor LayoutScript: Pointers to non-classes had be be created with the pointInt() command:ġ #for ruby 2 p2= Point. Returns: true if element is a regular polygon with more than 8 points. Returns: true if element is a regular polygon with more than 8 pointsīool element::isCircle( point *centre, int *radius) Returns: true if element is a cellRefArray otherwise false Returns: true if element is a cellRef otherwise false Returns: true if element is a box otherwise false The selection of this element is inverted. Positive value for a width in drawing-units. Returns: The height of a text-element/ width of a path. Get the width for path and text-elements. A identical transformation is returned for any other shape. Returns: the transformation for text eleemnts and cell references. If the property with this number not exists, an empty string is returned. Returns: the value string of the property num. String element::getPropertyString(int num) If it is a text: Returns an array of one point: the base point of the text.If it is a cellrefarray: Returns an array of tree points: first the base point of the reference, second base point plus space in x and third base point plus space in y.If it is a cellref: Returns an array of one point: the base point of the reference.If it is a polygon or path: Returns a array of all point of the element.If it is a box: Returns an array of two points: first the top left corner, second the lower right corner.For all other elements 0 is returned.įor a cell reference arrays the number of repetitions in y direction is return. To set the text contents use setName()įor a cell reference arrays the number of repetitions in x direction is return. The text contents for text element is returned. The value of datatype property is returned. The same value as for setCap are used (0 no caps, 1 round caps, 2 square caps): ![]() Returns: for path element the setting for the path cap is returned. This method will return NULL for any other shapes.ĭeselectAll will complete deselect this shapes independent whether it is selected complete or partial. The method will have no effect an complete selected shapes.įor cell references and cell array references the referred cell is returned as a pointer to this cell. For example if you have a path with three points and the middle point is selected, the middle point will be removed and you will get a simple line. In the case an element is partial selected, any selected point is removed from the element. Also it is often used to store the purpose of this element. This property is often used to store the energy level for electron beam writers. The datatype is a additional integer property of each element. It can ether be a shape (path, box, polygon or text) or a cell reference (cell reference or cell reference array).ġ point p1( 34, 87) 2 point p2( 267, 142) 3 double distance= element:: distance( p1, p2) Ĭlears the mirror attribute for cellrefs, cellrefarrays and text elements.
0 Comments
Leave a Reply. |