Modern Fortran interface module to the OpenFrames C interface.
All functions have a prefix indicating what they operate on:
ofwin: Acts on the currently active WindowProxyoffm: Acts on the specified FrameManager.offrame: Acts on the currently active Reference Frame.of(type of ReferenceFrame): Acts on the currently active ReferenceFrame,
assuming that it is of the subtype given by the function name.oftraj: Acts on the currently active Trajectory.oftrajartist: Acts on the currently active TrajectoryArtist.of(type of TrajectoryArtist): Acts on the currently active TrajectoryArtist,
assuming that it is of the subtype given by the function name.ofview: Acts on the currently active View.In addition, some functions produce integer results. These values can be obtained by calling of_getreturnedvalue.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=c_int), | public, | parameter | :: | of_zero | = | 0 | |
| integer(kind=c_int), | public, | parameter | :: | of_time | = | 1 | |
| integer(kind=c_int), | public, | parameter | :: | of_posopt | = | 2 | |
| integer(kind=c_int), | public, | parameter | :: | of_attitude | = | 3 | |
| integer(kind=c_int), | public, | parameter | :: | of_x | = | 0 |
x position or quaternion 1 element |
| integer(kind=c_int), | public, | parameter | :: | of_y | = | 1 |
y position or quaternion 2 element |
| integer(kind=c_int), | public, | parameter | :: | of_z | = | 2 |
z position or quaternion 3 element |
| integer(kind=c_int), | public, | parameter | :: | of_w | = | 3 |
quaternion 4 element (angle) |
| integer(kind=c_int), | public, | parameter | :: | ofma_start | = | 1 |
draw start marker |
| integer(kind=c_int), | public, | parameter | :: | ofma_intermediate | = | 2 |
draw intermediate markers |
| integer(kind=c_int), | public, | parameter | :: | ofma_end | = | 4 |
draw end marker |
| integer(kind=c_int), | public, | parameter | :: | ofma_time | = | 1 | |
| integer(kind=c_int), | public, | parameter | :: | ofma_distance | = | 2 |
distance increments |
| integer(kind=c_int), | public, | parameter | :: | ofma_data | = | 3 |
data point increments |
| integer(kind=c_int), | public, | parameter | :: | offollow_loop | = | 0 | |
| integer(kind=c_int), | public, | parameter | :: | offollow_limit | = | 1 | |
| integer(kind=c_int), | public, | parameter | :: | offollow_position | = | 1 | |
| integer(kind=c_int), | public, | parameter | :: | offollow_attitude | = | 2 | |
| integer(kind=c_int), | public, | parameter | :: | of_noaxes | = | 0 |
don't use any axes |
| integer(kind=c_int), | public, | parameter | :: | of_xaxis | = | 1 |
use x axis |
| integer(kind=c_int), | public, | parameter | :: | of_yaxis | = | 2 |
use y axis |
| integer(kind=c_int), | public, | parameter | :: | of_zaxis | = | 4 |
use z axis |
| integer(kind=c_int), | public, | parameter | :: | ofview_absolute | = | 0 |
global reference frame |
| integer(kind=c_int), | public, | parameter | :: | ofview_relative | = | 1 |
body-fixed frame |
| integer(kind=c_int), | public, | parameter | :: | ofview_direct | = | 0 |
direct rotation |
| integer(kind=c_int), | public, | parameter | :: | ofview_azel | = | 1 |
azimuth-elevation rotation |
sets up all internal openframes fortran/c interface variables must be called before other openframes calls
cleans up all internal openframes fortran/c interface variables must be called when done using openframes afterwards, the only way to continue using openframes is to first make another call to of_initialize
Get the return value returned by the most recent API function call.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(out) | :: | val |
variable to store the return value from the previous API function call. |
Add a search path when OSG tries to load data files.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | newpath |
full path to be searched when loading a file. |
Set the active WindowProxy
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | id |
ID of the window to activate. |
Get ID of the active WindowProxy
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(out) | :: | id |
ID of the active window. |
Create a new WindowProxy that will manage drawing onto a window. This new WindowProxy will also become the current active one.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | x |
X-coordinate (in pixels) of the screen of the upper-right corner of the window. |
||
| integer(kind=int32), | intent(in) | :: | y |
Y-coordinate (in pixels) of the screen of the upper-right corner of the window. |
||
| integer(kind=int32), | intent(in) | :: | width |
Width of the window (in pixels). |
||
| integer(kind=int32), | intent(in) | :: | height |
Height of the window (in pixels). |
||
| integer(kind=int32), | intent(in) | :: | nrow |
Number of rows in the window grid. |
||
| integer(kind=int32), | intent(in) | :: | ncol |
Number of columns in the window grid. |
||
| logical, | intent(in) | :: | embedded |
True if the user wants to provide their own OpenGL window. |
||
| integer(kind=int32), | intent(in) | :: | id |
ID of this window. |
||
| logical, | intent(in) | :: | usevr |
Whether to enable rendering in VR (if OpenFrames is built with OpenVR support) |
Set the window name (title). Only applies to non-embedded windows.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | winname |
The new window name. |
Set the number rows and columns in the grid.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | nrow |
Number of rows in the window grid. |
||
| integer(kind=int32), | intent(in) | :: | ncol |
Number of columns in the window grid. |
Set a callback function to be called on keypress.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(keypresscallback) | :: | fcn |
Callback function to be called on keypress. |
Set a callback function to be called on mouse motion.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(mousemotioncallback) | :: | fcn |
Callback function to be called on mouse motion. |
Set a callback function to be called on button press.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(buttonpresscallback) | :: | fcn |
Callback function to be called on button press. |
Set a callback function to be called on button release.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(buttonreleasecallback) | :: | fcn |
Callback function to be called on button release. |
Pause/unpause the animation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | pause |
True to pause the animation, False to unpause the animation. |
Check if the animation is running.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(out) | :: | state |
This variable is set to 1 if the animation is running, 0 otherwise. |
Set the scene at the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
Set the simulation time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | time |
New simulation time. |
Get the simulation time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out) | :: | time |
Current simulation time. |
Set whether to pause time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | pause |
Set to 1 to pause the simulation time, 0 to unpause. |
Check if time is paused.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(out) | :: | ispaused |
Set to 1 if simulation time is paused, 0 if unpaused. |
Set the simulation time scale.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | tscale |
New simulation time scale. |
Get the simulation time scale.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out) | :: | tscale |
Current simulation time scale. |
Set the lighting parameters for the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| real(kind=real32), | intent(in) | :: | r |
Red component of specified light. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of specified light. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of specified light. |
Set the lighting parameters for the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| real(kind=real32), | intent(in) | :: | r |
Red component of specified light. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of specified light. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of specified light. |
Set the lighting parameters for the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| real(kind=real32), | intent(in) | :: | r |
Red component of specified light. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of specified light. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of specified light. |
Set the light position for the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| real(kind=real32), | intent(in) | :: | x |
X position in eye space. |
||
| real(kind=real32), | intent(in) | :: | y |
Y position in eye space. |
||
| real(kind=real32), | intent(in) | :: | z |
Z position in eye space. |
||
| real(kind=real32), | intent(in) | :: | w |
If 0 then directional (antiparallel to x,y,z direction). If 1 then positional (radiates from x,y,z direction). |
Set the 3D stereo mode for the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| logical, | intent(in) | :: | enable |
True to enable 3D stereo mode. |
||
| real(kind=real32), | intent(in) | :: | eyeseparation |
Set eye separation for 3D stereo. |
||
| real(kind=real32), | intent(in) | :: | width |
Width of the screen. |
||
| real(kind=real32), | intent(in) | :: | height |
Height of the screen. |
||
| real(kind=real32), | intent(in) | :: | distance |
Distance of the screen. |
Set the background color of the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| real(kind=real32), | intent(in) | :: | r |
Red color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | g |
Green color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue color component [0-1]. |
Set the background texture of the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| character(len=*), | intent(in) | :: | fname |
File containing the background texture. |
Set the background star field of the specified grid position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| real(kind=real32), | intent(in) | :: | minmag |
Minimum star magnitude to show. |
||
| real(kind=real32), | intent(in) | :: | maxmag |
Maximum star magnitude to show. |
||
| character(len=*), | intent(in) | :: | fname |
File containing the background star field catalog data. |
Enable/disable the HUD text for the specified grid position. Create placeholder HUD text if it does not yet exist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| logical, | intent(in) | :: | enable |
Whether to enable or disable the HUD text. |
Set HUD font. Create placeholder HUD text if it does not yet exist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| character(len=*), | intent(in) | :: | fname |
Name of font to use, e.g. "arial.ttf". |
Set HUD color and size. Create placeholder HUD text if it does not yet exist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| real(kind=real32), | intent(in) | :: | r |
Red color component. |
||
| real(kind=real32), | intent(in) | :: | g |
Green color component. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue color component. |
||
| real(kind=real32), | intent(in) | :: | charsize |
Character size in pixels. |
Set HUD text position and alignment. Create placeholder HUD text if it does not yet exist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| real(kind=real32), | intent(in) | :: | x |
Text origin x position, in range [0,1] from left to right. |
||
| real(kind=real32), | intent(in) | :: | y |
Text origin y position, in range [0,1] from bottom to top. |
||
| integer(kind=int32), | intent(in) | :: | alignment |
Alignment location of text origin, see osgText::AlignmentType enum. |
Set HUD text. Create placeholder HUD text if it does not yet exist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row in the grid to set. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column in the grid to set. |
||
| character(len=*), | intent(in) | :: | text |
The new HUD text. |
Set the desired framerate of the window (frames/second).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | fps |
Desired framerate value in frames per second. |
Add a view to the window.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row to add the view to. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column to add the view to. |
Remove a view from the window.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row to remove the view from. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column to remove the view from. |
Remove all the view(s) from the window.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row to remove the view(s) from. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column to remove the view(s) from. |
Set the view currently displayed in the window.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | row |
Row to set the active view in. |
||
| integer(kind=int32), | intent(in) | :: | col |
Column to set the active view in. |
Set a callback function for swapping the front/back buffers.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(swapbuffersfunction) | :: | fcn |
Callback function to be called. |
Set a callback function for making the OpenGL context current (so it can be drawn on).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(makecurrentfunction) | :: | fcn |
Callback function to be called. |
Set a callback function for updating the OpenGL context after qualifying events.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(updatecontextfunction) | :: | fcn |
Callback function to be called. |
Resize the window to a new position and size.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | x |
X-coordinate (in pixels) of the screen of the upper-right corner of the window. |
||
| integer(kind=int32), | intent(in) | :: | y |
Y-coordinate (in pixels) of the screen of the upper-right corner of the window. |
||
| integer(kind=int32), | intent(in) | :: | width |
Width of the window (in pixels). |
||
| integer(kind=int32), | intent(in) | :: | height |
Height of the window (in pixels). |
Create a key-pressed event.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | key |
Key pressed (see osg::GUIEventAdapter::KeySymbol enum). |
Create a key released event.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | key |
Key released (see osg::GUIEventAdapter::KeySymbol enum). |
Create a mouse button pressed event.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | x |
X-coordinate of the mouse in the window. |
||
| real(kind=real32), | intent(in) | :: | y |
Y-coordinate of the mouse in the window. |
||
| integer(kind=int32), | intent(in) | :: | button |
Mouse button pressed. Button numbering is 1 for left mouse button, 2 for middle, 3 for right. |
Create a mouse button released event.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | x |
X-coordinate of the mouse in the window. |
||
| real(kind=real32), | intent(in) | :: | y |
Y-coordinate of the mouse in the window. |
||
| integer(kind=int32), | intent(in) | :: | button |
Mouse button released. Button numbering is 1 for left mouse button, 2 for middle, 3 for right. |
Create a mouse-moved event.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | x |
X-coordinate of the mouse in the window. |
||
| real(kind=real32), | intent(in) | :: | y |
Y-coordinate of the mouse in the window. |
Set the file name and type that will be used for window captures.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fname |
File name (without extension). |
||
| character(len=*), | intent(in) | :: | fext |
File extension (determines image type). |
Set the key that activates a window capture.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | key |
Integer representation of key char. Set to 0 (zero) to disable key-based window capture. |
Set the currently active FrameManager.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | id |
ID of the frame manager to activate. |
Create a new FrameManager with the given ID.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | id |
ID of the frame manager to create. |
Set the currently active reference frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the frame to activate. |
Create a new ReferenceFrame with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the frame to create. |
Set the color of the current frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | g |
Green color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | a |
Alpha (transparancy) component [0-1]. |
* Add a child frame to the current frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the frame to add as a child to the active frame. |
Remove a child frame from the current frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the child frame to remove from the active frame. |
Get the number of child frames in the current frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(out) | :: | numchildren |
variable to store the number of child frames to. |
Set the position of the current frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
X position. |
||
| real(kind=real64), | intent(in) | :: | y |
Y position. |
||
| real(kind=real64), | intent(in) | :: | z |
Z position. |
Get the position of the current frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out) | :: | x |
Returned X position. |
||
| real(kind=real64), | intent(out) | :: | y |
Returned Y position. |
||
| real(kind=real64), | intent(out) | :: | z |
Returned Z position. |
Set the attitude of the current frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
X component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | y |
Y component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | z |
Z component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | angle |
Angle component of the rotation quaternion. |
Get the attitude of the current frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out) | :: | x |
Returned X component of the rotation quaternion. |
||
| real(kind=real64), | intent(out) | :: | y |
Returned Y component of the rotation quaternion. |
||
| real(kind=real64), | intent(out) | :: | z |
Returned Z component of the rotation quaternion. |
||
| real(kind=real64), | intent(out) | :: | angle |
Returned angle component of the rotation quaternion. |
Toggle which axis components are displayed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | axes |
Axis components to show specified by |
Toggle display of the name label of the frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | namelabel |
True to display the label, false to hide it. |
Toggle which axis labels are displayed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | labels |
Axis labels to show specified by |
Change the name label for the current ReferenceFrame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the label. |
Change the axes labels for the current ReferenceFrame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | xlabel |
Name of the x-axis label. |
||
| character(len=*), | intent(in) | :: | ylabel |
Name of the y-axis label. |
||
| character(len=*), | intent(in) | :: | zlabel |
Name of the z-axis label. |
Set the label font for the current ReferenceFrame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | font |
Font name, either with absolute path or standalone. Must include extension. |
Set the label size for the current ReferenceFrame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | size |
Label size, used as maximum size for axes labels |
Reposition and resize the x component of the coordinate axis.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(3) | :: | pos |
Position array of the origin of the x-axis component. |
|
| real(kind=real64), | intent(in) | :: | length |
Length of the x-axis arrow. |
||
| real(kind=real64), | intent(in) | :: | headratio |
Ratio of the arrow head to body. Set to 0.0 to use default. |
||
| real(kind=real64), | intent(in) | :: | bodyradius |
Radius of the body of the arrow. Set to 0.0 to use default. |
||
| real(kind=real64), | intent(in) | :: | headradius |
Radius of the head of the arrow. Set to 0.0 to use default. |
Reposition and resize the y component of the coordinate axis.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(3) | :: | pos |
Position array of the origin of the y-axis component. |
|
| real(kind=real64), | intent(in) | :: | length |
Length of the y-axis arrow. |
||
| real(kind=real64), | intent(in) | :: | headratio |
Ratio of the arrow head to body. Set to 0.0 to use default. |
||
| real(kind=real64), | intent(in) | :: | bodyradius |
Radius of the body of the arrow. Set to 0.0 to use default. |
||
| real(kind=real64), | intent(in) | :: | headradius |
Radius of the head of the arrow. Set to 0.0 to use default. |
Reposition and resize the z component of the coordinate axis.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(3) | :: | pos |
Position array of the origin of the z-axis component. |
|
| real(kind=real64), | intent(in) | :: | length |
Length of the z-axis arrow. |
||
| real(kind=real64), | intent(in) | :: | headratio |
Ratio of the arrow head to body. Set to 0.0 to use default. |
||
| real(kind=real64), | intent(in) | :: | bodyradius |
Radius of the body of the arrow. Set to 0.0 to use default. |
||
| real(kind=real64), | intent(in) | :: | headradius |
Radius of the head of the arrow. Set to 0.0 to use default. |
Enable and manage per-frame lighting.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | enabled |
Whether to enable or disable lighting. |
Enable and manage per-frame lighting.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(out) | :: | enabled |
Whether to enable or disable lighting. |
Enable and manage per-frame lighting.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red component of specified light type. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of specified light type. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of specified light type. |
Enable and manage per-frame lighting.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red component of specified light type. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of specified light type. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of specified light type. |
Enable and manage per-frame lighting.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red component of specified light type. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of specified light type. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of specified light type. |
Have this frame follow the specified trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the trajectory to follow. |
Follow the trajectory's position, attitude, or both, and set the follow mode.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | data |
Set whether to follow position and/or velocity (see |
||
| integer(kind=int32), | intent(in) | :: | mode |
Set the follow mode to loop repeatedly or to limit to the times added to the trajectory (see |
Set the elements to follow position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in), | dimension(3) | :: | src |
Set data source for each axis (see |
|
| integer(kind=int32), | intent(in), | dimension(3) | :: | element |
Set which element to follow. |
|
| integer(kind=int32), | intent(in), | dimension(3) | :: | opt |
Set which optional to follow. |
|
| real(kind=real64), | intent(in), | dimension(3) | :: | scale |
Set the scale for each axis. |
Print (to std::out) a formatted string of the current ReferenceFrame's descendant hierarchy.
Create a new Sphere with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the sphere to create. |
Set the radius of the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | radius |
Radius of the sphere. |
Set the image file used as the texture map for the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fname |
Set the image file used as the night texture map for the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fname |
File containing the night texture map. |
Enable/disable auto level of detailing for the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | lod |
True to enable auto level of detailing, false to disable. |
Set position of the sphere (within its own reference frame).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
X position. |
||
| real(kind=real64), | intent(in) | :: | y |
Y position. |
||
| real(kind=real64), | intent(in) | :: | z |
Z position. |
Set attitude of the sphere (within its own reference frame).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | rx |
X component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | ry |
Y component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | rz |
Z component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | angle |
Angle component of the rotation quaternion. |
Set the scale of the sphere (to turn sphere into ellipsoid). This applies to the current active Sphere, and can be used to turn a Sphere into an ellipsoid.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | sx |
X scale. |
||
| real(kind=real64), | intent(in) | :: | sy |
Y scale. |
||
| real(kind=real64), | intent(in) | :: | sz |
Z scale. |
Set material parameters for the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red component of reflectivity for given component. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of reflectivity for given component. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of reflectivity for given component. |
Set material parameters for the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red component of reflectivity for given component. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of reflectivity for given component. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of reflectivity for given component. |
Set material parameters for the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red component of reflectivity for given component. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of reflectivity for given component. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of reflectivity for given component. |
Set material parameters for the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red component of reflectivity for given component. |
||
| real(kind=real32), | intent(in) | :: | g |
Green component of reflectivity for given component. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue component of reflectivity for given component. |
Set material parameters for the sphere.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | shininess |
Specular shininess for given component. |
Create a new Model with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Set the 3D model to be displayed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fname |
File containing the 3D model. |
Set the position wrt the local origin of the current model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
X position. |
||
| real(kind=real64), | intent(in) | :: | y |
Y position. |
||
| real(kind=real64), | intent(in) | :: | z |
Z position. |
Get the position wrt the local origin of the current model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out) | :: | x |
X position. |
||
| real(kind=real64), | intent(out) | :: | y |
Y position. |
||
| real(kind=real64), | intent(out) | :: | z |
Z position. |
Set the scale wrt the local origin of the current model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
Scale along X axis. |
||
| real(kind=real64), | intent(in) | :: | y |
Scale along Y axis. |
||
| real(kind=real64), | intent(in) | :: | z |
Scale along Z axis. |
Get the scale wrt the local origin of the current model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out) | :: | x |
Returned scale along X axis. |
||
| real(kind=real64), | intent(out) | :: | y |
Returned scale along Y axis. |
||
| real(kind=real64), | intent(out) | :: | z |
Returned scale along Z axis. |
Set the model pivot point wrt the local origin of the current model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
X position of pivot point. |
||
| real(kind=real64), | intent(in) | :: | y |
Y position of pivot point. |
||
| real(kind=real64), | intent(in) | :: | z |
Z position of pivot point. |
Get the position wrt the local origin of the current model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out) | :: | x |
Returned X position of pivot point. |
||
| real(kind=real64), | intent(out) | :: | y |
Returned Y position of pivot point. |
||
| real(kind=real64), | intent(out) | :: | z |
Returned Z position of pivot point. |
Get the size of the model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out) | :: | size |
Returned size of the model. |
Create a new DrawableTrajectory with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the drawable trajectory to create. |
Allow specified TrajectoryArtist to draw using this DrawableTrajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the trajectory artist to draw this DrawableTrajectory. |
Remove specified artist from the current DrawableTrajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the trajectory artist to be removed from this DrawableTrajectory. |
Create a new CoordinateAxes with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the coordinate axes to create. |
Sets the length of the axis.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | len |
Axis length. |
Sets the width of the axes.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | width |
Axis width. |
Sets which axis to draw.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | axes |
Axis components to show specified by |
Sets the major and minor tick spacing.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | major |
Major tick spacing. |
||
| real(kind=real64), | intent(in) | :: | minor |
Major tick spacing. |
Sets the major and minor tick size.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | major |
Major tick size. |
||
| integer(kind=int32), | intent(in) | :: | minor |
Major tick size. |
Sets an image to be used for the tick, overriding any existing shader.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fname |
File containing the image. |
Set GLSL fragment shader used to draw tick mark, overriding any existing image.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fname |
File containing the shader source. |
Create a new LatLonGrid with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Sets the parameters of the LatLonGrid.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | radiusx |
Radius of the grid in the X direction. |
||
| real(kind=real64), | intent(in) | :: | radiusy |
Radius of the grid in the Y direction. |
||
| real(kind=real64), | intent(in) | :: | radiusz |
Radius of the grid in the Z direction. |
||
| real(kind=real64), | intent(in) | :: | latspace |
Spacing between latitude grid lines in radians. |
||
| real(kind=real64), | intent(in) | :: | lonspace |
Spacing between longitude grid lines in radians. |
Create a new RadialPlane with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the radial plane to create. |
Sets the parameters of the RadialPlane.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | radius |
Radius of the radial plane. |
||
| real(kind=real64), | intent(in) | :: | radspace |
Spacing between radial grid lines in radians. |
||
| real(kind=real64), | intent(in) | :: | lonspace |
Spacing between longitude grid lines in radians. |
Set the plane color of the current radial plane.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | g |
Green color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | a |
Alpha (transparancy) component [0-1]. |
Set the line color of the current radial plane.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | g |
Green color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | a |
Alpha (transparancy) component [0-1]. |
Set the currently-active trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the Trajectory to activate. |
Create a new Trajectory with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the trajectory to create. |
||
| integer(kind=int32), | intent(in) | :: | dof |
Number of degrees of freedom this trajectory has. |
||
| integer(kind=int32), | intent(in) | :: | numopt |
Number of optionals this trajectory has. |
Change the number of optionals for the currently active Trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | nopt |
Number of optional coordinates to set. |
Change the degrees of freedom for the currently-active Trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | dof |
Desired number of degrees of freedom. |
Add a time to the current trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | t |
Time. |
Add a position to the current trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
X position. |
||
| real(kind=real64), | intent(in) | :: | y |
Y position. |
||
| real(kind=real64), | intent(in) | :: | z |
Z position. |
Add a position to the current trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:) | :: | pos |
Position array to add (length 3). |
Add an attitude to the current trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
X component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | y |
Y component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | z |
Z component of the rotation quaternion. |
||
| real(kind=real64), | intent(in) | :: | w |
Angle component of the rotation quaternion. |
Set the attitude of the current trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(4) | :: | att |
Quaternion array to add (length 4). The vector component of the quaternion precedes the scalar component. |
Set the optional with the given index, for the most recently-added position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | index |
index of optional to add values to. |
||
| real(kind=real64), | intent(in) | :: | x |
X component of optional. |
||
| real(kind=real64), | intent(in) | :: | y |
Y component of optional. |
||
| real(kind=real64), | intent(in) | :: | z |
Z component of optional. |
Set the optional with the given index, for the most recently added position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | index |
index of optional to add values to. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | opt |
Array of values to add to optional (length 3). |
Inform drawable trajecotries to redraw this trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | autoinform |
True to auto-inform linked artists when data is added to this trajectory. False to not inform artists unless oftraj_autoinformartists is called. |
Set the currently active trajectory artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the TrajectoryArtist to activate. |
Set the currently-active trajectory artist.
Create a new CurveArtist with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
me of the curve artist to create. |
Set the data used for X coordinates of each point.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for Y coordinates of each point.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for Z coordinates of each point.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the color of the current curve artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | g |
Green color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue color component [0-1]. |
Set the width of the current curve artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | width |
Width of the line. |
Set the line pattern of the current curve artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | factor |
Specifies scaling factor used to draw the pattern. |
||
| integer(kind=int16), | intent(in) | :: | pattern |
16-bit integer which specifies the line pattern. |
Create a new SegmentArtist with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Set the data used for starting X coordinate of each segment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for starting Y coordinate of each segment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for starting Z coordinate of each segment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for ending X coordinate of each segment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for ending Y coordinate of each segment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for ending Z coordinate of each segment.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the offset between drawn points.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | stride |
Minimum offset between sucessive drawn points. |
Set the color of the current segment artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | r |
Red color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | g |
Green color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue color component [0-1]. |
Set the width of the current segment artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | width |
Width of the line. |
Set the line pattern of the current segment artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | factor |
Specifies scaling factor used to draw the pattern. |
||
| integer(kind=int16), | intent(in) | :: | pattern |
16-bit integer which specifies the line pattern. |
Create a new MarkerArtist with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Set the data used for X coordinates of each point.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for Y coordinates of each point.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Set the data used for Z coordinates of each point.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | src |
Type of data source to draw (see |
||
| integer(kind=int32), | intent(in) | :: | element |
Array index of the data indicated in src to plot. |
||
| integer(kind=int32), | intent(in) | :: | opt |
Indicate if a position or optional is plotted. 0 is for position, other values indicate the index of the optional to use. Only used if src = POSOPT. |
||
| real(kind=real64), | intent(in) | :: | scale |
Scale factor to apply to drawn trajectory data. |
Define which markers should be plotted for the current marker artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | markers |
Indicates which data points should be drawn as markers (see: |
Set the color of the current marker artist.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | markers |
The markers whose color should be set (see: |
||
| real(kind=real32), | intent(in) | :: | r |
Red color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | g |
Green color component [0-1]. |
||
| real(kind=real32), | intent(in) | :: | b |
Blue color component [0-1]. |
Set image used as marker, overriding any existing shader.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fname |
File containing the image. |
Set GLSL fragment shader used to draw marker, overriding any existing image.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fname |
File containing the shader source. |
Specify which type of intermediate markers should be drawn.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | type |
Indicates how intermediate marker spacing is determined (see: |
Specify the spacing used for intermediate markers.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | spacing |
Set spacing for intermediate markers. |
Specify the drawing direction (from start or end) of intermediate markers.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | direction |
Set intermediate marker direction (see: |
Specify the marker size in pixels.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | size |
The marker size. |
Specify whether marker size should be automatically attenuated.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | autoattenuate |
True to automatically attenuate marker size, False otherwise. |
Set the currently active view.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the View to activate. |
Create a new View with the given name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Name of the view to create. |
Set an orthographic projection with the given bounds.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | left |
Left coordinate bound of orthographic projection. |
||
| real(kind=real64), | intent(in) | :: | right |
Right coordinate bound of orthographic projection. |
||
| real(kind=real64), | intent(in) | :: | bottom |
Bottom coordinate bound of orthographic projection. |
||
| real(kind=real64), | intent(in) | :: | top |
Top coordinate bound of orthographic projection. |
Set the current view to use a symmetric perspective projection.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | fov |
Vertical field of view (in degrees). |
||
| real(kind=real64), | intent(in) | :: | ratio |
x/y aspect ratio. |
Tell current view to follow the specified ReferenceFrame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | root |
Name of the root of the ReferenceFrame heirarchy. |
||
| character(len=*), | intent(in) | :: | frame |
ReferenceFrame to follow with this view. |
View from one frame towards another, using a specified frame type and rotation type.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | root |
Name of the root of the ReferenceFrame heirarchy. Note: Must contain 'srcframe' and 'dstframe'. |
||
| character(len=*), | intent(in) | :: | srcframe |
ReferenceFrame this view will look from. |
||
| character(len=*), | intent(in) | :: | dstframe |
ReferenceFrame this view will look towards. |
||
| integer(kind=int32), | intent(in) | :: | frameType |
Frame type to use (see: |
||
| integer(kind=int32), | intent(in) | :: | rotationType |
Rotation type to use when following dstframe (see: |
Set the default view distance.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | distance |
Distance the camera is from the terget point of the reference frame. A value <= 0.0 means the distance should be auto-computed. |
Get the trackball's view matrix.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(out), | dimension(3) | :: | eye |
3-vector eye position. |
|
| real(kind=real64), | intent(out), | dimension(3) | :: | center |
3-vector look-at position. |
|
| real(kind=real64), | intent(out), | dimension(3) | :: | up |
3-vector up vector. |
Set the trackball view matrix.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(3) | :: | eye |
3-vector eye position. |
|
| real(kind=real64), | intent(in), | dimension(3) | :: | center |
3-vector look-at position. |
|
| real(kind=real64), | intent(in), | dimension(3) | :: | up |
3-vector up vector. |
Check if the view frame for the current View is valid.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(out) | :: | valid |
Returned value if the view is valid. |