ObjectManipulator Class

Object manipulator class.
Public Class ObjectManipulator 
Inherits CoordinateSystemBase
This language is not supported or no code example is available.
public class ObjectManipulator : CoordinateSystemBase
This language is not supported or no code example is available.
Name Description
Public property ArrowColorX Gets or sets the color of the X axis arrow, applies only to the coordinate system style mode.
Public property ArrowColorY Gets or sets the color of the Y axis arrow, applies only to the coordinate system style mode.
Public property ArrowColorZ Gets or sets the color of the Z axis arrow, applies only to the coordinate system style mode.
Public property Ball Gets or sets the properties of the translation on view ball.
Public property BallActionMode Gets or sets the action mode applyed to the orgin sphere of the manipulator.
Protected property CustomViewport Tells if the UI element is drawn with a custom viewport. (inherited from UserInterfaceBase).
Internal protected (Protected Friend) property Static DefaultArrowColorX
Internal protected (Protected Friend) property Static DefaultArrowColorY
Internal protected (Protected Friend) property Static DefaultArrowColorZ
Internal protected (Protected Friend) property Static DefaultBallColor
Public property Disposed (inherited from DisposableBase).
Public property Entities Gets or sets the mesh entities used to draw the CoordinateSystemIcon. (inherited from UserInterfaceSymbolBase).
Public property FontFamily Gets or sets the label font family. (inherited from CoordinateSystemBase).
Public property FontSize Gets or sets the label font size. (inherited from CoordinateSystemBase).
Public property FontStyle Gets or sets the label font style. (inherited from CoordinateSystemBase).
Public property FontWeight Gets or sets the label font weight. (inherited from CoordinateSystemBase).
Protected property HasTextureCoords Tells if the element has texture coordinates.
Public property InitialTransformation Gets or sets the initial transformation applied to the manipulator.
Public property LabelAxisX Gets or sets the X axis label.
Public property LabelAxisY Gets or sets the Y axis label.
Public property LabelAxisZ Gets or sets the Z axis label.
Public property LabelColor Gets or sets the label color.
Public property LabelFont Gets or sets the label font.
Public property LabelOrigin Gets or sets the origin label.
Protected property LabelScale (inherited from CoordinateSystemBase).
Public property Lighting When false, the UI element is drawn with a flat color. (inherited from CoordinateSystemBase).
Protected property LocationAtOrigin When doing a render to Bitmap of the item, must not change the viewport origin. (inherited from UserInterfaceBase).
Internal protected (Protected Friend) property ParentViewport (inherited from UserInterfaceBase).
Public property Position The world position.
Public property RotateX Gets or sets the properties of the arc for the rotation around X axis.
Public property RotateY Gets or sets the properties of the arc for the rotation around Y axis.
Public property RotateZ Gets or sets the properties of the arc for the rotation around Z axis.
Public property RotationStep Gets or sets the rotation step angle in radians.
Public property ScaleX Gets or sets the properties of the box for the scale along X axis.
Public property ScaleY Gets or sets the properties of the box for the scale along Y axis.
Public property ScaleZ Gets or sets the properties of the box for the scale along Z axis.
Public property ScalingStep Gets or sets the scaling step distance.
Public property ShowDraggedItemOnly // If true, only the current picked item of the ObjectManipulator is visible during the dragging action. //
Public property ShowOriginalWhileEditing If true, both the original and edited copies of the entities are shown during editing, else only the edited copies are shown.
Public property Size Gets or sets the size in pixels. (inherited from UserInterfaceSymbolBase).
Public property StyleMode Gets or sets the style of the object manipulator.
Public property Transformation Gets or sets the transformation applied to the entities being edited.
Public property TranslateX Gets or sets the properties of the arrow for the translation on X axis.
Public property TranslateY Gets or sets the properties of the arrow for the translation on Y axis.
Public property TranslateZ Gets or sets the properties of the arrow for the translation on Z axis.
Public property TranslationRange Gets or sets the translation range.
Public property TranslationStep Gets or sets the translation step distance.
Public property Visible Gets or sets the visibility status. (inherited from UserInterfaceSymbolBase).
Top
Methods
 
Name Description
Public method Apply() Applies the transformation of the ObjectManipulator on the selected entities and hides it.
Public method Cancel() Cancels the transformation of the ObjectManipulator and hides it.
Internal protected (Protected Friend) method CheckAndFixDefaultLayerName(Environment) Use this method to check and fix the layer name for internal Meshes when the ui element is assigned to the Viewport. (inherited from UserInterfaceSymbolBase).
Public method Clone() Creates a new object that is a copy of the current instance.
Internal protected (Protected Friend) method CreateLabels(Viewport, RenderContextBase)
Protected method CreateLabels(RenderContextBase, Point3D, string, Point3D, string, Point3D, string, Point3D, string, Viewport) Creates the labels of the object.
Public method Dispose() Releases unmanaged resources. (inherited from CoordinateSystemBase).
Public method Draw(RenderParams)
Protected method DrawForBitmap(object) (inherited from UserInterfaceSymbolBase).
Internal protected (Protected Friend) method DrawInternal(DrawSceneParams) (inherited from CoordinateSystemBase).
Internal protected (Protected Friend) method DrawLabels(DrawSceneParams) (inherited from UserInterfaceSymbolBase).
Protected method DrawPlain(DrawParams) (inherited from CoordinateSystemBase).
Internal protected (Protected Friend) method DrawWithPreview(DrawSceneParams)
Public method Enable(Transformation, bool) Activates the Manipulator to move the selected entities.
Public method Enable(Transformation, bool, IList<Entity>) Activates the ObjectManipulator to move the given entities.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetBounds(Viewport) Gets the bounds rectangle in screen coordinates.
Internal protected (Protected Friend) method GetDefaultLayerName(Environment) Use this method to get the correct layer name for internal Meshes. (inherited from UserInterfaceBase).
Protected method GetFullTransformation() Gets the full transformation of the UI element. (inherited from CoordinateSystemBase).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Protected method GetInitialTransformation()
Protected method GetModelViewMatrix(Camera, double) Gets the modelview matrix to draw the user interface symbol. (inherited from UserInterfaceSymbolBase).
Public method GetThumbnail(Viewport, Size, Color) Gets a thumbnail bitmap of the user interface element. (inherited from UserInterfaceBase).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Internal protected (Protected Friend) method ObservableCollectionPropertyChanged(object, NotifyCollectionChangedEventArgs) For internal use only. (inherited from DisposableBase).
Internal protected (Protected Friend) method OnDrag(ref Point, Point, Viewport) Method called during the drag.
Internal protected (Protected Friend) method OnMouseDown(MouseEventArgs, Viewport) Method called when the mouse is pressed on a UI element.
Internal protected (Protected Friend) method OnMouseDown(MouseButtonEventArgs, Viewport) Method called when the mouse is pressed on a UI element.
Internal protected (Protected Friend) method OnMouseUp(MouseEventArgs, Viewport) Method called when the mouse is released on a UI element.
Internal protected (Protected Friend) method OnMouseUp(MouseButtonEventArgs, Viewport) Method called when the mouse is released on a UI element.
Protected method OptimizedArrow(CompileParams, double, double, double, double) Removes vertices/triangles/normals on the base face. (inherited from CoordinateSystemBase).
Protected method PostDrawOnDepthBuffer(RenderContextBase) Restores previous states at the end of the draw on depth buffer. (inherited from UserInterfaceSymbolBase).
Protected method PreDrawOnDepthBuffer(RenderContextBase) Prepares to draw on the depth buffer. (inherited from UserInterfaceSymbolBase).
Protected method RaisePropertyChangedEvent(object, DependencyProperty) For internal use only. (inherited from DisposableBase).
Public method ScaleForDPI() Scales the element for high DPI settings. (inherited from CoordinateSystemBase).
Protected method SetupLights(Viewport, RenderContextBase, float) (inherited from UserInterfaceSymbolBase).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method Update(IUserInterfaceElement) Updates the contents of the element with the data from another element. (inherited from CoordinateSystemBase).
Public method UpdateBoundingBox() Computes the model bounding box when the ObjectManipulator is enabled.
Protected method UpdateLabelFont(CoordinateSystemBase) (inherited from CoordinateSystemBase).
Internal protected (Protected Friend) method UpdateScreenToWorld(Viewport, int[])
Top
Events
 
Name Description
Public event MouseDown Mouse down event.
Public event MouseDrag Mouse drag event.
Public event MouseOver Mouse over event.
Public event MouseUp Mouse up event.
Public event PropertyChanged For internal use only. (inherited from DisposableBase).
Top
Classes
 
Name Description
Public class ObjectManipulatorEventArgs Object manipulator event arguments class.
Top
Name Description
Public delegate ObjectManipulatorEventHandler Event handler for ObjectManipulator events.
Top
Name Description
Public enumeration actionType Object manipulator action type enum.
Public enumeration ballActionType
Public enumeration styleType
Top
Fields
 
Name Description
Internal protected (Protected Friend) field Dragging (inherited from UserInterfaceSymbolBase).
Public field Static FontFamilyProperty (inherited from CoordinateSystemBase).
Public field Static FontSizeProperty (inherited from CoordinateSystemBase).
Public field Static FontStyleProperty (inherited from CoordinateSystemBase).
Public field Static FontWeightProperty (inherited from CoordinateSystemBase).
Internal protected (Protected Friend) field PickedEntity The picked part. (inherited from UserInterfaceSymbolBase).
Public field Static PropertyChangedEvent For internal use only. (inherited from DisposableBase).
Protected field ballTexture (inherited from CoordinateSystemBase).
Protected field center (inherited from CoordinateSystemBase).
Protected field currentScale (inherited from CoordinateSystemBase).
Protected field drawArrow (inherited from CoordinateSystemBase).
Protected field drawSphere (inherited from CoordinateSystemBase).
Protected field osLabelAxisX (inherited from CoordinateSystemBase).
Protected field osLabelAxisY (inherited from CoordinateSystemBase).
Protected field osLabelAxisZ (inherited from CoordinateSystemBase).
Protected field osLabelOrigin (inherited from CoordinateSystemBase).
Protected field projMatrix (inherited from CoordinateSystemBase).
Top

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition