Represents a 3D line segment. GH_Line re-implements the OpenNURBS OnLine class.
Constructors
Fields
m_value
protected T m_value
Properties
IsGeometryLoaded
Gets a value indicating whether or not this geometry is currently loaded (assuming it is referenced). Not all IGH_GeometricGoo implementations support referenced geometry. The default is to always return True.
Implements: 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 this instance. Lines with zero length are not considered to be valid.
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
ReferenceID
Gets or sets the Guid of the object that is referenced. Not all IGH_GeometricGoo implementations support referenced geometry. The default implementation is to always return Guid.Empty.
Implements: ReferenceID
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
EmitProxy
#Returns a proxy that represents this line. Do not call this function unless you're
Overrides: GH_GeometricGoo<T>.EmitProxy
LoadGeometry
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry.
Implements: LoadGeometry
LoadGeometry
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry. The default is to always return True.
Parameters:
| doc (RhinoDoc) | Document to use for loading. |
Implements: 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