public class SoLicensesInfo extends Inventor
SoLicensesInfo
manages licensed products. SoLicensesInfo.setCallback(SoLicensesCB*) deactivates the default message box to call the specified callback.
Version Number: You can query the Open Inventor version number as a string using the getVersion()
method or as a floating point value using the getLicensingVersionNumber()
method.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static int |
check(java.lang.String productName,
float version)
Calls check(productName, version, (java.lang.String)null, true, (java.lang.String[])null).
|
static int |
check(java.lang.String productName,
float version,
java.lang.String licenseString)
Calls check(productName, version, licenseString, true, (java.lang.String[])null).
|
static int |
check(java.lang.String productName,
float version,
java.lang.String licenseString,
boolean printWarning)
Calls check(productName, version, licenseString, printWarning, (java.lang.String[])null).
|
static int |
check(java.lang.String productName,
float version,
java.lang.String licenseString,
boolean printWarning,
java.lang.String[] errReport)
Query if Open Inventor or an extension module is licensed on this machine.
|
static SoLicensesInfo |
getInstance()
Returns
SoLicensesInfo singleton. |
SoLicensedProduct |
getLicensedProduct(SoLicensedProduct.SbProducts prod)
Gets the licensed product corresponding to the given
SoLicensedProduct.SbProduct . |
SoLicensedProduct |
getLicensedProductByIndex(int index)
Gets the licensed product corresponding to the given index.
|
static float |
getLicensingVersionNumber()
Returns current version number for license checking.
|
int |
getProductCount()
Gets number of licensed products.
|
static java.lang.String |
getVersion()
Returns a character string identifying the version of the Open Inventor library in use.
|
dispose, getNativeResourceHandle
public static int check(java.lang.String productName, float version, java.lang.String licenseString)
public static int check(java.lang.String productName, float version)
public static int check(java.lang.String productName, float version, java.lang.String licenseString, boolean printWarning)
public static int check(java.lang.String productName, float version, java.lang.String licenseString, boolean printWarning, java.lang.String[] errReport)
productName
- : Product to be licensed (no blanks), e.g. OpenInventor or VolumeVizLDM.
version
- : Version to be licensed (see getLicensingVersionNumber
).
licenseString
- : (optional) Embedded application password string, if any.
printWarning
- : If true, error and warning messages (if any) will be displayed to user.
errReport
- : If not NULL, will be set to point to the text of the error or warning messages (if any). SoLicensesInfo.check
will automatically append "SDK" to the productName when you need an SDK license to run on the current machine.
public SoLicensedProduct getLicensedProductByIndex(int index)
getProductCount()
, the method returns NULL.public static float getLicensingVersionNumber()
check
.
If you need a descriptive string see getVersion
. If you just need the version number as an integer or string, see the macros in SoVersion.h.
public int getProductCount()
public static SoLicensesInfo getInstance()
SoLicensesInfo
singleton.public SoLicensedProduct getLicensedProduct(SoLicensedProduct.SbProducts prod)
SoLicensedProduct.SbProduct
.
If the given product is invalid, the method returns NULL.public static java.lang.String getVersion()
For a floating point version number see getLicensingVersionNumber
.
Generated on July 31, 2019, Copyright � Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com