public class GH_Hatch : GH_GeometricGoo<Hatch>, IGH_GeometricGoo, IGH_BakeAwareData, IGH_PreviewData
Represents an implementation of a Rhino hatch.
Constructors
GH_Hatch
#public GH_Hatch(GH_Hatch other)
Create a duplicate of another GH_Hatch. This constructor also copies reference data.
Parameters:
| other (GH_Hatch) | Hatch to duplicate |
GH_Hatch
#Create a new referenced hatch that references a Rhino hatch with the specified ID.
Parameters:
| ref_guid (Guid) | ID of hatch object to reference. |
GH_Hatch
#Create a duplicate of an existing hatch.
Parameters:
| hatch (Hatch) | Hatch to duplicate |
| pattern (ModelHatchPattern) |
Fields
m_value
protected T m_value
Properties
BackgroundColor
#public Color BackgroundColor { get; set; }
BackgroundPlotColor
#public Color BackgroundPlotColor { get; set; }
BoundaryColor
#public Color BoundaryColor { get; set; }
BoundaryColorSource
#BoundaryPlotColor
#public Color BoundaryPlotColor { get; set; }
BoundaryPlotColorSource
#IsGeometryLoaded
#Gets the load state of this hatch object. The hatch is considered to be loaded when the local hatch instance is not null.
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 this hatch. If the hatch is referenced but cannot be loaded, the hatch is not 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
Pattern
#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 override void ClearCaches()
Clears all volatile caches for this instance. The boundingbox is cleared, and if the hatch is referenced, the local instance of the hatch is erased.
Overrides: GH_GeometricGoo<T>.ClearCaches
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
#If the hatch is referenced and not yet loaded, attempts to load the hatch.
Parameters:
| doc (RhinoDoc) |
Returns: True if the hatch is loaded (or if it was already loaded), False on failure.
Overrides: GH_GeometricGoo<T>.LoadGeometry