This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Bounds-Related Classes
Containers
Controls-Related Classes
Core Library
Engine-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility 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.

WidgetManipulator Class

This base class creates a draggable 3D manupulator.

WidgetManipulator Class

Members


WidgetManipulator (const Ptr<Gui> & gui)

Arguments

  • const Ptr<Gui> & gui

float getStep ()

Returns a step, which is used to align objects.

Return value

Step in units.

void setTransform (const Math::Mat4 & transform)

Sets a transformation matrix for the handler.

Arguments

  • const Math::Mat4 & transform - Transformation matrix.

void setSize (int size)

Sets a handle size of the manipulator. Depending on the handle shape, this can be a radius or an altitude.

Arguments

  • int size - Size in pixels.

void setModelview (const Math::Mat4 & modelview)

Sets a model-view matrix for the handler.

Arguments

  • const Math::Mat4 & modelview - Model-view matrix.

Math::vec4 getColor ()

Returns the current color for a manipulator.

Return value

Manipulator color.

Math::Mat4 getTransform ()

Returns the current transformation matrix of the handler.

Return value

Transformation matrix.

void setColor (const Math::vec4 & color)

Sets the color for a manipulator.

Arguments

  • const Math::vec4 & color - Manipulator color. The provided value is clamped to a range [0;1].

Math::Mat4 getBasis ()

Returns the current basis of the coordinate system for the handler. It can either be the world coordinates (the identity matrix) or coordinates of the parent node if the manipulated node is a child.

Return value

Matrix, which columns specify basis vectors.

int getSize ()

Returns the current handle size of the manipulator. Depending on the handle shape, this can be a radius or an altitude.

Return value

Size in pixels.

Math::mat4 getProjection ()

Returns the current model-view matrix of the handler.

Return value

Projection matrix.

void setMask (int mask)

Hides axis arrows (along X, Y or Z) of the handler.

Arguments

  • int mask - 3-bit mask for axes.

void setStep (float step)

Sets a step, which is used to align objects.

Arguments

  • float step - Step in units.

void setProjection (const Math::mat4 & projection)

Sets a projection matrix for the handler.

Arguments

  • const Math::mat4 & projection - Projection matrix.

Math::Mat4 getModelview ()

Returns the current projection matrix of the handler.

Return value

Model-view matrix.

int getMask ()

Returns a mask that hides axis arrows (along X, Y or Z) of the handler.

Return value

3-bit mask for axes.

void setBasis (const Math::Mat4 & basis)

Sets a basis of the coordinate system for the handler. It can either be the world coordinates (the identity matrix) or coordinates of the parent node if the manipulated node is a child.

Arguments

  • const Math::Mat4 & basis - Matrix, which columns specify basis vectors.

int type ()

Return value

Ptr<WidgetManipulator> getWidgetManipulator ()

Return value

Ptr<WidgetManipulator> create (const Ptr<Widget> & widget)

Arguments

  • const Ptr<Widget> & widget

Return value


int MASK_X

Description

Bit mask for a X axis of the manipulator.

int MASK_Y

Description

Bit mask for a Y axis of the manipulator.

int MASK_Z

Description

Bit mask for a Z axis of the manipulator.

int MASK_XYZ

Description

3-bit mask for axes of the manipulator.
Last update: 2017-07-03
Build: ()