Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptpolygon.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptpolygon.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptpolygon.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptpolygon.html on line 8
A set of connected line segments
PtWidget →
PtBasic →
PtGraphic →
PtPolygon
For more information, see the
diagram of the widget hierarchy.
<photon/PtPolygon.h>
You can use the PtPolygon widget to
draw a set of connected line segments, called a
polyline, from the vertices of the line segments.
Open or closed PtPolygon widgets.
The points that you specify in the
Pt_ARG_POINTS
resource are the vertices of
the polyline or polygon.
These points are relative to the widget's
Pt_ARG_ORIGIN.
For more information, see
PtGraphic.
For a polygon, the last vertex
doesn't have to be the same as the first; the widget
can close the polygon for you.
You can use
Pt_ARG_POLYGON_FLAGS
to specify:
- whether points in the polygon definition are relative
to the previous point or in absolute coordinates
- whether a polyline (open curve) or polygon (closed
curve) is to be drawn.
Resource |
C type |
Pt type |
Default |
Pt_ARG_POLYGON_FLAGS
|
unsigned short
|
Flag
|
0 |
C type
|
Pt type
|
Default |
unsigned short
|
Flag
|
0 |
This resource defines the type of polygon to be drawn.
You can OR the following flag bits (defined in
<photon/Pg.h>):
- Pg_CLOSED
-
Connect the last point to the first.
- Pg_POLY_RELATIVE
-
Use relative coordinates to draw the polygon. Each point is
relative to the previous point.
The default setting of this resource is 0; that is, no flags have been set.
If the widget modifies an inherited resource, the “Default
override” column indicates the new value. This modification
affects any subclasses of the widget.
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptpolygon.html on line 769
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptpolygon.html on line 769