View Class |
The View type exposes the following members.
| Name | Description | |
|---|---|---|
| View | Default constructor for the View class. Creates a view with default values for its properties. For more information, see OdGsViewImpl::OdGsViewImpl Constructor. | |
| View(IntPtr, Boolean) | Constructor for the View class. |
| Name | Description | |
|---|---|---|
| AutoDelete | Property that indicates whether the object should be
automatically deleted by the Garbage Collector. (Inherited from DisposableWrapper) |
|
| BackClip | Property that represents back clip distance from the target of this Viewport object. | |
| Background | Property that represents background object for this view. | |
| ClearColor | Property that represents clear color for this view. | |
| ClientViewInfo | Property that represents the ClientViewInfo that encapsulates the viewport ID, window ID, viewport object ID, and the contextual colors object for the viewport. | |
| Device | Property that represents GS Device object associated with this view. | |
| EnableBackClip | Property that indicates whether back clipping is enabled for this Viewport object. | |
| EnableFrontClip | Property that indicates whether front clipping is enabled for this Viewport object. | |
| EnableStereo | Property that indicates whether stereo viewing is enabled for this Viewport object. | |
| ExceededBounds | Property that indicates whether any view parameters have exceeded their boundaries. The following calls are monitored: * dolly() * orbit() * pan() * roll() * setBackClip() * setFrontClip() * setView() * zoom() | |
| FieldHeight | Property that represents WCS projection plane (field) height for this Viewport object. | |
| FieldWidth | Property that represents WCS projection plane (field) width for this Viewport object. | |
| FrontClip | Property that represents front clip distance from the target of this Viewport object. | |
| IsDisposed | Property that indicates whether pointer to native code
unmanaged object == IntPtr::Zero. (Inherited from DisposableWrapper) |
|
| IsPerspective | Property that indicates whether the projection type for the viewport object is perspective or parallel. | |
| IsValid | Property that indicates whether this Viewport shows the correct image. If this property is true, the following conditions are met: * No part of GUI area is flagged for refresh. * All rasterizations are complete. * The rendering pipeline has been flushed. | |
| IsVisible | Property that indicates whether the view is not hidden. | |
| LensLength | Property that represents perspective lens length for this Viewport object. | |
| LinetypeScaleMultiplier | Property that represents multiplier that is used to scale all linetypes in this Viewport object. | |
| LineweightToDcScale | Property that represents the scale factor for displaying Lineweights in this Viewport object. | |
| Mode | Property that represents rendering mode for this view. This property can be one of the following: Name Value Description BoundingBox -1 Bounding box. For internal use only. Optimized2D 0 Standard *display*. Optimized for 2D. Wireframe 1 Standard *display*. Uses 3D pipeline. HiddenLine 2 Wireframe *display*. Hidden lines removed. FlatShaded 3 Faceted *display*. One *color* per face. GouraudShaded 4 Smooth shaded *display*. Colors interpolated between *vertices*. FlatShadedWithWireframe 5 Faceted *display* with wireframe overlay. GouraudShadedWithWireframe 6 Smooth shaded *display* with wireframe overlay. None 7 None | |
| ObjectToDeviceMatrix | Property that represents the matrix that transforms coordinates from model space to screen space for this Viewport object. | |
| Position | Property that represents WCS camera position for this Viewport object. | |
| ProjectionMatrix | Property that represents the matrix that transforms view space to normalized device space for this Viewport object. | |
| ScreenMatrix | Property that represents the matrix that transforms normalized device space to screen space for this Viewport object. | |
| StereoParameters | Property that represents stereo viewing parameters for this Viewport Object. The StereoParameters encapsulate magnitude of view separation and parallax value. Magnitude controls view eye separation, and hence the stereo effect. * A magnitude of 1.0 is the default value. * A magnitude of 0.0 produces no stereo effect. * A magnitude of 2.0 produces a double stereo effect. Parallax adjusts the zero parallax plane. * A parallax of 1.0 is the default value. An object centered at the target will be half-in and half-out of the screen. * A parallax of 0.0 moves the object into the screen. * A parallax of 2.0 move the object out of the screen. | |
| Target | Property that represents WCS camera target for this Viewport object. | |
| UnmanagedObject | Property that represents a pointer to an unmanaged
object. (Inherited from DisposableWrapper) |
|
| UpVector | Property that represents WCS camera up vector for this Viewport object. | |
| UserGiContext | Property that represents GiContext object associated with this Viewport object. | |
| ViewingMatrix | Property that represents the matrix that transforms world space to view space for this Viewport object. | |
| Viewport | Property that represents the size and position of this Viewport object. The extents are based on 2 points: * lower-left corner in nomalized device coordinates [0.0 .. 1.0] * upper-right corner in nomalized device coordinates [0.0 .. 1.0] | |
| ViewportBorderProperties | Property that represents the color and width of the border for this Viewport object. | |
| ViewportBorderVisibility | Property that indicates whether viewport border is visible. | |
| ViewportClipRegion | Property that represents polygonal clip region for this Viewport object. | |
| VisualStyle | Property that represents a visual style that is used. | |
| VisualStyleId | Property that represents ID of visual style that is used. | |
| WorldToDeviceMatrix | Property that represents a matrix that transforms coordinates from world space to screen space for this Viewport object. |
| Name | Description | |
|---|---|---|
| Add(Drawable) | Adds the specified scene graph to this Viewport object. | |
| Add(Drawable, Model) | Adds the specified scene graph to this Viewport object. | |
| BeginInteractivity | Puts this Viewport object into an interactive state. | |
| ClearFrozenLayers | Thaws all Layer objects in this Viewport object. | |
| Clone | Creates a *clone* of this object, and returns a pointer to the
*clone*. (Inherited from RXObject) |
|
| CloneView | Clones this view object. | |
| CloneView(Boolean) | Clones this View object. | |
| CloneView(Boolean, Boolean) | Clones this View object. | |
| CompareTo | Allows classes to compare class objects. (Inherited from RXObject) |
|
| CopyFrom | Copies the contents of the specified object into this
object. (Inherited from RXObject) |
|
| CreateObjRef | (Inherited from MarshalByRefObject) |
|
| DeleteUnmanagedObject | (Overrides RXObjectDeleteUnmanagedObject) |
|
| Dispose | (Inherited from DisposableWrapper) |
|
| Dispose(Boolean) | (Inherited from DisposableWrapper) |
|
| Dolly(Vector3d) | Translates the camera position and target by the specified camera coordinate dolly amount. | |
| Dolly(Double, Double, Double) | Translates the camera position and target by the specified camera coordinate dolly amount. | |
| EnableDefaultLighting(Boolean) | Enables default lighting for this view. | |
| EnableDefaultLighting(Boolean, DefaultLightingType) | Enables default lighting for this view. | |
| EndInteractivity | Disables the interactive mode for this Viewport object. | |
| Equals | Checks objects for equality. (Inherited from DisposableWrapper) |
|
| Erase | Removes the specified scene graph from this Viewport object. | |
| EraseAll | Removes all scene graphs from this Viewport object. | |
| ExtentsInView | Checks whether the specified WCS box is visible completely or partially inside the current view frustum. | |
| Finalize | (Inherited from DisposableWrapper) |
|
| Flush | Flushes the graphics pipeline and renders this Viewport object. This method should be called only during interactivity. | |
| FreezeLayer | Freezes the specified Layer object in this Viewport object. | |
| GetHashCode | Retrieves the object hash code. (Inherited from DisposableWrapper) |
|
| GetLifetimeService | (Inherited from MarshalByRefObject) |
|
| GetMetaObject | (Inherited from RXObject) |
|
| GetModel | Returns the Model object associated with the specified Drawable object in this Viewport object. | |
| GetModelList | Returns the array of OdGsModel objects associated with this Viewport object. | |
| GetNumPixelsInUnitSquare(Point3d) | Returns the display pixel density at the specified point for this Viewport object. | |
| GetNumPixelsInUnitSquare(Point3d, Boolean) | Returns the display pixel density at the specified point for this Viewport object. | |
| GetRXClass | Gets a class describing instance dynamically associated with
this object as the OdRxClass object. (Inherited from RXObject) |
|
| GetSnapshot | Returns the image of the current view buffer. | |
| GetType | (Inherited from Object) |
|
| Hide | Hides this Viewport object. | |
| InitializeLifetimeService | (Inherited from MarshalByRefObject) |
|
| InitLights | Associates lights with this Viewport object by traversing with the specified iterator. | |
| Invalidate | Marks for refresh the entire area of this view. | |
| Invalidate(Rectangle) | Marks for refresh the specified region of this Viewport object. | |
| InvalidateCachedViewportGeometry | Marks for regeneration all subViewportDraw() geometry for this Viewport object. | |
| MemberwiseClone | (Inherited from Object) |
|
| MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject) |
|
| Orbit | Orbits the camera about the target by the specified amounts. | |
| Pan | Pans the camera by the specified X and Y values. | |
| PointInView | Checks whether the specified point is visible inside the current view frustum. | |
| PointInViewport | Checks whether the specified point is inside the viewport area. | |
| QueryX | Checks whether the object belongs to the specified class and
returns a pointer to this object if this object can be converted to
the specified class. (Inherited from RXObject) |
|
| RemoveViewportClipRegion | Removes the clipping region that was previously set with the ViewportClipRegion property. | |
| Roll | Rotates the camera by the specified amount about the eye vector. | |
| Select | Runs the selection procedure inside this Viewport object. | |
| SetLineweights | Sets the lineweights for this Viewport object. | |
| SetView(Point3d, Point3d, Vector3d, Double, Double) | Sets the camera parameters for this Viewport object. | |
| SetView(Point3d, Point3d, Vector3d, Double, Double, Projection) | Sets the camera parameters for this Viewport object. | |
| Show | Unhides this Viewport object. | |
| ThawLayer | Thaws the specified Layer object in this Viewport object. | |
| ToString | (Inherited from Object) |
|
| Update | Updates this view (propagates layer changes, makes device surface area for this view invalid, updates view properties, updates the viewport, sets invalid, and checks for validation flags depending on the regenAbort() call). | |
| ViewParameters | Retrieves the view parameters of this Viewport object. | |
| X | Checks whether the object belongs to the specified class and
returns a pointer to this object if this object can be converted to
the specified class, or throws an exception if it cannot. (Inherited from RXObject) |
|
| Zoom | Scales the focal length of the camera by the specified amount. | |
| ZoomExtents | Scales the camera to completely include the specified WCS box inside the view frustum. | |
| ZoomWindow | Scales the camera to completely include the specified screen area. |
| © Bricsys NV. All rights reserved. |