|
virtual int | IsA (const char *type) |
|
vtkOBJImporter * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
|
void | SetFileName (const char *arg) |
|
void | SetFileNameMTL (const char *arg) |
|
void | SetTexturePath (const char *path) |
|
const char * | GetFileName () const |
|
const char * | GetFileNameMTL () const |
|
const char * | GetTexturePath () const |
|
vtkImporter * | NewInstance () const |
|
virtual vtkRenderer * | GetRenderer () |
|
virtual void | SetRenderWindow (vtkRenderWindow *) |
|
virtual vtkRenderWindow * | GetRenderWindow () |
|
void | Read () |
|
void | Update () |
|
vtkObject * | NewInstance () const |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
virtual unsigned long | GetMTime () |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
virtual void | Register (vtkObjectBase *o) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
void | SetReferenceCount (int) |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
import from .obj wavefront files
- Note
- {updated by peter karasev, 2015 to read texture coordinates + material properties}
-
{An example of a supported (*).mtl file is show below. Lighting values and texture images are specified, and a corresponding vtkActor with properties and vtkTexture will be created upon import. }
Wavefront material file saved from Meshlab
newmtl material_0 Ka 0.400000 0.400000 0.400000 Kd 0.5 0.5 0.5 Ks 0.85 0.9 0.9 illum 2 Ns 0.000000 map_Kd map1024.png
newmtl material_1 Ka 0.200000 0.200000 0.200000 Kd 0.666667 0.666667 0.666667 Ks 1.000000 0.9 1.000000 illum 2 Ns 0.000000 map_Kd flare.jpg
from Wavefront .obj & associated .mtl files.
- Thanks - Peter Karasev (Georgia Tech / Keysight Technologies Inc),:
- Allen Tannenbaum (SUNY Stonybrook), Patricio Vela (Georgia Tech)
- See also
- vtkImporter
- Tests:
- vtkOBJImporter (Tests)
Definition at line 60 of file vtkOBJImporter.h.