# 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

Property Description
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

Method Description
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

Method Description
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)

# Properties details

# 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)