GH_GraphContainer
ReferencesConstructors
Fields
m_graphpath
#protected GraphicsPath m_graphpath
Properties
Region
#Methods
ClearCaches
#public void ClearCaches()
Duplicate
#Internal_Render_Grip
#Internal_Render_HorizontalConstraint
#Internal_Render_TagGDIObjects
#protected void Internal_Render_TagGDIObjects(float zoom, ref SolidBrush bg_brush, ref SolidBrush fg_brush, ref Pen fg_pen)
Parameters:
| zoom (float) | |
| bg_brush (ref SolidBrush) | |
| fg_brush (ref SolidBrush) | |
| fg_pen (ref Pen) |
Internal_Render_TextTag
#protected void Internal_Render_TextTag(Graphics g, RectangleF graphrec, bool lowerright, string tag)
Parameters:
| g (Graphics) | |
| graphrec (RectangleF) | |
| lowerright (bool) | |
| tag (string) |
Internal_Render_VerticalConstraint
#NearestGrip
#Returns the grip closest to the sample point.
PrepareForUse
#public void PrepareForUse()
RemapPointsToGraphRegion
#public void RemapPointsToGraphRegion(PointF[] pts)
Parameters:
| pts (PointF[]) |
Render
#Render_GraphBackground
#Renders the default Graph background.
Parameters:
| G (Graphics) | Graphics object to render with |
| region (RectangleF) | The region of the graph. |
| bActive (bool) | If true, a slightly less transparent background colour is used. |
Render_GraphGrid
#Renders the default Grah grid. The default grid is a division od 10x10 cells along the graph region irregardless of domain ranges
Parameters:
| G (Graphics) | |
| region (RectangleF) |
Render_GuidePen
#Gets the default pen used to draw grip guides. The default pen is Red with a 2.0f/2.0f dash pattern. This function returns a NEW instance of that pen, it is safe to dispose it.
RespondToMouseDoubleClick
#Parameters:
| sender (GH_Canvas) | |
| e (GH_CanvasMouseEvent) |
Implements: RespondToMouseDoubleClick
RespondToMouseDown
#Parameters:
| sender (GH_Canvas) | |
| e (GH_CanvasMouseEvent) |
Implements: RespondToMouseDown
RespondToMouseMove
#Parameters:
| sender (GH_Canvas) | |
| e (GH_CanvasMouseEvent) |
Implements: RespondToMouseMove
SolveGraphPath
#ToRegionBox
#public PointF ToRegionBox(PointF pt)
Remap a point in Unit box coordinates onto the Region box
Parameters:
| pt (PointF) | Point to map |
ToRegionBox_x
#Remap an x coordinate from the unit domain onto the region x domain
Parameters:
| x (double) |
ToRegionBox_y
#Remap an y coordinate from the unit domain onto the region y domain
Parameters:
| y (double) |
ToUnitBox
#public PointF ToUnitBox(PointF pt)
Remap a point in Region coordinates onto the Unit box.
Parameters:
| pt (PointF) | Point to map |
ToX
#Remaps a normalized value (0.0~1.0) onto the x-domain
Parameters:
| t_unit (double) | The normalized factor to remap |
ToY
#Remaps a normalized value (0.0~1.0) onto the y-range
Parameters:
| t_unit (double) | The normalized value to remap |
TryValueAt
#Attempts to evaluate a single parameter.
Parameters:
| t (double) | the parameter to evaluate |
Returns: The solution, or NaN if an exception was thrown during solution.