Changeset 8595

Show
Ignore:
Timestamp:
07/15/08 21:26:20
Author:
robert
Message:

From Paul Martz, "Here's documentation for the export options of the FLT plugin. I also labeled the import options as such."

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp

    r8578 r8595  
    124124            supportsExtension("flt","OpenFlight format"); 
    125125             
    126             supportsOption("clampToEdge",""); 
    127             supportsOption("keepExternalReferences",""); 
    128             supportsOption("preserveFace",""); 
    129             supportsOption("preserveObject",""); 
    130             supportsOption("dofAnimation",""); 
    131             supportsOption("billboardCenter",""); 
    132             supportsOption("noTextureAlphaForTransparancyBinning",""); 
    133             supportsOption("readObjectRecordData",""); 
    134             supportsOption("noUnitsConversion",""); 
    135             supportsOption("convertToFeet",""); 
    136             supportsOption("convertToInches",""); 
    137             supportsOption("convertToMeters",""); 
    138             supportsOption("convertToKilometers",""); 
    139             supportsOption("convertToNauticalMiles",""); 
     126            supportsOption("clampToEdge","IMPORT"); 
     127            supportsOption("keepExternalReferences","IMPORT"); 
     128            supportsOption("preserveFace","IMPORT"); 
     129            supportsOption("preserveObject","IMPORT"); 
     130            supportsOption("dofAnimation","IMPORT"); 
     131            supportsOption("billboardCenter","IMPORT"); 
     132            supportsOption("noTextureAlphaForTransparancyBinning","IMPORT"); 
     133            supportsOption("readObjectRecordData","IMPORT"); 
     134            supportsOption("noUnitsConversion","IMPORT"); 
     135            supportsOption("convertToFeet","IMPORT"); 
     136            supportsOption("convertToInches","IMPORT"); 
     137            supportsOption("convertToMeters","IMPORT"); 
     138            supportsOption("convertToKilometers","IMPORT"); 
     139            supportsOption("convertToNauticalMiles","IMPORT"); 
     140 
     141            supportsOption( "version=<ver>", "EXPORT: Specifies the version of the output OpenFlight file. Supported values include 15.7, 15.8, and 16.1. Default is 16.1. Example: \"version=15.8\"." ); 
     142            supportsOption( "units=<units>", "EXPORT: Specifies the contents of the Units field of the OpenFliht header record. Valid values include INCHES, FEET, METERS, KILOMETERS, and NATICAL_MILES. Default is METERS. Example: \"units=METERS\"." ); 
     143            supportsOption( "validate", "EXPORT: If present in the Options string, the plugin does not write an OpenFlight file. Instead, it returns an indication of the scene graph's suitability for OpenFlight export." ); 
     144            supportsOption( "tempDir=<dir>", "EXPORT: Specifies the directory to use for creation of temporary files. If not specified, the directory is taken from the file name. If the file doesn't contain a path, the current working directory is used. Applications should set this to the name of their app-specific temp directory. If the path contains spaces, use double quotes to ensure correct parsing. Examples: \"tempDir=/tmp\", \"tempDir=\"C:\\My Temp Dir\"." ); 
     145            supportsOption( "lighting=<ON|OFF>", "EXPORT: Specifies a default enable/disable state for lighting, for Nodes in the exported scene graph that don't set it explicitly. By default, the exporter assumes lighting is enabled (GL_LIGHTING ON). Set this to either ON or OFF. Example: \"lighting=OFF\"." ); 
     146            supportsOption( "stripTextureFilePath", "EXPORT: If present in the Options string, the exporter strips the path from texture file names, and writes only the texture file name to the FLT Texture Palette. By default, the exporter doesn't strip the path, and the name written to the Texture Palette is taken directly from the osg::Image object referenced by the osg::Texture2D StateAttribute." ); 
    140147        } 
    141148