Rhino C++ API
8.10
|
#include <RhRdkCurveGraph.h>
Classes | |
class | IPoint |
Public Types | |
enum | NotificationContexts : unsigned int { NotificationContexts::Points, NotificationContexts::Cursor, NotificationContexts::Menu, NotificationContexts::PtDblClick } |
Notification contexts. More... | |
enum | ScaleModes : unsigned int { ScaleModes::Bounds, ScaleModes::Constraints, ScaleModes::Display } |
Scale modes. More... | |
enum | Styles : unsigned int { Styles::Gray, Styles::RGB, Styles::RGBA } |
Styles. More... | |
enum | TextModes : unsigned int { TextModes::Always, TextModes::WhenSelected, TextModes::WhenOneSelected, TextModes::Never } |
Text modes. More... | |
Public Member Functions | |
virtual void | AddPoint (int iCurve, double x, double y, double dTanX, double dTanY, bool bSelect)=0 |
virtual void | AddPoints (double x, double y, double dTanX, double dTanY, bool bSelect)=0 |
virtual void | ConstraintsX (double &dMinOut, double &dMaxOut) const =0 |
virtual void | ConstraintsY (double &dMinOut, double &dMaxOut) const =0 |
virtual int | CountSelection (bool bIncludeTanPoints) const =0 |
virtual bool | CursorOn (void) const =0 |
virtual double | CursorPosition (void) const =0 |
virtual void | DeleteSelectedPoints (void)=0 |
virtual double | DisplayMax (void) const =0 |
virtual double | DisplayMin (void) const =0 |
virtual void | DoAutoScaling (bool bAnimate=true, bool bForce=false, bool bScaleX=true, bool bScaleY=true)=0 |
virtual bool | DragZoomingOn (void) const =0 |
virtual CPoint | GraphToPixel (double x, double y) const =0 |
virtual bool | GridFrequencyOn (void) const =0 |
virtual ON_Color | InnerColor (void) const =0 |
virtual void | InvertSelection (bool bIncludeTanPoints)=0 |
virtual void | MoveSelectedPoints (int dx, int dy)=0 |
virtual bool | MultiSelect (void) const =0 |
virtual ON_Color | OuterColor (void) const =0 |
virtual ON_2dPoint | PixelToGraph (int x, int y) const =0 |
virtual ON_Color | PointColor (void) const =0 |
virtual int | PointPickMargin (void) const =0 |
virtual ON_Color | PointSelectedColor (void) const =0 |
virtual int | PointSize (void) const =0 |
virtual double | PointSnapX (void) const =0 |
virtual double | PointSnapY (void) const =0 |
virtual void | Reset (void)=0 |
virtual void | ResetAxes (double dScaleX=1.0, double dScaleY=1.0)=0 |
virtual bool | RulerOn (void) const =0 |
virtual ScaleModes | ScaleModeX (void) const =0 |
virtual ScaleModes | ScaleModeY (void) const =0 |
virtual void | SelectAllPoints (bool bIncludeTanPoints)=0 |
virtual void | SetAutoScalingParams (int iDelay, int iSteps)=0 |
virtual void | SetConstraintsX (double dMin, double dMax)=0 |
virtual void | SetConstraintsY (double dMin, double dMax)=0 |
virtual void | SetCursorOn (bool bOn)=0 |
virtual void | SetCursorPosition (double d)=0 |
virtual void | SetDisplayMax (double d)=0 |
virtual void | SetDisplayMin (double d)=0 |
virtual void | SetDragZoomingOn (bool bOn)=0 |
virtual void | SetGridFrequencies (double dMajorFreqX, double dMinorFreqX, double dMicroFreqX, double dMajorFreqY, double dMinorFreqY, double dMicroFreqY)=0 |
virtual void | SetGridFrequencyOn (bool bOn)=0 |
virtual void | SetInnerColor (const ON_Color &col)=0 |
virtual void | SetMargins (int l, int t, int r, int b)=0 |
virtual void | SetMultiSelect (bool bMultiSelect)=0 |
virtual void | SetNotificationHandler (IRhRdkNotificationHandler *pNH)=0 |
virtual void | SetOuterColor (const ON_Color &col)=0 |
virtual void | SetPointColor (const ON_Color &col)=0 |
virtual void | SetPointPickMargin (int iMargin)=0 |
virtual void | SetPointSelectedColor (const ON_Color &col)=0 |
virtual void | SetPointSize (int iSize)=0 |
virtual void | SetPointSnapX (double dSnap)=0 |
virtual void | SetPointSnapY (double dSnap)=0 |
virtual void | SetRulerColors (const ON_Color &colInt, const ON_Color &colFrac)=0 |
virtual void | SetRulerOn (bool bOn)=0 |
virtual void | SetScaleModeX (ScaleModes m)=0 |
virtual void | SetScaleModeY (ScaleModes m)=0 |
virtual void | SetShadeConstraints (bool bOn)=0 |
virtual void | SetTangentColor (const ON_Color &col)=0 |
virtual void | SetTangentScale (double d)=0 |
virtual void | SetTangentSnapToAngle (double dAngle)=0 |
virtual void | SetTextColor (const ON_Color &col)=0 |
virtual void | SetTextMode (TextModes m)=0 |
virtual void | SetUseAutoScaling (bool bOn)=0 |
virtual bool | ShadeConstraints (void) const =0 |
virtual Styles | Style (void) const =0 |
virtual ON_Color | TangentColor (void) const =0 |
virtual double | TangentScale (void) const =0 |
virtual double | TangentSnapToAngle (void) const =0 |
virtual ON_Color | TextColor (void) const =0 |
virtual TextModes | TextMode (void) const =0 |
virtual void | UnselectAllPoints (bool bIncludeTanPoints)=0 |
virtual bool | UseAutoScaling (void) const =0 |
virtual void | ZoomToExtents (void)=0 |
virtual void | ZoomToGraphRect (const ON_2dPoint &pt1, const ON_2dPoint &pt2)=0 |
virtual void | ZoomToPixelRect (const ON_4iRect &rect)=0 |
![]() | |
virtual ON_wString | Caption (bool bAlwaysEnglish=false) const =0 |
virtual void | Delete (void)=0 |
virtual void | Enable (bool bEnable)=0 |
virtual void * | EVF (const wchar_t *wszFunc, void *pvData)=0 |
virtual void | GetScreenCoords (ON_4iRect &rectOut) const =0 |
virtual HWND | GetWindow (void)=0 |
virtual bool | IsCreated (void) const =0 |
virtual bool | IsEnabled (void) const =0 |
virtual bool | IsShown (void) const =0 |
virtual void | Move (const ON_4iRect &rect, bool bRepaint=false, bool bRepaintBorder=false)=0 |
virtual HWND | Parent (void) const =0 |
virtual void | Refresh (bool bImmediate=false)=0 |
virtual void | SetFocus (void)=0 |
virtual void | SetParent (HWND parent)=0 |
virtual void | Show (bool bShow)=0 |
Static Public Member Functions | |
static IRhRdkCustomCurveCtrl * | New (Styles style, RhRdkUiFrameworks f) |
Protected Member Functions | |
virtual | ~IRhRdkCustomCurveCtrl () |
![]() | |
virtual | ~IRhinoUiWindow () |
|
strong |
|
strong |
|
strong |
|
strong |
|
inlineprotectedvirtual |
|
pure virtual |
Adds a point to a curve.
|
pure virtual |
Adds a point to each curve in the control.
|
pure virtual |
Get the min/max X constraint values used when the X scale mode is 'constraints'.
|
pure virtual |
Get the min/max Y constraint values used when the Y scale mode is 'constraints'.
|
pure virtual |
Count how many points are selected on all the curves.
bIncludeTanPoints | indicates if tangent points should also be counted. |
|
pure virtual |
Report if the cursor is on or off.
|
pure virtual |
Get the cursor position.
|
pure virtual |
Delete all the selected points from all the curves.
|
pure virtual |
Get the max X display value used when the X scale mode is 'display'.
|
pure virtual |
Get the min X display value used when the X scale mode is 'display'.
|
pure virtual |
Ask display to automatically scale.
bAnimate | if true, the scaling is animated. |
bForce | if true, the method works even if auto-scaling is disabled. |
bScaleX | is to include scaling in X. |
bScaleY | is to include scaling in Y. |
|
pure virtual |
Get whether drag-zooming mode is on or off.
|
pure virtual |
Convert graph coordinates to client area pixel coordinates.
|
pure virtual |
|
pure virtual |
Get the color of the graph's interior.
|
pure virtual |
Invert the selection on all enabled curves.
bIncludeTanPoints | indicates if tangent points should also be affected. |
|
pure virtual |
Move all the selected points on all the curves by a pixel offset. If snap-to-grid is on, points will be snapped to the grid.
|
pure virtual |
|
static |
STARTING WITH RHINO 8, THIS CONTROL IS DEPRECATED AND DOES NOT WORK. See [DEPCTL]
|
pure virtual |
Get the color of the graph's exterior border.
|
pure virtual |
Convert client area pixel coordinates to graph coordinates.
|
pure virtual |
Get the color of an unselected curve point for all curves.
|
pure virtual |
|
pure virtual |
Get the color of a selected curve point for all curves.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Resets the control to factory defaults.
|
pure virtual |
Reset the scale and origin of the axes to their factory settings. Change scale values to < 1 to show axes even when no curves are present.
|
pure virtual |
Report if the ruler is on or off.
|
pure virtual |
Get the X scale mode.
|
pure virtual |
Get the Y scale mode.
|
pure virtual |
Select all the points on all the curves.
bIncludeTanPoints | indicates if tangent points should also be selected. |
|
pure virtual |
Set auto-scaling animation parameters. Only used if auto-scaling is enabled.
iDelay | is the animation delay in milliseconds. Use zero to disable animation. |
iSteps | is the number of animation steps. |
|
pure virtual |
Set the min/max X constraint values used when the X scale mode is 'constraints'.
|
pure virtual |
Set the min/max Y constraint values used when the Y scale mode is 'constraints'.
|
pure virtual |
Set the cursor on or off.
|
pure virtual |
Set the cursor position.
|
pure virtual |
Set the max X display value used when the X scale mode is 'display'.
|
pure virtual |
Set the min X display value used when the X scale mode is 'display'.
|
pure virtual |
Set drag-zooming mode on or off.
|
pure virtual |
Set the frequency of the major and minor grids in each axis. The defaults are major=1.0 and minor=0.1.
dMajorFreqX | sets the frequency of the x-axis major grid. Use zero to disable this grid. |
dMinorFreqX | sets the frequency of the x-axis minor grid. Use zero to disable this grid. |
dMicroFreqX | sets the frequency of the x-axis micro grid. Use zero to disable this grid. |
dMajorFreqY | sets the frequency of the y-axis major grid. Use zero to disable this grid. |
dMinorFreqY | sets the frequency of the y-axis minor grid. Use zero to disable this grid. |
dMicroFreqY | sets the frequency of the y-axis micro grid. Use zero to disable this grid. |
|
pure virtual |
By default, the grid looks nice and shows zooming but has no real meaning. Use this method to switch the grid to show a fixed frequency instead.
|
pure virtual |
OBSOLETE.
|
pure virtual |
Set the margins between the inner graph and the outer window frame.
|
pure virtual |
Set the multi-select state of the curve. If true, multiple overlapping points on different curves will be selected with a single mouse click.
|
pure virtual |
Set a notification handler. RDK takes ownership of the object. When IRhRdkNotificationHandler::OnNotify(), OnBeginNotify() or OnEndNotify() are called, the type of the vOld and vNew variants will be as follows:
|
pure virtual |
OBSOLETE.
|
pure virtual |
OBSOLETE.
|
pure virtual |
Set the pick margin of a selectable point.
|
pure virtual |
OBSOLETE.
|
pure virtual |
Set the point size of a selectable point.
|
pure virtual |
Set the resolution for point snap-to-grid in X. Use zero to disable snap-to-grid in X.
|
pure virtual |
Set the resolution for point snap-to-grid in Y. Use zero to disable snap-to-grid in Y.
|
pure virtual |
OBSOLETE.
|
pure virtual |
Set the ruler on or off.
|
pure virtual |
Set the X scale mode.
|
pure virtual |
Set the Y scale mode.
|
pure virtual |
Set whether or not the area outside the contraints is shaded.
|
pure virtual |
OBSOLETE.
|
pure virtual |
Set the scaling for displaying tangents on all curves.
|
pure virtual |
Set the angle to snap tangent points to when the shift key is down.
|
pure virtual |
OBSOLETE.
|
pure virtual |
Set the text mode.
|
pure virtual |
Set whether or not auto-scaling is enabled.
|
pure virtual |
|
pure virtual |
Get the style that the control was created with.
|
pure virtual |
Get the color of tangent lines and points for all curves.
|
pure virtual |
Get the scaling for displaying tangents on all curves.
|
pure virtual |
|
pure virtual |
Get the color of the graph's text.
|
pure virtual |
|
pure virtual |
Unselect all the points on all enabled curves.
bIncludeTanPoints | indicates if tangent points should also be unselected. |
|
pure virtual |
|
pure virtual |
Ask display to zoom such that all points on all curves fit within the window.
|
pure virtual |
Ask display to zoom to a rectangle, in graph coords.
|
pure virtual |
Ask display to zoom to a rectangle, in pixels.