Skip to content
On this page

class MaterialCasterSource

MaterialCasterSource is used to save and load the data needed for a material casting. This can be used to run a casting at a later time, or on another machine.

Properties

PropertyDescription
CustomFieldsAdditional custom fields, which are needed or mapped by the material casters.
MappingImageThe mapping image object, which is serialized along with the scene.
NameThe name of the MaterialCasterSource object. (Inherited from Object)
SourceMaterialsThe SourceMaterials object, which is serialized along with the mapping image.
SourceTexturesThe SourceTextures object, which is serialized along with the mapping image.

Methods

MethodDescription
AddObserverAdds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
GetClassGet the name of the MaterialCasterSource class. (Inherited from Object)
IsAReturns true if MaterialCasterSource is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNullReturns true if the MaterialCasterSource object is invalid. (Inherited from Object)
IsSameObjectAsReturns true if the MaterialCasterSource object is valid. (Inherited from Object)
LoadFromFolderLoads a mapping image and scene from a folder. The objects can be retrieved through the GetMappingImage and GetScene methods.
NonNullReturns true if the MaterialCasterSource object is valid. (Inherited from Object)
PrintInfoPrints the content/info of the MaterialCasterSource object to the log. (Inherited from Object)
RemoveObserverRemoves a previously added observer object. (Inherited from Object)
SaveToFolderSaves a mapping image and scene to a folder. The objects need to be set through the SetMappingImage and SetScene methods before calling the method. Multiple files will be placed into the folder.

Static methods

MethodDescription
IsClassAReturns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCastSafeCast makes sure the input object is of a class that can be cast into spMaterialCasterSource, and if this is the case, returns the object cast into spMaterialCasterSource. (Inherited from Object)

Properties details

CustomFields

Additional custom fields, which are needed or mapped by the material casters.

MappingImage

The mapping image object, which is serialized along with the scene.

Name

The name of the MaterialCasterSource object. (Inherited from Object)

SourceMaterials

The SourceMaterials object, which is serialized along with the mapping image.

SourceTextures

The SourceTextures object, which is serialized along with the mapping image.

Methods details

AddObserver

Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)

GetClass

Get the name of the MaterialCasterSource class. (Inherited from Object)

IsA

Returns true if MaterialCasterSource is a or is a descendant of the class named as the type parameter. (Inherited from Object)

IsNull

Returns true if the MaterialCasterSource object is invalid. (Inherited from Object)

IsSameObjectAs

Returns true if the MaterialCasterSource object is valid. (Inherited from Object)

LoadFromFolder

Loads a mapping image and scene from a folder. The objects can be retrieved through the GetMappingImage and GetScene methods.

NonNull

Returns true if the MaterialCasterSource object is valid. (Inherited from Object)

PrintInfo

Prints the content/info of the MaterialCasterSource object to the log. (Inherited from Object)

RemoveObserver

Removes a previously added observer object. (Inherited from Object)

SaveToFolder

Saves a mapping image and scene to a folder. The objects need to be set through the SetMappingImage and SetScene methods before calling the method. Multiple files will be placed into the folder.

Static methods details

IsClassA

Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)

SafeCast

SafeCast makes sure the input object is of a class that can be cast into spMaterialCasterSource, and if this is the case, returns the object cast into spMaterialCasterSource. (Inherited from Object)