[vtkusers] vtkVRMLimporter

R K Shyamprakash ramakrishna.prakash at quest-global.com
Mon Apr 28 08:50:02 EDT 2003


vtkVRMLImporter *importer = vtkVRMLImporter::New();
importer->SetRenderWindow(renWin); //renwin is renderer window
importer->SetFileName("filename.wrl");
importer->Read();
....
....
....follow usual graphics stuff

I translated my Java program into c++ program. i feel it should work.

regards
Shyam

-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of Matthew Kong
Sent: Monday, April 28, 2003 6:04 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] vtkVRMLimporter


Im trying to use the vtkVRMLimporter function. Im using C++ to program it,
but
im trying to follow the TCL example. Im not sure what the following code in
TCL is translated c++.

[importer GetRenderer] SetBackground 0.1 0.2 0.4
[importer GetRenderWindow] SetSize 300 300

# the importer created the renderer
set renCollection [renWin GetRenderers]
$renCollection InitTraversal
set ren [$renCollection GetNextItem]

$ren ResetCamera
[$ren GetActiveCamera] Dolly 1.75
ren1 ResetCameraClippingRange

# render the image
#
iren AddObserver UserEvent {wm deiconify .vtkInteract}
iren Initialize
wm withdraw .


Can anyone help please? Does anyone have any sample code in using the
VRMLimporter for C++?

Cheers

Matt


-------------------------------------------------
This mail sent through IMP: www-mail.usyd.edu.au
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list