Class ModelView
The ModelView is the three-dimensional presentation of a single Model.
Inheritance
System.Object
ModelView
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
public class ModelView : IShowPropertyImpl, IShowProperty, IPropertyEntry, ICommandHandler, IView, IActionInputView
Constructors
|
Improve this Doc
View Source
ModelView(Project)
Declaration
public ModelView(Project project)
Parameters
| Type |
Name |
Description |
| Project |
project |
|
Properties
|
Improve this Doc
View Source
Gets or sets a flag which controls the context menu when a right mouse click in this view happens.
Declaration
public bool AllowContextMenu { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
AllowDrag
Gets or sets a flag which controls the dragging from this view, whether this view may be a source to DragAndDrop.
Declaration
public bool AllowDrag { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
AllowDrop
Gets or sets a flag which controls whether a dragged object may be dropped on this view.
Declaration
public bool AllowDrop { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
BackgroundColor
Declaration
public Color BackgroundColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
|
|
Improve this Doc
View Source
Overrides ContextMenu,
returns the context menu with the id "MenuId.ModelView".
(see )
Declaration
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Overrides
|
Improve this Doc
View Source
DisplayRectangle
Declaration
public Rectangle DisplayRectangle { get; }
Property Value
| Type |
Description |
| System.Drawing.Rectangle |
|
|
Improve this Doc
View Source
Distance
Declaration
public double Distance { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
EntryType
Declaration
public override ShowPropertyEntryType EntryType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
FixPoint
Declaration
public GeoPoint FixPoint { get; set; }
Property Value
|
Improve this Doc
View Source
FixPointValid
Declaration
public bool FixPointValid { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsShading
Declaration
public bool IsShading { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
LabelText
Declaration
public override string LabelText { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
|
Improve this Doc
View Source
LabelType
Declaration
public override ShowPropertyLabelFlags LabelType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
LineWidthMode
Declaration
public bool LineWidthMode { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Model
Declaration
public Model Model { get; set; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
ProjectedModel
Declaration
public ProjectedModel ProjectedModel { get; set; }
Property Value
|
Improve this Doc
View Source
Projection
Declaration
public Projection Projection { get; set; }
Property Value
|
Improve this Doc
View Source
SubEntries
Overrides SubEntries,
returns the subentries in this property view.
Declaration
public override IShowProperty[] SubEntries { get; }
Property Value
Overrides
|
Improve this Doc
View Source
SubEntriesCount
Overrides SubEntriesCount,
returns the number of subentries in this property view.
Declaration
public override int SubEntriesCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
|
Improve this Doc
View Source
SupressAutoRegeneration
Declaration
public bool SupressAutoRegeneration { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ZAxisUp
Declaration
public bool ZAxisUp { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
|
Improve this Doc
View Source
Added(IPropertyPage)
Declaration
public override void Added(IPropertyPage propertyTreeView)
Parameters
Overrides
|
Improve this Doc
View Source
DoDragDrop(GeoObjectList, DragDropEffects)
Declaration
public DragDropEffects DoDragDrop(GeoObjectList dragList, DragDropEffects all)
Parameters
Returns
|
Improve this Doc
View Source
EndEdit(Boolean, Boolean, String)
Declaration
public override void EndEdit(bool aborted, bool modified, string newValue)
Parameters
| Type |
Name |
Description |
| System.Boolean |
aborted |
|
| System.Boolean |
modified |
|
| System.String |
newValue |
|
Overrides
|
Improve this Doc
View Source
Finalize()
Declaration
protected void Finalize()
|
Improve this Doc
View Source
ForceInvalidateAll()
Declaration
public void ForceInvalidateAll()
|
Improve this Doc
View Source
GetContentsAsBitmap()
Declaration
public Bitmap GetContentsAsBitmap()
Returns
| Type |
Description |
| System.Drawing.Bitmap |
|
|
Improve this Doc
View Source
GetVisibleBoundingRect()
Declaration
public BoundingRect GetVisibleBoundingRect()
Returns
|
Improve this Doc
View Source
GetVisibleLayers()
Declaration
public Layer[] GetVisibleLayers()
Returns
|
Improve this Doc
View Source
Invalidate()
Declaration
|
Improve this Doc
View Source
IsLayerVisible(Layer)
Declaration
public bool IsLayerVisible(Layer l)
Parameters
| Type |
Name |
Description |
| Layer |
l |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
LabelChanged(String)
Declaration
public override void LabelChanged(string NewText)
Parameters
| Type |
Name |
Description |
| System.String |
NewText |
|
Overrides
|
Improve this Doc
View Source
MakeEverythingTranparent(Boolean)
Declaration
public void MakeEverythingTranparent(bool transparent)
Parameters
| Type |
Name |
Description |
| System.Boolean |
transparent |
|
|
Improve this Doc
View Source
OnDragEnter(DragEventArgs)
Declaration
public void OnDragEnter(DragEventArgs drgevent)
Parameters
|
Improve this Doc
View Source
OnDragOver(DragEventArgs)
Declaration
public void OnDragOver(DragEventArgs drgevent)
Parameters
|
Improve this Doc
View Source
Recalc()
Declaration
|
Improve this Doc
View Source
Declaration
public void RecalcScrollPosition()
|
Improve this Doc
View Source
RefreshBackground()
Declaration
public void RefreshBackground()
|
Improve this Doc
View Source
Removed(IPropertyTreeView)
Declaration
public override void Removed(IPropertyTreeView propertyTreeView)
Parameters
| Type |
Name |
Description |
| IPropertyTreeView |
propertyTreeView |
the IPropertyTreeView from which it was removed
|
Overrides
|
Improve this Doc
View Source
Declaration
public void Scroll(int HScrollOffset, int VScrollOffset)
Parameters
| Type |
Name |
Description |
| System.Int32 |
HScrollOffset |
|
| System.Int32 |
VScrollOffset |
|
|
Improve this Doc
View Source
SetAdditionalExtent(BoundingCube)
Declaration
public void SetAdditionalExtent(BoundingCube bc)
Parameters
|
Improve this Doc
View Source
SetDisplayPrecision(Double)
Sets the precision for the display of non linear entities (e.g. arcs). Choose a small value for high precision.
Declaration
public void SetDisplayPrecision(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
Maximum deviation from exact position
|
|
Improve this Doc
View Source
SetLayerVisibility(Layer, Boolean)
Declaration
public void SetLayerVisibility(Layer l, bool visible)
Parameters
| Type |
Name |
Description |
| Layer |
l |
|
| System.Boolean |
visible |
|
|
Improve this Doc
View Source
SetProjection(GeoVector, GeoPoint, Double)
Set the direction of the view, the center and the scaling factor
Declaration
public void SetProjection(GeoVector direction, GeoPoint center, double scalingFactor)
Parameters
| Type |
Name |
Description |
| GeoVector |
direction |
The direction
|
| GeoPoint |
center |
The center in worldcoordinates
|
| System.Double |
scalingFactor |
World units to pixel
|
|
Improve this Doc
View Source
SetViewDirection(ModOp, GeoPoint, Boolean)
Declaration
public void SetViewDirection(ModOp project, GeoPoint fixPoint, bool mouseIsDown)
Parameters
| Type |
Name |
Description |
| ModOp |
project |
|
| GeoPoint |
fixPoint |
|
| System.Boolean |
mouseIsDown |
|
|
Improve this Doc
View Source
SetViewPosition(Point, Point)
Declaration
public void SetViewPosition(Point lastMousePosition, Point currentMousePosition)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
lastMousePosition |
|
| System.Drawing.Point |
currentMousePosition |
|
|
Improve this Doc
View Source
ZoomToModelExtent(Rectangle, Double)
Declaration
public void ZoomToModelExtent(Rectangle ClientRect, double Factor)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
ClientRect |
|
| System.Double |
Factor |
|
|
Improve this Doc
View Source
ZoomToRect(BoundingRect)
Declaration
public void ZoomToRect(BoundingRect visibleRect)
Parameters
|
Improve this Doc
View Source
ZoomTotal(Double)
Zoom to the extent of the displayed model. Use 1.1 as a factor to leave some small amound of border
area blank. Use 1.0 to exactely fit into the window
Declaration
public void ZoomTotal(double Factor)
Parameters
| Type |
Name |
Description |
| System.Double |
Factor |
Additional scaling factor
|
|
Improve this Doc
View Source
ZoomTotal(Rectangle, Double)
Declaration
public void ZoomTotal(Rectangle ClientRect, double Factor)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
ClientRect |
|
| System.Double |
Factor |
|
Events
|
Improve this Doc
View Source
DisplayChangedEvent
Declaration
public event ModelView.DisplayChangedDelegate DisplayChangedEvent
Event Type
|
Improve this Doc
View Source
MouseDoubleClick
Provide an event handler for the mouse double click message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseDoubleClick
Event Type
|
Improve this Doc
View Source
MouseDown
Provide an event handler for the mouse down message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseDown
Event Type
|
Improve this Doc
View Source
MouseMove
Provide an event handler for the mouse move message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseMove
Event Type
|
Improve this Doc
View Source
MouseUp
Provide an event handler for the mouse up message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseUp
Event Type
|
Improve this Doc
View Source
MouseWheel
Provide an event handler for the mouse wheel message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseWheel
Event Type
|
Improve this Doc
View Source
PaintBackgroundEvent
Declaration
public event PaintView PaintBackgroundEvent
Event Type
|
Improve this Doc
View Source
PaintClearEvent
Declaration
public event PaintView PaintClearEvent
Event Type
|
Improve this Doc
View Source
PrePaintBackground
Event to modify backgroung painting
Declaration
public event ModelView.PaintBackgroundDelegate PrePaintBackground
Event Type
|
Improve this Doc
View Source
ProjectionChangedEvent
Event for notification of view position and direction changes
Declaration
public event ModelView.ProjectionChangedDelegate ProjectionChangedEvent
Event Type
|
Improve this Doc
View Source
Declaration
public event ScrollPositionChanged ScrollPositionChangedEvent
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
IView.AdjustPoint(GeoPoint, Point, out GeoPoint, GeoObjectList)
Declaration
SnapPointFinder.DidSnapModes IView.AdjustPoint(GeoPoint BasePoint, Point MousePoint, out GeoPoint WorldPoint, GeoObjectList ToIgnore)
Parameters
Returns
|
Improve this Doc
View Source
IView.AdjustPoint(Point, out GeoPoint, GeoObjectList)
Declaration
SnapPointFinder.DidSnapModes IView.AdjustPoint(Point MousePoint, out GeoPoint WorldPoint, GeoObjectList ToIgnore)
Parameters
Returns
|
Improve this Doc
View Source
IView.Canvas
Declaration
ICanvas IView.Canvas { get; }
Returns
|
Improve this Doc
View Source
IView.Connect(ICanvas)
Declaration
void IView.Connect(ICanvas canvas)
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
|
Improve this Doc
View Source
IView.DoDragDrop(GeoObjectList, DragDropEffects)
Declaration
DragDropEffects IView.DoDragDrop(GeoObjectList dragList, DragDropEffects all)
Parameters
Returns
|
Improve this Doc
View Source
IView.GetDataPresent(Object)
Declaration
GeoObjectList IView.GetDataPresent(object data)
Parameters
| Type |
Name |
Description |
| System.Object |
data |
|
Returns
|
Improve this Doc
View Source
IView.GetShowProperties(IFrame)
Declaration
IShowProperty IView.GetShowProperties(IFrame Frame)
Parameters
| Type |
Name |
Description |
| IFrame |
Frame |
|
Returns
|
Improve this Doc
View Source
Declaration
void IView.HScroll(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
|
Improve this Doc
View Source
IView.Invalidate(PaintBuffer.DrawingAspect, Rectangle)
Declaration
void IView.Invalidate(PaintBuffer.DrawingAspect aspect, Rectangle ToInvalidate)
Parameters
|
Improve this Doc
View Source
IView.InvalidateAll()
Declaration
void IView.InvalidateAll()
|
Improve this Doc
View Source
IView.LastSnapMode
Declaration
SnapPointFinder.DidSnapModes IView.LastSnapMode { get; }
Returns
|
Improve this Doc
View Source
IView.LastSnapObject
Declaration
IGeoObject IView.LastSnapObject { get; }
Returns
|
Improve this Doc
View Source
IView.OnDragDrop(DragEventArgs)
Declaration
void IView.OnDragDrop(DragEventArgs drgevent)
Parameters
|
Improve this Doc
View Source
IView.OnDragLeave(EventArgs)
Declaration
void IView.OnDragLeave(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
|
Improve this Doc
View Source
IView.OnMouseDoubleClick(MouseEventArgs)
Declaration
void IView.OnMouseDoubleClick(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnMouseDown(MouseEventArgs)
Declaration
void IView.OnMouseDown(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnMouseEnter(EventArgs)
Declaration
void IView.OnMouseEnter(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
|
Improve this Doc
View Source
IView.OnMouseHover(EventArgs)
Declaration
void IView.OnMouseHover(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
|
Improve this Doc
View Source
IView.OnMouseLeave(EventArgs)
Declaration
void IView.OnMouseLeave(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
|
Improve this Doc
View Source
IView.OnMouseMove(MouseEventArgs)
Declaration
void IView.OnMouseMove(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnMouseUp(MouseEventArgs)
Declaration
void IView.OnMouseUp(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnMouseWheel(MouseEventArgs)
Declaration
void IView.OnMouseWheel(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnPaint(PaintEventArgs)
Declaration
void IView.OnPaint(PaintEventArgs e)
Parameters
|
Improve this Doc
View Source
IView.OnSizeChanged(Rectangle)
Declaration
void IView.OnSizeChanged(Rectangle oldRectangle)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
oldRectangle |
|
|
Improve this Doc
View Source
IView.PaintType
Declaration
string IView.PaintType { get; }
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
IView.PickObjects(Point, PickMode)
Declaration
GeoObjectList IView.PickObjects(Point MousePoint, PickMode pickMode)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
MousePoint |
|
| PickMode |
pickMode |
|
Returns
|
Improve this Doc
View Source
IView.ProjectedModel
Declaration
ProjectedModel IView.ProjectedModel { get; }
Returns
|
Improve this Doc
View Source
IView.RemovePaintHandler(PaintBuffer.DrawingAspect, PaintView)
Declaration
void IView.RemovePaintHandler(PaintBuffer.DrawingAspect aspect, PaintView PaintHandler)
Parameters
|
Improve this Doc
View Source
IView.SetCursor(String)
Declaration
void IView.SetCursor(string cursor)
Parameters
| Type |
Name |
Description |
| System.String |
cursor |
|
|
Improve this Doc
View Source
IView.SetPaintHandler(PaintBuffer.DrawingAspect, PaintView)
Declaration
void IView.SetPaintHandler(PaintBuffer.DrawingAspect aspect, PaintView PaintHandler)
Parameters
|
Improve this Doc
View Source
Declaration
void IView.VScroll(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
|
Improve this Doc
View Source
IView.ZoomDelta(Double)
Declaration
void IView.ZoomDelta(double f)
Parameters
| Type |
Name |
Description |
| System.Double |
f |
|
|
Improve this Doc
View Source
IView.ZoomToRect(BoundingRect)
Declaration
void IView.ZoomToRect(BoundingRect World2D)
Parameters
|
Improve this Doc
View Source
ICommandHandler.OnCommand(String)
Declaration
bool ICommandHandler.OnCommand(string MenuId)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICommandHandler.OnSelected(MenuWithHandler, Boolean)
Declaration
void ICommandHandler.OnSelected(MenuWithHandler selectedMenuItem, bool selected)
Parameters
| Type |
Name |
Description |
| MenuWithHandler |
selectedMenuItem |
|
| System.Boolean |
selected |
|
|
Improve this Doc
View Source
ICommandHandler.OnUpdateCommand(String, CommandState)
Declaration
bool ICommandHandler.OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
| CommandState |
CommandState |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements