This page has been translated automatically.
Setting Up Development Environment
Usage Examples
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
Double Precision Coordinates
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
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine::Cigi::IViewBase Class

Header:#include <CigiClientInterface.h>

This class represents the CIGI View base interface. It contains common methods for View and ViewGroup interfaces.

CIGI plugin must be loaded.

IViewBase Class


void setParentEntity(IEntity * entity)

Attaches the View(Group) as a child to the specified parent entity.


  • IEntity * entity - Parent entity.

int getParentEntityID()

Returns the ID of the parent entity for the View(Group).

Return value

Parent entity ID.

void setPosition(const Math::Vec3 & position)

Sets the View(Group) position.


  • const Math::Vec3 & position - View(Group) position coordinates to set.

Math::Vec3 getPosition()

Returns the current View(Group) position.

Return value

View(Group) position coordinates.

void setRotationEuler(const Math::vec3 & euler)

Sets the View(Group) rotation.


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

Math::vec3 getRotationEuler()

Returns the current View(Group) rotation.

Return value

View(Group) rotation euler angles.

const Ptr<Node> & getNode()

Returns the node assigned to the View(Group).

Return value

Node assigned to the View(Group).

const Ptr<PlayerDummy> & getPlayer()

Returns the PlayerDummy assigned to the View(Group).

Return value

PlayerDummy assigned to the View(Group).

virtual ~IViewBase()

Virtual destructor.
Last update: 2017-10-20
Build: ()