13 #ifndef vtkOBJImporterInternals_h
14 #define vtkOBJImporterInternals_h
59 struct vtkOBJImportedPolyDataWithMaterial;
85 const char sep =
'\\';
134 void ReadVertices(
bool gotFirstUseMaterialTag,
char *pLine,
float xyz,
int lineNr, const
double v_scale,
bool everything_ok,
vtkPoints*
points, const
bool use_scale);
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
const std::string & GetMTLFileName() const
const std::string & GetTexturePath() const
std::string GetTextureFilename(int idx)
std::vector< std::string > outVector_of_textureFilnames
vtkOBJImportedMaterial * GetMaterial(int k)
std::vector< vtkSmartPointer< vtkActor > > actor_list
void SetTexturePath(const char *arg)
void SetFileName(const char *arg)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::map< std::string, vtkOBJImportedMaterial * > mtlName_to_mtlData
std::vector< vtkSmartPointer< vtkPolyData > > outVector_of_vtkPolyData
void ReadVertices(bool gotFirstUseMaterialTag, char *pLine, float xyz, int lineNr, const double v_scale, bool everything_ok, vtkPoints *points, const bool use_scale)
static vtkOBJPolyDataProcessor * New()
std::vector< vtkOBJImportedPolyDataWithMaterial * > poly_list
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
std::vector< vtkOBJImportedMaterial * > ParseOBJandMTL(std::string filename, int &result_code)
const std::string & GetFileName() const
void SetMTLfileName(const char *arg)
represent and manipulate 3D points
Superclass for algorithms that produce only polydata as output.
vtkPolyData * GetOutput()
Get the output data object for a port on this algorithm.
concrete dataset represents vertices, lines, polygons, and triangle strips
create a window for renderers to draw into
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
char name[MATERIAL_NAME_SIZE]
const char * GetClassName()
char texture_filename[OBJ_FILENAME_LENGTH]
void obj_set_material_defaults(vtkOBJImportedMaterial *mtl)
void bindTexturedPolydataToRenderWindow(vtkRenderWindow *renderWindow, vtkRenderer *renderer, vtkOBJPolyDataProcessor *reader)
const int OBJ_FILENAME_LENGTH
const int MATERIAL_NAME_SIZE
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.