Python Script Engine  8.1
GL Studio Editor Python Script API
GlsFLTImporter Class Reference

Public Types

enum  FLT_Units_e {
  FLT_UNITS_MM,
  FLT_UNITS_CM,
  FLT_UNITS_M,
  FLT_UNITS_IN,
  FLT_UNITS_FT
}
 

Public Member Functions

GroupImport (String filename, Document doc, bool reposition, bool enableLighting, bool importAsMesh, float scale, FLT_Units_e units)
 

Static Public Member Functions

static GlsFLTImporterGetInstance (void)
 

Detailed Description

Plug-in used to import FLT files into GL Studio.

Member Enumeration Documentation

The unit type enumeration.

Enumerator
FLT_UNITS_MM 

Millimeter.

FLT_UNITS_CM 

Centimeter.

FLT_UNITS_M 

Meter.

FLT_UNITS_IN 

Inch.

FLT_UNITS_FT 

Foot.

Member Function Documentation

static GlsFLTImporter& GlsFLTImporter::GetInstance ( void  )
static
Group* GlsFLTImporter::Import ( String  filename,
Document  doc,
bool  reposition,
bool  enableLighting,
bool  importAsMesh,
float  scale,
FLT_Units_e  units 
)

Imports a FLT file using the FLT Importer.

Precondition
!doc.isNULL()
Parameters
filenameName of the file to import
docDocument into which the file should be imported
repositionFlag to determine if the imported objects should be repositioned
enableLightingFlag to determine if lighting should be enabled
importAsMeshFlag to import the file as a mesh
scaleScale to be applied to the newly imported objects
unitsUnit measurement within the FLT file
Returns
A group containing objects imported from the FLT file
Exceptions
CEIException

The documentation for this class was generated from the following file: