    

 ## On this page

  

 

 # GLTFLegend

 Last update: 16.07.2025 

<a id="l00001" name="l00001"></a> 1/\*

<a id="l00002" name="l00002"></a> 2 \* Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00003" name="l00003"></a> 3 \* 

<a id="l00004" name="l00004"></a> 4 \* Restricted Rights Legend

<a id="l00005" name="l00005"></a> 5 \*

<a id="l00006" name="l00006"></a> 6 \* Use, duplication, or disclosure of this

<a id="l00007" name="l00007"></a> 7 \* software and its documentation by the

<a id="l00008" name="l00008"></a> 8 \* Government is subject to restrictions as

<a id="l00009" name="l00009"></a> 9 \* set forth in subdivision \[(b)(3)(ii)\] of

<a id="l00010" name="l00010"></a> 10 \* the Rights in Technical Data and Computer

<a id="l00011" name="l00011"></a> 11 \* Software clause at 52.227-7013.

<a id="l00012" name="l00012"></a> 12 \*/

<a id="l00013" name="l00013"></a> 13\#ifndef \_\_INCLUDED\_GLTF\_GLTFLEGEND\_\_

<a id="l00014" name="l00014"></a> 14\#define \_\_INCLUDED\_GLTF\_GLTFLEGEND\_\_

<a id="l00015" name="l00015"></a> 15 

<a id="l00016" name="l00016"></a> 16\#include "GLTFCommon.h"

<a id="l00017" name="l00017"></a> 17\#include "GLTFObject.h"

<a id="l00018" name="l00018"></a> 18 

<a id="l00019" name="l00019"></a> 19namespace [ANSYS](namespace_a_n_s_y_s.html) { namespace AVZ { namespace GLTFWriter {

<a id="l00020" name="l00020"></a> 20 class GLTF;

<a id="l00021" name="l00021"></a> 21 class Texture;

<a id="l00022" name="l00022"></a> 22 

<a id="l00026" name="l00026"></a>[ 26](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html) class [Legend](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html) : public [Object](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_object.html)

<a id="l00027" name="l00027"></a> 27 {

<a id="l00028" name="l00028"></a> 28 public:

<a id="l00030" name="l00030"></a>[ 30](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351) enum [LegendOrientation](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351)

<a id="l00031" name="l00031"></a> 31 {

<a id="l00032" name="l00032"></a>[ 32](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351a492438d391f3e162dd7b33f96cf77f31) [LO\_VERTICAL](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351a492438d391f3e162dd7b33f96cf77f31), 

<a id="l00033" name="l00033"></a> 33 [LO\_HORIZONTAL](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351aeacda46c53212e90196693cd1bc9548c) 

<a id="l00034" name="l00034"></a>[ 34](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351aeacda46c53212e90196693cd1bc9548c) };



<a id="l00036" name="l00036"></a>[ 36](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6c) enum [LegendAttachment](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6c)

<a id="l00037" name="l00037"></a> 37 {

<a id="l00038" name="l00038"></a>[ 38](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca5bd46276fd06c3a0e49cf6d00bf9c441) [LA\_X\_Y](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca5bd46276fd06c3a0e49cf6d00bf9c441) = 0, 

<a id="l00039" name="l00039"></a>[ 39](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca0bb90de784225c9f6ffd146bbd944fb8) [LA\_X\_YBOTTOM](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca0bb90de784225c9f6ffd146bbd944fb8) = 1, 

<a id="l00040" name="l00040"></a>[ 40](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca09d1436ac3eeec8ccff6dacc5fb5245c) [LA\_X\_YTOP](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca09d1436ac3eeec8ccff6dacc5fb5245c) = 2, 

<a id="l00041" name="l00041"></a>[ 41](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca27db75ee4805fc00329de9864e81f25a) [LA\_X\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca27db75ee4805fc00329de9864e81f25a) = 3, 

<a id="l00042" name="l00042"></a>[ 42](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca6b3509784591d8c8cec2d296cf627988) [LA\_XLEFT\_Y](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca6b3509784591d8c8cec2d296cf627988) = 4, 

<a id="l00043" name="l00043"></a>[ 43](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6caefda43433936f1da77563da0e732a358) [LA\_XLEFT\_YBOTTOM](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6caefda43433936f1da77563da0e732a358) = 5, 

<a id="l00044" name="l00044"></a>[ 44](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca19b6e20608b70d907b513a08533cf60f) [LA\_XLEFT\_YTOP](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca19b6e20608b70d907b513a08533cf60f) = 6, 

<a id="l00045" name="l00045"></a>[ 45](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cabf28733aa8d48ecbd18987aabf05cbfa) [LA\_XLEFT\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cabf28733aa8d48ecbd18987aabf05cbfa) = 7, 

<a id="l00046" name="l00046"></a>[ 46](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca08e2594c272df719858fd60aa9056674) [LA\_XRIGHT\_Y](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca08e2594c272df719858fd60aa9056674) = 8, 

<a id="l00047" name="l00047"></a>[ 47](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca1dc68fd1355cf72e1cc14bd493c81ef0) [LA\_XRIGHT\_YBOTTOM](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca1dc68fd1355cf72e1cc14bd493c81ef0) = 9, 

<a id="l00048" name="l00048"></a>[ 48](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca5386064bffd3fd3fd2a2676a41b18997) [LA\_XRIGHT\_YTOP](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca5386064bffd3fd3fd2a2676a41b18997) = 10, 

<a id="l00049" name="l00049"></a>[ 49](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cae769e9ddccb58ed6de5ad0d1aaf22290) [LA\_XRIGHT\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cae769e9ddccb58ed6de5ad0d1aaf22290) = 11, 

<a id="l00050" name="l00050"></a>[ 50](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cacaabfa58f05da6dee45c803b1e1a5614) [LA\_XCENTER\_Y](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cacaabfa58f05da6dee45c803b1e1a5614) = 12, 

<a id="l00051" name="l00051"></a>[ 51](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cab74939d10eec4cff02293963dbbff518) [LA\_XCENTER\_YBOTTOM](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cab74939d10eec4cff02293963dbbff518) = 13, 

<a id="l00052" name="l00052"></a>[ 52](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cac77b00c0ce50215465a1d4fe2afae10a) [LA\_XCENTER\_YTOP](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cac77b00c0ce50215465a1d4fe2afae10a) = 14, 

<a id="l00053" name="l00053"></a> 53 [LA\_XCENTER\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca42f24459a26fe33ab2aa41a4f7c78318) = 15 

<a id="l00054" name="l00054"></a>[ 54](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca42f24459a26fe33ab2aa41a4f7c78318) };



<a id="l00055" name="l00055"></a> 55 

<a id="l00056" name="l00056"></a> 56 protected:

<a id="l00057" name="l00057"></a> 57 virtual [~Legend](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html)() {}

<a id="l00058" name="l00058"></a> 58 

<a id="l00059" name="l00059"></a> 59 public:

<a id="l00062" name="l00062"></a>[ 62](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a4c5bbd483460b9c8d9a9bdaa0674eed8) static GLTFWRITERSPEC [Legend](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html) *[Create](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a4c5bbd483460b9c8d9a9bdaa0674eed8)([GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.html) *gltf, 

<a id="l00063" name="l00063"></a> 63 [LegendOrientation](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351) orientation, 

<a id="l00064" name="l00064"></a> 64 float size, 

<a id="l00065" name="l00065"></a> 65 [Texture](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_texture.html) *texture, 

<a id="l00066" name="l00066"></a> 66 float mn, 

<a id="l00067" name="l00067"></a> 67 float mx, 

<a id="l00068" name="l00068"></a> 68 [LegendAttachment](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6c) attachment = [LA\_XLEFT\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cabf28733aa8d48ecbd18987aabf05cbfa), 

<a id="l00069" name="l00069"></a> 69 const char *title = 0, 

<a id="l00070" name="l00070"></a> 70 const char *units = 0, 

<a id="l00071" name="l00071"></a> 71 const char *other = 0, 

<a id="l00072" name="l00072"></a> 72 unsigned int numTicks = 0, 

<a id="l00073" name="l00073"></a> 73 const float *valueLocations = 0, 

<a id="l00074" name="l00074"></a> 74 bool border = false, 

<a id="l00075" name="l00075"></a> 75 bool logarithmic = false, 

<a id="l00076" name="l00076"></a> 76 float x = 0, 

<a id="l00077" name="l00077"></a> 77 float y = 0, 

<a id="l00078" name="l00078"></a> 78 float foregroundR = 0, 

<a id="l00079" name="l00079"></a> 79 float foregroundG = 0, 

<a id="l00080" name="l00080"></a> 80 float foregroundB = 0, 

<a id="l00081" name="l00081"></a> 81 float backgroundR = 1, 

<a id="l00082" name="l00082"></a> 82 float backgroundG = 1, 

<a id="l00083" name="l00083"></a> 83 float backgroundB = 1, 

<a id="l00084" name="l00084"></a> 84 float backgroundA = 0 

<a id="l00085" name="l00085"></a> 85 );

<a id="l00086" name="l00086"></a> 86 };



<a id="l00087" name="l00087"></a> 87 

<a id="l00088" name="l00088"></a> 88} } } 

<a id="l00089" name="l00089"></a> 89 

<a id="l00090" name="l00090"></a> 90\#endif

[ANSYS::AVZ::GLTFWriter::GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.html)

This is the main class of the GLTFWriter.

**Definition** [GLTFGLTF.h:32](_g_l_t_f_g_l_t_f_8h_source.html#l00031)



[ANSYS::AVZ::GLTFWriter::Legend](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html)

Legends are colored bars with numbers at intervals along bar.

**Definition** [GLTFLegend.h:27](#l00026)



[ANSYS::AVZ::GLTFWriter::Legend::LegendOrientation](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351)

LegendOrientation

**Definition** [GLTFLegend.h:31](#l00030)



[ANSYS::AVZ::GLTFWriter::Legend::LO\_VERTICAL](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351a492438d391f3e162dd7b33f96cf77f31)

@ LO_VERTICAL

Top to bottom.

**Definition** [GLTFLegend.h:32](#l00032)



[ANSYS::AVZ::GLTFWriter::Legend::LO\_HORIZONTAL](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a01ae5e5c92a51d569fc24cef427a8351aeacda46c53212e90196693cd1bc9548c)

@ LO_HORIZONTAL

Left to right.

**Definition** [GLTFLegend.h:33](#l00034)



[ANSYS::AVZ::GLTFWriter::Legend::LegendAttachment](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6c)

LegendAttachment

**Definition** [GLTFLegend.h:37](#l00036)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XRIGHT\_Y](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca08e2594c272df719858fd60aa9056674)

@ LA_XRIGHT_Y

Use y location and attach to right.

**Definition** [GLTFLegend.h:46](#l00046)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_X\_YTOP](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca09d1436ac3eeec8ccff6dacc5fb5245c)

@ LA_X_YTOP

Use x location and attach to top.

**Definition** [GLTFLegend.h:40](#l00040)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_X\_YBOTTOM](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca0bb90de784225c9f6ffd146bbd944fb8)

@ LA_X_YBOTTOM

use x location and attach to bottom.

**Definition** [GLTFLegend.h:39](#l00039)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XLEFT\_YTOP](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca19b6e20608b70d907b513a08533cf60f)

@ LA_XLEFT_YTOP

Attach to left top corner.

**Definition** [GLTFLegend.h:44](#l00044)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XRIGHT\_YBOTTOM](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca1dc68fd1355cf72e1cc14bd493c81ef0)

@ LA_XRIGHT_YBOTTOM

Attach to right bottom corner.

**Definition** [GLTFLegend.h:47](#l00047)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_X\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca27db75ee4805fc00329de9864e81f25a)

@ LA_X_YCENTER

Use x location and position at vertical center.

**Definition** [GLTFLegend.h:41](#l00041)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XCENTER\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca42f24459a26fe33ab2aa41a4f7c78318)

@ LA_XCENTER_YCENTER

Position at center.

**Definition** [GLTFLegend.h:53](#l00054)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XRIGHT\_YTOP](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca5386064bffd3fd3fd2a2676a41b18997)

@ LA_XRIGHT_YTOP

Attach to right top corner.

**Definition** [GLTFLegend.h:48](#l00048)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_X\_Y](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca5bd46276fd06c3a0e49cf6d00bf9c441)

@ LA_X_Y

Use specified x and y location.

**Definition** [GLTFLegend.h:38](#l00038)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XLEFT\_Y](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6ca6b3509784591d8c8cec2d296cf627988)

@ LA_XLEFT_Y

Use y location and attach to left.

**Definition** [GLTFLegend.h:42](#l00042)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XCENTER\_YBOTTOM](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cab74939d10eec4cff02293963dbbff518)

@ LA_XCENTER_YBOTTOM

Attach to bottom and position at horizontal center.

**Definition** [GLTFLegend.h:51](#l00051)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XLEFT\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cabf28733aa8d48ecbd18987aabf05cbfa)

@ LA_XLEFT_YCENTER

Attach to left and position at vertical center (popular).

**Definition** [GLTFLegend.h:45](#l00045)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XCENTER\_YTOP](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cac77b00c0ce50215465a1d4fe2afae10a)

@ LA_XCENTER_YTOP

Attach to top and position at horizontal center.

**Definition** [GLTFLegend.h:52](#l00052)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XCENTER\_Y](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cacaabfa58f05da6dee45c803b1e1a5614)

@ LA_XCENTER_Y

Use y location and position at horizontal center.

**Definition** [GLTFLegend.h:50](#l00050)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XRIGHT\_YCENTER](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6cae769e9ddccb58ed6de5ad0d1aaf22290)

@ LA_XRIGHT_YCENTER

Attach to right and position at vertical center.

**Definition** [GLTFLegend.h:49](#l00049)



[ANSYS::AVZ::GLTFWriter::Legend::LA\_XLEFT\_YBOTTOM](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a07fa70f9cf261ed7649b8dddc8a02a6caefda43433936f1da77563da0e732a358)

@ LA_XLEFT_YBOTTOM

Attach to left bottom corner.

**Definition** [GLTFLegend.h:43](#l00043)



[ANSYS::AVZ::GLTFWriter::Legend::Create](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_legend.html#a4c5bbd483460b9c8d9a9bdaa0674eed8)

static Legend * Create(GLTF *gltf, LegendOrientation orientation, float size, Texture *texture, float mn, float mx, LegendAttachment attachment=LA_XLEFT_YCENTER, const char *title=0, const char *units=0, const char *other=0, unsigned int numTicks=0, const float *valueLocations=0, bool border=false, bool logarithmic=false, float x=0, float y=0, float foregroundR=0, float foregroundG=0, float foregroundB=0, float backgroundR=1, float backgroundG=1, float backgroundB=1, float backgroundA=0)



[ANSYS::AVZ::GLTFWriter::Object](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_object.html)

Object is base class for GLTF objects.

**Definition** [GLTFObject.h:23](_g_l_t_f_object_8h_source.html#l00022)



[ANSYS::AVZ::GLTFWriter::Texture](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_texture.html)

Textures are images that can be used to color a primitive.

**Definition** [GLTFTexture.h:28](_g_l_t_f_texture_8h_source.html#l00027)



[ANSYS](namespace_a_n_s_y_s.html)

GLTFWriter API Documentation.

**Definition** [GLTFAnimation.h:19](_g_l_t_f_animation_8h_source.html#l00019)