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
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFEnum<SoRectangleScreenDrawer.CreationMethods> |
method
Method to create rectangle.
|
color, doCCW, isClosed, linePattern, linePatternScaleFactor, lineWidth, onFinish, onMove, onStart, point, simplificationThreshold
sceneGraph
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRectangleScreenDrawer()
Constructor.
|
clear
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, 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, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFEnum<SoRectangleScreenDrawer.CreationMethods> method
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com