Constructors
GH_ColourWheelState
#public GH_ColourWheelState()
GH_ColourWheelState
#public GH_ColourWheelState(GH_ColourWheelState other)
Parameters:
| other (GH_ColourWheelState) |
Fields
Properties
Methods
BeginGripDrag
#Potentially start a new grip drag.
Parameters:
| cursor (Point3d) | Location of cursor in wheel coordinates. |
Returns: True if the cursor was near enough a grip to initiate a drag operation.
BeginGripDrag
#Potentially start a new grip drag.
Parameters:
| cursor (PointF) | Location of cursor in wheel coordinates. |
Returns: True if the cursor was near enough a grip to initiate a drag operation.
ContinueGripDrag
#If BeginGrip(3)rag returned true, call this method on subsequent mousemoves.
Parameters:
| cursor (Point3d) | Location of cursor in wheel coordinates. |
Returns: True if the drag resulted in a change.
ContinueGripDrag
#If BeginGrip(3)rag returned true, call this method on subsequent mousemoves.
Parameters:
| cursor (PointF) | Location of cursor in wheel coordinates. |
Returns: True if the drag resulted in a change.
CreatePalette
#Generate a colour palette based on the current state.
GetGrip
#Gets the location of a grip of the colour wheel. Grips will be returned irrespective of style.
Parameters:
| grip (GH_ColourWheelGrip) | Grip to get. Main grips will be on the wheel, range grips slightly on the inside. |
Returns: Point on the colour wheel.
GripAtPoint
#Find the grip near a point.
Parameters:
| point (Point3d) | Location of point in wheel coordinates. |
Returns: Grip closest to location or GH_ColourWheelGrip.NoGrip if no grip was near the point.
GripAtPoint
#Find the grip near a point. Whether or not a grip is considered depends on the Style of this wheel.
Parameters:
| point (PointF) | Location of point in wheel coordinates. |
Returns: Grip closest to location or GH_ColourWheelGrip.NoGrip if no grip was near the point.
RenderWheel
#Render the wheel to a graphics surface.
SetGrip
#Set a single grip to a new location.
Parameters:
| grip (GH_ColourWheelGrip) | Byval grip to set. |
| position (Point3d) | New grip position. |
Returns: True if the grips were changed.