public class GH_Plane : GH_GeometricGoo<Plane>, IGH_BakeAwareData, IGH_PreviewData, IGH_GeometricGoo
Represents a 3D plane. GH_Plane re-implements the OpenNURBS OnPlane class.
Constructors
Fields
m_value
protected T m_value
Properties
IsGeometryLoaded
#Gets the load state of this plane. The plane is considered to be loaded when it is valid.
Overrides: GH_GeometricGoo<T>.IsGeometryLoaded
IsReferencedGeometry
Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
Implements: IsReferencedGeometry
IsValid
#Gets the validity of the plane. If the plane is invalid, attempts are made to fix the data. If the plane remains invalid, False is returned.
Overrides: GH_GeometricGoo<T>.IsValid
IsValidWhyNot
#Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Overrides: GH_Goo<T>.IsValidWhyNot
Value
public override T Value { get; set; }
Gets or sets the value of this type. Note that if the type has a ReferenceID this value might get destroyed in the future.
Overrides: GH_Goo<T>.Value
Methods
BakeGeometry
#Parameters:
| doc (RhinoDoc) | |
| att (ObjectAttributes) | |
| obj_guid (ref Guid) |
Implements: BakeGeometry
CastFrom
#Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
Parameters:
| source (object) |
Overrides: GH_GeometricGoo<T>.CastFrom
Remarks: If false, the target instance contents are not guaranteed to be valid.
Parameters:
| target (ref Q) | Pointer to target of cast. |
Returns: True on success, false on failure.
Implements: CastTo
CastTo<T>
#Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
Parameters:
| target (ref T) |
Overrides: GH_GeometricGoo<T>.CastTo
ClearCaches
public virtual void ClearCaches()
Clears all caches. Typically if the geometry is referenced, this will erase the local copy. If your T is a value-type, you must override this function and specifically unset the local value.
Implements: ClearCaches
DrawPlane
#public static void DrawPlane(DisplayPipeline display, Plane plane, double size, int frequency, Color grid_color, Color x_color, Color y_color, Color back_color)
DrawPlane
#public static void DrawPlane(DisplayPipeline display, Plane plane, double size, int frequency, Color grid_color, Color x_color, Color y_color, Color z_color, Color back_color)
DrawPlane
#public static void DrawPlane(DisplayPipeline display, Plane plane, double size, int frequency, Color grid_color, Color x_color, Color y_color)
DrawPlane
#Draw a plane with default colours and default size.
Parameters:
| display (DisplayPipeline) | |
| plane (Plane) |
DrawPlaneIcon
#public static void DrawPlaneIcon(DisplayPipeline display, Plane plane, double size, Color edgeColour, Color fillColour)
Parameters:
| display (DisplayPipeline) | |
| plane (Plane) | |
| size (double) | |
| edgeColour (Color) | |
| fillColour (Color) |
EmitProxy
#Returns a proxy that represents this plane. Do not call this function unless you're
Overrides: GH_GeometricGoo<T>.EmitProxy
LoadGeometry
#If the geometry is referenced and not yet loaded, attempts to load the geometry.
Returns: True if the geometry is loaded (or if it was already loaded), False on failure.
Overrides: GH_GeometricGoo<T>.LoadGeometry
LoadGeometry
#Parameters:
| doc (RhinoDoc) |
Overrides: GH_GeometricGoo<T>.LoadGeometry
ScriptVariable
This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
Returns: The default implementation of this function returns the Value instance.
Implements: ScriptVariable