Constructors

GH_AbstractGraph

#
protected GH_AbstractGraph(string nName, string nDescription)
nName (string)
nDescription (string)

Properties

Description

#
public string Description { get; }
Description

GraphTypeID

#
public abstract Guid GraphTypeID { get; }
GraphTypeID

Grips

#
public List<GH_GraphGrip> Grips { get; }
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.
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(GH_GraphGrip Grip)
Grip (GH_GraphGrip)

ClearCaches

#
public virtual void ClearCaches()
ClearCaches

ClearGrips

#
protected void ClearGrips()

CreateDerivedDuplicate

#
protected abstract GH_AbstractGraph 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.
Remarks: If you don't want to use the base class copy-logic. Override Duplicate() instead.

CreateGrips

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

CurveToPointFArray

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

Draw_PostRenderGraph

#
public virtual void Draw_PostRenderGraph(Graphics g, GH_GraphContainer cnt)
g (Graphics)
cnt (GH_GraphContainer)

Draw_PostRenderGrid

#
public virtual void Draw_PostRenderGrid(Graphics g, GH_GraphContainer cnt)
g (Graphics)
cnt (GH_GraphContainer)

Draw_PostRenderGrip

#
public virtual void Draw_PostRenderGrip(Graphics g, GH_GraphContainer cnt, int index)
g (Graphics)
cnt (GH_GraphContainer)
index (int)

Draw_PostRenderTags

#
public virtual void Draw_PostRenderTags(Graphics g, GH_GraphContainer cnt)
g (Graphics)
cnt (GH_GraphContainer)

Draw_PreRenderGraph

#
public virtual GH_GraphDrawInstruction Draw_PreRenderGraph(Graphics g, GH_GraphContainer cnt)
g (Graphics)
cnt (GH_GraphContainer)

Draw_PreRenderGrid

#
public virtual GH_GraphDrawInstruction Draw_PreRenderGrid(Graphics g, GH_GraphContainer cnt)
g (Graphics)
cnt (GH_GraphContainer)
Draw_PreRenderGrid

Draw_PreRenderGrip

#
public virtual GH_GraphDrawInstruction Draw_PreRenderGrip(Graphics g, GH_GraphContainer cnt, int index)
g (Graphics)
cnt (GH_GraphContainer)
index (int)
Draw_PreRenderGrip

Draw_PreRenderTags

#
public virtual GH_GraphDrawInstruction Draw_PreRenderTags(Graphics g, GH_GraphContainer cnt)
g (Graphics)
cnt (GH_GraphContainer)
Draw_PreRenderTags

Duplicate

#
public virtual IGH_Graph Duplicate()
Duplicate

EmitProxyObject

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

GDI_GraphPath

#
public virtual PointF[] GDI_GraphPath(RectangleF reg)
reg (RectangleF)
GDI_GraphPath

GHGraphToPointArray

#
protected static PointF[] GHGraphToPointArray(RectangleF reg, double pix_accuracy, GH_Evaluator eval)
reg (RectangleF)
pix_accuracy (double)
eval (GH_AbstractGraph.GH_Evaluator)

GHGraphToPointArray

#
protected PointF[] GHGraphToPointArray(RectangleF reg, double pix_accuracy)
reg (RectangleF)
pix_accuracy (double)

Internal_GripChanged

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

IntersectionEvaluate

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

OnGraphChanged

#
public void OnGraphChanged(bool bIntermediate)
bIntermediate (bool)
OnGraphChanged

PrepareForUse

#
public virtual void 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()
PrepareForUse

Read

#
public abstract bool Read(GH_IReader reader)
reader (GH_IReader)
Read

UpdateEquation

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

ValueAt

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

Write

#
public abstract bool Write(GH_IWriter writer)
writer (GH_IWriter)
Write

Events

GraphChanged

#
public event IGH_Graph.GraphChangedEventHandler GraphChanged
GraphChanged