ViewConstraints Class
Specifies constraints on which area and/or scale in a View.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CECore assembly)
Syntax
public class ViewConstraints : EngineObjectRemarks
This class can be used to constrain the center and/or nominal scale in a 2D view or the location of the camera in a 3D view, for example to keep the camera above ground or below a maximum elevation.
Inheritance Hierarchy
System.Object
EngineObject
ViewConstraints
Platforms
Windows, Linux, Android
ViewConstraints Members
The ViewConstraints type has the following members.
Constructors
| Name | Description |
|---|---|
| ViewConstraints | Initializes a new instance of the ViewConstraints class. |
Properties
| Name | Description |
|---|---|
| Bounds | Gets or sets the bounds of a valid center position in a 2D view or camera in a 3D view. |
| IsDisposed | Gets a value that tells whether the current ViewConstraints has been disposed. Inherited from EngineObject |
| MaxElevation | Gets or sets the maximum elevation above the sea of the camera in a 3D view. |
| MaxNominalScale | Gets or sets the maximum allowed nominal scale in a 2D view. |
| MinHeightAboveGround | Gets or sets the minimum height above ground of the camera in a 3D view. |
| MinNominalScale | Gets or sets the minimum allowed nominal scale in a 2D view. |
| NativeHandle | Gets the native Carmenta Engine kernel object the current ViewConstraints represents. Inherited from EngineObject |
Methods
| Name | Description |
|---|---|
| Apply | Overloaded. Applies the view constraints to a parameter. |
| Apply3D | Applies the view constraints to a 3D camera position. |
| Clone | Creates a copy of an object. Inherited from EngineObject |
| Dispose | Releases the reference to the native Carmenta Engine kernel instance the EngineObject represents. Inherited from EngineObject |
| Equals | Determines whether this instance is equal to another. Inherited from EngineObject |