Class GraphicControl
Displays graphical objects in a 3D view
Inheritance
Namespace: ABB.Robotics.RobotStudio.Stations.Forms
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public sealed class GraphicControl : UserControl
Constructors
View SourceGraphicControl()
Creates a new GraphicControl using default settings.
Declaration
public GraphicControl()
GraphicControl(GraphicControlSettings)
Creates a new GraphicControl using the specified settings.
Declaration
public GraphicControl(GraphicControlSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicControlSettings | settings |
Properties
View SourceActiveGraphicControl
Declaration
[Browsable(false)]
public static GraphicControl ActiveGraphicControl { get; }
Property Value
| Type | Description |
|---|---|
| GraphicControl |
AdvancedLighting
Declaration
public bool AdvancedLighting { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AutoTransparency
Gets or sets if objects that cover a large part of the view should automatically be made transparent.
Declaration
public bool AutoTransparency { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
BackColor
Gets or sets the background color.
Declaration
public override Color BackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Overrides
View SourceBackFaceCulling
Gets or sets a value indicating whether surfaces facing away from the viewer will be discarded.
Declaration
public bool BackFaceCulling { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Buttons
Declaration
public GraphicButtonCollection Buttons { get; }
Property Value
| Type | Description |
|---|---|
| GraphicButtonCollection |
Camera
Associates this view with a Camera object.
Declaration
[Browsable(false)]
public Camera Camera { get; set; }
Property Value
| Type | Description |
|---|---|
| Camera |
Remarks
If the Camera property is non-null, the view will be controlled by the camera object. If the camera moves, the viewpoint will move accordingly. If the camera is locked, the user will not be able to zoom/rotate/translate the view.
Capabilities
Returns information about the capabilities of the graphics adapter used for rendering a GraphicControl.
Declaration
public static GraphicCapabilities Capabilities { get; }
Property Value
| Type | Description |
|---|---|
| GraphicCapabilities |
CaptureMouse
Gets or sets whether the control will receive mouse events even when the mouse is outside the control area.
Declaration
[Browsable(false)]
public bool CaptureMouse { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ClipPlane
Associates this view with a ClipPlane object.
Declaration
[Browsable(false)]
public ClipPlane ClipPlane { get; set; }
Property Value
| Type | Description |
|---|---|
| ClipPlane |
Remarks
All geometry in the negative z space of the ClipPlane transform will be hidden.
Cursor
Declaration
public override Cursor Cursor { get; set; }
Property Value
| Type | Description |
|---|---|
| Cursor |
Overrides
View SourceDetailLevel
Gets or sets a value indicating the detail in which geometric objects are rendered.
Declaration
public GraphicDetailLevel DetailLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| GraphicDetailLevel |
EnableGameControllerNavigation
Declaration
public bool EnableGameControllerNavigation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
EnableTouchNavigation
Declaration
public bool EnableTouchNavigation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
EnvironmentMapping
Gets or sets a value indicating whether a reflective effect will be applied.
Declaration
[Browsable(false)]
[Obsolete("No longer supported")]
public bool EnvironmentMapping { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
FieldOfView
Gets or sets the angular extent of the view (in degrees).
Declaration
public double FieldOfView { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
FloorAutoSize
Gets or sets a value indicating whether the floor will be automatically resized according to the contents of the station.
Declaration
public bool FloorAutoSize { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
FloorColor
Gets or sets the color of the floor. The floor can be made transparent by setting the alpha component to less than 255.
Declaration
public Color FloorColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
FloorSize
Gets or sets the size of the floor.
Declaration
public RectangleF FloorSize { get; set; }
Property Value
| Type | Description |
|---|---|
| RectangleF |
GradientBackground
Gets or sets a value indicating whether the control will have a gradient background.
Declaration
public bool GradientBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
GridSpaceX
Gets or sets the spacing of the UCS grid in the x direction.
Declaration
public double GridSpaceX { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
GridSpaceY
Gets or sets the spacing of the UCS grid in the y direction.
Declaration
public double GridSpaceY { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
KeyTips
A collection of GraphicKeyTip objects that can be displayed in the bottom part of the view.
Declaration
public ICollection<GraphicKeyTip> KeyTips { get; }
Property Value
| Type | Description |
|---|---|
| ICollection<GraphicKeyTip> |
LookAt
Gets or sets the point which will act as the center of the view.
Declaration
public Vector3 LookAt { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
LookFrom
Gets or sets the point of view.
Declaration
public Vector3 LookFrom { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
MultiSampleCount
Declaration
public int MultiSampleCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
NavigationSensitivity
Gets or sets the responsiveness of mouse navigation.
Declaration
public double NavigationSensitivity { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Picker
Gets the object which will handle mouse selection.
Declaration
[Browsable(false)]
public GraphicPicker Picker { get; }
Property Value
| Type | Description |
|---|---|
| GraphicPicker |
PickingEnabled
Gets or sets whether mouse selection is enabled.
Declaration
public bool PickingEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Projection
Gets or sets a value indicating how 3D objects are projected.
Declaration
public GraphicProjection Projection { get; set; }
Property Value
| Type | Description |
|---|---|
| GraphicProjection |
RenderDynamic
Declaration
[Browsable(false)]
public static bool RenderDynamic { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Representation
Gets or sets the manner in which solid objects will be rendered.
Declaration
public GraphicRepresentation Representation { get; set; }
Property Value
| Type | Description |
|---|---|
| GraphicRepresentation |
RootObject
Gets or sets the root of the object hierarchy which will be displayed.
Declaration
[Browsable(false)]
public ProjectObject RootObject { get; set; }
Property Value
| Type | Description |
|---|---|
| ProjectObject |
ScreenSizeCulling
Gets or sets the (approximate) minimum number of pixels an object must cover to be rendered.
Declaration
public double ScreenSizeCulling { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
ShowButtons
Gets or sets a value indicating if click buttons can be shown in this GraphicControl.
Declaration
public bool ShowButtons { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowCoordinateSystem
Gets or sets a value indicating if a coordinate system is displayed in the lower left corner.
Declaration
public bool ShowCoordinateSystem { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowFloor
Gets or sets a value indicating if a rectangular "floor" will be displayed at z = 0.
Declaration
public bool ShowFloor { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowKeyTips
Gets or sets if a row of GraphicKeyTip objects are displayed in the bottom part of the view.
Declaration
public bool ShowKeyTips { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowUCSFrame
Gets or sets a value indicating whether a frame representing UCS will be displayed.
Declaration
public bool ShowUCSFrame { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowUCSGrid
Gets or sets a value indicating whether a grid representing UCS will be displayed.
Declaration
public bool ShowUCSGrid { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
StereoMode
Declaration
public GraphicStereoMode StereoMode { get; set; }
Property Value
| Type | Description |
|---|---|
| GraphicStereoMode |
SuspendRedraw
Suspends redraw of the graphics view.
Declaration
[Browsable(false)]
public bool SuspendRedraw { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
SuspendUpdate
Suspends automatic update of graphics models during simulation and idle processing.
Declaration
public static bool SuspendUpdate { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TemporaryGraphics
Gets the TemporaryGraphicCollection that is displayed in this control.
Declaration
[Browsable(false)]
public TemporaryGraphicCollection TemporaryGraphics { get; set; }
Property Value
| Type | Description |
|---|---|
| TemporaryGraphicCollection |
TwoSidedLighting
Gets or sets a value indicating whether surfaces facing away from the viewer will be lit and shaded.
Declaration
[Obsolete("Two-sided lighting is always enabled")]
public bool TwoSidedLighting { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceCalcFreehand(Vector3, Vector3, Point, Point, bool)
Calculates how movement of the mouse in window coordinates corresponds to linear movement or rotation of an object in 3D.
Declaration
public double CalcFreehand(Vector3 startPoint, Vector3 direction, Point mouse1, Point mouse2, bool rotate)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | startPoint | Reference point for the object. |
| Vector3 | direction | Direction in which to move the object, or axis around which to rotate the obejct. |
| Point | mouse1 | First mouse position. |
| Point | mouse2 | Second mouse position. |
| bool | rotate | Calculate rotation rather than linear movement. |
Returns
| Type | Description |
|---|---|
| double | The delta (in m or radians) that the object should be moved or rotated. |
CanExamineObject(ProjectObject)
Checks whether an object can be examined.
Declaration
public bool CanExamineObject(ProjectObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectObject | obj | The graphic object. |
Returns
| Type | Description |
|---|---|
| bool |
CanUnexamine()
Returns true if Unexamine(float) can be called.
Declaration
public bool CanUnexamine()
Returns
| Type | Description |
|---|---|
| bool |
CopySettings(GraphicControl, GraphicControl)
Copies all view and picker settings from one GraphicControl to another.
Declaration
public static void CopySettings(GraphicControl from, GraphicControl to)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicControl | from | |
| GraphicControl | to |
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
View SourceExamineBox(BoundingBox, Vector3, float)
Zooms in on a bounding box.
Declaration
public void ExamineBox(BoundingBox boundingBox, Vector3 lookDirection, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| BoundingBox | boundingBox | The bounding box to examine. |
| Vector3 | lookDirection | Look direction |
| float | time | Time (in seconds) for the operation. |
ExamineBox(BoundingBox, float)
Zooms in on a bounding box.
Declaration
public void ExamineBox(BoundingBox boundingBox, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| BoundingBox | boundingBox | The bounding box to examine. |
| float | time | Time (in seconds) for the operation. |
ExamineObject(ProjectObject, Vector3, float)
Zooms in on an object.
Declaration
public void ExamineObject(ProjectObject obj, Vector3 lookDirection, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectObject | obj | The graphic object. |
| Vector3 | lookDirection | Look direction |
| float | time | Time (in seconds) for the operation. |
ExamineObject(ProjectObject, float)
Zooms in on an object.
Declaration
public void ExamineObject(ProjectObject obj, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectObject | obj | The graphic object. |
| float | time | Time (in seconds) for the operation. |
ExaminePoint(Vector3, double, float)
Zooms in on a point.
Declaration
public void ExaminePoint(Vector3 point, double radius, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | point | |
| double | radius | |
| float | time | Time (in seconds) for the operation |
FlyTo(Vector3, Vector3, float)
Adjusts the view.
Declaration
public void FlyTo(Vector3 lookAt, Vector3 lookFrom, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | lookAt | The point which will act as the center of the view |
| Vector3 | lookFrom | Point of view |
| float | time | Time (in seconds) for the operation. |
GetAllGraphicControls()
Returns an array containing all graphic controls in the process.
Declaration
public static GraphicControl[] GetAllGraphicControls()
Returns
| Type | Description |
|---|---|
| GraphicControl[] |
GetObjectVisible(ProjectObject, bool)
Gets a value indicating whether an object is visible in this GraphicControl.
Declaration
public bool GetObjectVisible(ProjectObject obj, bool recursive)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectObject | obj | The graphic object. |
| bool | recursive | Return true only if all descendants are visible. |
Returns
| Type | Description |
|---|---|
| bool |
GetView()
Returns the underlying GraphicView object.
Declaration
[CLSCompliant(false)]
public IApiGfxView GetView()
Returns
| Type | Description |
|---|---|
| IApiGfxView |
Remarks
Internal use only.
IsStereoModeAvailable(GraphicStereoMode)
Returns true if the given stereo mode is currently available
Declaration
public static bool IsStereoModeAvailable(GraphicStereoMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicStereoMode | mode |
Returns
| Type | Description |
|---|---|
| bool |
LoadOptions()
Load properties from options.
Declaration
public void LoadOptions()
LoadOptions(bool)
Load properties from options.
Declaration
public void LoadOptions(bool loadDefaults)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | loadDefaults | Also load default properties for appearance. |
Move(Vector3, Vector3, float)
Adjusts the view to a new center and view point.
Declaration
public void Move(Vector3 lookAt, Vector3 lookFrom, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | lookAt | Center point. |
| Vector3 | lookFrom | V point. |
| float | time | Time (in seconds) for the operation. |
OnEnter(EventArgs)
Declaration
protected override void OnEnter(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e |
Overrides
View SourceOnHandleCreated(EventArgs)
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e |
Overrides
View SourceOnKeyDown(KeyEventArgs)
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| KeyEventArgs | e |
Overrides
View SourceOnSizeChanged(EventArgs)
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e |
Overrides
View SourcePan(float, float, float)
Pans the view.
Declaration
public void Pan(float x, float y, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | Equivalent to the number of pixels the mouse would move horizontally to pan the same amount. |
| float | y | Equivalent to the number of pixels the mouse would move vertically to pan the same amount. |
| float | time | Time (in seconds) for the operation. |
ProjectPoint(int, int)
Returns the point in 3D that corresponds to a window coordinate.
Declaration
public Vector3? ProjectPoint(int x, int y)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | Window x coordinate (relative to upper left corner of this). |
| int | y | Window y coordinate (relative to upper left corner of this). |
Returns
| Type | Description |
|---|---|
| Vector3? | Point in 3D space, or null if there is no object/floor at the specified coordinate. |
ProjectPoint(int, int, out ProjectObject)
Returns the point in 3D that corresponds to a window coordinate, and the object at that point.
Declaration
public Vector3? ProjectPoint(int x, int y, out ProjectObject hitObject)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | Window x coordinate (relative to upper left corner of this). |
| int | y | Window y coordinate (relative to upper left corner of this). |
| ProjectObject | hitObject | Object (Part or Face) at the specified coordinate |
Returns
| Type | Description |
|---|---|
| Vector3? | Point in 3D space, or null if there is no object/floor at the specified coordinate. |
Remarks
Does not take into account selection modes and snap modes
ProjectPointOnFloor(int, int, bool)
Declaration
public Vector3? ProjectPointOnFloor(int x, int y, bool snapToUCSGrid)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | |
| int | y | |
| bool | snapToUCSGrid |
Returns
| Type | Description |
|---|---|
| Vector3? |
ProjectPointToScreen(Vector3)
Projects a point in 3D space (x,y,z) to window coordinates (x,y) relative to the upper left corner of this control.
Declaration
public Point ProjectPointToScreen(Vector3 point)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | point |
Returns
| Type | Description |
|---|---|
| Point |
ProjectPointsToScreen(IEnumerable<Vector3>)
Projects points in 3D space (x,y,z) to window coordinates (x,y) relative to the upper left corner of this control.
Declaration
public IEnumerable<Point> ProjectPointsToScreen(IEnumerable<Vector3> points)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Vector3> | points |
Returns
| Type | Description |
|---|---|
| IEnumerable<Point> |
ProjectRay(Vector3, Vector3, out ProjectObject)
Performs a ray test
Declaration
public Vector3? ProjectRay(Vector3 start, Vector3 direction, out ProjectObject hitObject)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | start | Start of the ray in world coordinates |
| Vector3 | direction | Direction of the ray in world coordinates |
| ProjectObject | hitObject | Hit object (Part or Face) |
Returns
| Type | Description |
|---|---|
| Vector3? | Hit point, or null if no object or floor was hit |
Remarks
Does not take into account selection modes and snap modes
RayFromPoint(int, int)
Returns a ray in 3D space that corresponds to a screen coordinate
Declaration
public Ray RayFromPoint(int x, int y)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | |
| int | y |
Returns
| Type | Description |
|---|---|
| Ray |
Rotate(float, float, float)
Rotates the view around the center point.
Declaration
public void Rotate(float x, float y, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | Equivalent to the number of pixels the mouse would move horizontally to rotate the same amount. |
| float | y | Equivalent to the number of pixels the mouse would move vertically to rotate the same amount. |
| float | time | Time (in seconds) for the operation. |
ScreenShot()
Creates an image from this view.
Declaration
public Bitmap ScreenShot()
Returns
| Type | Description |
|---|---|
| Bitmap |
ScreenShot(ProjectObject, int, int, ScreenshotOptions)
Creates an image of a specified object.
Declaration
public Bitmap ScreenShot(ProjectObject obj, int width, int height, ScreenshotOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectObject | obj | |
| int | width | |
| int | height | |
| ScreenshotOptions | options |
Returns
| Type | Description |
|---|---|
| Bitmap |
Remarks
Width and height must not be larger than Capabilities.MaxTextureSize.
ScreenShot(ProjectObject, int, int, ScreenshotOptions, Vector3)
Creates an image of a specified object.
Declaration
public Bitmap ScreenShot(ProjectObject obj, int width, int height, ScreenshotOptions options, Vector3 lookDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectObject | obj | |
| int | width | |
| int | height | |
| ScreenshotOptions | options | |
| Vector3 | lookDirection |
Returns
| Type | Description |
|---|---|
| Bitmap |
Remarks
Width and height must not be larger than Capabilities.MaxTextureSize.
ScreenShot(ProjectObject, int, int, ScreenshotOptions, Vector3, float)
Creates an image of a specified object.
Declaration
public Bitmap ScreenShot(ProjectObject obj, int width, int height, ScreenshotOptions options, Vector3 lookDirection, float zoom)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectObject | obj | |
| int | width | |
| int | height | |
| ScreenshotOptions | options | |
| Vector3 | lookDirection | |
| float | zoom |
Returns
| Type | Description |
|---|---|
| Bitmap |
Remarks
Width and height must not be larger than Capabilities.MaxTextureSize.
ScreenShot(ScreenshotOptions)
Creates an image from this view.
Declaration
public Bitmap ScreenShot(ScreenshotOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ScreenshotOptions | options |
Returns
| Type | Description |
|---|---|
| Bitmap |
ScreenShot(int, int)
Creates an image of specified size from this view.
Declaration
public Bitmap ScreenShot(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height |
Returns
| Type | Description |
|---|---|
| Bitmap |
ScreenShot(int, int, ScreenshotOptions)
Creates an image of specified size from this view.
Declaration
public Bitmap ScreenShot(int width, int height, ScreenshotOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height | |
| ScreenshotOptions | options |
Returns
| Type | Description |
|---|---|
| Bitmap |
Remarks
Width and height must not be larger than Capabilities.MaxTextureSize.
SetObjectVisible(ProjectObject, bool)
Sets a value indicating whether an object is visible in this GraphicControl.
Declaration
public void SetObjectVisible(ProjectObject obj, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectObject | obj | |
| bool | value |
SyncCamera(Camera, bool, float)
Syncs the view with a Camera object.
Declaration
public void SyncCamera(Camera camera, bool updateView, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| Camera | camera | Camera object. |
| bool | updateView | If true, move view to camera; if false, move camera to view. |
| float | time | Time (in seconds) for the operation (if updateView=true). |
Unexamine(float)
Undoes the previous Examine operation(s).
Declaration
public void Unexamine(float time)
Parameters
| Type | Name | Description |
|---|---|---|
| float | time | Time (in seconds) for the operation. |
Update()
Ensures that the graphics gets updated to reflect recent changes.
Declaration
public void Update()
Remarks
There is normally no need to call this function since the graphics are updated automatically during idle processing and simulation.
UpdateAll()
Updates the contents of all graphic controls.
Declaration
public static void UpdateAll()
Remarks
There is normally no need to call this function since the graphics are updated automatically during idle processing and simulation.
ViewAll(Vector3, float)
Adjusts the view to display all objects from a new direction.
Declaration
public void ViewAll(Vector3 direction, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | direction | New view direction. |
| float | time | Time (in seconds) for the operation. |
ViewAll(float)
Adjusts the view to display all objects without changing the view direction.
Declaration
public void ViewAll(float time)
Parameters
| Type | Name | Description |
|---|---|---|
| float | time | Time (in seconds) for the operation. |
ViewCenter(Vector3, float)
Sets the view center.
Declaration
public void ViewCenter(Vector3 center, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | center | The point around which azimuth and altitude changes when changing the viewpoint. |
| float | time | Time (in seconds) for the operation. |
Zoom(float, float)
Zooms the view closer to or further from the center point.
Declaration
public void Zoom(float amount, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| float | amount | Equivalent to the number of pixels the mouse would move to zoom the same amount. Use a positive value to zoom in and a negative to zoom out. |
| float | time | Time (in seconds) for the operation. |
Events
View SourceActiveGraphicControlChanged
Declaration
public static event EventHandler ActiveGraphicControlChanged
Event Type
| Type | Description |
|---|---|
| EventHandler |
GraphicButtonClicked
Declaration
public event Action<GraphicButton> GraphicButtonClicked
Event Type
| Type | Description |
|---|---|
| Action<GraphicButton> |
GraphicButtonTracked
Declaration
public event Action<GraphicButton> GraphicButtonTracked
Event Type
| Type | Description |
|---|---|
| Action<GraphicButton> |
Initialized
Occurs when the control has finished loading.
Declaration
public event EventHandler Initialized
Event Type
| Type | Description |
|---|---|
| EventHandler |
MouseRectangle
Occurs when the user has drawn a selection rectangle with the mouse.
Declaration
public event MouseRectangleEventHandler MouseRectangle
Event Type
| Type | Description |
|---|---|
| MouseRectangleEventHandler |
RootObjectChanged
Occurs when the RootObject property has changed.
Declaration
public event EventHandler RootObjectChanged
Event Type
| Type | Description |
|---|---|
| EventHandler |