|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.plugins.blender.objects.Properties
public class Properties
The blender object's custom properties. This class is valid for all versions of blender.
Field Summary | |
---|---|
protected static java.lang.String |
DEFAULT_NAME
Default name of the property (used if the name is not specified in blender file). |
static int |
IDP_ARRAY
|
static int |
IDP_DOUBLE
|
static int |
IDP_FLOAT
|
static int |
IDP_GROUP
|
static int |
IDP_IDPARRAY
|
static int |
IDP_INT
|
static int |
IDP_NUMTYPES
|
static int |
IDP_STRING
|
protected static java.lang.String |
RNA_PROPERTY_NAME
|
Constructor Summary | |
---|---|
Properties()
|
Method Summary | |
---|---|
protected void |
completeLoading()
This method should be called after the properties loading. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
findValue(java.lang.String propertyName)
This method returns the same as getValue if the current property is of other type than IDP_GROUP and its name matches 'propertyName' param. |
java.lang.String |
getDescription()
This method returns the description of the property. |
java.lang.String |
getName()
This method returns the name of the property. |
java.util.List<java.lang.String> |
getSubPropertiesNames()
|
int |
getType()
This method returns the type of the property. |
java.lang.Object |
getValue()
This method returns the value of the property. |
int |
hashCode()
|
void |
load(Structure idPropertyStructure,
BlenderContext blenderContext)
This method loads the property from the belnder file. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int IDP_STRING
public static final int IDP_INT
public static final int IDP_FLOAT
public static final int IDP_ARRAY
public static final int IDP_GROUP
public static final int IDP_DOUBLE
public static final int IDP_IDPARRAY
public static final int IDP_NUMTYPES
protected static final java.lang.String RNA_PROPERTY_NAME
protected static final java.lang.String DEFAULT_NAME
Constructor Detail |
---|
public Properties()
Method Detail |
---|
public void load(Structure idPropertyStructure, BlenderContext blenderContext) throws BlenderFileException
idPropertyStructure
- the ID structure constining the propertyblenderContext
- the blender context
BlenderFileException
- an exception is thrown when the belnder file is somehow invalidpublic java.lang.String getName()
public java.lang.String getDescription()
public int getType()
public java.lang.Object getValue()
public java.util.List<java.lang.String> getSubPropertiesNames()
public java.lang.Object findValue(java.lang.String propertyName)
propertyName
- the name of the property
public java.lang.String toString()
toString
in class java.lang.Object
protected void completeLoading()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |