CustomObjectGrips
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
CustomObjectGrips
Initializes a new instance of the CustomObjectGrips class
Properties
Name
Description
Public Property
GripCount
Public Property
GripsMoved
If GripsMoved is true if some of the grips have ever been moved GripObject.NewLocation() sets GripsMoved=true.
Public Property
NewLocation
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
OwnerObject
Owner of the grips.
Methods
Name
Description
Protected Method
AddGrip
Public Method
Dispose.
Releases all resources used by the CustomObjectGrips
Protected Method
Dispose(Boolean)
Releases the unmanaged resources used by the CustomObjectGrips and optionally releases the managed resources
Public Method
Static Member
Dragging
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
Finalize
(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
Grip
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected Method
NeighborGrip
Get neighbors.
Protected Method
NewGeometry
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
NurbsSurface
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
NurbsSurfaceGrip
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
OnDraw
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
OnReset
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
OnResetMeshes
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
OnUpdateMesh
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
RegisterGripsEnabler
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)