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

Public Types

enum  DWB_Units_e {
  DWB_UNITS_MM,
  DWB_UNITS_CM,
  DWB_UNITS_M,
  DWB_UNITS_IN,
  DWB_UNITS_FT
}
 

Public Member Functions

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

Static Public Member Functions

static GlsDWBImporterGetInstance (void)
 

Detailed Description

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

Member Enumeration Documentation

The unit type enumeration.

Enumerator
DWB_UNITS_MM 

Millimeter.

DWB_UNITS_CM 

Centimeter.

DWB_UNITS_M 

Meter.

DWB_UNITS_IN 

Inch.

DWB_UNITS_FT 

Foot.

Member Function Documentation

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

Imports a DWB file using the DWB Importer.

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 DWB file
Returns
A group containing objects imported from the DWB file
Exceptions
CEIException

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