Ovis_Decoration_Info_Group_Vector_Element_Value_Set()
Abstract
Specifies the vector element of the Ovis group.
Syntax
Ovis_Decoration_Info_Group_Vector_Element_Value_Set (group_ptr, element_name, x, y)
| Argument | Type | Description |
|---|---|---|
group_ptr |
OvisT_Info_Group * |
Group |
element_name |
const char * |
Element name |
x |
double |
X value of the vector |
y |
double |
Y value of the vector |
Return Type
OvisT_Compcode
OvisC_Compcode_Success if the value could be assigned; OvisC_Compcode_Failure otherwise.
Header
ovis_decoration.h
Details
This function specifies the vector element of the Ovis group. Use Ovis_Decoration_Info_Template_Graph_Element_Add() to add vector elements to group templates.
Example
#define BUSY_FIELD "busy"
OvisT_Info_Template * template;
OvisT_Info_Group * info;
OvisT_3D_Position pos;
template = Ovis_Decoration_Info_Template_Create ("Interference");
Ovis_Decoration_Info_Template_Graph_Element_Add (template, BUSY_FIELD);
Ovis_Position_Geodetic_Set (&pos, 0, 0, 100);
info = Ovis_Decoration_Info_Group_Create (template, pos,
prg_color_from_string ("blue"), OPC_NIL, OPC_NIL, OPC_NIL);
Ovis_Decoration_Info_Group_Vector_Element_Value_Set (info, BUSY_FIELD, 0, 1);
Errors
- Decoration is NIL.
- No element name provided.
- Element "<name>" is not part of the info group.
Reference
- Use the function
Ovis_Decoration_Info_Template_Graph_Element_Add()to set up a vector component of a template.