Properties

Description

#
Gets the description of the graph type
string Description { get; }

GraphTypeID

#
Gets the ID of the graph type
Guid GraphTypeID { get; }

Grips

#
Gets the collection of grips that define this graph
List<GH_GraphGrip> Grips { get; }

Icon_16x16

#
Gets the icon associated with the graph
Image Icon_16x16 { get; }
Remarks: Icon can be null

IsValid

#
Gets the validity of the graph instance.
bool IsValid { get; }

Name

#
Gets the name of the graph type
string Name { get; }

Methods

ClearCaches

#
This method will be called when it is suspected that all caches have gone stale. If your graph class uses any custom caching, override this method and clear your caches.
void ClearCaches()

Draw_PostRenderGraph

#
Override this function if you want to draw something on top of the Graph curve.
void Draw_PostRenderGraph(
g,
Graphics object to draw with
cnt
The container that owns this graph instance and is responsible for the drawing.
)

Draw_PostRenderGrid

#
Override this function if you want to draw something on top of the Graph Grid.
void Draw_PostRenderGrid(
g,
Graphics object to draw with
cnt
The container that owns this graph instance and is responsible for the drawing.
)

Draw_PostRenderGrip

#
Override this function if you want to draw something on top of the current Grip
void Draw_PostRenderGrip(
g,
Graphics object to draw with
cnt,
The container that owns this graph instance and is responsible for the drawing.
index
The index of the grip that was just drawn
)

Draw_PostRenderTags

#
Override this function if you want to draw something on top of the Domain tags. This function is called whether or not cnt.LockGrips is true
void Draw_PostRenderTags(
g,
Graphics object to draw with
cnt
The container that owns this graph instance and is responsible for the drawing.
)

Draw_PreRenderGraph

#
Override this function if you want to draw something behind of or instead of the default Graph curve
GH_GraphDrawInstruction Draw_PreRenderGraph(
g,
Graphics object to draw with
cnt
The container that owns this graph instance and is responsible for the drawing.
)
If the return code is GH_GraphDrawInstruction.skip, the container will not draw the default Graph curve.

Draw_PreRenderGrid

#
Override this function if you want to draw something behind of or instead of the default Grid.
GH_GraphDrawInstruction Draw_PreRenderGrid(
g,
Graphics object to draw with
cnt
The container that owns this graph instance and is responsible for the drawing.
)
If the return code is GH_GraphDrawInstruction.skip, the container will not draw the default grid.

Draw_PreRenderGrip

#
Override this function if you want to draw something in addition to or instead of the current Grip
GH_GraphDrawInstruction Draw_PreRenderGrip(
g,
Graphics object to draw with
cnt,
The container that owns this graph instance and is responsible for the drawing.
index
The index of the grip that is about to be drawn
)
If the return code is GH_GraphDrawInstruction.skip, the container will not draw the default grid.

Draw_PreRenderTags

#
Override this function if you want to draw something behind of or instead of the default Domain tags. This function is called whether or not cnt.LockGrips is true
GH_GraphDrawInstruction Draw_PreRenderTags(
g,
Graphics object to draw with
cnt
The container that owns this graph instance and is responsible for the drawing.
)
If the return code is GH_GraphDrawInstruction.skip, the container will not draw the default tags.

Duplicate

#
Returns a full duplicate (perhaps minus any cache values) of the graph.
IGH_Graph Duplicate()

EmitProxyObject

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

GDI_GraphPath

#
Override this function if you wish to provide a customized graphics path for the UI of the graph. The region is only provided as a reference, the returned path points should be in unit domain coordinates.
PointF[] GDI_GraphPath(
reg
The region (in canvas coordinates) of the graph rectangle.
)

OnGraphChanged

#
void OnGraphChanged(
bIntermediate
)

PrepareForUse

#
This method is called when a Graph is about to be displayed/used, maybe for the first time ever, maybe not.
void PrepareForUse()

Read

This method is called whenever the instance is required to deserialize itself.
bool Read(
reader
Reader object to deserialize from.
)
inherited fromGH_ISerializable
True on success, false on failure.

ValueAt

#
Evaluates a single parameter in the unit range
double ValueAt(
t
the parameter to evaluate
)

Write

This method is called whenever the instance is required to serialize itself.
bool Write(
writer
Writer object to serialize with.
)
inherited fromGH_ISerializable
True on success, false on failure.

Events

GraphChanged

#
This event is raised whenever the graph changes.
event IGH_Graph.GraphChangedEventHandler GraphChanged