Tags:
tag this topic
create new tag
view all tags
---+ .SHAPE SET NEXT POINT _This subroutine is called to create a custom shape._ <br />%TOC% ---++ Usage: <pre> PASS <x_point> FIELD SHARE? N PASS <y_point> FIELD SHARE? N GOSUB OCD .SHAPE SET NEXT POINT * Check for error IF OCD .SHAPE SET NEXT POINT NE</pre> ---++ Description: <div id="_mcePaste">This subroutine allows you to define the shape of a custom shape by specifying the X/Y coordinates of the points. You must have initialized the shape as a customShape via [[CDShapeInitialize][.SHAPE INITIALIZE]].</div> Both the <x_point> and <y_point> parameters are required, and the subroutine will cancel if they are not received. In Chart Director, custom shapes are specified as an array of integers x0, y0, x1, y1, x2, y2 ... representing the coordinates of the vertices of the custom polygonal shape.<br /><br />The polygon is a bounding square of 1000 x 1000 units, in which the x-axis is from -500 to 500 going from left to right, and the y-axis is from 0 to 1000 going from bottom to top.<br /><br />When the chart is rendered, Chart Director will automatically scale the polygon to fit your chart.<br /><br />As an example, the shape of the standard diamond shape in Chart Director can be represented by the following pairs of coordinates: 0, 0<br /> 500, 500<br /> 0, 1000<br /> -500, 500 You would call this routine 4 times, passing it a pair of the above coordindates each time. ---++ Comments: _Read what other users have said about this page or add your own comments._ <br />%COMMENT% -- Main.JeanNeron - 2011-10-20
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2012-02-25
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback