Field
ReferencesGeneric 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.
Constructors
Field
#Parameters:
| renderContent (RenderContent) | |
| pointer (nint) |
Field
#Field
#Field
#protected Field(RenderContent renderContent, string name, string prompt, object initialValue, bool isTextured)
Parameters:
| renderContent (RenderContent) | |
| name (string) | |
| prompt (string) | |
| initialValue (object) | |
| isTextured (bool) |
Field
#Parameters:
| renderContent (RenderContent) | |
| name (string) |
Properties
[EditorBrowsable(EditorBrowsableState.Never)]
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public string Key { get; }
obsoleteThe Rhino.Render.Fields.Field.Key property is obsolete, use Name instead.
Field name value string passed to the constructor
Gets or sets an object that contains data to associate with the field.
Returns: An object that contains information that is associated with the field.
Set Max value for Texture amount
Set Min value for Texture amount
True if 'texture amount' is in use, otherwise false. The 'texture amount' is represented as a numeric stepper in the UI. If true, then the stepper is shown. If false, then the stepper is hidden.
Methods
CreateCppPointer
#public T GetValue<T>()
Parametrized version of GetValue calling appropriate ValueAs* methods.
Returns: Value of type T of the field
ValueAsColor4f
#Return field as a Rhino.Display.Color4f color value.
Returns: Return field as a Rhino.Display.Color4f color value.
ValueAsDouble
#Return field value as a double precision number.
Returns: Return the field value as a double precision number.
ValueAsFloat
#Return field value as floating point number.
Returns: Return the field value as an floating point number.
ValueAsPoint2d
#Return field as a Rhino.Geometry.Point2d color value.
Returns: Return field as a Rhino.Geometry.Point2d color value.
ValueAsPoint3d
#Return field as a Rhino.Geometry.Point3d color value.
Returns: Return field as a Rhino.Geometry.Point3d color value.
ValueAsPoint4d
#Return field as a Rhino.Geometry.Point4d color value.
Returns: Return field as a Rhino.Geometry.Point4d color value.
ValueAsTransform
#Return field as a Rhino.Geometry.Transform color value.
Returns: Return field as a Rhino.Geometry.Transform color value.
ValueAsVector2d
#Return field as a Rhino.Geometry.Vector2d color value.
Returns: Return field as a Rhino.Geometry.Vector2d color value.