Properties
Methods
ClearCaches
#void 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.
Draw_PostRenderGraph
#Override this function if you want to draw something on top of the Graph curve.
Parameters:
| g (Graphics) | Graphics object to draw with |
| cnt (GH_GraphContainer) | 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.
Parameters:
| g (Graphics) | Graphics object to draw with |
| cnt (GH_GraphContainer) | 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
Parameters:
| g (Graphics) | Graphics object to draw with |
| cnt (GH_GraphContainer) | The container that owns this graph instance and is responsible for the drawing. |
| index (int) | 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
Parameters:
| g (Graphics) | Graphics object to draw with |
| cnt (GH_GraphContainer) | 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
Parameters:
| g (Graphics) | Graphics object to draw with |
| cnt (GH_GraphContainer) | The container that owns this graph instance and is responsible for the drawing. |
Returns: 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.
Parameters:
| g (Graphics) | Graphics object to draw with |
| cnt (GH_GraphContainer) | The container that owns this graph instance and is responsible for the drawing. |
Returns: 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
Parameters:
| g (Graphics) | Graphics object to draw with |
| cnt (GH_GraphContainer) | The container that owns this graph instance and is responsible for the drawing. |
| index (int) | The index of the grip that is about to be drawn |
Returns: 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
Parameters:
| g (Graphics) | Graphics object to draw with |
| cnt (GH_GraphContainer) | The container that owns this graph instance and is responsible for the drawing. |
Returns: If the return code is GH_GraphDrawInstruction.skip, the container will not draw the default tags.
EmitProxyObject
#Override this function if you want to be able to edit the graph through a PropertyGrid.
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.
Parameters:
| reg (RectangleF) | The region (in canvas coordinates) of the graph rectangle. |
PrepareForUse
#void PrepareForUse()
This method is called when a Graph is about to be displayed/used, maybe for the first time ever, maybe not.
Read
This method is called whenever the instance is required to deserialize itself.
Parameters:
| reader (GH_IReader) | Reader object to deserialize from. |
Returns: True on success, false on failure.
ValueAt
#Evaluates a single parameter in the unit range
Parameters:
| t (double) | the parameter to evaluate |
Write
This method is called whenever the instance is required to serialize itself.
Parameters:
| writer (GH_IWriter) | Writer object to serialize with. |
Returns: True on success, false on failure.