UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes

Unigine::Cigi::IView Class

Header:#include <CigiClientInterface.h>
Inherits:IViewBase

This class represents the CIGI View interface.

Notice
CIGI plugin must be loaded.

IView Class

Members


int getID()

Returns the ID of the view.

Return value

View ID.

void setParentGroup(IViewGroup * entity)

Attaches the view as a child to the specified parent view group.

Arguments

  • IViewGroup * entity - Parent view group.

int getParentGroupID()

Returns the ID of the parent group for the view.

Return value

Parent view group ID.

void setRotationEuler(const Math::vec3 & euler)

Sets the view rotation.

Arguments

  • const Math::vec3 & euler - View rotation euler angles to set.

Math::vec3 getRotationEuler()

Returns the current view rotation.

Return value

View rotation euler angles.

void setDefinition(float near, float far, float left_deg, float right_deg, float top_deg, float bottom_deg)

Sets the viewing volume 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 setReplicationMode(int id)

Sets the replication mode for the view.

Arguments

  • int id - Replication mode to be set. One of the REPLICATION_* values.

int getReplicationMode()

Returns the current replication mode for the view.

Return value

Replication mode. One of the REPLICATION_* values.

void setMirrorMode(int id)

Sets the mirror mode for the view.

Arguments

  • int id - Mirror mode to be set. One of the MIRROR_* values.

int getMirrorMode()

Returns the current mirror mode for the view.

Return value

Mirror mode. One of the MIRROR_* values.

void setProjection(int id)

Sets the projection type for the view.

Arguments

  • int id - Projection type to be set. One of the PROJECTION_* values.

int getProjection()

Returns the current projection type for the view.

Return value

Projection type. One of the PROJECTION_* values.

void setViewType(int id)

Sets the type of the view. The value of this parameter specifies an IG-defined type for the view.

Arguments

  • int id - View type to be set.

int getViewType()

Returns the current view type. IG-defined type for the view.

Return value

View type.

IComponent * getComponent(int id)

Returns the interface of the specified component.

Arguments

  • int id - ID of the component.

Return value

Component interface.

virtual ~IView()

Virtual destructor.

int MIRROR_NONE

Description

View mirror mode none.

int MIRROR_HORIZONTAL

Description

View mirror mode horizontal.

int MIRROR_VERTICAL

Description

View mirror mode vertical.

int MIRROR_BOTH

Description

View mirror mode horizontal and vertical.

int REPLICATION_1_1

Description

Pixel replication function to be performed on the view: none. This feature is typically used in sensor applications to perform electronic zooming (i.e., pixel and line doubling).

int REPLICATION_1_2

Description

Pixel replication function to be performed on the view: 1 x 2. This feature is typically used in sensor applications to perform electronic zooming (i.e., pixel and line doubling).

int REPLICATION_2_1

Description

Pixel replication function to be performed on the view: 2 x 1. This feature is typically used in sensor applications to perform electronic zooming (i.e., pixel and line doubling).

int REPLICATION_1_1

Description

Pixel replication function to be performed on the view: 2 x 2. This feature is typically used in sensor applications to perform electronic zooming (i.e., pixel and line doubling).

int PROJECTION_PERSPECTIVE

Description

Perspective view projection.

int PROJECTION_ORTHOGRAPHIC

Description

Orthographic view projection.
Last update: 10.08.2018