FieldDictionary Class

FieldDictionary Class

Dictionary containing RenderContent data fields, add fields to this dictionary in your derived RenderContent classes constructor. Get field values using the TryGet[data type]() methods and set them using the Set() method.
Inheritance Hierarchy
SystemObject
  Rhino.Render.FieldsFieldDictionary

Namespace:  Rhino.Render.Fields
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class FieldDictionary : IEnumerable
Public NotInheritable Class FieldDictionary
	Implements IEnumerable

The FieldDictionary type exposes the following members.

Methods
  NameDescription
Public methodAdd(String, Color4f)
Add a new Color4fField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Point2d)
Add a new Point2dField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Point3d)
Add a new Point3dField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Point4d)
Add a new Point4dField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Transform)
Add a new TransformField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Vector2d)
Add a new Vector2dField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Vector3d)
Add a new Vector3dField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Boolean)
Add a new BoolField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Byte)
AddField a new ByteArrayField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, DateTime)
Add a new DateTimeField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Double)
AddField a new DoubleField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Color)
Add a new Color4fField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Guid)
Add a new GuidField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Int32)
Add a new IntField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Single)
Add a new FloatField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, String)
Add a new StringField to the dictionary. This will be a data only field and not show up in the content browsers.
Public methodAdd(String, Color4f, String)
Add a new Color4fField to the dictionary.
Public methodAdd(String, Point2d, String)
Add a new Point2dField to the dictionary.
Public methodAdd(String, Point3d, String)
Add a new Point3dField to the dictionary.
Public methodAdd(String, Point4d, String)
Add a new Point4dField to the dictionary.
Public methodAdd(String, Transform, String)
Add a new TransformField to the dictionary.
Public methodAdd(String, Vector2d, String)
Add a new Vector2dField to the dictionary.
Public methodAdd(String, Vector3d, String)
Add a new Vector3dField to the dictionary.
Public methodAdd(String, Boolean, String)
Add a new BoolField to the dictionary.
Public methodAdd(String, DateTime, String)
Add a new DateTimeField to the dictionary.
Public methodAdd(String, Double, String)
Add a new DoubleField to the dictionary.
Public methodAdd(String, Color, String)
Add a new Color4fField to the dictionary.
Public methodAdd(String, Guid, String)
Add a new GuidField to the dictionary.
Public methodAdd(String, Int32, String)
Add a new IntField to the dictionary.
Public methodAdd(String, Single, String)
AddField a new FloatField to the dictionary.
Public methodAdd(String, String, String)
Add a new StringField to the dictionary.
Public methodAddTextured(String, Color4f, String)
Add a new Color4fField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Point2d, String)
Add a new Point2dField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Point3d, String)
Add a new Point3dField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Point4d, String)
Add a new Point4dField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Transform, String)
Add a new TransformField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Vector2d, String)
Add a new Vector2dField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Vector3d, String)
Add a new Vector3dField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Boolean, String)
Add a new BoolField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, DateTime, String)
Add a new DateTimeField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Double, String)
Add a new DoubleField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Color, String)
Add a new Color4fField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Guid, String)
Add a new GuidField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Int32, String)
Add a new IntField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, Single, String)
Add a new FloatField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodAddTextured(String, String, String)
Add a new StringField to the dictionary. This overload will cause the field to be tagged as "textured" so that the texturing UI will appear in automatic UIs.
Public methodContainsField
Call this method to determine if a this FieldsList contains a field with the specified field name.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Public methodGetField
Call this method to get the field with the matching name.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemoveField
Public methodSet(String, Color4f)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Point2d)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Point3d)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Point4d)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Transform)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Vector2d)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Vector3d)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Boolean)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Byte)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, DateTime)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Double)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Color)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Guid)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Int32)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Single)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, String)
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Color4f, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Point2d, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Point3d, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Point4d, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Transform, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Vector2d, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Vector3d, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Boolean, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Byte, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, DateTime, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Double, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Color, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Guid, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Int32, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, Single, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSet(String, String, RenderContentChangeContexts) Obsolete.
Set the field value and send the appropriate change notification to the render SDK. Will throw a InvalidOperationException exception if the key name is not valid.
Public methodSetTag Obsolete.
Sets an object that contains data to associate with the field. THIS IS NOW OBSOLETE - if you were using this, please email andy@mcneel.com and let me know why.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetTag Obsolete.
Gets object that contains data associate with a field. THIS IS NOW OBSOLETE - if you were using this, please email andy@mcneel.com and let me know why.
Public methodTryGetValue(String, Color4f)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Point2d)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Point3d)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Point4d)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Transform)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Vector2d)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Vector3d)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Boolean)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Byte)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, DateTime)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Double)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Color)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Guid)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Int32)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, Single)
Find a field with the specified key and get its value if found.
Public methodTryGetValue(String, String)
Find a field with the specified key and get its value if found.
Public methodTryGetValueT(String, T)
Parametrized version of TryGetValue.
Top
Examples
[System.Runtime.InteropServices.Guid("ABE4059B-9BD7-451C-91B2-67C2F188860A")] public class CustomMaterial : RenderMaterial { public override string TypeName { get { return "CSharp Custom Material"; } } public override string TypeDescription { get { return "My first custom .NET material"; } } public CustomMaterial() { Fields.AddField("bool", false, "Yes/No"); Fields.AddField("color", Rhino.Display.Color4f.White, "Color"); } }
Version Information

Rhino for Windows

Supported in: 6.14
See Also