The functionality described in this article is not available in the Community SDK edition.
You should upgrade to- Sim
SDK edition to use it.
You should upgrade to
View Class
Enums
MIRROR#
Name | Description |
---|---|
NONE = 0 | View mirror mode none. |
HORIZONTAL = 1 | View mirror mode horizontal. |
VERTICAL = 2 | View mirror mode vertical. |
BOTH = 3 | View mirror mode horizontal and vertical. |
PROJECTION#
Name | Description |
---|---|
PERSPECTIVE = 0 | Perspective view projection. |
ORTHOGRAPHIC = 1 | Orthographic view projection. |
REPLICATION#
Members
int getID ( ) #
Returns the ID of the view.Return value
View ID.int getParentGroupID ( ) #
Returns the ID of the parent group for the view.Return value
Parent view group ID.void setDefinition ( float near, float far, float left_deg, float right_deg, float top_deg, float bottom_deg ) #
Sets the viewing volume (projection) parameters for the view using the specified values.Arguments
- float near - Distance to the near clipping plane, in units.
- float far - Distance to the far clipping plane, in units.
- float left_deg - Left half-angle, in degrees.
- float right_deg - Right half-angle, in degrees.
- float top_deg - Top half-angle, in degrees.
- float bottom_deg - Bottom half-angle, in degrees.
float getNear ( ) #
Returns the current distance to the near clipping plane.Return value
Distance to the near clipping plane, in units.float getFar ( ) #
Returns the current distance to the far clipping plane.Return value
Distance to the far clipping plane, in units.float getLeftDeg ( ) #
Returns the current left half-angle for the view frustum.Return value
Left half-angle, in degrees.float getRightDeg ( ) #
Returns the current right half-angle for the view frustum.Return value
Right half-angle, in degrees.float getTopDeg ( ) #
Returns the current top half-angle for the view frustum.Return value
Top half-angle, in degrees.float getBottomDeg ( ) #
Returns the current bottom half-angle for the view frustum.Return value
Bottom half-angle, in degrees.void setViewType ( int type ) #
Sets the type of the view. The value of this parameter specifies an IG-defined type for the view.Arguments
- int type - View type to be set.
int getViewType ( ) #
Returns the current view type. IG-defined type for the view.Return value
View type.Last update:
2021-04-29
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)