TsmConnectionParams tsmParseVRMLArgs ( int argc, char **argv )

Create a set of VRML writing connection hints from command line

Documentation

Create a set of VRML writing connection hints from command line.

This function can be used to allow your programs to support a number of standard command line arguments for specifying preferences for writing TerraVRML file.

The function will scan the provided command line looking for any supported arguments. It will build a TsmConnectionParams structure based upon the options that it finds and return this to you the client. This TsmConnectionParams structure can then be passed directly to tsmConnect when opening a connection.

You should free the memory used by the TsmConnectionParams structure when you are finished with it by calling tsmFreeParams().

For example, if this function finds an option called "-gaussian" on the command line, it will insert an entry into the TsmConnectionParams structure to say that TerraVRML files should be written out with gaussian interpolation of elevation.

The currently supported options that this function recognises are:

Returns:
An allocated TsmConnectionParams structure, or NULL if no supported options were found on the command line.
Parameters:
argc - the number of arguments passed to main()
argv - the array of command line strings passed to main()
Author:
Nat Bletter
Version:
29 April 1998
See Also:
tsmParseWriteArgs, tsmParseReadArgs, tsmParseConnectArgs, tsmParseInitArgs, tsmDescribeArgs, tsmGetArg, tsmFreeParams


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page