public class SoPolygonScreenDrawer extends SoPolyLineScreenDrawer
When the polygon is finished, an event is raised to notify the application (see SoPolyLineScreenDrawer.onFinish ). Points are returned as normalized coordinates in the range -1..1, which is conveniently the default view volume for an SoOrthographicCamera node.
The line color and simplification threshold are specified by fields in the parent class SoPolyLineScreenDrawer.
Please see SoPolyLineScreenDrawer for additional notes and code example.
Polygon specific notes:
simplificationThreshold field does apply to this node.
File format/default:
PolygonScreenDrawer {
| point | [] |
| color | 1 0 0 |
| simplificationThreshold | 5 |
| isClosed | true |
See also:
SoEllipseScreenDrawer, SoLassoScreenDrawer, SoPolyLineScreenDrawer, SoRectangleScreenDrawer
SoPolyLineScreenDrawer.EventArgInventor.ConstructorCommandcolor, doCCW, isClosed, onFinish, point, simplificationThresholdsceneGraphVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoPolygonScreenDrawer()
Constructor.
|
clear, setFinishCallbackaffectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizablegetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadsGenerated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com