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.EventArg
Inventor.ConstructorCommand
color, doCCW, isClosed, onFinish, point, simplificationThreshold
sceneGraph
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPolygonScreenDrawer()
Constructor.
|
clear, setFinishCallback
affectsState, 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, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com