|
Rhino C++ API
9.0
|
#include <rhinoSdkUserInterfaceObject.h>
Public Types | |
| enum | GripShape { GripShape::Circle = 0, GripShape::Square = 1, GripShape::Triangle = 2, GripShape::X = 3 } |
Public Member Functions | |
| CRhinoGripUserInterfaceObject () | |
| CRhinoGripUserInterfaceObject (const ON_3dPoint &location) | |
| virtual | ~CRhinoGripUserInterfaceObject () |
| int | AddSnapPoints (int pointCount, const ON_3dPoint *snapPoints) |
| double | CameraDepth (const ON_Plane &cameraPlane) const override |
| void | ClearConstraints () |
| void | ClearSnapPoints () |
| ON_3dPoint | ComputeDragPoint (const CRhinoMouseEventArgs &mouse) |
| bool | Constrain (const ON_Arc &arc) |
| bool | Constrain (const ON_Circle &circle) |
| bool | Constrain (const ON_Curve &curve) |
| bool | Constrain (const ON_Line &line) |
| void | Draw (CRhinoDisplayPipeline &dp) override |
| void | EnableObjectSnapCursors (bool enable) |
| void | EnableOnObjectCursors (bool enable) |
| GripShape | GetGripShape () const |
| ON_Color | GripColor () const |
| ON_Color | GripFillColor () const |
| ON_3dPoint | GripLocation () const |
| float | GripRadius () const |
| float | GripShapeRotationRadians () const |
| float | GripStrokeWidth () const |
| bool | IsMouseOver (const CRhinoMouseEventArgs &mouse) override |
| bool | ObjectSnapCursorsEnabled () const |
| bool | ObjectSnapPermitted () const |
| virtual void | OnDrag (const ON_3dPoint &point, const CRhinoMouseEventArgs &mouse) |
| void | OnMouseDown (const CRhinoMouseEventArgs &mouse) override |
| void | OnMouseEnter (const CRhinoMouseEventArgs &mouse) override |
| void | OnMouseLeave (const CRhinoMouseEventArgs &mouse) override |
| void | OnMouseMove (const CRhinoMouseEventArgs &mouse) override |
| void | OnMouseUp (const CRhinoMouseEventArgs &mouse) override |
| bool | OnObjectCursorsEnabled () const |
| void | PermitObjectSnap (bool permit) |
| void | SetGripColor (const ON_Color &color) |
| void | SetGripFillColor (const ON_Color &color) |
| void | SetGripLocation (const ON_3dPoint &point) |
| void | SetGripRadius (float radius) |
| void | SetGripShape (GripShape shape) |
| void | SetGripShapeRotationRadians (float angle) |
| void | SetGripStrokeWidth (float width) |
Public Member Functions inherited from CRhinoUserInterfaceObject | |
| CRhinoUserInterfaceObject () | |
| virtual | ~CRhinoUserInterfaceObject () |
| void | Animate (CRhinoAnimatingDouble &value, double target, double duration, AnimationStyle style, CRhinoDoc *doc) |
| void | BindToActiveViewport (bool on) |
| void | BindToViewport (unsigned int viewport_sn) |
| int | DisplayOrder () const |
| ON_UUID | DocumentGroupId () const |
| unsigned int | DocumentRuntimeSerialNumber () const |
| bool | GetData (const wchar_t *key, bool &value) const |
| bool | GetData (const wchar_t *key, double &value) const |
| bool | GetData (const wchar_t *key, int &value) const |
| bool | GetData (const wchar_t *key, ON_UUID &value) const |
| bool | GetData (const wchar_t *key, ON_wString &value) const |
| bool | HasMouseCapture () const |
| bool | IsBoundToActiveViewport () const |
| unsigned int | IsBoundToViewport () const |
| virtual void | OnMouseClick (const CRhinoMouseEventArgs &mouse) |
| virtual void | OnMouseDoubleClick (const CRhinoMouseEventArgs &mouse) |
| virtual void | OnMouseWheel (const CRhinoMouseEventArgs &mouse, int delta) |
| virtual CRhinoCommand::result | OnRunCommand (const CRhinoCommandContext &context, const CRhinoMouseEventArgs &mouse) |
| virtual void | OnTrackpadScroll (const CRhinoMouseEventArgs &mouse, double horizontal, double vertical) |
| CRhinoUserInterfaceObject * | Parent () |
| const CRhinoUserInterfaceObject * | Parent () const |
| bool | ReceivesMouseWheelEvents () const |
| bool | ReceivesTrackpadScrollEvents () const |
| bool | RegisterForAllDocuments () |
| void | RunCommand (const CRhinoMouseEventArgs &mouse) |
| unsigned int | RuntimeSerialNumber () const |
| void | SetCursor (HCURSOR cursor) |
| void | SetData (const wchar_t *key, bool value) |
| void | SetData (const wchar_t *key, const wchar_t *value) |
| void | SetData (const wchar_t *key, double value) |
| void | SetData (const wchar_t *key, int value) |
| void | SetData (const wchar_t *key, ON_UUID value) |
| void | SetDisplayOrder (int order) |
| void | SetReceivesMouseWheelEvents (bool enable) |
| void | SetReceivesTrackpadScrollEvents (bool enable) |
| void | SetTooltip (const wchar_t *tooltip) |
| void | SetVisible (bool visible) |
| bool | UnregisterFromAllDocuments () |
| bool | Visible () const |
Protected Attributes | |
| class CRhGripUserInterfaceObjectPrivate * | m_grip_private = nullptr |
Protected Attributes inherited from CRhinoUserInterfaceObject | |
| class CRhUserInterfaceObjectPrivate * | m_private = nullptr |
Additional Inherited Members | |
Protected Member Functions inherited from CRhinoUserInterfaceObject | |
| virtual void | ContinueAnimate (CRhinoDoc *doc) |
| void | SetMouseCapture (CRhinoDoc *doc) |
|
strong |
| CRhinoGripUserInterfaceObject::CRhinoGripUserInterfaceObject | ( | ) |
| CRhinoGripUserInterfaceObject::CRhinoGripUserInterfaceObject | ( | const ON_3dPoint & | location | ) |
|
virtual |
| int CRhinoGripUserInterfaceObject::AddSnapPoints | ( | int | pointCount, |
| const ON_3dPoint * | snapPoints | ||
| ) |
|
overridevirtual |
Description: If this is a "world space" type user interface object (grip, text dot, direction arrow), this function returns the minimum distance to the camera to allow for depth sorting user interface objects before drawing them. The default return value is ON_UNSET_VALUE
Reimplemented from CRhinoUserInterfaceObject.
| void CRhinoGripUserInterfaceObject::ClearConstraints | ( | ) |
| void CRhinoGripUserInterfaceObject::ClearSnapPoints | ( | ) |
| ON_3dPoint CRhinoGripUserInterfaceObject::ComputeDragPoint | ( | const CRhinoMouseEventArgs & | mouse | ) |
| bool CRhinoGripUserInterfaceObject::Constrain | ( | const ON_Arc & | arc | ) |
| bool CRhinoGripUserInterfaceObject::Constrain | ( | const ON_Circle & | circle | ) |
| bool CRhinoGripUserInterfaceObject::Constrain | ( | const ON_Curve & | curve | ) |
| bool CRhinoGripUserInterfaceObject::Constrain | ( | const ON_Line & | line | ) |
|
overridevirtual |
Description: All user interface objects must implement a Draw function. This is where drawing using the input display pipeline is performed. The base class Draw function does nothing.
Reimplemented from CRhinoUserInterfaceObject.
Reimplemented in CRhinoRotationGripUserInterfaceObject, and CRhinoDirectionGripUserInterfaceObject.
| void CRhinoGripUserInterfaceObject::EnableObjectSnapCursors | ( | bool | enable | ) |
| void CRhinoGripUserInterfaceObject::EnableOnObjectCursors | ( | bool | enable | ) |
| GripShape CRhinoGripUserInterfaceObject::GetGripShape | ( | ) | const |
| ON_Color CRhinoGripUserInterfaceObject::GripColor | ( | ) | const |
| ON_Color CRhinoGripUserInterfaceObject::GripFillColor | ( | ) | const |
| ON_3dPoint CRhinoGripUserInterfaceObject::GripLocation | ( | ) | const |
| float CRhinoGripUserInterfaceObject::GripRadius | ( | ) | const |
| float CRhinoGripUserInterfaceObject::GripShapeRotationRadians | ( | ) | const |
| float CRhinoGripUserInterfaceObject::GripStrokeWidth | ( | ) | const |
|
overridevirtual |
Description: Return true if the input mouse is considered to be over this object
Reimplemented from CRhinoUserInterfaceObject.
Reimplemented in CRhinoRotationGripUserInterfaceObject, and CRhinoDirectionGripUserInterfaceObject.
| bool CRhinoGripUserInterfaceObject::ObjectSnapCursorsEnabled | ( | ) | const |
| bool CRhinoGripUserInterfaceObject::ObjectSnapPermitted | ( | ) | const |
|
virtual |
Description: Gets called while the grip is being dragged to update the location. The default implementation calls SetGripLocation
Reimplemented in CRhinoRotationGripUserInterfaceObject, and CRhinoDirectionGripUserInterfaceObject.
|
overridevirtual |
Description: Called when a mouse button goes down over this UI element Parameters: mouse - mouse position, button and view
Reimplemented from CRhinoUserInterfaceObject.
Reimplemented in CRhinoDirectionGripUserInterfaceObject.
|
overridevirtual |
Description: Called when first goes over this object (IsMouseOver returns true)
Reimplemented from CRhinoUserInterfaceObject.
|
overridevirtual |
Description: Called when mouse leaves this object (IsMouseOver returns false)
Reimplemented from CRhinoUserInterfaceObject.
|
overridevirtual |
Description: Called when a mouse moves over this UI element Parameters: mouse - mouse position, button and view
Reimplemented from CRhinoUserInterfaceObject.
Reimplemented in CRhinoDirectionGripUserInterfaceObject.
|
overridevirtual |
Description: Called when a mouse button goes up over this UI element Parameters: mouse - mouse position, button and view
Reimplemented from CRhinoUserInterfaceObject.
Reimplemented in CRhinoDirectionGripUserInterfaceObject.
| bool CRhinoGripUserInterfaceObject::OnObjectCursorsEnabled | ( | ) | const |
| void CRhinoGripUserInterfaceObject::PermitObjectSnap | ( | bool | permit | ) |
| void CRhinoGripUserInterfaceObject::SetGripColor | ( | const ON_Color & | color | ) |
| void CRhinoGripUserInterfaceObject::SetGripFillColor | ( | const ON_Color & | color | ) |
| void CRhinoGripUserInterfaceObject::SetGripLocation | ( | const ON_3dPoint & | point | ) |
| void CRhinoGripUserInterfaceObject::SetGripRadius | ( | float | radius | ) |
| void CRhinoGripUserInterfaceObject::SetGripShape | ( | GripShape | shape | ) |
| void CRhinoGripUserInterfaceObject::SetGripShapeRotationRadians | ( | float | angle | ) |
| void CRhinoGripUserInterfaceObject::SetGripStrokeWidth | ( | float | width | ) |
|
protected |
1.8.17