Field Class

Field Class

Generic data fields used to add publicly accessible properties to RenderContent.FieldDictionary. These should be created by calling a FieldDictaionary.Add() method on a Render content object. These are allocated after the RenderContent object's C++ object is created and added to the underlying C++ objects content dictionary, who ever allocates a field is responsible for deleting it so these objects clean up the C++ pointers when they are disposed of.
Inheritance Hierarchy
SystemObject
  Rhino.Render.FieldsField
    More...

Namespace:  Rhino.Render.Fields
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public abstract class Field
Public MustInherit Class Field

The Field type exposes the following members.

Constructors
  NameDescription
Protected methodField(RenderContent, IntPtr)
Initializes a new instance of the Field class
Protected methodField(RenderContent, String)
Initializes a new instance of the Field class
Protected methodField(RenderContent, String, String, Object, Boolean)
Initializes a new instance of the Field class
Top
Properties
  NameDescription
Public propertyKey Obsolete.
Field name value string passed to the constructor
Public propertyName
Field name value string passed to the constructor.
Public propertyTag
Gets or sets an object that contains data to associate with the field.
Top
Methods
  NameDescription
Protected methodCreateCppPointer
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Protected methodValueAsBool
Return field value as a bool.
Protected methodValueAsByteArray
Return field as a byte array.
Protected methodValueAsColor4f
Return field as a Rhino.Display.Color4f color value.
Protected methodValueAsDateTime
Return field as a DateTime value.
Protected methodValueAsDouble
Return field value as a double precision number.
Protected methodValueAsFloat
Return field value as floating point number.
Protected methodValueAsGuid
Return field value as Guid.
Protected methodValueAsInt
Return field value as integer.
Public methodValueAsObject
Protected methodValueAsPoint2d
Return field as a Rhino.Geometry.Point2d color value.
Protected methodValueAsPoint3d
Return field as a Rhino.Geometry.Point3d color value.
Protected methodValueAsPoint4d
Return field as a Rhino.Geometry.Point4d color value.
Protected methodValueAsString
Get field value as a string.
Protected methodValueAsTransform
Return field as a Rhino.Geometry.Transform color value.
Protected methodValueAsVector2d
Return field as a Rhino.Geometry.Vector2d color value.
Protected methodValueAsVector3d
Return field as a Rhino.Geometry.Vector3d color value.
Top
Version Information

Rhino for Windows

Supported in: 6.8
See Also
Inheritance Hierarchy