AssetInfo

Inheritance: java.lang.Object, com.aspose.threed.A3DObject

public class AssetInfo extends A3DObject

Information of asset. Asset information can be attached to a Scene. Child Scene can have its own AssetInfo to override parent’s definition. Example: The following code shows how to read asset info from a fbx file:

Scene scene = Scene.fromFile("test.fbx");
     System.out.printf("The file is created at %s by %s %s",
          scene.getAssetInfo().getCreationTime(),
          scene.getAssetInfo().getApplicationName(),
          scene.getAssetInfo().getApplicationVersion());

Constructors

ConstructorDescription
AssetInfo()Initializes a new instance of the AssetInfo class.
AssetInfo(String name)Initializes a new instance of the AssetInfo class.

Methods

MethodDescription
equals(Object arg0)
findProperty(String propertyName)Finds the property.
getAmbient()Gets or Sets the default ambient color of this asset
getApplicationName()Gets the application that created this asset
getApplicationVendor()Gets the application vendor’s name
getApplicationVersion()Gets the version of the application that created this asset.
getAuthor()Gets the author of this asset
getAxisSystem()Gets the coordinate system/up vector/front vector of the asset info.
getClass()
getComment()Gets the comment of this asset.
getCoordinateSystem()Gets the coordinate system used in this asset.
getCopyright()Gets the document’s copyright
getCreationTime()Gets or Sets the creation time of this asset
getFrontVector()Gets the front-vector used in this asset.
getKeywords()Gets the keywords of this asset
getModificationTime()Gets or Sets the modification time of this asset
getName()Gets the name.
getProperties()Gets the collection of all properties.
getProperty(String property)Get the value of specified property
getRevision()Gets the revision number of this asset, usually used in version control system.
getSubject()Gets the subject of this asset
getTitle()Gets the title of this asset
getUnitName()Gets the unit of length used in this asset.
getUnitScaleFactor()Gets the scale factor to real-world meter.
getUpVector()Gets the up-vector used in this asset.
getUrl()Gets or Sets the URL of this asset.
hashCode()
notify()
notifyAll()
removeProperty(Property property)Removes a dynamic property.
removeProperty(String property)Remove the specified property identified by name
setAmbient(Vector4 value)Gets or Sets the default ambient color of this asset
setApplicationName(String value)Sets the application that created this asset
setApplicationVendor(String value)Sets the application vendor’s name
setApplicationVersion(String value)Sets the version of the application that created this asset.
setAuthor(String value)Sets the author of this asset
setAxisSystem(AxisSystem value)Sets the coordinate system/up vector/front vector of the asset info.
setComment(String value)Sets the comment of this asset.
setCoordinateSystem(CoordinateSystem value)Sets the coordinate system used in this asset.
setCopyright(String value)Sets the document’s copyright
setCreationTime(Calendar value)Gets or Sets the creation time of this asset
setFrontVector(Axis value)Sets the front-vector used in this asset.
setKeywords(String value)Sets the keywords of this asset
setModificationTime(Calendar value)Gets or Sets the modification time of this asset
setName(String value)Sets the name.
setProperty(String property, Object value)Sets the value of specified property
setRevision(String value)Sets the revision number of this asset, usually used in version control system.
setSubject(String value)Sets the subject of this asset
setTitle(String value)Sets the title of this asset
setUnitName(String value)Sets the unit of length used in this asset.
setUnitScaleFactor(double value)Sets the scale factor to real-world meter.
setUpVector(Axis value)Sets the up-vector used in this asset.
setUrl(String value)Gets or Sets the URL of this asset.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AssetInfo()

public AssetInfo()

Initializes a new instance of the AssetInfo class.

AssetInfo(String name)

public AssetInfo(String name)

Initializes a new instance of the AssetInfo class.

Parameters:

ParameterTypeDescription
namejava.lang.StringName

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

ParameterTypeDescription
propertyNamejava.lang.StringProperty name.

Returns: Property - The property.

getAmbient()

public Vector4 getAmbient()

Gets or Sets the default ambient color of this asset

Returns: Vector4

getApplicationName()

public String getApplicationName()

Gets the application that created this asset

Returns: java.lang.String

getApplicationVendor()

public String getApplicationVendor()

Gets the application vendor’s name

Returns: java.lang.String

getApplicationVersion()

public String getApplicationVersion()

Gets the version of the application that created this asset.

Returns: java.lang.String

getAuthor()

public String getAuthor()

Gets the author of this asset

Returns: java.lang.String

getAxisSystem()

public AxisSystem getAxisSystem()

Gets the coordinate system/up vector/front vector of the asset info.

Returns: AxisSystem

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getComment()

public String getComment()

Gets the comment of this asset.

Returns: java.lang.String

getCoordinateSystem()

public CoordinateSystem getCoordinateSystem()

Gets the coordinate system used in this asset.

Returns: CoordinateSystem

getCopyright()

public String getCopyright()

Gets the document’s copyright

Returns: java.lang.String

getCreationTime()

public Calendar getCreationTime()

Gets or Sets the creation time of this asset

Returns: java.util.Calendar

getFrontVector()

public Axis getFrontVector()

Gets the front-vector used in this asset.

Returns: Axis

getKeywords()

public String getKeywords()

Gets the keywords of this asset

Returns: java.lang.String

getModificationTime()

public Calendar getModificationTime()

Gets or Sets the modification time of this asset

Returns: java.util.Calendar

getName()

public String getName()

Gets the name.

Returns: java.lang.String

getProperties()

public PropertyCollection getProperties()

Gets the collection of all properties.

Returns: PropertyCollection

getProperty(String property)

public Object getProperty(String property)

Get the value of specified property

Parameters:

ParameterTypeDescription
propertyjava.lang.StringProperty name

Returns: java.lang.Object - The value of the found property

getRevision()

public String getRevision()

Gets the revision number of this asset, usually used in version control system.

Returns: java.lang.String

getSubject()

public String getSubject()

Gets the subject of this asset

Returns: java.lang.String

getTitle()

public String getTitle()

Gets the title of this asset

Returns: java.lang.String

getUnitName()

public String getUnitName()

Gets the unit of length used in this asset. e.g. cm/m/km/inch/feet

Returns: java.lang.String

getUnitScaleFactor()

public double getUnitScaleFactor()

Gets the scale factor to real-world meter. Remarks: This is ignored during serialization if the unit name is null.

Returns: double

getUpVector()

public Axis getUpVector()

Gets the up-vector used in this asset.

Returns: Axis

getUrl()

public String getUrl()

Gets or Sets the URL of this asset.

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

Removes a dynamic property.

Parameters:

ParameterTypeDescription
propertyPropertyWhich property to remove

Returns: boolean - true if the property is successfully removed

removeProperty(String property)

public boolean removeProperty(String property)

Remove the specified property identified by name

Parameters:

ParameterTypeDescription
propertyjava.lang.String

Returns: boolean

setAmbient(Vector4 value)

public void setAmbient(Vector4 value)

Gets or Sets the default ambient color of this asset

Parameters:

ParameterTypeDescription
valueVector4New value

setApplicationName(String value)

public void setApplicationName(String value)

Sets the application that created this asset

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setApplicationVendor(String value)

public void setApplicationVendor(String value)

Sets the application vendor’s name

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setApplicationVersion(String value)

public void setApplicationVersion(String value)

Sets the version of the application that created this asset.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setAuthor(String value)

public void setAuthor(String value)

Sets the author of this asset

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setAxisSystem(AxisSystem value)

public void setAxisSystem(AxisSystem value)

Sets the coordinate system/up vector/front vector of the asset info.

Parameters:

ParameterTypeDescription
valueAxisSystemNew value

setComment(String value)

public void setComment(String value)

Sets the comment of this asset.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setCoordinateSystem(CoordinateSystem value)

public void setCoordinateSystem(CoordinateSystem value)

Sets the coordinate system used in this asset.

Parameters:

ParameterTypeDescription
valueCoordinateSystemNew value

setCopyright(String value)

public void setCopyright(String value)

Sets the document’s copyright

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setCreationTime(Calendar value)

public void setCreationTime(Calendar value)

Gets or Sets the creation time of this asset

Parameters:

ParameterTypeDescription
valuejava.util.CalendarNew value

setFrontVector(Axis value)

public void setFrontVector(Axis value)

Sets the front-vector used in this asset.

Parameters:

ParameterTypeDescription
valueAxisNew value

setKeywords(String value)

public void setKeywords(String value)

Sets the keywords of this asset

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setModificationTime(Calendar value)

public void setModificationTime(Calendar value)

Gets or Sets the modification time of this asset

Parameters:

ParameterTypeDescription
valuejava.util.CalendarNew value

setName(String value)

public void setName(String value)

Sets the name.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setProperty(String property, Object value)

public void setProperty(String property, Object value)

Sets the value of specified property

Parameters:

ParameterTypeDescription
propertyjava.lang.StringProperty name
valuejava.lang.ObjectThe value of the property

setRevision(String value)

public void setRevision(String value)

Sets the revision number of this asset, usually used in version control system.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setSubject(String value)

public void setSubject(String value)

Sets the subject of this asset

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setTitle(String value)

public void setTitle(String value)

Sets the title of this asset

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setUnitName(String value)

public void setUnitName(String value)

Sets the unit of length used in this asset. e.g. cm/m/km/inch/feet

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setUnitScaleFactor(double value)

public void setUnitScaleFactor(double value)

Sets the scale factor to real-world meter.

Parameters:

ParameterTypeDescription
valuedoubleNew value Remarks: This is ignored during serialization if the unit name is null.

setUpVector(Axis value)

public void setUpVector(Axis value)

Sets the up-vector used in this asset.

Parameters:

ParameterTypeDescription
valueAxisNew value

setUrl(String value)

public void setUrl(String value)

Gets or Sets the URL of this asset.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int