Class Scene.View_
Provides access to the KitchenDraw functionality dedicated to displaying scene to a user.
Inherited Members
Namespace: KD.SDK2
Assembly: KD.SDK2.dll
Syntax
public class Scene.View_
Remarks
In opposite to Scene.View_ class, this class operates on pixels, not scene measurement units.
Properties
Name | Description |
---|---|
HeightInPixels | Height in pixels of the window corresponding to the KitchenDraw drawing area. |
Mode | Current mode of the scene view. |
ObserverHAngle | The angle (degrees) in the horizontal plane corresponding to the direction of the observer’s look (which can be considered as current camera position). |
ObserverVAngle | The angle (degrees) in the vertical plane corresponding to the direction of the observer’s look (which can be considered as current camera position). |
ObserverX | Position of the observer (which can be considered as current camera) on the X axis of the scene, in scene measurement units. |
ObserverY | Position of the observer (which can be considered as current camera) on the Y axis of the scene, in scene measurement units. |
ObserverZ | Position of the observer (which can be considered as current camera) on the Z axis of the scene, in scene measurement units. |
WidthInPixels | Width in pixels of the window corresponding to the KitchenDraw drawing area. |
Methods
Name | Description |
---|---|
GetBounds2D() | Returns bounds of the non-empty area of the current view. |
GetMagneticPoint(int, int, int, int, int) | Gets the closest magnetic point in the current window to the given pixel coordinates. |
GetPixelFromScenePoint(int, int, double, double) | Converts a point from scene coordinate space to window coordinate space (in pixels). |
GetPointedObject(int, int, int, int, Object) | Returns the the object of the scene that is located "under" the given pixel coordinates. |
PlaceObject(int, int, int, int, string, string, HandingType, double, double, double, double, AltitudeType, double, bool, bool, bool) | Places in the current scene an article coming from a catalog. |
Refresh() | Forces a redraw of the current view including the pricing views. |
ResetObserver() | Restores the observer to its default position (while in one of the perspective view modes). |
SelectFromRectangle(int, int, int, int, int, int, bool) | Selects all the objects of the current scene which are completely bounded by given rectangle. |
SelectionPixelMove(int, int, int, int, double, int, int, double, double, bool, bool) | Translates and/or rotates the selected objects. |
SetObserverFromObjects(IEnumerable<Object>, int, int, int) | Sets observer position so that the specified objects are
visible. The first object in the |
TryPlaceObject(int, int, int, int, string, string, HandingType, double, double, double, double, AltitudeType, double, bool, bool, bool, out Object) | The same as PlaceObject(int, int, int, int, string, string, HandingType, double, double, double, double, AltitudeType, double, bool, bool, bool) except of it doesn't throws an exception if failed to place the object. |
TryRefresh() | Forces a redraw of the current view including the pricing
views. Returns |
ZoomAdjusted() | Sets up the largest possible zoom which allows showing all the objects of the scene. |
ZoomEnlarge(int, int, int, int, int, int) | Carries out a "zoom in" operation on the current view based on a given rectangle. |
ZoomFromPoint(int, int, int, int, int) | Carries out a zoom operation that is centered on the given point. |
ZoomInitial() | Sets up the zoom of the current view to its default value. |
ZoomMove(int, int, int, int, int, int) | Moves (pans) view in the view window so that the given origin point is moved to the position defined by the destination point. |
ZoomPixel() | Sets up the zoom if the current so that one scene increment occupies exactly one pixel on screen. |
ZoomReduce() | Performs a "zoom out" operation on the current view (dividing the sizes by two on the screen). |