Documentation for vtkImporter

vtkImporter - importer abstract class

Super Class: vtkObject

Description:

vtkImporter is an abstract class that specifies the protocol for importing actors, cameras, lights and proeperties into a vtkRenderWindow. The following takes place: 1) Create a RenderWindow and Renderer if none is provided. 2) Open the import file 3) Import the Actors 4) Import the cameras 5) Import the lights 6) Import the Properties 7) Close the import file Subclasses optionally implement the ImportActors, ImportCameras, ImportLights and ImportProperties methods. An ImportBegin and ImportEnd can optionally be provided to perform Importer-specific initialization and termination. The Read method initiates the import process. If a RenderWindow is provided, its Renderer will contained the imported objects. If the RenderWindow has no Renderer, one is created. If no RenderWindow is provided, both a RenderWindow and Renderer will be created. Both the RenderWindow and Renderer can be accessed using Get methods.

 

See Also:

vtk3DSImporter vtkExporter

 

Methods:

void vtkImporter ()
void vtkImporter ()
static vtkImporter *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetFileName (char *)
char *GetFileName ()
vtkRenderer *GetRenderer ()
void SetRenderWindow (vtkRenderWindow *)
vtkRenderWindow *GetRenderWindow ()
void SetComputeNormals (int )
int GetComputeNormals ()
void ComputeNormalsOn ()
void ComputeNormalsOff ()
void Read ()
void Update ()
unknown *GetFileFD ()
int OpenImportFile ()
void CloseImportFile ()
int ImportBegin ()
void ImportActors (vtkRenderer *)
void ImportCameras (vtkRenderer *)
void ImportLights (vtkRenderer *)
void ImportProperties (vtkRenderer *)
void ImportEnd ()

 

Detailed Method Descriptions:

Specify the name of the file to read.

void SetFileName (char *)
char *GetFileName ()

Set/Get the computation of normals. If on, imported geometry will be run through vtkPolyDataNormals.

void SetComputeNormals (int )
int GetComputeNormals ()
void ComputeNormalsOn ()
void ComputeNormalsOff ()

Return the file pointer to the open file.

unknown *GetFileFD ()