    

 ## On this page

  

 

 # DataObjectToGraphicsIndices Struct Reference

 Last update: 16.07.2025 

a class that collects data that is required to transfer the data from a DataObject to the vertices of the OpenGL scene. [More...](struct_data_object_to_graphics_indices.xhtml#details)

## <a name="pub-methods"></a>Public Member Functions

 [init](struct_data_object_to_graphics_indices.xhtml#a738c70d933145c214382f4752b2dfb8b) (int n\_point, int n\_line, int n\_tri, int n\_tet) initializes the struct, allocates vectors and sets them to zero [More...](#a738c70d933145c214382f4752b2dfb8b)  
 ## <a name="pub-static-methods"></a>Static Public Member Functions

static Eigen::VectorXf [getData](struct_data_object_to_graphics_indices.xhtml#a8777db20d13ae82d05cdd8c48178afe1) (std::vector&lt; size\_t &gt; indices, std::vector&lt; bool &gt; has\_data, Eigen::VectorXd data) translates a given data vector to the index space of visualization data The data object indices refer to database.indexMapper [More...](#a8777db20d13ae82d05cdd8c48178afe1)  
 static VectorXuc [getHasData](struct_data_object_to_graphics_indices.xhtml#a9d74cc00d57dac7f8e4bbaebd83e6201) (std::vector&lt; bool &gt; has\_data) translates a given data vector to the index space of visualization data [More...](#a9d74cc00d57dac7f8e4bbaebd83e6201)  
 ## <a name="pub-attribs"></a>Public Attributes

<a id="a7b03266474d77668bb8fa6d5ea998219"></a>std::vector&lt; size\_t &gt; [GL\_to\_data\_indices\_line](struct_data_object_to_graphics_indices.xhtml#a7b03266474d77668bb8fa6d5ea998219) defines the transition of line data a vector of dimension of all vertices describing GL lines each value defines which data item of the corresponding DataObject is visualized.   
 <a id="a4b715bea770f22d8c763de4375c94d22"></a>std::vector&lt; size\_t &gt; [GL\_to\_data\_indices\_point](struct_data_object_to_graphics_indices.xhtml#a4b715bea770f22d8c763de4375c94d22) defines the transition of point data a vector of dimension of all vertices describing GL points each value defines which data item of the corresponding DataObject is visualized.   
 <a id="aa9ae49e7a428b2cdcca5c9126044694d"></a>std::vector&lt; size\_t &gt; [GL\_to\_data\_indices\_tet](struct_data_object_to_graphics_indices.xhtml#aa9ae49e7a428b2cdcca5c9126044694d) defines the transition of volume data a vector of dimension of all vertices describing GL tetrahedra each value defines which data item of the corresponding DataObject is visualized.   
 <a id="a744fc173e53fa31f3b0586bd4342d714"></a>std::vector&lt; size\_t &gt; [GL\_to\_data\_indices\_tri](struct_data_object_to_graphics_indices.xhtml#a744fc173e53fa31f3b0586bd4342d714) defines the transition of shell data a vector of dimension of all vertices describing GL triangles each value defines which data item of the corresponding DataObject is visualized.   
 <a id="a5cee6e492aaa90d5c6b90bd3db22ed61"></a>std::vector&lt; bool &gt; [has\_data\_line](struct_data_object_to_graphics_indices.xhtml#a5cee6e492aaa90d5c6b90bd3db22ed61) defines the transition of line data a vector of dimension of all vertices describing GL lines each value defines if there is data at all assciated with the respective GL vertex.   
 <a id="a26905c29ee82d9abb26f1dbeb11d7ba8"></a>std::vector&lt; bool &gt; [has\_data\_point](struct_data_object_to_graphics_indices.xhtml#a26905c29ee82d9abb26f1dbeb11d7ba8) defines the transition of point data a vector of dimension of all vertices describing GL points each value defines if there is data at all assciated with the respective GL vertex.   
 <a id="ac7ce58a8165ba60af1bcd140caab3dd2"></a>std::vector&lt; bool &gt; [has\_data\_tet](struct_data_object_to_graphics_indices.xhtml#ac7ce58a8165ba60af1bcd140caab3dd2) defines the transition of tetrahedron data a vector of dimension of all vertices describing GL tets each value defines if there is data at all assciated with the respective GL vertex.   
 <a id="ab8a7958bdc32ae0713cbd1058571be73"></a>std::vector&lt; bool &gt; [has\_data\_tri](struct_data_object_to_graphics_indices.xhtml#ab8a7958bdc32ae0713cbd1058571be73) defines the transition of triangle data a vector of dimension of all vertices describing GL triangles each value defines if there is data at all assciated with the respective GL vertex.   
 <a id="details" name="details"></a>## Detailed Description

a class that collects data that is required to transfer the data from a DataObject to the vertices of the OpenGL scene.



## Member Function Documentation

<a id="a8777db20d13ae82d05cdd8c48178afe1"></a>## [◆ ](#a8777db20d13ae82d05cdd8c48178afe1)getData()

 static Eigen::VectorXf getData  ( std::vector&lt; size\_t &gt;  *indices*,    std::vector&lt; bool &gt;  *has\_data*,    Eigen::VectorXd  *data*   )   static 

translates a given data vector to the index space of visualization data The data object indices refer to database.indexMapper

Parameters indicesthe indices that translate the data has\_datadefines which GL indices are associated with data datathe data vector Returnsthe translated data vector 



<a id="a9d74cc00d57dac7f8e4bbaebd83e6201"></a>## [◆ ](#a9d74cc00d57dac7f8e4bbaebd83e6201)getHasData()

 static VectorXuc getHasData  ( std::vector&lt; bool &gt;  *has\_data*)   static 

translates a given data vector to the index space of visualization data

Parameters has\_datathe mask defining which GL indices are associated with data Returnsthe translated raw data 



<a id="a738c70d933145c214382f4752b2dfb8b"></a>## [◆ ](#a738c70d933145c214382f4752b2dfb8b)init()

 init  ( int  *n\_point*,    int  *n\_line*,    int  *n\_tri*,    int  *n\_tet*   ) 

initializes the struct, allocates vectors and sets them to zero

Parameters n\_pointnumber of point vertices n\_linenumber of line vertices n\_trinumber of triangle vertices n\_tetnumber of tetrahedron vertices