Skip to content

CustomObjectGrips

Public Class

Inheritance Hierarchy

System.Object
Rhino.DocObjects.Custom.CustomObjectGrips

Namespace: Rhino.DocObjects.Custom

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public abstract class CustomObjectGrips : IDisposable

The CustomObjectGrips type exposes the following members.

Constructors

Name

Description


Protected Method

Initializes a new instance of the CustomObjectGrips class


Properties

Name

Description


Public Property

Public Property

If GripsMoved is true if some of the grips have ever been moved GripObject.NewLocation() sets GripsMoved=true.


Public Property

true if some of the grips have been moved. GripObject.NewLocation() sets NewLocation=true. Derived classes can set NewLocation to false after updating temporary display information.


Public Property

Owner of the grips.


Methods

Name

Description


Protected Method

Public Method

Releases all resources used by the CustomObjectGrips


Protected Method

Releases the unmanaged resources used by the CustomObjectGrips and optionally releases the managed resources


Public Method
Static Member

Determines if grips are currently being dragged.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

(Overrides Object.Finalize..)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Protected Method

Get neighbors.


Protected Method

If the grips control just one object, then override NewGeometry(). When NewGeometry() is called, return new geometry calculated from the current grip locations. This happens once at the end of a grip drag.


Protected Method

If the grips control a NURBS surface, this returns a pointer to that surface. You can look at but you must NEVER change this surface.


Protected Method

If the grips are control points of a NURBS surface, then this gets the index of the grip that controls the (i,j)-th CV.


Protected Method

Draws the grips. In your implementation, override this if you need to draw dynamic elements and then call this base implementation to draw the grips themselves.


Protected Method

Resets location of all grips to original spots and cleans up stuff that was created by dynamic dragging. This is required when dragging is canceled or in the Copy command when grips are “copied”. The override should clean up dynamic workspace stuff.


Protected Method

Just before Rhino turns off object grips, it calls this function. If grips have modified any display meshes, they must override this function and restore the meshes to their original states.


Protected Method

Just before Rhino shades an object with grips on, it calls this method to update the display meshes. Grips that modify surface or mesh objects must override this function and modify the display meshes here.


Public Method
Static Member

Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)