Ovis_3D_Text_Position_Set()
Abstract
Specifies the position of 3D text.
Syntax
Ovis_3D_Text_Position_Set (text_ptr, position)
| Argument | Type | Description |
|---|---|---|
text_ptr |
OvisT_3D_Text * |
Text |
position |
OvisT_3D_Position |
Specifies the text position |
Return Type
OvisT_Compcode
OvisC_Compcode_Success if the provided object is a valid text pointer. Otherwise, it returns OvisC_Compcode_Failure.
Header
ovis_decoration.h
Details
This function specifies the position of the 3D text.
Example
OvisT_3D_Position pos;
OvisT_3D_Text * text;
/* … text created at some point with an initial position */
Ovis_3D_Position_Geodetic_Set (&pos, 20, -40, 1.5);
Ovis_3D_Text_Position_Set (text, pos);
Errors
- Decoration is NIL.
- Decoration is not a 3D text.
Reference
- Use the function
Ovis_3D_Text_Position_Get()to obtain the position of the text.