    

 ## On this page

  

 

 # ensightservice::UpdateVariable Struct Reference

 Last update: 16.07.2025 

## <a id="pub-types" name="pub-types"></a>Public Types

enum [VarLocation](structensightservice_1_1_update_variable.xhtml#a6049149a3d23ac732df1287d464a5e34) { [NODAL](structensightservice_1_1_update_variable.xhtml#a6049149a3d23ac732df1287d464a5e34a45652249bc0510f101449c35fb92219a) = 0 , [ELEMENTAL](structensightservice_1_1_update_variable.xhtml#a6049149a3d23ac732df1287d464a5e34a5bae0693219c95072c79a57e97220cf3) = 1 } enum [VarDimension](structensightservice_1_1_update_variable.xhtml#a8a27406b9f0d1b4d04c7e220290a8832) { [SCALAR](structensightservice_1_1_update_variable.xhtml#a8a27406b9f0d1b4d04c7e220290a8832a181c94167aff4fa32434f11a9517014a) = 0 , [VECTOR](structensightservice_1_1_update_variable.xhtml#a8a27406b9f0d1b4d04c7e220290a8832a89579192578351c228f25c88386790e3) = 1 } enum [PaletteInterpolation](structensightservice_1_1_update_variable.xhtml#aba525af8da57834327a98c6258f5fda1) { [CONTINUOUS](structensightservice_1_1_update_variable.xhtml#aba525af8da57834327a98c6258f5fda1a6dd78f8b0d101f7bb8c0d74c15c2af04) = 0 , [BANDED](structensightservice_1_1_update_variable.xhtml#aba525af8da57834327a98c6258f5fda1a227dce087f42b9dfa5231856c003529b) = 1 } enum [UndefinedDisplay](structensightservice_1_1_update_variable.xhtml#ab07eddb89db3f17a4111c2a2b0ba1c0e) { [AS\_ZERO](structensightservice_1_1_update_variable.xhtml#ab07eddb89db3f17a4111c2a2b0ba1c0eaa8c810fb96b63318847e385ab1ab93ea) = 0 , [AS\_INVISIBLE](structensightservice_1_1_update_variable.xhtml#ab07eddb89db3f17a4111c2a2b0ba1c0ea0a11d139963b16f66721378f6f1f7bcd) = 1 , [USE\_PART\_COLOR](structensightservice_1_1_update_variable.xhtml#ab07eddb89db3f17a4111c2a2b0ba1c0eadb5b985665804d7818f7cbd18708ee3e) = 2 , [USE\_UNDEF\_COLOR](structensightservice_1_1_update_variable.xhtml#ab07eddb89db3f17a4111c2a2b0ba1c0ea4ac541b1e6a12dfca57f55bfea21aac5) = 3 } ## <a id="pub-attribs" name="pub-attribs"></a>Public Attributes

uint64 [id](structensightservice_1_1_update_variable.xhtml#a740d5ab7439756963cb274aa5d7a395d) = 1 uint64 [parent\_id](structensightservice_1_1_update_variable.xhtml#af0b57f59c0e4898f197637e2130d3652) = 2 string [name](structensightservice_1_1_update_variable.xhtml#af45690c2e8743fe83baa699967ca3737) = 3 [VarLocation](structensightservice_1_1_update_variable.xhtml#a6049149a3d23ac732df1287d464a5e34) [location](structensightservice_1_1_update_variable.xhtml#a3d45de0de8053126384af3e5442478f4) = 4 [VarDimension](structensightservice_1_1_update_variable.xhtml#a8a27406b9f0d1b4d04c7e220290a8832) [dimension](structensightservice_1_1_update_variable.xhtml#a54f1a5d2fdf41622a3fdd1a29c622b5e) = 5 float [undefined\_value](structensightservice_1_1_update_variable.xhtml#abf6d0768db50f923d6ac481949e484a8) = 6 [PaletteInterpolation](structensightservice_1_1_update_variable.xhtml#aba525af8da57834327a98c6258f5fda1) [pal\_interp](structensightservice_1_1_update_variable.xhtml#a93a37d3801ebe892afd00598cc36e86b) = 7 repeated [VariableLevel](structensightservice_1_1_variable_level.xhtml) [levels](structensightservice_1_1_update_variable.xhtml#a3a45f0682d9ce64655fdb7c9d21ff9c9) = 8 uint32 [sub\_levels](structensightservice_1_1_update_variable.xhtml#ae886d67fd989c05978d7c8eb5fc17001) = 9 [UndefinedDisplay](structensightservice_1_1_update_variable.xhtml#ab07eddb89db3f17a4111c2a2b0ba1c0e) [undefined\_display](structensightservice_1_1_update_variable.xhtml#aae718fe32c4eb203a3b93df836aa65ad) = 10 repeated float [undefined\_color](structensightservice_1_1_update_variable.xhtml#a83751ee84d20f8d059c7d792c4e58be3) = 11 bytes [texture](structensightservice_1_1_update_variable.xhtml#a0da0813441db9e33553d5fb4c87ed3ce) = 12 map&lt; string, string &gt; [attributes](structensightservice_1_1_update_variable.xhtml#ac82ea8d2dd9ad7410db2a784dfb95921) = 13 string [hash](structensightservice_1_1_update_variable.xhtml#affd2266602a0ce71ea4765dd9d2b830b) = 14 <a id="details" name="details"></a>## Detailed Description

General meta data about a variable, and about how to color by that variable. All parts colored by a the same variable in EnSight use the same palette, same var range, etc.

The attributes are open for various uses, but several attribute key values have already been defined:

Attribute Value ENS\_OBJ\_TYPE The EnSight object type associated with this Group entity (e.g. "ENS\_PART", "ENS\_CASE", "ENS\_VAR"). ENS\_OBJ\_ID The EnSight object ID associated with the Group entity. ENS\_UNITS\_DIMS The unit dimensionality for the a specific ENS\_VAR. An example for a pressure variable would be: 'M/LTT'. See also [EnSight Units](https://nexusdemo.ensight.com/docs/python/html/ENS_UNITSSchema.html#TOC-ENS_UNITS_SYSTEM "EnSight Units System"). Definition at line [421](dynamic__scene__graph_8proto_source.xhtml#l00421) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).



## Member Enumeration Documentation

<a id="aba525af8da57834327a98c6258f5fda1" name="aba525af8da57834327a98c6258f5fda1"></a>## [◆ ](#aba525af8da57834327a98c6258f5fda1)PaletteInterpolation

 enum [ensightservice::UpdateVariable::PaletteInterpolation](structensightservice_1_1_update_variable.xhtml#aba525af8da57834327a98c6258f5fda1)

Palette interpolation options.

Specify if palette interpolation should be linear or stepwise.

Enumerator<a id="aba525af8da57834327a98c6258f5fda1a6dd78f8b0d101f7bb8c0d74c15c2af04" name="aba525af8da57834327a98c6258f5fda1a6dd78f8b0d101f7bb8c0d74c15c2af04"></a>CONTINUOUS The interpolation of the variable palette is linear.

<a id="aba525af8da57834327a98c6258f5fda1a227dce087f42b9dfa5231856c003529b" name="aba525af8da57834327a98c6258f5fda1a227dce087f42b9dfa5231856c003529b"></a>BANDED The interpolation of the variable palette is a step function.

Definition at line [443](dynamic__scene__graph_8proto_source.xhtml#l00443) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="ab07eddb89db3f17a4111c2a2b0ba1c0e" name="ab07eddb89db3f17a4111c2a2b0ba1c0e"></a>## [◆ ](#ab07eddb89db3f17a4111c2a2b0ba1c0e)UndefinedDisplay

 enum [ensightservice::UpdateVariable::UndefinedDisplay](structensightservice_1_1_update_variable.xhtml#ab07eddb89db3f17a4111c2a2b0ba1c0e)

Undefined interpretation.

EnSight has a special float value indicating that the variable is undefined for a vertex or element. Options for drawing these elements are in the UndefinedDisplay enum. The value that means 'undefined' is given below in undefined\_value. By default, the undefined value is -1.2345e-10.

Enumerator<a id="ab07eddb89db3f17a4111c2a2b0ba1c0eaa8c810fb96b63318847e385ab1ab93ea" name="ab07eddb89db3f17a4111c2a2b0ba1c0eaa8c810fb96b63318847e385ab1ab93ea"></a>AS\_ZERO Draw 'undefined' as 0.0.

<a id="ab07eddb89db3f17a4111c2a2b0ba1c0ea0a11d139963b16f66721378f6f1f7bcd" name="ab07eddb89db3f17a4111c2a2b0ba1c0ea0a11d139963b16f66721378f6f1f7bcd"></a>AS\_INVISIBLE Don't draw any pixels where the variable value is undefined.

<a id="ab07eddb89db3f17a4111c2a2b0ba1c0eadb5b985665804d7818f7cbd18708ee3e" name="ab07eddb89db3f17a4111c2a2b0ba1c0eadb5b985665804d7818f7cbd18708ee3e"></a>USE\_PART\_COLOR Draw 'undefined' areas using the 'fill\_color' value on the part.

<a id="ab07eddb89db3f17a4111c2a2b0ba1c0ea4ac541b1e6a12dfca57f55bfea21aac5" name="ab07eddb89db3f17a4111c2a2b0ba1c0ea4ac541b1e6a12dfca57f55bfea21aac5"></a>USE\_UNDEF\_COLOR Draw 'undefined' areas using a color given below in undefined\_color.

Definition at line [453](dynamic__scene__graph_8proto_source.xhtml#l00453) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a8a27406b9f0d1b4d04c7e220290a8832" name="a8a27406b9f0d1b4d04c7e220290a8832"></a>## [◆ ](#a8a27406b9f0d1b4d04c7e220290a8832)VarDimension

 enum [ensightservice::UpdateVariable::VarDimension](structensightservice_1_1_update_variable.xhtml#a8a27406b9f0d1b4d04c7e220290a8832)

Declare the variable dimension.

Variables can either be a single float (SCALAR) per observed location or a 3 float vector (VECTOR).

Enumerator<a id="a8a27406b9f0d1b4d04c7e220290a8832a181c94167aff4fa32434f11a9517014a" name="a8a27406b9f0d1b4d04c7e220290a8832a181c94167aff4fa32434f11a9517014a"></a>SCALAR The variable has one value per location.

<a id="a8a27406b9f0d1b4d04c7e220290a8832a89579192578351c228f25c88386790e3" name="a8a27406b9f0d1b4d04c7e220290a8832a89579192578351c228f25c88386790e3"></a>VECTOR The variable has three values per location.

Definition at line [435](dynamic__scene__graph_8proto_source.xhtml#l00435) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a6049149a3d23ac732df1287d464a5e34" name="a6049149a3d23ac732df1287d464a5e34"></a>## [◆ ](#a6049149a3d23ac732df1287d464a5e34)VarLocation

 enum [ensightservice::UpdateVariable::VarLocation](structensightservice_1_1_update_variable.xhtml#a6049149a3d23ac732df1287d464a5e34)

Declare where a variable is defined to exist.

Variables can located at each node or element of the mesh.

Enumerator<a id="a6049149a3d23ac732df1287d464a5e34a45652249bc0510f101449c35fb92219a" name="a6049149a3d23ac732df1287d464a5e34a45652249bc0510f101449c35fb92219a"></a>NODAL The variable is specified per mesh node.

<a id="a6049149a3d23ac732df1287d464a5e34a5bae0693219c95072c79a57e97220cf3" name="a6049149a3d23ac732df1287d464a5e34a5bae0693219c95072c79a57e97220cf3"></a>ELEMENTAL The variable is specified per mesh element (e.g. triangle)

Definition at line [426](dynamic__scene__graph_8proto_source.xhtml#l00426) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





## Member Data Documentation

<a id="ac82ea8d2dd9ad7410db2a784dfb95921" name="ac82ea8d2dd9ad7410db2a784dfb95921"></a>## [◆ ](#ac82ea8d2dd9ad7410db2a784dfb95921)attributes

 map&lt;string,string&gt; ensightservice::UpdateVariable::attributes = 13

General attributes associated with this Variable.

Definition at line [471](dynamic__scene__graph_8proto_source.xhtml#l00471) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a54f1a5d2fdf41622a3fdd1a29c622b5e" name="a54f1a5d2fdf41622a3fdd1a29c622b5e"></a>## [◆ ](#a54f1a5d2fdf41622a3fdd1a29c622b5e)dimension

 [VarDimension](structensightservice_1_1_update_variable.xhtml#a8a27406b9f0d1b4d04c7e220290a8832) ensightservice::UpdateVariable::dimension = 5

The dimensionality of the variable.

Definition at line [463](dynamic__scene__graph_8proto_source.xhtml#l00463) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="affd2266602a0ce71ea4765dd9d2b830b" name="affd2266602a0ce71ea4765dd9d2b830b"></a>## [◆ ](#affd2266602a0ce71ea4765dd9d2b830b)hash

 string ensightservice::UpdateVariable::hash = 14

hash for this message payload

Definition at line [472](dynamic__scene__graph_8proto_source.xhtml#l00472) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a740d5ab7439756963cb274aa5d7a395d" name="a740d5ab7439756963cb274aa5d7a395d"></a>## [◆ ](#a740d5ab7439756963cb274aa5d7a395d)id

 uint64 ensightservice::UpdateVariable::id = 1

The Variable entity id.

Definition at line [459](dynamic__scene__graph_8proto_source.xhtml#l00459) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a3a45f0682d9ce64655fdb7c9d21ff9c9" name="a3a45f0682d9ce64655fdb7c9d21ff9c9"></a>## [◆ ](#a3a45f0682d9ce64655fdb7c9d21ff9c9)levels

 repeated [VariableLevel](structensightservice_1_1_variable_level.xhtml) ensightservice::UpdateVariable::levels = 8

The color and var value at palette levels. Lowest to highest.

Definition at line [466](dynamic__scene__graph_8proto_source.xhtml#l00466) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a3d45de0de8053126384af3e5442478f4" name="a3d45de0de8053126384af3e5442478f4"></a>## [◆ ](#a3d45de0de8053126384af3e5442478f4)location

 [VarLocation](structensightservice_1_1_update_variable.xhtml#a6049149a3d23ac732df1287d464a5e34) ensightservice::UpdateVariable::location = 4

The location of the variable.

Definition at line [462](dynamic__scene__graph_8proto_source.xhtml#l00462) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="af45690c2e8743fe83baa699967ca3737" name="af45690c2e8743fe83baa699967ca3737"></a>## [◆ ](#af45690c2e8743fe83baa699967ca3737)name

 string ensightservice::UpdateVariable::name = 3

The name of the variable.

Definition at line [461](dynamic__scene__graph_8proto_source.xhtml#l00461) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a93a37d3801ebe892afd00598cc36e86b" name="a93a37d3801ebe892afd00598cc36e86b"></a>## [◆ ](#a93a37d3801ebe892afd00598cc36e86b)pal\_interp

 [PaletteInterpolation](structensightservice_1_1_update_variable.xhtml#aba525af8da57834327a98c6258f5fda1) ensightservice::UpdateVariable::pal\_interp = 7

How the color palette specified by levels should be interpolated.

Definition at line [465](dynamic__scene__graph_8proto_source.xhtml#l00465) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="af0b57f59c0e4898f197637e2130d3652" name="af0b57f59c0e4898f197637e2130d3652"></a>## [◆ ](#af0b57f59c0e4898f197637e2130d3652)parent\_id

 uint64 ensightservice::UpdateVariable::parent\_id = 2

The parent scene id.

Definition at line [460](dynamic__scene__graph_8proto_source.xhtml#l00460) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="ae886d67fd989c05978d7c8eb5fc17001" name="ae886d67fd989c05978d7c8eb5fc17001"></a>## [◆ ](#ae886d67fd989c05978d7c8eb5fc17001)sub\_levels

 uint32 ensightservice::UpdateVariable::sub\_levels = 9

The number of "sub-levels" that might be used with BANDED interpolation. The total number of bands is (levels-1)\*(sub\_levels+1). The color in each level is used on the band at and above the level value, except for the last level's color, which is use on the band below it. Linearly interpolate in RGB space to get the colors of the bands between levels.

Definition at line [467](dynamic__scene__graph_8proto_source.xhtml#l00467) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a0da0813441db9e33553d5fb4c87ed3ce" name="a0da0813441db9e33553d5fb4c87ed3ce"></a>## [◆ ](#a0da0813441db9e33553d5fb4c87ed3ce)texture

 bytes ensightservice::UpdateVariable::texture = 12

rgba pixel values (rrggbbaa 4 bytes/pixel) in \[0,255\]. For the color\_variableid, use only the rgb portion of this texture. For the alpha\_variableid, use only the 'a' portion of this texture. levels\[0\].value should map to tex coord==0 for banded, 0.5 texel for continuous levels\[levels.size()-1\].value should map to tex coord==1 for banded, 1 - 0.5 texel for continuous.

Definition at line [470](dynamic__scene__graph_8proto_source.xhtml#l00470) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a83751ee84d20f8d059c7d792c4e58be3" name="a83751ee84d20f8d059c7d792c4e58be3"></a>## [◆ ](#a83751ee84d20f8d059c7d792c4e58be3)undefined\_color

 repeated float ensightservice::UpdateVariable::undefined\_color = 11

If undefined\_display==USE\_UNDEF\_COLOR, rgb in \[0,1\] given here.

Definition at line [469](dynamic__scene__graph_8proto_source.xhtml#l00469) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="aae718fe32c4eb203a3b93df836aa65ad" name="aae718fe32c4eb203a3b93df836aa65ad"></a>## [◆ ](#aae718fe32c4eb203a3b93df836aa65ad)undefined\_display

 [UndefinedDisplay](structensightservice_1_1_update_variable.xhtml#ab07eddb89db3f17a4111c2a2b0ba1c0e) ensightservice::UpdateVariable::undefined\_display = 10

How should the undefined values be displayed.

Definition at line [468](dynamic__scene__graph_8proto_source.xhtml#l00468) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="abf6d0768db50f923d6ac481949e484a8" name="abf6d0768db50f923d6ac481949e484a8"></a>## [◆ ](#abf6d0768db50f923d6ac481949e484a8)undefined\_value

 float ensightservice::UpdateVariable::undefined\_value = 6

The float value that should be interpreted as "Undefined".

Definition at line [464](dynamic__scene__graph_8proto_source.xhtml#l00464) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





---

The documentation for this struct was generated from the following file:- D:/Product-src/ensight/client/rpc\_interface/[dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml)