Reference for .Net version of SpaceVIL  0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
SpaceVIL.Decorations.Figure Class Reference

Figure class represents any triangulated shape. It is used to draw any types of custom shapes. More...

Public Member Functions

List< float[]> GetFigure ()
 Getting list of pairs - [x, y] coordinates of a shape. More...
 
bool IsFixed ()
 Is Figure fixed. More...
 
 Figure (bool isFixed, List< float[]> triangles)
 Constructs a Figure with specified triangles and specified fixed flag. More...
 
 Figure (List< float[]> triangles)
 Constructs a Figure with specified triangles. More...
 
List< float[]> UpdatePosition (int x, int y)
 Updating the coordinates of triangles with specified shifts along the X and Y axis. More...
 

Detailed Description

Figure class represents any triangulated shape. It is used to draw any types of custom shapes.

Constructor & Destructor Documentation

◆ Figure() [1/2]

SpaceVIL.Decorations.Figure.Figure ( bool  isFixed,
List< float[]>  triangles 
)

Constructs a Figure with specified triangles and specified fixed flag.

Parameters
isFixedTrue: if shape can not be resized. False: if shape can be resised.
trianglesTriangles list of the Figure's shape.

◆ Figure() [2/2]

SpaceVIL.Decorations.Figure.Figure ( List< float[]>  triangles)

Constructs a Figure with specified triangles.

Parameters
trianglesTriangles list of the Figure's shape.

Member Function Documentation

◆ GetFigure()

List<float[]> SpaceVIL.Decorations.Figure.GetFigure ( )

Getting list of pairs - [x, y] coordinates of a shape.

Returns
Figure points list as List of float[2] array.

◆ IsFixed()

bool SpaceVIL.Decorations.Figure.IsFixed ( )

Is Figure fixed.

Returns
True: if shape can not be resized. False: if shape can be resised.

◆ UpdatePosition()

List<float[]> SpaceVIL.Decorations.Figure.UpdatePosition ( int  x,
int  y 
)

Updating the coordinates of triangles with specified shifts along the X and Y axis.

Parameters
xShift by X-axis.
yShift by Y-axis.
Returns
Updated points list changed according to the new shift by (x, y)

The documentation for this class was generated from the following file: