Programming API Reference: EduGraf

Class public Visual

This represents a visual or a group of visuals that can be transformed together.
Property public string Name { get; }: that can be used for debugging purposes and is not used by the framework.
Property public IEnumerable<VisualChildren { get }: the visuals that have been added directly to this visual.
Property public Matrix4 Transform { get; set; }: the transform-matrix applied to this visual.
Property public IEnumerable<VisualDescendants { get }: this visual and recursively all that have been added to it.

Method public void Add()

Add a child visual to below this.

Method public virtual void Render()

Do not call this from application programs.

    Method public virtual Visual Scale()

    Scale all descendants in all axis directions by the same factor.
    • float factor : in world units.

    Method public virtual Visual Scale()

    Scale descendants by varying factors in the different axis directions.

    Method public virtual Visual Translate()

    Translate descendants by a vector.
    • Vector3 direction : in world units.

    Method public virtual Visual RotateX()

    Rotate descendants around the x axis.
    • float angle : in radians

    Method public virtual Visual RotateY()

    Rotate descendants around the y axis.
    • float angle : in radians

    Method public virtual Visual RotateZ()

    Rotate descendants around the z axis.
    • float angle : in radians