OpenGL TCP Commands for MICRODEM

 

These are currently not enabled.  See the separate list of working commands.  These might not be renabled

 

Command OpenGL DEM or Image
Format: OPENGL_DEM|<code> $
Sample: OPENGL_DEM|1$
MICRODEM Response: OPENGL_DEM|OK$
Possible error messages: OPENGL_DEM|-1|No image loaded$

OPENGL_DEM|-2|No DEM loaded$

Notes Code 1 uses the image for the OpenGL view,

Code 2 used the DEM

 

Command Create an OpenGL view
Format: OPENGL|Lat|Long|HeightDegrees|WidthDegrees|ImageWidthPixels|ImageHeightPixels|FileName$
Sample: OPENGL|37.4|-117.91|0.05|0.05|400|400|c:\temp\test.bmp$
MICRODEM Response:  OPENGL|0|File saved$
Possible error messages: -1 : Point not covered by DEM  OPENGL|-3|No DEM coverage$

-2: No DEM opened OPENGL|-2|No DEM loaded$

Notes  

 

Command Will rotate the view, 2 axes are needed 
Format: OPENGL_Rotate | X_rotation | Y_rotation | Z_rotation |FileName$
Sample: OPENGL_Rotate|135|0|250|c:\temp\rot.png$
MICRODEM Response: OPENGL_Rotate|File saved$
Possible error messages:  
Notes
  • X rotation is angle, 90 (looking horizontally) to 180 (Looking vertically downward).  The default initial position is 120.
  • Y rotation currently ignored (set to 180).
  • Z rotation is angle, 0 to 360.  The default initial position is 220.

 

Command OpenGL Zoom in or Zoom out
Format: OPENGL_Zoom|Zoom_inout |FileName $
Sample: OPENGL_Zoom|50|c:\temp\rot.png$
MICRODEM Response: OPENGL_Zoom|File saved$
Possible error messages:  
Notes
  • Value is 0 to 100: 100 is initial zoom out, 0 is the closest zoom in

 

Command OpenGL Set Vertical Exaggeration 
Format: OPENGL_VE|<VertExag> |FileName $
Sample: OPENGL_VE|3|c:\temp\rot.png$
MICRODEM Response: OPENGL_VE|File saved$
Possible error messages:  
Notes
  • Default is 2
  • Reasonable values depend on the DEM, with larger values (10-15) reasonable for smaller scale DEMs like SRTM30.

Command OpenGL translate the view
Format: OPENGL_Translate| X_translation | Y_Translation | Z_translation |FileName$
Sample: OPENGL_Translate|-0.5|0.5|0.5|c:\temp\rot.png$
MICRODEM Response: OPENGL_Translate|0|File saved$
Possible error messages:  
Notes
  1. Entire viewport show be in range -10 to +10 in all axes.
  2. Initial position is 0,0,0

 

Command Close OpenGL
Format: CLOSE-OPENGL$
Sample: CLOSE-OPENGL$
MICRODEM Response: CLOSE-OPENGL|Closed$
Possible error messages: CLOSE-OPENGL|Not Open$     if no OpenGL view is currently open.
Notes
  • Closes  open GL view on the server.

Main TCP index.


Last revision 8/1/2008