Constructors

GH_AbstractGraph

#
protected GH_AbstractGraph(
nName,
nDescription
)

Properties

Description

#
public string Description { get; }
Description

GraphTypeID

#
public abstract Guid GraphTypeID { get; }
GraphTypeID

Grips

#
Gets the grip collection, you'd be wise not to modify the collection. If you want to add or remove grips, use the AddGrip() and ClearGrips() methods instead.
public List<GH_GraphGrip> Grips { get; }
Grips

Icon_16x16

#
public abstract Image Icon_16x16 { get; }
Icon_16x16

IsValid

#
public abstract bool IsValid { get; }
IsValid

Name

#
public string Name { get; }
Name

Methods

AddGrip

#
protected void AddGrip()

ClearCaches

#
public virtual void ClearCaches()
ClearCaches

ClearGrips

#
protected void ClearGrips()

CreateDerivedDuplicate

#
Implement this function and return an instance of yourself with all specific values copied. All properties in the GH_AbstractGraph class are copied by the GH_AbstractGraph.
protected abstract GH_AbstractGraph CreateDerivedDuplicate()
Remarks: If you don't want to use the base class copy-logic. Override Duplicate() instead.

CreateGrips

#
Override this function if your Graph supports grip controls
protected virtual void CreateGrips()

CurveToPointFArray

#
protected static PointF[] CurveToPointFArray(
Crv,
dest
)

Draw_PostRenderGraph

#
public virtual void Draw_PostRenderGraph()

Draw_PostRenderGrid

#
public virtual void Draw_PostRenderGrid()

Draw_PostRenderGrip

#
public virtual void Draw_PostRenderGrip()

Draw_PostRenderTags

#
public virtual void Draw_PostRenderTags()

Draw_PreRenderGraph

#
public virtual GH_GraphDrawInstruction Draw_PreRenderGraph()

Draw_PreRenderGrid

#
public virtual GH_GraphDrawInstruction Draw_PreRenderGrid()
Draw_PreRenderGrid

Draw_PreRenderGrip

#
public virtual GH_GraphDrawInstruction Draw_PreRenderGrip()
Draw_PreRenderGrip

Draw_PreRenderTags

#
public virtual GH_GraphDrawInstruction Draw_PreRenderTags()
Draw_PreRenderTags

Duplicate

#
public virtual IGH_Graph Duplicate()
Duplicate

EmitProxyObject

#
Override this function if you want to be able to edit the graph through a PropertyGrid.
public virtual IGH_GraphProxyObject EmitProxyObject()
EmitProxyObject

GDI_GraphPath

#
public virtual PointF[] GDI_GraphPath()
GDI_GraphPath

GHGraphToPointArray

#
protected static PointF[] GHGraphToPointArray(
reg,
pix_accuracy,
eval
)

GHGraphToPointArray

#
protected PointF[] GHGraphToPointArray(
reg,
pix_accuracy
)

Internal_GripChanged

#
By default, the grip is clamped to the unit domain and UpdateEquation is called. If you want to alter this behaviour, override this function.
protected virtual void Internal_GripChanged(
grip,
bIntermediate
)

IntersectionEvaluate

#
Evaluates a curve by intersecting it with a vertical line at t
protected static double IntersectionEvaluate(
C,
Curve to evaluate. Curve physical domain has to be between 0.0 and 1.0.
offset
value to evaluate at.
)

OnGraphChanged

#
public void OnGraphChanged(
bIntermediate
)
OnGraphChanged

PrepareForUse

#
This function is called when the graph is about to be used for the first time, maybe more often. You're supposed to reset all defaults. By default, this function calls ClearGrips(), CreateGrips() and UpdateEquation()
public virtual void PrepareForUse()
PrepareForUse

Read

#
public abstract bool Read(
reader
)
Read

UpdateEquation

#
This function is usually called after a grip change. This is where you re-evaluate your equation constants based on grip locations.
protected virtual void UpdateEquation()

ValueAt

#
This function supplies evaluation logic for the unit domains
public abstract double ValueAt(
t
parameter in unit domain to evaluate
)
ValueAt

Write

#
public abstract bool Write(
writer
)
Write

Events

GraphChanged

#
public event IGH_Graph.GraphChangedEventHandler GraphChanged
GraphChanged