public class SoPattern extends SoNode
Modifier and Type | Class and Description |
---|---|
static class |
SoPattern.FilterTypes
Possible value of the filterType used by the method loadPatterns.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFString |
category
Specifies the name of a group of patterns.
|
SoSFString |
name
Specifies the name of a pattern within a category.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPattern()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
addPattern(java.lang.String category,
java.lang.String name,
byte[] bytes)
Adds a new pattern specified as an array of 128 bytes.
|
static java.lang.String[] |
getPatternNames()
Gets the list names of all loaded patterns.
|
static java.lang.String[] |
getPatternNames(java.lang.String category)
Gets the list names of all loaded patterns in the specified category.
|
static boolean |
loadPatterns(java.lang.String fileName)
Calls loadPatterns(fileName, (int)0, (java.lang.String[])null, SoPattern.FilterTypes.valueOf( SoPattern.FilterTypes.INCLUSIVE_FILTER.getValue() )).
|
static boolean |
loadPatterns(java.lang.String fileName,
int numFilters)
Calls loadPatterns(fileName, numFilters, (java.lang.String[])null, SoPattern.FilterTypes.valueOf( SoPattern.FilterTypes.INCLUSIVE_FILTER.getValue() )).
|
static boolean |
loadPatterns(java.lang.String fileName,
int numFilters,
java.lang.String[] filterNames)
Calls loadPatterns(fileName, numFilters, filterNames, SoPattern.FilterTypes.valueOf( SoPattern.FilterTypes.INCLUSIVE_FILTER.getValue() )).
|
static boolean |
loadPatterns(java.lang.String fileName,
int numFilters,
java.lang.String[] filterNames,
SoPattern.FilterTypes filterType)
Loads a pattern file, with optional filtering of patterns.
|
static boolean |
loadPatterns(java.lang.String fileName,
java.lang.String[] filterNames)
Calls loadPatterns(fileName, filterNames, SoPattern.FilterTypes.valueOf( SoPattern.FilterTypes.INCLUSIVE_FILTER.getValue() )).
|
static boolean |
loadPatterns(java.lang.String fileName,
java.lang.String[] filterNames,
SoPattern.FilterTypes filterType)
Loads a pattern file, with optional filtering of patterns.
|
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 SoSFString category
public final SoSFString name
public static java.lang.String[] getPatternNames()
public static java.lang.String[] getPatternNames(java.lang.String category)
public static boolean loadPatterns(java.lang.String fileName)
public static boolean loadPatterns(java.lang.String fileName, int numFilters, java.lang.String[] filterNames)
public static boolean loadPatterns(java.lang.String fileName, int numFilters)
public static boolean loadPatterns(java.lang.String fileName, java.lang.String[] filterNames)
public static boolean loadPatterns(java.lang.String fileName, int numFilters, java.lang.String[] filterNames, SoPattern.FilterTypes filterType)
filterNames is an array of pattern names. This will be an array of patterns to include (or exclude) depending on the FilterType. The size of this array is numFilters.
public static void addPattern(java.lang.String category, java.lang.String name, byte[] bytes)
public static boolean loadPatterns(java.lang.String fileName, java.lang.String[] filterNames, SoPattern.FilterTypes filterType)
filterNames is an array of pattern names. This will be an array of patterns to include (or exclude) depending on the FilterType. The size of this array is numFilters.
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com