RenderContentSerializer
Used to import and export custom render content such as materials, environments and textures. You must override RenderPlugIn.RenderContentSerializers() and return an array of derived RenderContentSerializer class types to add to the content browsers.
Inheritance Hierarchy
System.Object
Rhino.Render.RenderContentSerializer
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public abstract class RenderContentSerializer
The RenderContentSerializer type exposes the following members.
Constructors
Name
Description
Protected Method
RenderContentSerializer
Protected constructor to be called from derived class
Properties
Name
Description
Public Property
CanRead
If true then the file type can be imported and will be included in the file open box when importing the specified render content kind.
Public Property
CanWrite
If true then the file type can be exported and will be included in the file save box when exporting the specified render content kind.
Public Property
ContentKind
Kind of content created when importing or exporting this file type - ie, Material, Texture or Environment
Public Property
ContentType
Obsolete.
Kind of content created when importing or exporting this file type. Obsolete - use ContentKind
Public Property
EnglishDescription
English string describing this plug-in
Public Property
FileExtension
File extension associated with this serialize object
Public Property
LocalDescription
Localized plug-in description
Methods
Name
Description
Public Method
CanLoadMultiple
If true the plug-in is capable of loading multiple contents.
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
LoadMultiple
Create any number of new render contents loaded from any number of files.
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
Read
Called to when importing a file, file should be parsed and converted to a valid RenderContent object.
Public Method
RegisterSerializer
Register the RenderContentSerializer
Public Method
ReportContentAndFile
This is called from your implementation of LoadMultiple() to add a content and the file it was loaded from when the LoadMultipleFlags.Preload flag is NOT set. See LoadMultiple() for an explanation of this method’s use.
Public Method
ReportDeferredContentAndFile
This is called from your implementation of LoadMultiple() to add a ‘deferred’ content and the file it will be loaded from when the LoadMultipleFlags.Preload flag is set. See LoadMultiple() for an explanation of this method’s use. \param c is the deferred content. \param wszFullPath is the full path to the file that ‘c’ will be loaded from. \param flags is reserved for future use; you should pass zero. \param pReserved is reserved for future use; you should pass nullptr. */
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public Method
Write
Called to save a custom RenderContent object as an external file.