Workspace Class

Base abstract class for Eyeshot controls.
Public Class Workspace 
Inherits WorkspaceBase 
Implements ISupportWorkManager
This language is not supported or no code example is available.
public class Workspace : WorkspaceBase
ISupportWorkManager
This language is not supported or no code example is available.
Name Description
Protected constructor Workspace() Empty constructor.
Top
Name Description
Public property AccurateTransparency When true, the Accurate Transparency mode is activated. Accurate Transparency provides slower but more accurate semi-transparent object drawing with support for non-concave objects and for objects intersection.
Public property ActionMode Gets or sets the active viewport action.
Public property AllocatedCharDefs Gets the number of loaded character definitions.
Public property AnimateCamera If true, animates the camera in the commands that change its position or orientation.
Public property AnimateCameraDuration Gets or sets the duration in milliseconds of the camera animations.
Public property AntiAliasing Gets or sets a value indicating if full screen anti-aliasing is enabled.
Public property AntiAliasingSamples Gets or sets the number of desired samples for Full Screen Anti-Aliasing. The Full Screen Anti-alasing can be set with the AskForAntiAliasing property.
Public property AskForAntiAliasing If true, Full Screen Anti-Aliasing modes are requested during viewport initialization. The number of samples can be set with the AntiAliasingSamples property.
Public property AskForDirect3DLevel9_3 If true, The Direct3D feature level 9_3 is requested during viewport initialization instead of the highest feature level available.
Public property AskForHardwareAcceleration If true, OpenGL accelerated hardware modes are requested during viewport initialization.
Public property AttributeReferenceVisibilityMode Gets or sets the AttributeReferences visibility mode.
Public property AutoRefresh When true the Invalidate() and the CompileUserInterfaceElements() are automatically called after changing the properties that are defined as dependency properties.
Public property BackColor (inherited from WorkspaceBase).
Public property BackgroundImage (inherited from WorkspaceBase).
Public property BackgroundImageLayout (inherited from WorkspaceBase).
Public property Blocks Block collection. This collection contains block definitions.
Public property ButtonStyle Gets or sets the style used by the ToolBar and ProgressBar buttons.
Public property CameraChangedFrequency The interval, in milliseconds, of CameraChanged events firing.
Public property CompileWires If true, wireframe entities are compiled, otherwise they are drawn on the fly using a buffered approach.
Public property CurrentBlock Gets the current block if a BlockReference is set as current, the OpenBlock otherwise.
Public property CurrentBlockReference Gets the current BlockReference.
Public property CurrentTransformation Gets the accumulated CurrentBlockReference transformation (including its parents transformations).
Public property CursorTypes The cursor types dictionary.
Protected property DefaultSize (inherited from WorkspaceBase).
Protected property Enabled (inherited from WorkspaceBase).
Public property Entities Gets the EntityList of the CurrentBlock. This collection contains the entities displayed in the viewport.
Public property ErrorInPaint Gets a value indicating if an error occurred during paint.
Public property Font Gets or sets viewport font (WinForms).
Public property FontFamily Gets or sets viewport font family.
Public property FontSize Gets or sets viewport font.
Public property FontStyle Gets or sets viewport font.
Public property FontWeight Gets or sets viewport font.
Public property ForceHardwareAcceleration Forces accelerated hardware modes. By default, Eyeshot automatically disables hardware acceleration on some embedded GPUs to obtain the maximum level of graphical output consistency between all hardware. In these cases, enabling this property will forcibly activate hardware acceleration, though the resulting graphics output may be unpredictable.
Public property ForeColor (inherited from WorkspaceBase).
Public property FramesPerSecond Gets current frames per second rate.
Public property HatchPatterns Gets or sets the hatch patterns collection.
Public property IsAntiAliasingAvailable Returns true if Full Screen Anti-Aliasing is available.
Public property IsBestAdapterAvailable Indicates whether the best adapter is available for the renderer initialization or not.
Public property IsBusy Gets background worker thread status.
Protected property IsHandleCreated (inherited from WorkspaceBase).
Public property IsHardwareAccelerated Returns true if OpenGL hardware acceleration is currently in use.
Public property IsImmediateMode Indicates whether the control is using the immediate mode rendering, according to the WorkspaceBase.Renderer value.
Public property Static IsInDesignMode Gets a value indicating whether the control is in design mode (running in Blend or Visual Studio). (inherited from WorkspaceBase).
Public property IsInFrustumMode Gets or sets the modality used by IsInFrustum() method.
Public property IsOpenRootLevel True if the OpenBlock is the RootBlock, false otherwise.
Public property Layers Layer collection.
Public property LineTypes Gets or sets the line types collection.
Public property MagnifyingGlass Gets or sets the settings for the magnifying glass displayed under the mouse cursor.
Public property MaxHatchPatternLines Gets or sets the maximum number of hatch pattern lines allowed for each Hatch.
Public property MaxPatternRepetitions Gets or sets the maximum number of pattern repetitions allowed between two vertices of a curve.
Public property MaxTextureSize Gets the maximum texture size allowed on current OpenGL implementation (in pixel).
Public property Mouse3D 3D mouse settings.
Internal protected (Protected Friend) property Moving Tells if the viewport is performing a zoom-pan-rotate operation.
Public property MultiTouch Gets or sets the Multitouch settings.
Public property MultipleSelection If true, the selection ActionModes work as if the Control key was pressed, selecting multiple entities.
Public property OpenBlock Gets the open block.
Public property OpenglExtensions Gets a space-separated list of supported extensions to OpenGL.
Public property Parents Gets the stack of the parents of the current BlockReference.
Public property PickBoxSize Gets or sets the pick box size in pixel units.
Public property PrintDocumentName Print document name. It also appears during print preview preparation.
Public property ProgressBar Gets or sets the progress bar settings.
Public property RenderContext Graphics rendering context. Available after window handle (HWND) initialization only. (inherited from WorkspaceBase).
Public property Renderer Gets or sets the Renderer mode. (inherited from WorkspaceBase).
Public property RendererName Gets the name of the renderer. This name is typically specific to a particular configuration of a hardware platform. It does not change from release to release.
Public property RendererVendor Gets the company responsible for this GL implementation. This name does not change from release to release.
Public property RendererVersion Gets graphics API version.
Public property RightToLeft (inherited from WorkspaceBase).
Public property RootBlock Gets the root block.
Public property Selection Gets or sets the selection settings, shared by all viewports.
Public property SelectionBoxColors Gets or sets the colors used to draw the selection box and polygon.
Public property SelectionColor Obsolete. Gets or sets the color of selected entities, shared by all viewports.
Public property SelectionColorDynamic Obsolete. Gets or sets the color for the dynamic selection, shared by all viewports.
Public property SelectionLineWeightScaleFactor Obsolete. Gets or sets the factor applied to the line weight for the selected wireframe entities or Brep.Edges.
Public property ShadingLanguageVersion Gets OpenGL Shading Language version.
Public property ShortcutKeys Gets or sets the keyboard shortcuts.
Public property ShowCurveDirection If true, curve direction is displayed.
Public property ShowFps Gets or sets the frame per second rate text visibility status.
Public property ShowNormals Gets or sets the normals visibility status.
Public property Size (inherited from WorkspaceBase).
Public property SuspendSetColorForSelection Suspends the set of the color by the SetColorDrawForSelectionAndUpdateIdItemsMap.
Public property TempEntities Temporary Entity collection. This collection contains the entities displayed in the viewport on top of the others as temporary entities.
Public property TextStyles Gets or sets the text styles collection.
Public property Turbo Gets or sets the FastZPR settings. When FastZPR is active a simplified representation of the current geometry is drawn during dynamic movements (Zoom/Pan/Rotate).
Public property UseFrameBufferObject When true the frame buffer objects are used. Affects the quality of Realistic shadows. For debugging purpose only.
Public property UseShaders If true, the rendererType.OpenGL renderer uses Phong shading for better lighting, has the DisplayModeSettingsRendered.PlanarReflections with a fading out effect and better performances for the shadowType.Realistic shadows.
Public property WaitCursorMode Gets or sets the wait cursor mode. Controls if and when the wait cursor is displayed.
Public property windowHandle (inherited from WorkspaceBase).
Top
Methods
 
Name Description
Public method AddMessageFilter() (inherited from WorkspaceBase).
Public method AdjustNearAndFarPlanes() Adjusts camera near and far planes based on design extents and on origin symbol, grid and shadow visibility status.
Protected method ApplyOpacityMask() Computes the opacity mask that makes the viewports opaque and leaves a transparent space between them.
Public method BeginInit()
Public method CancelWork() Stops the asynchronous background work.
Public method Clear() Clears all the viewport master collections: entities, tempEntities, blocks, layers, materials, text styles, line types and labels.
Internal protected (Protected Friend) method ClearCharDefs()
Public method ClipCursor(Rectangle) (inherited from WorkspaceBase).
Public method CloseOpenBlock(bool) Close the OpenBlock and goes back to the visualization of the previously opened block.
Public method CompileUserInterfaceElements() Compiles 3D user interface elements like the origin symbol, the bitmap background, the FEM restraint and load symbols, etc.
Public method CompileUserInterfaceElements(Viewport) Compiles 3D user interface elements like the origin symbol, the bitmap background, the FEM restraint and load symbols, etc.
Internal protected (Protected Friend) method ComputeNonCurrentEntityColor(Entity, Color, bool, bool) Gets the color used to draw the given non-current entity.
Public method CopyTo(Workspace, bool) Copies all items inside control master collections (Viewport.Labels, Blocks, Layers, Design.Materials, TextStyles, LineTypes, HatchPatterns)) to the specified Workspace control.
Public method CopyToClipboardRaster() Copies a raster image of the current viewport scene on the clipboard.
Public method CopyToClipboardRaster(Size) Copies a raster image of the current viewport scene on the clipboard.
Public method CopyToClipboardRaster(Size, bool, bool) Copies a raster image of the current viewport scene on the clipboard.
Public method CopyToClipboardRaster(Size, double, bool, bool) Copies a raster image of the current viewport scene on the clipboard.
Public method CopyToClipboardRaster(float) Copies a raster image of the current viewport scene on the clipboard.
Public method CopyToClipboardRaster(float, double) Copies a raster image of the current viewport scene on the clipboard.
Public method CopyToClipboardVector(bool) Copies a vectorial image of the current scene of the active viewport on the clipboard.
Protected method CreateAccessibilityInstance()
Public method CreateControl() Forces the creation of the control, including the creation of the handle and any child controls. (inherited from WorkspaceBase).
Public method Static DeleteObject(IntPtr)
Public method Static DisableWpfTabletSupport() The Eyeshot WPF control with Native renderer and MultiTouchSettings.UseWindowsMessages set to true, in order to manage multitouch in an efficient way, uses WM_TOUCH to receive touch messages from a WPF window. For this reason, if you want to add it dynamically in your application, you need to call this method in the main window constructor. (inherited from WorkspaceBase).
Protected method Dispose(bool) Clean up any resources being used.
Public method DoWork(WorkUnit) Accomplishes the work and call WorkUnit.WorkCompleted method.
Public method DoubleBuffered(bool) (inherited from WorkspaceBase).
Protected method Draw3D(DrawSceneParams) Draws design, shadow and bounding box.
Internal protected (Protected Friend) method DrawBackground(DrawSceneParams) Draws the Background of the Workspace control.
Protected method DrawForSelection(DrawEntitiesParams)
Internal protected (Protected Friend) method DrawImage(int, int, Bitmap) Draws an image on the Workspace's client area.
Internal protected (Protected Friend) method DrawOMWithPreview(DrawSceneParams)
Protected method DrawOverlay(DrawSceneParams) Draws overlaying UI elements.
Protected method DrawOverlayBlended(DrawSceneParams, bool)
Protected method DrawScene(Viewport, float, float, RectangleF, bool, bool, bool) Main drawing method.
Protected method DrawShadow(float) Draws the design shadow
Internal protected (Protected Friend) method DrawText(int, int, string, Font, Color, Color, ContentAlignment) Draws a text on the Workspace's client area.
Internal protected (Protected Friend) method DrawText(int, int, string, Font, Color, Color, ContentAlignment, RotateFlipType) Draws a text on the Workspace's client area.
Internal protected (Protected Friend) method DrawText(int, int, string, Font, Color, ContentAlignment) Draws a text on the Workspace's client area.
Internal protected (Protected Friend) method DrawTextOutlined(int, int, string, Font, Color, Color, float, ContentAlignment) Draws a text on the Workspace's client area.
Protected method DrawTexture(TextureBase, int, int, ContentAlignment, bool) Draws a texture.
Protected method DrawVertexIndices(DrawSceneParams)
Protected method DrawVertices(DrawEntitiesParams) Draws the vertices of the entities.
Internal protected (Protected Friend) method DrawViewport(DrawSceneParams) Draws the viewport.
Protected method DrawViewportBackground(DrawSceneParams) Draws the viewport background and reflections.
Public method EnableToolTip(bool) (inherited from WorkspaceBase).
Public method EndInit()
Protected method EndZoomPanRotate(Viewport) Ends a sequence of Zoom-Pan-Rotate movements.
Public method Equals(Object) (inherited from Object).
Public method Static EvaluateBoundingBox(ICollection<Entity>, out Point3D, out Point3D) Evaluates the bounding box of a collection of entities without taking care of entity visibility.
Protected method Finalize (inherited from Object).
Public method FindClosestVertex(Entity, Point, double) Looks for the vertex of the specified entity whose 2D screen projection is closer to the mouse cursor.
Public method FindClosestVertex(Point, double, Type, out HitVertex) Looks for the model vertex whose 2D screen projection is closer to the mouse cursor skipping entities different from entType.
Public method FindClosestVertex(Point, double, Type, out Point3D) Looks for the model vertex whose 2D screen projection is closer to the mouse cursor skipping entities different from entType.
Public method FindClosestVertex(Point, double, Type, out int) Looks for the model vertex whose 2D screen projection is closer to the mouse cursor skipping entities different from entType.
Public method FindClosestVertex(Point, double, out HitVertex) Looks for the model vertex whose 2D screen projection is closer to the mouse cursor.
Public method FindClosestVertex(Point, double, out Point3D) Looks for the model vertex whose 2D screen projection is closer to the mouse cursor.
Public method FindClosestVertex(Point, double, out int) Looks for the model vertex whose 2D screen projection is closer to the mouse cursor.
Public method FindClosestVertices(Entity, Point, double) Looks for the model vertices of the specified entity whose 2D screen projections are closer to the mouse cursor.
Public method FindClosestVertices(Point, double) Looks for the model vertices whose 2D screen projections are closer to the mouse than the maxDistance.
Public method FindClosestVertices(Point, double, Type) Looks for the model vertices whose 2D screen projections are closer to the mouse cursor skipping entities different from entType.
Protected method FireProgressChanged(ProgressChangedEventArgs) Raises the ProgressChanged event.
Protected method FireWorkCancelled(WorkUnitEventArgs) Raises the WorkCancelled event.
Protected method FireWorkCompleted(WorkCompletedEventArgs) Raises the WorkCompleted event.
Protected method FireWorkFailed(WorkFailedEventArgs) Raises the WorkCancelled event.
Protected method FreeCursors()
Public method GetAllCrossingEntities(Rectangle, bool) Returns the list of all the visible and selectable entities geometrically crossing the selection box, regardless of their actual visibility on screen.
Public method GetAllEnclosedEntities(Rectangle) Selects all entities completely enclosed in the specified selection rectangle.
Public method GetAllEntitiesUnderMouseCursor(Point, bool) Returns all the visible (on screen) top level and selectable entities (which may include the parents stack for nested entities) under the mouse cursor in the active viewport.
Public method GetAllItemsUnderMouseCursor(Point, bool) Returns all the visible (on screen) and selectable items (which may include the parents stack for nested entities) under the mouse cursor in the active viewport.
Public method GetAllLabelsUnderMouseCursor(Point, bool) Returns all the visible labels under the mouse cursor in the active viewport.
Public method GetAllVisibleEntities(Rectangle, bool) Returns the list of all visible entities in the specified selection box in the active viewport.
Public method GetAllVisibleItems(Rectangle, bool) Returns the list of all visible items (which may include the parents stack for nested entities) in the specified selection box in the active viewport.
Public method GetAllVisibleLabels(Rectangle, bool) Returns the list of all visible labels in the specified selection box.
Public method Static GetAssembly(out string, out string, out string, out Version, out string) Gets the currently loaded assembly.
Protected method GetCrossingEntities(Rectangle, bool, bool) Returns the list of all the visible and selectable entities crossing the specified selection box.
Public method GetCrossingEntities(Rectangle, IList<Entity>, bool, bool, Transformation) Returns the list of all the visible and selectable entities crossing the specified selection box.
Public method GetCursor(cursorType) Gets the stream of the cursor. (inherited from WorkspaceBase).
Public method GetDefaultCursor() Gets the default cursor for the viewport control.
Protected method GetDefaultViewport()
Public method Static GetEntityLineType(Entity, LineTypeKeyedCollection, string, LayerKeyedCollection) Returns the entity's line type.
Protected method Static GetEntityLineWeight(Entity, Entity, LayerKeyedCollection) Gets the entity line weight.
Public method GetEntityUnderMouseCursor(Point, bool) Returns the index of the first top level entity under the mouse cursor.
Public method GetForeColor() (inherited from WorkspaceBase).
Public method GetHashCode (inherited from Object).
Public method Static GetInstallFolder() Gets the Eyeshot installation folder.
Public method GetItemUnderMouseCursor(Point, bool) Gets the first item under the mouse cursor (which may include the parents stack for nested entities).
Public method GetLabelUnderMouseCursor(Point, bool) Returns the index of the first label under the mouse cursor.
Public method GetMouseClicks(MouseButtonEventArgs) Gets the number of mouse clicks from the event args. (inherited from WorkspaceBase).
Public method GetMousePosition(DragEventArgs) Gets the mouse position from the DragEventArgs. (inherited from WorkspaceBase).
Public method GetMousePosition(MouseEventArgs) Gets the mouse position from the event args. (inherited from WorkspaceBase).
Public method GetMousePosition(TouchEventArgs) Gets the mouse position from the TouchEventArgs. (inherited from WorkspaceBase).
Public method GetMousePosition(TouchEventArgs) Gets the mouse position from the TouchEventArgs. (inherited from WorkspaceBase).
Protected method GetParentHandle() Gets the handle of the parent control.
Public method GetPixel(int, int) Gets the color of the specified pixel in this viewport
Public method Static GetSamplesFolder() Gets the Eyeshot samples path.
Public method GetScalingLevel() Gets the current display's scale factor. (inherited from WorkspaceBase).
Internal protected (Protected Friend) method GetScalingLevelRatio() Gets scaling level ratio among displays with different dpi scale factors. (inherited from WorkspaceBase).
Public method GetStackTransformation(Stack<BlockReference>) Gets the cumulative transformation of a blockreference stack.
Public method GetTemporarySelectionFaceData(Stack<BlockReference>, Entity, List<SelectionInfoSubItems>, selectionStatusType) Gives the chance to overriders to get temporary face selection data and optionally to skip temporary face selection drawing.
Protected method GetTextImage(string, Font, Color, Color, ContentAlignment, RotateFlipType, bool) Gets the text bitmap.
Internal protected (Protected Friend) method Static GetTextOutlinedImage(string, Font, Color, Color, RotateFlipType, float) Gets the outlined text image.
Public method GetType (inherited from Object).
Internal protected (Protected Friend) method GetViewportUnderMouse(Point) Returns the viewport under the given mouse position.
Internal protected (Protected Friend) method GetVisibleEntitiesFromBackBuffer(Viewport, byte[], int, int, Rectangle, bool) Returns the indices of the entities read from the back buffer in the selectionBox.
Public method GetVisualRefinementDeviation() Gets the visual refinement deviation value used by the EntityList.Regen method. It's estimated automatically from the root block extents.
Public method HideCursor(bool) (inherited from WorkspaceBase).
Public method InitializeViewports() Ensures that at least one Viewport is present in the Design.Viewports collection.
Public method Invalidate()
Internal protected (Protected Friend) method IsCloserVertex(Point3D, double, double) Tells if the projected point, whose square distance from the mouse cursor is squareDistance, is closer than the currentMinimumSquareDistance.
Public method IsDesignMode() (inherited from WorkspaceBase).
Protected method IsDragAction() Tells if the current ActionMode requires dragging.
Public method IsErrorInPaint()
Protected method IsInputKey(Keys)
Protected method IsSelectAction() Tells if the current ActionMode is one of the selection ones.
Protected method IsSelectByBoxAction() Tells if the current ActionMode is one of the ByBox ones.
Protected method IsSelectByPickAction() Tells if the current ActionMode is one of the ByPick ones.
Protected method IsSelectByPolygonAction() Tells if the current ActionMode is one of the ByPolygon ones.
Public method IsolateBlocks(IReadOnlyCollection<Block>) Isolate a collection of blocks by showing the others in a transparent state. Pass null to unset the isolated blocks.
Public method IsolateInstances(IReadOnlyList<Tuple<Stack<BlockReference>Entity>>) Isolate a collection of entities by showing the others in a transparent state. Pass null to unset the isolated entities.
Public method IsolateSelected(IReadOnlyList<SelectedItemBase>) Isolate a collection of entities by showing the others in a transparent state. Pass null to unset the isolated entities.
Public method LoadPickCursor() Gets the Pick Cursor stream.
Public method LoadScene(Stream) Obsolete.

Restores the current scene from disk, including entities, textures, blocks and labels.

Public method LoadScene(string) Obsolete.

Restores the current scene from disk, including entities, textures, blocks and labels.

Public method Static MakeLoop(IList<ICurve>, int, double, bool) Obsolete. Analyzes a number of entities and returns a closed loop of points starting from the entity at startIndex. You can provide an array of 100 entities an get a 3D loop of a square made up of 4 lines. Entities connection is checked using chordalError parameter, if the end points of two entities are farther of this value they will not be connected.
Public method ManageToolTip(string) (inherited from WorkspaceBase).
Protected method MemberwiseClone (inherited from Object).
Public method NextView() Restores the next view previously saved on the Viewport.SavedViews stack.
Protected method OnAnimationTimerTick(object) Occurs every timer tick. Call base class method when overriding.
Protected method OnDoubleClick(EventArgs)
Protected method OnDpiChanged(DpiScale, DpiScale) (inherited from WorkspaceBase).
Protected method OnGotFocus(EventArgs)
Protected method OnHandleCreated(EventArgs)
Protected method OnHandleDestroyed(EventArgs)
Protected method OnKeyDown(KeyEventArgs)
Protected method OnKeyUp(KeyEventArgs)
Protected method OnLoaded(object, EventArgs) (inherited from WorkspaceBase).
Protected method OnLostFocus(EventArgs) Synchronize hasFocus parameter, reset action, redraw the control.
Protected method OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) (inherited from WorkspaceBase).
Protected method OnManipulationDelta(ManipulationDeltaEventArgs)
Protected method OnManipulationStarting(ManipulationStartingEventArgs)
Internal protected (Protected Friend) method OnMouse3DButtonDown(object, ButtonEventArgs) Occurs every Mouse3DButtonDown event.
Internal protected (Protected Friend) method OnMouse3DButtonUp(object, ButtonEventArgs) Occurs every Mouse3DButtonUp event.
Internal protected (Protected Friend) method OnMouse3DMove(object, MoveEventArgs) Occurs every Mouse3DMove event.
Protected method OnMouseClick(MouseEventArgs)
Protected method OnMouseDown(MouseEventArgs)
Protected method OnMouseEnter(EventArgs)
Protected method OnMouseLeave(EventArgs)
Protected method OnMouseMove(MouseEventArgs)
Protected method OnMouseUp(MouseEventArgs)
Protected method OnMouseWheel(MouseEventArgs)
Internal protected (Protected Friend) method OnMultiTouchClick(object, MouseEventArgs) Occurs every MultiTouchClick event.
Internal protected (Protected Friend) method OnMultiTouchClick(object, MouseButtonEventArgs)
Internal protected (Protected Friend) method OnMultiTouchDoubleClick(object, MouseEventArgs) Occurs every MultiTouchDoubleClick event.
Internal protected (Protected Friend) method OnMultiTouchDoubleClick(object, MouseButtonEventArgs)
Internal protected (Protected Friend) method OnMultiTouchDown(object, TouchEventArgs) Occurs every MultiTouchDown event.
Internal protected (Protected Friend) method OnMultiTouchMove(object, TouchEventArgs) Occurs every MultiTouchMove event.
Internal protected (Protected Friend) method OnMultiTouchUp(object, TouchEventArgs) Occurs every MultiTouchUp event.
Protected method OnPaint(PaintEventArgs)
Protected method OnPaint()
Protected method OnPaintBackground(PaintEventArgs) (inherited from WorkspaceBase).
Protected method OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) (inherited from WorkspaceBase).
Protected method OnPreviewMouseDown(MouseButtonEventArgs) (inherited from WorkspaceBase).
Protected method OnRenderSizeChanged(SizeChangedInfo) This method is invoked after layout update, and before rendering, if the element's RenderSize has changed as a result of layout update. (inherited from WorkspaceBase).
Protected method OnResize(EventArgs)
Protected method OnStylusSystemGesture(StylusSystemGestureEventArgs)
Protected method OnTouchDown(TouchEventArgs)
Protected method OnTouchMove(TouchEventArgs)
Protected method OnTouchUp(TouchEventArgs)
Public method OpenCurrentBlock(bool) Open CurrentBlock. The OriginSymbol and Grid are in the Block reference system.
Public method PageSetup(bool, bool, Nullable<Int32>, PaperSize, Nullable<Boolean>) Defines the Page Setup.
Internal protected (Protected Friend) method PaintBackBuffer() Paints the viewport surface without redrawing the whole scene.
Public method PaintBackground(PaintEventArgs) (inherited from WorkspaceBase).
Protected method PaintDesignError(Graphics)
Public method PanCamera(Point, Point) Pans the view from one screen point to the other.
Public method PanCamera(Point, Point, bool) Pans the view from one screen point to the other.
Public method PanDown(int) Pans the view downwards.
Public method PanLeft(int) Pans the view to the left.
Public method PanRight(int) Pans the view to the right.
Public method PanUp(int) Pans the view upwards.
Public method ParentBackColor() (inherited from WorkspaceBase).
Public method ParentExists() (inherited from WorkspaceBase).
Public method PointToScreenControl(Point) (inherited from WorkspaceBase).
Protected method PostRemoveJitteringForFastZPR(RenderContextBase)
Public method PreFilterMessage(int, IntPtr)
Protected method PreRemoveJitteringForFastZPR(DrawSceneParams, bool)
Protected method PrepareToolTip() (inherited from WorkspaceBase).
Public method PreviousView() Restores the previous view on the Viewport.SavedViews stack.
Public method ProcessSelection(Rectangle, bool, bool, out int[], List<Int32>, bool) Obsolete.

Selects each entity crossing the specified selection rectangle.

This method is deprecated. Use the overload with the SelectionChangedEventArgs parameter.

Public method ProcessSelection(Rectangle, bool, bool, SelectionChangedEventArgs, bool) Selects each entity crossing the specified selection rectangle.
Protected method ProcessSelectionByPolygon(List<Point2D>, bool, out int[], List<Int32>) Obsolete.

Selects each entity crossing the specified selection polygon.

This method is deprecated. Use the overload with the SelectionChangedEventArgs parameter.

Public method ProcessSelectionByPolygon(List<Point2D>, bool, SelectionChangedEventArgs) Selects each entity crossing the specified selection polygon.
Protected method ProcessSelectionByPolygonEnclosed(List<Point2D>, bool, out int[], List<Int32>) Obsolete.

Selects each entity completely enclosed in the specified selection rectangle.

This method is deprecated. Use the overload with the SelectionChangedEventArgs parameter.

Public method ProcessSelectionByPolygonEnclosed(List<Point2D>, bool, SelectionChangedEventArgs) Selects each entity completely enclosed in the specified selection rectangle.
Protected method ProcessSelectionByPolygonVisibleOnly(List<Point2D>, bool, out int[], List<Int32>) Obsolete.

Selects each visible entity in the specified selection polygon.

This method is deprecated. Use the overload with the SelectionChangedEventArgs parameter.

Public method ProcessSelectionByPolygonVisibleOnly(List<Point2D>, bool, SelectionChangedEventArgs) Selects each visible entity in the specified selection polygon.
Public method ProcessSelectionEnclosed(Rectangle, bool, bool, out int[], List<Int32>) Obsolete.

Selects each entity completely enclosed in the specified selection rectangle.

This method is deprecated. Use the overload with the SelectionChangedEventArgs parameter.

Public method ProcessSelectionEnclosed(Rectangle, bool, bool, SelectionChangedEventArgs) Selects each entity completely enclosed in the specified selection rectangle.
Public method ProcessSelectionVisibleOnly(Rectangle, bool, bool, SelectionChangedEventArgs, bool, bool) Selects only visible entities in the specified rectangle.
Public method ProcessSelectionVisibleOnlyLabels(Rectangle, bool, bool, SelectionChangedEventArgs, bool) Selects only visible labels in the specified rectangle.
Public method ProcessSemiTransparent() Performs semi-transparent entities pre-processing.
Protected method PropagateAttributesAndProcessBlockReferenceForSelection(DrawEntitiesParams, Entity, GfxAttributesWire, drawForSelectionCallback)
Public method Purge() Removes unused items from the Workspace master collections (Layers, Blocks, Materials, etc.).
Public method Refresh() Forces the control to invalidate its client area and immediately redraw itself and any child controls. (inherited from WorkspaceBase).
Public method RemoveJittering(string) Creates a block with the selected Entities, computes the center of their bounding box, translates them all of the negative of that quantity and returns a BlockReference to that block.
Public method RemoveJittering(BlockReference) Gets the blockreference entities, computes the center of their bounding box, translates them all of the negative of that quantity and translates the blockreference back to the original position.
Public method RemoveMessageFilter() (inherited from WorkspaceBase).
Public method RenderToBitmap(Rectangle, double, bool, bool) Returns an image of the current Workspace scene of the active viewport. The image can be scaled even to a poster size one.
Public method RenderToBitmap(Rectangle, double, double, bool, bool) Returns an image of the current Workspace scene of the active viewport. The image can be scaled even to a poster size one.
Public method RenderToBitmap(RectangleF, Size, bool, bool) Returns an image of the current Workspace scene. The image can be scaled even to a poster size one.
Public method RenderToBitmap(RectangleF, Size, double, bool, bool) Returns an image of the current Workspace scene. The image can be scaled even to a poster size one.
Public method RenderToBitmap(Size) Returns an image of the current Workspace scene. The image can be scaled even to a poster size one.
Public method RenderToBitmap(Size, bool, bool) Returns an image of the current Workspace scene. The image can be scaled even to a poster size one.
Public method RenderToBitmap(Size, double, bool, bool) Returns an image of the current Workspace scene. The image can be scaled even to a poster size one.
Public method RenderToBitmap(double) Returns an image of the current viewport scene. The image can be scaled even to a poster size one.
Public method RenderToBitmap(double, bool, bool) Returns an image of the current Workspace scene of the active viewport. The image can be scaled even to a poster size one.
Public method RenderToBitmap(double, double, bool, bool) Returns an image of the current Workspace scene of the active viewport. The image can be scaled even to a poster size one.
Public method ResetOpenBlocks(bool) Close all opened blocks up to the root one.
Public method ResizeBegin()
Protected method ResizeViewports() Resizes the Viewports.
Internal protected (Protected Friend) method RestoreCursor(CursorContainer) // Occurs when the cursor changes. //
Public method RestoreView(Camera) Restores the previously saved view in the active viewport.
Public method RestoreViewportsForDesignTime(DesignTimeFuncHandler)
Public method RotateCamera(Point) Sets the view direction as the normal of the plane under the mouse cursor.
Public method SaveScene(Stream) Obsolete. Saves the current scene on disk, including entities, textures, blocks and layouts.
Public method SaveScene(string) Obsolete. Saves the current scene on disk, including entities, textures, blocks and layouts.
Public method SaveView() Saves the current view on the Viewport.SavedViews stack.
Public method SaveView(out Camera) Stores the current view in the active viewport.
Public method ScaleForDPI() Scales the element for high DPI settings.
Public method ScreenToPlane(IList<Point>, Plane) Maps screen coordinates to world coordinates in the active viewport.
Public method ScreenToPlane(IList<Point>, PlaneEquation) Maps screen coordinates to world coordinates in the active viewport.
Public method ScreenToPlane(Point, Plane, out Point3D) Maps screen coordinates to world coordinates in the active viewport.
Public method ScreenToPlane(Point, PlaneEquation, out Point3D) Maps screen coordinates to world coordinates in the active viewport.
Public method ScreenToWorld(Point) Maps screen coordinates to world coordinates.
Public method ScreenToWorld(IList<Point>) Maps screen coordinates to world coordinates.
Public method Static SelectObject(IntPtr, IntPtr)
Public method SetColorDrawForSelection(int) Sets a coded color depending on the entity id.
Public method SetColorDrawForSelectionAndUpdateIdItemsMap<T>(GfxDrawForSelectionParams, ISelectableItem, int, int) Sets a coded color depending on the entity id.
Public method SetCurrent(BlockReference, bool) Sets a BlockReference as current.
Public method SetCurrentStack(Stack<BlockReference>, bool) Sets a sequence of BlockReferences as current.
Public method SetCursor(Cursor) Sets the cursor.
Public method SetDefaultCursor(Cursor) Sets the default cursor for the viewport control.
Public method SetFocus(KeyEventArgs) Sets the focus to the control.
Public method SetParentAsCurrent(bool) Sets the parent of the current BlockReference (if it exists) as current.
Public method SetParentHandle(IntPtr) Sets the handle of the parent control.
Public method SetPrinterSettings(PrinterSettings, bool) Set the printer settings.
Public method SetSelectionAsCurrent(bool) Sets the selected BlockReference as current (if there is one).
Public method SetView(Quaternion, Point3D, double, double) Sets the specified view in the active viewport by doing an animation.
Public method SetView(Quaternion, Point3D, double, double, bool) Sets the specified view in the active viewport.
Public method SetView(Vector3D, Vector3D, bool, bool, int, bool) Sets the view direction of the camera to the specified direction.
Public method SetView(Vector3D, Vector3D, bool, int, bool) Sets the view direction of the camera to the specified direction.
Public method SetView(Vector3D, bool, bool, int, bool) Sets the view direction of the camera to the specified direction.
Public method SetView(Vector3D, bool, int, bool) Sets the view direction of the camera to the specified direction.
Public method SetView(viewType) Sets the specified view in the active viewport.
Public method SetView(viewType, bool, bool) Sets the specified view in the active viewport.
Public method SetView(viewType, bool, bool, int, bool) Sets the specified view in the active viewport.
Public method SetViewportsForDesignTime(DesignTimeFuncHandler)
Internal protected (Protected Friend) method SetWaitCursor()
Protected method SimplifyOnFastZPR(DrawSceneParams)
Protected method SortEntitiesForTransparency(Viewport, IList<Entity>) Sorts the transparent entities from the farthest to the nearest to the camera for better rendering. Don't use if Design.MinimumFramerate is enabled.
Public method StartWork(WorkUnit) Starts the work asynchronously.
Internal protected (Protected Friend) method StartZoomPanRotate(MouseEventArgs, Viewport) Starts a sequence of Zoom-Pan-Rotate movements if the proper keys/mouse buttons are pressed.
Internal protected (Protected Friend) method SwapBuffers() Swaps the front and back buffers.
Public method ToString (inherited from Object).
Public method UpdateBoundingBox() Computes the scene bounding box, rebuilds simplified representation and updates some important variables. If the bounding box, grid or shadow are visible, it updates them too.
Public method UpdateVisibleSelection() This method needs to be called before using one of the visible selection action modes or one of the methods that get the entities (or labels) under the mouse cursor if the Entity.Visible or the Entity.Selectable (or Label.Visible or Label.Selectable in case of labels selection) changed and the camera was not moved.
Public method UpdateWorkspace() Updates the workspace control in both desing-time and run-time mode. If necessary adjust near and far planes to accomodate origin symbols of various sizes.
Public method WndProcMouse3D(IntPtr, int, IntPtr, IntPtr, ref bool)
Public method WorldToScreen(Point3D) Maps world coordinates to screen coordinates.
Public method WorldToScreen(double, double, double) Maps world coordinates to screen coordinates.
Public method WorldToScreen(IList<Point3D>) Maps world coordinates to screen coordinates.
Public method WriteToFileRaster(float, double, string, ImageFormat, bool, bool) Saves a raster image of the current viewport scene on disk.
Public method WriteToFileRaster(float, string, ImageFormat) Saves a raster image of the current viewport scene on disk.
Public method WriteToFileRaster(float, string, ImageFormat, bool, bool) Saves a raster image of the current viewport scene on disk.
Public method WriteToFileVector(bool, string) Saves a vectorial image of the current scene of the active viewport on disk in EMF format.
Public method ZoomCamera(Point, int) Zooms the view of the specified amount.
Public method ZoomCamera(Point, int, bool) Zooms the view of the specified amount.
Public method ZoomCamera(int) Zooms the view of the specified amount.
Public method ZoomCamera(int, bool) Zooms the view of the specified amount.
Public method ZoomCamera(int, double) Zooms the view of the specified amount.
Public method ZoomCamera(int, double, bool) Zooms the view of the specified amount.
Public method ZoomFit() Fits the entire scene in the viewport control's client area.
Public method ZoomFit(IList<Entity>, bool) Fits the entire scene in the viewport control's client area.
Public method ZoomFit(IList<Entity>, bool, int) Fits the entire scene in the viewport control's client area.
Public method ZoomFit(IList<SelectedItem>) Fits the selected items.
Public method ZoomFit(IList<SelectedItem>, int) Fits the selected items.
Public method ZoomFit(IList<SelectedItem>, int, perspectiveFitType) Fits the selected items.
Public method ZoomFit(bool) Fits the entire scene in the viewport control's client area.
Public method ZoomFit(bool, int) Fits the entire scene in the viewport control's client area.
Public method ZoomFit(int) Fits the entire scene in the viewport control's client area.
Public method ZoomFitSelectedLeaves() Fits the selected entities, including the ones inside BlockReferences.
Public method ZoomFitSelectedLeaves(int) Fits the selected entities, including the ones inside BlockReferences.
Public method ZoomFitSelectedLeaves(int, perspectiveFitType) Fits the selected entities, including the ones inside BlockReferences.
Public method ZoomIn(int) Zooms the view in.
Public method ZoomOut(int) Zooms the view out.
Public method ZoomWindow(Point, Point) Zooms to the specified window.
Top
Events
 
Name Description
Public event BoundingBoxChanged Occurs when the scene bounding box has changed.
Public event CameraChanged Occurs when camera changes its position.
Public event CameraMoveBegin Occurs when a camera Zoom/Pan/Rotate camera movement begins.
Public event CameraMoveEnd Occurs when a Zoom/Pan/Rotate camera movement ends.
Public event ErrorOccurred Occurs when an error happens during the drawing.
Public event InitializeScene Occurs when the control is shown for the first time. (inherited from WorkspaceBase).
Public event Mouse3DButtonDown Occurs when a Mouse3D button is pressed.
Public event Mouse3DButtonUp Occurs when a Mouse3D button is pressed.
Public event Mouse3DMove Occurs when a Mouse3D movement operation is performed.
Public event MultiTouchClick Occurs when a finger touches and holds a multitouch surface.
Public event MultiTouchDoubleClick
Public event MultiTouchDown
Public event MultiTouchMove
Public event MultiTouchUp Occurs when a multitouch surface is released.
Public event NavigationTimerTick Occurs during the scene navigation with the keyboard.
Public event ProgressChanged Occurs when the read/write progress has changed.
Public event SelectionChanged Occurs when entity selection has changed.
Public event TouchClick Occurs when a finger touches and holds the touch surface.
Public event TouchDoubleClick Occurs when the touch surface is double-clicked.
Public event ViewChanged Occurs when the SetView is called.
Public event WorkCancelled Occurs when the background work is cancelled.
Public event WorkCompleted Occurs when the background work has completed.
Public event WorkFailed Occurs when the background work has failed.
Top
Classes
 
Name Description
Public class CameraMoveEventArgs Provides data for the Workspace.CameraMoveBegin and Workspace.CameraMoveEnd events.
Public class DrawEntitiesParams
Public class DrawSceneParams Class that holds the parameters used to draw the viewport.
Public class ErrorOccurredEventArgs Provides data for the Workspace.ErrorOccurred event.
Public class GfxAttributes Base class for attributes propagation.
Public class GfxAttributesColor Class that propagates the color attribute.
Public class GfxAttributesMaterialFlat Class that propagates the attributes for flat display mode with flatColorMethodType.EntityMaterial ColorMethod.
Public class GfxAttributesRendered Class that propagates also the Material.
Public class GfxAttributesWire Class that propagates Color, LineWeight, LineTypePattern and LineTypePatternLength.
Public class SelectedContour Class that represents a selected contour of a Region.
Public class SelectedEdge Class that represents a selected edge.
Public class SelectedFace Class that represents a selected face.
Public class SelectedItem Class that holds information of the selected entity with its parents.
Public class SelectedItemBase Base class for selected items.
Public class SelectedSketchCurve Class that represents a selected curve of a Sketch.
Public class SelectedSketchPoint Class that represents a selected point of a Sketch.
Public class SelectedSubCurve Class that represents a selected subCurve of a CompositeCurve.
Public class SelectedSubItem Class used for selection of faces, vertices and edges.
Public class SelectedVertex Class that represents a selected vertex.
Public class SelectionChangedEventArgs Provides data for the Workspace.SelectionChanged event.
Public class SelectionInfoItem Class that holds the information of the selected item.
Public class SelectionInfoItemBase Base class for selection info items.
Public class SelectionInfoSubItems Class that holds the information of the selected sub-items.
Public class SelectionInfoSubItemsArray Class that holds the information of the selected sub items (Brep inners).
Public class ViewChangedEventArgs Class that holds the arguments for Workspace.ViewChanged event.
Top
Name Description
Public structure CursorContainer Structure that holds the Cursor (or Cursors) used by the control.
Public structure SelectionInfo Element selection information class definition.
Top
Name Description
Public delegate BoundingBoxChangedHandler
Public delegate CameraMoveEventHandler Represents the method that will handle the Workspace.CameraMoveBegin and Workspace.CameraMoveEnd events.
Public delegate DesignTimeFuncHandler
Public delegate DrawForSelectionEntityDelegate Draw for selection delegate.
Public delegate DrawTransparentEntityRenderedDelegate Callback for drawing the transparent entities.
Public delegate ErrorEventHandler Represents the method that will handle the Workspace.ErrorOccurred event.
Public delegate NavigationTimerHandler Represents the method that will handle the Workspace.NavigationTimerTick event.
Public delegate SelectionChangedEventHandler Represents the method that will handle the Workspace.SelectionChanged and Viewport.LabelSelectionChangedevent.
Public delegate ViewChangedEventHandler Represents the method that will handle the Workspace.ViewChanged event.
Public delegate drawCallback
Public delegate drawForSelectionCallback Delegate method for DrawForSelection.
Top
Name Description
Public enumeration CameraEyePosType Defines the position of the 3D camera.
Public enumeration assemblySelectionType The assembly selection type.
Top

.NET Framework

Supported in: 4.7.2

In this article

Definition