RhinoCommon API
RenderContentSerializer Class |
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.

Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)

The RenderContentSerializer type exposes the following members.

Name | Description | |
---|---|---|
![]() | RenderContentSerializer |
Protected constructor to be called from derived class
|

Name | Description | |
---|---|---|
![]() | 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.
|
![]() | 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.
|
![]() | ContentKind |
Kind of content created when importing or exporting this file type - ie, Material, Texture or Environment
|
![]() | ContentType | Obsolete.
Kind of content created when importing or exporting this file type. Obsolete - use ContentKind
|
![]() | EnglishDescription |
English string describing this plug-in
|
![]() | FileExtension |
File extension associated with this serialize object
|
![]() | LocalDescription |
Localized plug-in description
|

Name | Description | |
---|---|---|
![]() | CanLoadMultiple |
If true the plug-in is capable of loading multiple contents.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | LoadMultiple |
Create any number of new render contents loaded from any number of files.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Read |
Called to when importing a file, file should be parsed and converted to
a valid RenderContent object.
|
![]() | RegisterSerializer |
Register the RenderContentSerializer
|
![]() | 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.
|
![]() | 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. */
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Write |
Called to save a custom RenderContent object as an external file.
|
