public class SoRectangleScreenDrawer extends SoPolyLineScreenDrawer
When the rectangle 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 general notes and code example.
Rectangle specific notes:
CreationMethod
).
simplificationThreshold
field does not apply to this node. A rectangle always has four points.
isClosed
field does apply to this node (but false is not very useful).
File format/default:
RectangleScreenDrawer {
point | [] |
color | 1 0 0 |
simplificationThreshold | 0 |
isClosed | true |
method | CORNER_CORNER |
See also:
SoEllipseScreenDrawer
, SoLassoScreenDrawer
, SoPolyLineScreenDrawer
, SoPolygonScreenDrawer
,
Modifier and Type | Class and Description |
---|---|
static class |
SoRectangleScreenDrawer.CreationMethods
Methods to create rectangle.
|
SoPolyLineScreenDrawer.EventArg
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
CENTER_CORNER
Deprecated.
|
static int |
CORNER_CORNER
Deprecated.
|
SoSFEnum<SoRectangleScreenDrawer.CreationMethods> |
method
Method to create rectangle.
|
color, doCCW, isClosed, onFinish, point, simplificationThreshold
sceneGraph
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRectangleScreenDrawer()
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
@Deprecated public static final int CORNER_CORNER
SoRectangleScreenDrawer.CreationMethods.CORNER_CORNER
instead.@Deprecated public static final int CENTER_CORNER
SoRectangleScreenDrawer.CreationMethods.CENTER_CORNER
instead.public final SoSFEnum<SoRectangleScreenDrawer.CreationMethods> method
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com