MapViewclass
MapViews are owned by the MapViewMgr. They display the MapViewMgr's mapdoc. The MapView provides either a 2d or 3d view of the provided map doc. The rendering mode may be swapped between various 2d and 3d modes dynamically. In addition to basic display functionality the view also provides movement implementation for moving a camera within a 3d view or panning a 2d view.
Methods2
Showing 2 methods
public void BuildRay(Vector3 startRay, Vector3 endRay)
Builds a ray from the mouse cursor
| Parameter | Type | Description |
|---|---|---|
| startRay | Vector3 | — |
| endRay | Vector3 | — |
void—public void RenderToBitmap(Sandbox.Bitmap bitmap, Vector3 position, Angles angles, float fieldOfView)
Render the map from any camera into the bitmap, with this view's draw settings - the same rendering Hammer's screenshot dialog uses. Doesn't move this view's camera.
| Parameter | Type | Description |
|---|---|---|
| bitmap | Bitmap | — |
| position | Vector3 | — |
| angles | Angles | — |
| fieldOfView | float | — |
void—No results match this filter.
Properties9
Showing 9 properties
public Angles Editor.MapEditor.MapView.CameraAngles { get; set; }
Which way this view's camera is looking.
public float Editor.MapEditor.MapView.FieldOfView { get; set; }
The camera's field of view in degrees. Meaningless for orthographic views.
float—public bool Editor.MapEditor.MapView.IsOrthographic { get; set; }
True for the 2D views (top, front, side), false for 3D perspective views.
bool—public Editor.MapDoc.MapDocument Editor.MapEditor.MapView.MapDoc { get; set; }
public Sandbox.SceneCamera Editor.MapEditor.MapView.SceneCamera { get; set; }
Read-only SceneCamera set automatically during rendering
No results match this filter.