public class SoMarker extends SoNode
SoMarkerSet
and SoIndexedMarkerSet
.
This class defines a Marker. A marker is an image defined by a bitmap and optional color values. If no color values are given then image pixels corresponding to "1" bits are drawn using the current material color (see SoMaterial
) and pixels corresponding to "0" bits are not drawn (whatever is behind the marker shows through). If color values are given then each pixel in the image can be assigned an RGBA value.
size is the dimensions of the marker image in pixels. bitmap is the marker bitmap. The bitmap is arranged row by row, from left to right and up to down (or down to up according to the parameter isUpToDown ). Each byte specifies eight pixels. If isLSBFirst is true, bits are ordered within a byte from Least Significant to Most Significant; otherwise the first bit in each byte is the most significant one. If isUpToDown is true, the marker bitmap is described from down to up (first byte is the bottom left corner of the bitmap), otherwise from up to down (first byte is the top left corner).
Also note that each row must use a whole number of bytes. Padding is thus needed at the end of each row if row size is not a multiple of 8.
orderedRGBA is an optional color mask to apply to the marker. The color mask is arranged the same as bitmap, but each value (unsigned integer) specifies the color of one pixel. Each color is an ordered RGBA value. A value of 0xFF for Alpha makes the color mask be ignored for this pixel, and the color is inherited from the state depending on the bitmap value (as if no color values were given).
Note:
Marker definitions are used by the SoMarkerSet
and SoIndexedMarkerSet
nodes. To make a custom marker available to these nodes, use one of the addMarker methods defined in those classes.
An SoMarker
node can be added to the scene graph, but it is not a geometry node or an attribute node (does not render anything and does not affect the traversal state list). However SoMarker
nodes are written out to an Inventor file if an SoWriteAction
is applied to the scene graph. So adding SoMarker
nodes to the scene graph allows custom marker definitions to be saved and restored. For example:
// Add markers to scene graph in order to export them in IV file. root.addChild( SoMarkerSet.getMarker(90) ); root.addChild( SoMarkerSet.getMarker(91) ); root.addChild( SoMarkerSet.getMarker(92) );
File format/default:
Marker {
bitmap | 0 |
orderedRGBA | 0 |
upToDown | true |
LSBFirst | true |
size | (0, 0) |
index | -1 |
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoMarker.MarkerTypes
Marker type.
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMarker()
Marker constructor.
|
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 CROSS_5_5
SoMarker.MarkerTypes.CROSS_5_5
instead.@Deprecated public static final int PLUS_5_5
SoMarker.MarkerTypes.PLUS_5_5
instead.@Deprecated public static final int MINUS_5_5
SoMarker.MarkerTypes.MINUS_5_5
instead.@Deprecated public static final int SLASH_5_5
SoMarker.MarkerTypes.SLASH_5_5
instead.@Deprecated public static final int BACKSLASH_5_5
SoMarker.MarkerTypes.BACKSLASH_5_5
instead.@Deprecated public static final int BAR_5_5
SoMarker.MarkerTypes.BAR_5_5
instead.@Deprecated public static final int STAR_5_5
SoMarker.MarkerTypes.STAR_5_5
instead.@Deprecated public static final int Y_5_5
SoMarker.MarkerTypes.Y_5_5
instead.@Deprecated public static final int LIGHTNING_5_5
SoMarker.MarkerTypes.LIGHTNING_5_5
instead.@Deprecated public static final int WELL_5_5
SoMarker.MarkerTypes.WELL_5_5
instead.@Deprecated public static final int CIRCLE_LINE_5_5
SoMarker.MarkerTypes.CIRCLE_LINE_5_5
instead.@Deprecated public static final int SQUARE_LINE_5_5
SoMarker.MarkerTypes.SQUARE_LINE_5_5
instead.@Deprecated public static final int DIAMOND_LINE_5_5
SoMarker.MarkerTypes.DIAMOND_LINE_5_5
instead.@Deprecated public static final int TRIANGLE_LINE_5_5
SoMarker.MarkerTypes.TRIANGLE_LINE_5_5
instead.@Deprecated public static final int RHOMBUS_LINE_5_5
SoMarker.MarkerTypes.RHOMBUS_LINE_5_5
instead.@Deprecated public static final int HOURGLASS_LINE_5_5
SoMarker.MarkerTypes.HOURGLASS_LINE_5_5
instead.@Deprecated public static final int SATELLITE_LINE_5_5
SoMarker.MarkerTypes.SATELLITE_LINE_5_5
instead.@Deprecated public static final int PINE_TREE_LINE_5_5
SoMarker.MarkerTypes.PINE_TREE_LINE_5_5
instead.@Deprecated public static final int CAUTION_LINE_5_5
SoMarker.MarkerTypes.CAUTION_LINE_5_5
instead.@Deprecated public static final int SHIP_LINE_5_5
SoMarker.MarkerTypes.SHIP_LINE_5_5
instead.@Deprecated public static final int CIRCLE_FILLED_5_5
SoMarker.MarkerTypes.CIRCLE_FILLED_5_5
instead.@Deprecated public static final int SQUARE_FILLED_5_5
SoMarker.MarkerTypes.SQUARE_FILLED_5_5
instead.@Deprecated public static final int DIAMOND_FILLED_5_5
SoMarker.MarkerTypes.DIAMOND_FILLED_5_5
instead.@Deprecated public static final int TRIANGLE_FILLED_5_5
SoMarker.MarkerTypes.TRIANGLE_FILLED_5_5
instead.@Deprecated public static final int RHOMBUS_FILLED_5_5
SoMarker.MarkerTypes.RHOMBUS_FILLED_5_5
instead.@Deprecated public static final int HOURGLASS_FILLED_5_5
SoMarker.MarkerTypes.HOURGLASS_FILLED_5_5
instead.@Deprecated public static final int SATELLITE_FILLED_5_5
SoMarker.MarkerTypes.SATELLITE_FILLED_5_5
instead.@Deprecated public static final int PINE_TREE_FILLED_5_5
SoMarker.MarkerTypes.PINE_TREE_FILLED_5_5
instead.@Deprecated public static final int CAUTION_FILLED_5_5
SoMarker.MarkerTypes.CAUTION_FILLED_5_5
instead.@Deprecated public static final int SHIP_FILLED_5_5
SoMarker.MarkerTypes.SHIP_FILLED_5_5
instead.@Deprecated public static final int CROSS_7_7
SoMarker.MarkerTypes.CROSS_7_7
instead.@Deprecated public static final int PLUS_7_7
SoMarker.MarkerTypes.PLUS_7_7
instead.@Deprecated public static final int MINUS_7_7
SoMarker.MarkerTypes.MINUS_7_7
instead.@Deprecated public static final int SLASH_7_7
SoMarker.MarkerTypes.SLASH_7_7
instead.@Deprecated public static final int BACKSLASH_7_7
SoMarker.MarkerTypes.BACKSLASH_7_7
instead.@Deprecated public static final int BAR_7_7
SoMarker.MarkerTypes.BAR_7_7
instead.@Deprecated public static final int STAR_7_7
SoMarker.MarkerTypes.STAR_7_7
instead.@Deprecated public static final int Y_7_7
SoMarker.MarkerTypes.Y_7_7
instead.@Deprecated public static final int LIGHTNING_7_7
SoMarker.MarkerTypes.LIGHTNING_7_7
instead.@Deprecated public static final int WELL_7_7
SoMarker.MarkerTypes.WELL_7_7
instead.@Deprecated public static final int CIRCLE_LINE_7_7
SoMarker.MarkerTypes.CIRCLE_LINE_7_7
instead.@Deprecated public static final int SQUARE_LINE_7_7
SoMarker.MarkerTypes.SQUARE_LINE_7_7
instead.@Deprecated public static final int DIAMOND_LINE_7_7
SoMarker.MarkerTypes.DIAMOND_LINE_7_7
instead.@Deprecated public static final int TRIANGLE_LINE_7_7
SoMarker.MarkerTypes.TRIANGLE_LINE_7_7
instead.@Deprecated public static final int RHOMBUS_LINE_7_7
SoMarker.MarkerTypes.RHOMBUS_LINE_7_7
instead.@Deprecated public static final int HOURGLASS_LINE_7_7
SoMarker.MarkerTypes.HOURGLASS_LINE_7_7
instead.@Deprecated public static final int SATELLITE_LINE_7_7
SoMarker.MarkerTypes.SATELLITE_LINE_7_7
instead.@Deprecated public static final int PINE_TREE_LINE_7_7
SoMarker.MarkerTypes.PINE_TREE_LINE_7_7
instead.@Deprecated public static final int CAUTION_LINE_7_7
SoMarker.MarkerTypes.CAUTION_LINE_7_7
instead.@Deprecated public static final int SHIP_LINE_7_7
SoMarker.MarkerTypes.SHIP_LINE_7_7
instead.@Deprecated public static final int CIRCLE_FILLED_7_7
SoMarker.MarkerTypes.CIRCLE_FILLED_7_7
instead.@Deprecated public static final int SQUARE_FILLED_7_7
SoMarker.MarkerTypes.SQUARE_FILLED_7_7
instead.@Deprecated public static final int DIAMOND_FILLED_7_7
SoMarker.MarkerTypes.DIAMOND_FILLED_7_7
instead.@Deprecated public static final int TRIANGLE_FILLED_7_7
SoMarker.MarkerTypes.TRIANGLE_FILLED_7_7
instead.@Deprecated public static final int RHOMBUS_FILLED_7_7
SoMarker.MarkerTypes.RHOMBUS_FILLED_7_7
instead.@Deprecated public static final int HOURGLASS_FILLED_7_7
SoMarker.MarkerTypes.HOURGLASS_FILLED_7_7
instead.@Deprecated public static final int SATELLITE_FILLED_7_7
SoMarker.MarkerTypes.SATELLITE_FILLED_7_7
instead.@Deprecated public static final int PINE_TREE_FILLED_7_7
SoMarker.MarkerTypes.PINE_TREE_FILLED_7_7
instead.@Deprecated public static final int CAUTION_FILLED_7_7
SoMarker.MarkerTypes.CAUTION_FILLED_7_7
instead.@Deprecated public static final int SHIP_FILLED_7_7
SoMarker.MarkerTypes.SHIP_FILLED_7_7
instead.@Deprecated public static final int CROSS_9_9
SoMarker.MarkerTypes.CROSS_9_9
instead.@Deprecated public static final int PLUS_9_9
SoMarker.MarkerTypes.PLUS_9_9
instead.@Deprecated public static final int MINUS_9_9
SoMarker.MarkerTypes.MINUS_9_9
instead.@Deprecated public static final int SLASH_9_9
SoMarker.MarkerTypes.SLASH_9_9
instead.@Deprecated public static final int BACKSLASH_9_9
SoMarker.MarkerTypes.BACKSLASH_9_9
instead.@Deprecated public static final int BAR_9_9
SoMarker.MarkerTypes.BAR_9_9
instead.@Deprecated public static final int STAR_9_9
SoMarker.MarkerTypes.STAR_9_9
instead.@Deprecated public static final int Y_9_9
SoMarker.MarkerTypes.Y_9_9
instead.@Deprecated public static final int LIGHTNING_9_9
SoMarker.MarkerTypes.LIGHTNING_9_9
instead.@Deprecated public static final int WELL_9_9
SoMarker.MarkerTypes.WELL_9_9
instead.@Deprecated public static final int CIRCLE_LINE_9_9
SoMarker.MarkerTypes.CIRCLE_LINE_9_9
instead.@Deprecated public static final int SQUARE_LINE_9_9
SoMarker.MarkerTypes.SQUARE_LINE_9_9
instead.@Deprecated public static final int DIAMOND_LINE_9_9
SoMarker.MarkerTypes.DIAMOND_LINE_9_9
instead.@Deprecated public static final int TRIANGLE_LINE_9_9
SoMarker.MarkerTypes.TRIANGLE_LINE_9_9
instead.@Deprecated public static final int RHOMBUS_LINE_9_9
SoMarker.MarkerTypes.RHOMBUS_LINE_9_9
instead.@Deprecated public static final int HOURGLASS_LINE_9_9
SoMarker.MarkerTypes.HOURGLASS_LINE_9_9
instead.@Deprecated public static final int SATELLITE_LINE_9_9
SoMarker.MarkerTypes.SATELLITE_LINE_9_9
instead.@Deprecated public static final int PINE_TREE_LINE_9_9
SoMarker.MarkerTypes.PINE_TREE_LINE_9_9
instead.@Deprecated public static final int CAUTION_LINE_9_9
SoMarker.MarkerTypes.CAUTION_LINE_9_9
instead.@Deprecated public static final int SHIP_LINE_9_9
SoMarker.MarkerTypes.SHIP_LINE_9_9
instead.@Deprecated public static final int CIRCLE_FILLED_9_9
SoMarker.MarkerTypes.CIRCLE_FILLED_9_9
instead.@Deprecated public static final int SQUARE_FILLED_9_9
SoMarker.MarkerTypes.SQUARE_FILLED_9_9
instead.@Deprecated public static final int DIAMOND_FILLED_9_9
SoMarker.MarkerTypes.DIAMOND_FILLED_9_9
instead.@Deprecated public static final int TRIANGLE_FILLED_9_9
SoMarker.MarkerTypes.TRIANGLE_FILLED_9_9
instead.@Deprecated public static final int RHOMBUS_FILLED_9_9
SoMarker.MarkerTypes.RHOMBUS_FILLED_9_9
instead.@Deprecated public static final int HOURGLASS_FILLED_9_9
SoMarker.MarkerTypes.HOURGLASS_FILLED_9_9
instead.@Deprecated public static final int SATELLITE_FILLED_9_9
SoMarker.MarkerTypes.SATELLITE_FILLED_9_9
instead.@Deprecated public static final int PINE_TREE_FILLED_9_9
SoMarker.MarkerTypes.PINE_TREE_FILLED_9_9
instead.@Deprecated public static final int CAUTION_FILLED_9_9
SoMarker.MarkerTypes.CAUTION_FILLED_9_9
instead.@Deprecated public static final int SHIP_FILLED_9_9
SoMarker.MarkerTypes.SHIP_FILLED_9_9
instead.public final SoMFUByte bitmap
public final SoMFUInt32 orderedRGBA
public final SoSFBool upToDown
public final SoSFBool isLSBFirst
public final SoSFVec2s size
public final SoSFInt32 index
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com