Constructors

GH_GraphContainer

#
public GH_GraphContainer(
n_graph,
n_x0,
n_x1,
n_y0,
n_y1
)

GH_GraphContainer

#
public GH_GraphContainer(
n_graph
)

Fields

m_graphpath

#
protected GraphicsPath m_graphpath

Properties

DisplayScale

#
Gets or sets the display scale for this graph.
public float DisplayScale { get; set; }

Graph

#
public IGH_Graph Graph { get; set; }

LockGrips

#
public bool LockGrips { get; set; }

Region

#
public RectangleF Region { get; set; }

X0

#
public double X0 { get; set; }

X1

#
public double X1 { get; set; }

Y0

#
public double Y0 { get; set; }

Y1

#
public double Y1 { get; set; }

Methods

ClearCaches

#
public void ClearCaches()

Duplicate

#
public GH_GraphContainer Duplicate()

FromX

#
Remaps a domain value onto the unit-domain
public double FromX(
t
The factor to remap
)

FromY

#
Remaps a domain value onto the unit-range
public double FromY(
t
The factor to remap
)

Internal_Render_Graph

#
protected void Internal_Render_Graph()

Internal_Render_Grip

#
protected void Internal_Render_Grip()

Internal_Render_Grips

#
protected void Internal_Render_Grips()

Internal_Render_HorizontalConstraint

#
protected void Internal_Render_HorizontalConstraint()

Internal_Render_InvalidIcon

#
protected void Internal_Render_InvalidIcon()

Internal_Render_LockedIcon

#
protected void Internal_Render_LockedIcon()

Internal_Render_TagGDIObjects

#
protected void Internal_Render_TagGDIObjects(
zoom,
bg_brush,
fg_brush,
ref Pen
fg_pen
)

Internal_Render_TagX

#
protected void Internal_Render_TagX(
g,
graphrec,
r_a,
r_b
)

Internal_Render_TagY

#
protected void Internal_Render_TagY(
g,
graphrec,
r_a,
r_b
)

Internal_Render_TextTag

#
protected void Internal_Render_TextTag(
g,
graphrec,
lowerright,
tag
)

Internal_Render_VerticalConstraint

#
protected void Internal_Render_VerticalConstraint()

NearestGrip

#
Returns the grip closest to the sample point.
protected int NearestGrip(
PointF
pt,
Point in graph region coordinates.
max_search
Maximum search radius in graph region units.
)
The index of the nearest grip, or -1 if no grip was found within the search radius.

OnGraphChanged

#
public void OnGraphChanged(
bIntermediate
)

PrepareForUse

#
public void PrepareForUse()

Read

#
public bool Read(
reader
)
Read

RemapPointsToGraphRegion

#
public void RemapPointsToGraphRegion(
PointF[]
pts
)

Render

#
public void Render(
G,
bIncludeDomainTags,
samples
)

Render_GraphBackground

#
Renders the default Graph background.
public static void Render_GraphBackground(
G,
Graphics object to render with
region,
The region of the graph.
bActive
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
public static void Render_GraphGrid()

Render_GraphPen

#
Gets the default pen used to draw graph curves.
public Pen Render_GraphPen()

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.
public static Pen Render_GuidePen()

Render_HorizontalConstraint

#
public static void Render_HorizontalConstraint()

Render_VerticalConstraint

#
public static void Render_VerticalConstraint()

RespondToKeyDown

#
public GH_ObjectResponse RespondToKeyDown()
RespondToKeyDown

RespondToKeyUp

#
public GH_ObjectResponse RespondToKeyUp()
RespondToKeyUp

RespondToMouseDoubleClick

#
public GH_ObjectResponse RespondToMouseDoubleClick()

RespondToMouseDown

#
public virtual GH_ObjectResponse RespondToMouseDown()
RespondToMouseDown

RespondToMouseMove

#
public virtual GH_ObjectResponse RespondToMouseMove()
RespondToMouseMove

RespondToMouseUp

#
public virtual GH_ObjectResponse RespondToMouseUp()
RespondToMouseUp

SolveGraphPath

#
protected GraphicsPath SolveGraphPath()

ToRegionBox

#
Remap a point in Unit box coordinates onto the Region box
public PointF ToRegionBox(
PointF
pt
Point to map
)

ToRegionBox_x

#
Remap an x coordinate from the unit domain onto the region x domain
public float ToRegionBox_x()

ToRegionBox_y

#
Remap an y coordinate from the unit domain onto the region y domain
public float ToRegionBox_y()

ToUnitBox

#
Remap a point in Region coordinates onto the Unit box.
public PointF ToUnitBox(
PointF
pt
Point to map
)

ToX

#
Remaps a normalized value (0.0~1.0) onto the x-domain
public double ToX(
t_unit
The normalized factor to remap
)

ToY

#
Remaps a normalized value (0.0~1.0) onto the y-range
public double ToY(
t_unit
The normalized value to remap
)

TryValueAt

#
Attempts to evaluate a single parameter.
public double TryValueAt(
t
the parameter to evaluate
)
The solution, or NaN if an exception was thrown during solution.

ValueAt

#
Evaluates a single parameter.
public double ValueAt(
t
the parameter to evaluate
)

Write

#
public bool Write(
writer
)
Write

Events

GraphChanged

#
This event is raised whenever the underlying graph changes.
public event GH_GraphContainer.GraphChangedEventHandler GraphChanged