|
void | AddHandles (HPS.HandlesOperator.HandleType handle_type) |
| Add a type of handle to those displayed by this operator. Changes take place the next time handles are inserted, by either double clicking or double tapping on geometry. More...
|
|
void | DismissHandles () |
|
override void | Dispose () |
|
HPS.CADModel | GetCADModel () |
| Returns the CADModel associated with this operator. If no CADModel was associated with this operator, the returned object will be invalid and have type HPS.Type.None. More...
|
|
void | GetHandlesAppearance (out float out_length, out float out_radius, out ulong out_handles_points) |
| Returns the parameters used to decide the appearance of the handles. More...
|
|
HPS.MaterialKit[] | GetHandlesColors () |
| This function returns the materials used to color the handles. Only the diffuse color field of the materials is guaranteed to have a value. The materials are used as follows: More...
|
|
HPS.RGBAColor | GetHighlightColor () |
| Returns the color used to highlight the handles then the user mouses over them. More...
|
|
override string | GetName () |
| Returns the name of the operator. More...
|
|
void | GetPlaneTranslationAppearance (out float out_plane_offset, out float out_plane_length, out float out_center_radius) |
| Returns the parameters used to decide the appearance of the rotation handles. More...
|
|
void | GetRotationHandleAppearance (out float out_offset, out float out_angle, out float out_tip_size) |
| Returns the parameters used to decide the appearance of the rotation handles. More...
|
|
bool | GetTrailingGeometry () |
| Whether trailing geometry will be drawn when using the handles. Trailing geometry is geometry which shows you the path of the last movement operation you performed through the handles. More...
|
|
| HandlesOperator (HPS.MouseButtons in_mouse_trigger, HPS.ModifierKeys in_modifier_trigger) |
|
| HandlesOperator (HPS.MouseButtons in_mouse_trigger) |
|
| HandlesOperator (HPS.HandlesOperator in_that) |
|
delegate int | HandlesOperatorDelegate_0 (IntPtr cPtr, int ret_maxsize, IntPtr ret_str) |
|
delegate void | HandlesOperatorDelegate_1 (IntPtr cPtr, IntPtr in_attached_view) |
|
delegate void | HandlesOperatorDelegate_10 (IntPtr cPtr, IntPtr in_that) |
|
delegate bool | HandlesOperatorDelegate_11 (IntPtr cPtr, IntPtr in_that) |
|
delegate bool | HandlesOperatorDelegate_12 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_13 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_14 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_15 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_16 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_17 (IntPtr cPtr, string in_text) |
|
delegate bool | HandlesOperatorDelegate_18 (IntPtr cPtr, IntPtr in_event) |
|
delegate void | HandlesOperatorDelegate_19 (IntPtr cPtr) |
|
delegate void | HandlesOperatorDelegate_2 (IntPtr cPtr, IntPtr in_detached_view) |
|
delegate void | HandlesOperatorDelegate_20 (IntPtr cPtr) |
|
delegate bool | HandlesOperatorDelegate_21 (IntPtr cPtr, IntPtr in_state) |
|
delegate HPS.Type | HandlesOperatorDelegate_22 (IntPtr cPtr) |
|
delegate bool | HandlesOperatorDelegate_23 (IntPtr cPtr) |
|
delegate void | HandlesOperatorDelegate_24 (IntPtr cPtr) |
|
delegate bool | HandlesOperatorDelegate_3 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_4 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_5 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_6 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_7 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | HandlesOperatorDelegate_8 (IntPtr cPtr, IntPtr in_state) |
|
delegate HPS.Type | HandlesOperatorDelegate_9 (IntPtr cPtr) |
|
override bool | OnMouseDown (HPS.MouseState in_state) |
| This function is called whenever HPS receives a MouseEvent that signals a mouse button was pressed. If the user double clicks on a piece of geometry, handles will be inserted there. If the user clicks on a handle, the segment containing that handle will be translated or rotated appropriately. The user can click on the background to remove the handles. More...
|
|
override bool | OnMouseMove (HPS.MouseState in_state) |
| This function is called whenever HPS receives a MouseEvent that signals the mouse moved When users click and drag a handle, the associated geometry will be translated or rotated as appropriate. More...
|
|
override bool | OnMouseUp (HPS.MouseState in_state) |
| This function is called whenever HPS receives a MouseEvent that signals a mouse button was released More...
|
|
override bool | OnTouchDown (HPS.TouchState in_state) |
| This function is called whenever HPS receives a TouchEvent that signals the device was touched. If the user double taps a piece of geometry, handles will be inserted there. If the user taps on a handle, the segment containing that handle will be translated or rotated appropriately. The user can tap on the background to remove the handles. More...
|
|
override bool | OnTouchMove (HPS.TouchState in_state) |
| This function is called whenever HPS receives a TouchEvent that signals a point of contact has moved. When users click and drag a handle, the associated geometry will be translated or rotated as appropriate. More...
|
|
override bool | OnTouchUp (HPS.TouchState in_state) |
| This function is called whenever HPS receives a TouchEvent that signals a point of contact has been released. More...
|
|
override void | OnViewAttached (HPS.View in_attached_view) |
| This function is called whenever a view is attached to this operator. More...
|
|
override void | OnViewDetached (HPS.View in_detached_view) |
| This function is called whenever a view is detached from this operator. More...
|
|
void | RemoveHandles (HPS.HandlesOperator.HandleType handle_type) |
| Remove a type of handle from those displayed by this operator. Changes take place the next time handles are inserted, by either double clicking or double tapping on geometry. More...
|
|
void | SetCADModel (HPS.CADModel in_cad_model) |
| Sets the CADModel associated with this operator. If a CADModel is set, the underlying PRC or Parasolid data associated with any Components moved by the user with the handles operator will be changed to reflect how the CADModel appears on the user's screen. This function needs to be called before the user starts transforming geometry through the handles operator. More...
|
|
void | SetHandlesAppearance (float in_length, float in_radius, ulong in_handles_points) |
| This function can be used to modify the appearance of handles. Changes will take effect the next time handles are inserted. More...
|
|
void | SetHandlesAppearance (float in_length, float in_radius) |
| This function can be used to modify the appearance of handles. Changes will take effect the next time handles are inserted. More...
|
|
void | SetHandlesAppearance (float in_length) |
| This function can be used to modify the appearance of handles. Changes will take effect the next time handles are inserted. More...
|
|
void | SetHandlesAppearance () |
| This function can be used to modify the appearance of handles. Changes will take effect the next time handles are inserted. More...
|
|
void | SetHandlesColors (HPS.MaterialKit[] in_colors) |
| This function is used to provide a set of colors which will be applied to the handles. The changes will take effect the next time the handles are inserted. The materials need to contain a diffuse color, and will be applied as follows: Entry 0 - translation handle in the x direction Entry 1 - translation handle in the y direction Entry 2 - translation handle in the z direction Entry 3 - rotation handle in the x direction Entry 4 - rotation handle in the y direction Entry 5 - rotation handle in the z direction Entry 6 - xz plane translation Entry 7 - xy plane translation Entry 8 - yz plane translation Entry 9 - center-sphere More...
|
|
void | SetHighlightColor (HPS.RGBAColor in_highlight_color) |
| Sets the highlight color used when the user mouses over the handles. The default value for the highlight color is RGBAColor(1.0f, 0.55f, 0.0f) More...
|
|
void | SetPlaneTranslationAppearance (float in_plane_offset, float in_plane_length, float in_center_radius) |
| This function can be used to modify the appearance of the handles used to perform plane-translation. Changes will take effect the next time handles are inserted. More...
|
|
void | SetPlaneTranslationAppearance (float in_plane_offset, float in_plane_length) |
| This function can be used to modify the appearance of the handles used to perform plane-translation. Changes will take effect the next time handles are inserted. More...
|
|
void | SetPlaneTranslationAppearance (float in_plane_offset) |
| This function can be used to modify the appearance of the handles used to perform plane-translation. Changes will take effect the next time handles are inserted. More...
|
|
void | SetPlaneTranslationAppearance () |
| This function can be used to modify the appearance of the handles used to perform plane-translation. Changes will take effect the next time handles are inserted. More...
|
|
void | SetRotationHandleAppearance (float in_offset, float in_angle, float in_tip_size) |
| This function can be used to modify the appearance of handles used to perform rotations. Changes will take effect the next time handles are inserted. More...
|
|
void | SetRotationHandleAppearance (float in_offset, float in_angle) |
| This function can be used to modify the appearance of handles used to perform rotations. Changes will take effect the next time handles are inserted. More...
|
|
void | SetRotationHandleAppearance (float in_offset) |
| This function can be used to modify the appearance of handles used to perform rotations. Changes will take effect the next time handles are inserted. More...
|
|
void | SetRotationHandleAppearance () |
| This function can be used to modify the appearance of handles used to perform rotations. Changes will take effect the next time handles are inserted. More...
|
|
void | SetTrailingGeometry (bool in_state) |
| Whether to draw trailing geometry when using the handles. Trailing geometry is geometry which shows you the path of the last movement operation you performed through the handles. More...
|
|
virtual void | Assign (HPS.Operator in_that) |
| Assigns the parameter in_that to this operator, resulting in a clone. More...
|
|
void | DetachView () |
| Detaches the Operator from the View it was previously attached to. More...
|
|
delegate void | DtorDelegate (IntPtr cPtr) |
|
override bool | Equals (System.Object obj) |
|
virtual bool | Equals (HPS.Operator in_that) |
| Tests this operator for equality against the parameter in_that. Same as Operator.operator== More...
|
|
HPS.View | GetAttachedView () |
| Returns the View the Operator is currently attached to. More...
|
|
override int | GetHashCode () |
|
HPS.ModifierKeys | GetModifierTrigger () |
| Gets the modifier trigger associated with this operator. More...
|
|
HPS.MouseButtons | GetMouseTrigger () |
| Gets the mouse trigger associated with this operator. More...
|
|
virtual bool | IsMouseTriggered (HPS.MouseState in_state) |
| Returns true if the MouseButtons and ModifierKeys are active. More...
|
|
override HPS.Type | ObjectType () |
| This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object). More...
|
|
virtual bool | OnKeyDown (HPS.KeyboardState in_state) |
| This function is called whenever HPS receives a KeyboardEvent that signals a key was pressed. More...
|
|
virtual bool | OnKeyUp (HPS.KeyboardState in_state) |
| This function is called whenever HPS receives a KeyboardEvent that signals a key was released. More...
|
|
virtual void | OnModelAttached () |
| This function is called whenever a model is attached to the view that is attached to this operator. If no view is attached to this operator, this function will not be called. More...
|
|
virtual void | OnModelDetached () |
| This function is called whenever a model is detached from the view that is attached to this operator. If no view is attached to this operator, this function will not be called. More...
|
|
virtual bool | OnMouseEnter (HPS.MouseState in_state) |
| This function is called whenever HPS receives a MouseEvent that signals the mouse entered the window. More...
|
|
virtual bool | OnMouseLeave (HPS.MouseState in_state) |
| This function is called whenever HPS receives a MouseEvent that signals the mouse left the window. More...
|
|
virtual bool | OnMouseWheel (HPS.MouseState in_state) |
| This function is called whenever HPS receives a MouseEvent that signals the mouse wheel was scrolled. More...
|
|
virtual bool | OnTextInput (string in_text) |
|
virtual bool | OnTimerTick (HPS.TimerTickEvent in_event) |
| This function is called whenever HPS receives a TimerTickEvent. More...
|
|
| Operator (HPS.MouseButtons in_mouse_trigger, HPS.ModifierKeys in_modifier_trigger) |
|
| Operator (HPS.MouseButtons in_mouse_trigger) |
|
| Operator (HPS.Operator in_that) |
|
delegate HPS.Type | OperatorDelegate_0 (IntPtr cPtr) |
|
delegate void | OperatorDelegate_1 (IntPtr cPtr, IntPtr in_that) |
|
delegate bool | OperatorDelegate_10 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_11 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_12 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_13 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_14 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_15 (IntPtr cPtr, string in_text) |
|
delegate bool | OperatorDelegate_16 (IntPtr cPtr, IntPtr in_event) |
|
delegate void | OperatorDelegate_17 (IntPtr cPtr, IntPtr in_attached_view) |
|
delegate void | OperatorDelegate_18 (IntPtr cPtr, IntPtr in_detached_view) |
|
delegate void | OperatorDelegate_19 (IntPtr cPtr) |
|
delegate bool | OperatorDelegate_2 (IntPtr cPtr, IntPtr in_that) |
|
delegate void | OperatorDelegate_20 (IntPtr cPtr) |
|
delegate bool | OperatorDelegate_21 (IntPtr cPtr, IntPtr in_state) |
|
delegate HPS.Type | OperatorDelegate_22 (IntPtr cPtr) |
|
delegate bool | OperatorDelegate_23 (IntPtr cPtr) |
|
delegate void | OperatorDelegate_24 (IntPtr cPtr) |
|
delegate int | OperatorDelegate_3 (IntPtr cPtr, int ret_maxsize, IntPtr ret_str) |
|
delegate bool | OperatorDelegate_4 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_5 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_6 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_7 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_8 (IntPtr cPtr, IntPtr in_state) |
|
delegate bool | OperatorDelegate_9 (IntPtr cPtr, IntPtr in_state) |
|
delegate void | RemoveCacheItemDelegate (IntPtr cPtr) |
|
void | SetModifierTrigger (HPS.ModifierKeys in_modifiers) |
| Sets the modifier trigger associated with this operator. More...
|
|
void | SetMouseTrigger (HPS.MouseButtons in_buttons) |
| Sets the mouse trigger for this operator More...
|
|
| Sprocket (HPS.Sprocket in_that) |
|
virtual bool | Empty () |
| Indicates whether this object has any values set on it. More...
|
|
IntPtr | GetClassID () |
|
IntPtr | GetInstanceID () |
| Returns the object's database handle, which can be used to determine which instance of a class the object is. For example, controls are simply aliases for segment keys that group related functions. Therefore, a SegmentKey and all of its controls would return the same instance id. Different keys and controls will return the same value if they are backed by the same database resource. More...
|
|
bool | HasType (HPS.Type in_mask) |
| This function indicates whether this Object has the given Type mask. More...
|
|
| Object (HPS.Object that) |
|
virtual void | Reset () |
| Resets this object to its initial, uninitialized state. More...
|
|
virtual HPS.Type | Type () |
| This function returns the true type of the underlying object. This function is useful for finding the type of smart pointer objects that have been cast to more generic types. More...
|
|
The HandlesOperator class defines an operator which allows the user to translate geometry in the view plane or along an axis. This operator works for both mouse- and touch-driven devices.
To use this operator on a mouse-driven device:<linebreak><orderedlist><listitem>
Activate the operator<linebreak>
</listitem><listitem>
Double click on a piece of geometry to activate the handles<linebreak>
</listitem><listitem>
Click and drag the handles to transform the selected geometry<linebreak>
</listitem><listitem>
Click on the background to dismiss the handles<linebreak>
</listitem></orderedlist>
To use this operator on a touch-driven device:<linebreak><orderedlist><listitem>
Activate the operator<linebreak>
</listitem><listitem>
Double tap on a piece of geometry to activate the handles<linebreak>
</listitem><listitem>
Tap and drag the handles to move the selected geometry<linebreak>
</listitem><listitem>
Tap on the background to dismiss the handles<linebreak>
</listitem></orderedlist>
This operator works on the segment containing the geometry selected. An event of type GeometryTransformedEvent is dispatched after the handles are dismissed, containing the information on which segment was affected and what transform was applied to it.
This operator does not work on Exchange models which have a Drawing structure. This includes CATDrawing models and 2D DWG models loaded through Exchange. Any attempt to use this operator on such a model will produce a warning.