Go to the documentation of this file.
13 #ifndef vtkOBJImporterInternals_h
14 #define vtkOBJImporterInternals_h
48 struct vtkOBJImportedPolyDataWithMaterial;
65 if (!strcmp(this->
FileName.c_str(), arg))
90 const char sep =
'\\';
128 std::vector<vtkOBJImportedPolyDataWithMaterial*>
poly_list;
138 void ReadVertices(
bool gotFirstUseMaterialTag,
char *pLine,
float xyz,
int lineNr,
const double v_scale,
bool everything_ok,
vtkPoints*
points,
const bool use_scale);
represent and manipulate 3D points
vtkOBJPolyDataProcessor()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetMTLfileName(const char *arg)
std::string texture_filename
~vtkOBJPolyDataProcessor() override
std::vector< vtkOBJImportedPolyDataWithMaterial * > poly_list
std::vector< vtkOBJImportedMaterial * > ParseOBJandMTL(std::string filename, int &result_code)
const char * GetClassName()
std::string GetTextureFilename(int idx)
void SetFileName(const char *arg)
const std::string & GetMTLFileName() const
vtkOBJImportedMaterial * GetMaterial(int k)
const std::string & GetTexturePath() const
a simple class to control print indentation
void obj_set_material_defaults(vtkOBJImportedMaterial *mtl)
std::map< std::string, vtkOBJImportedMaterial * > mtlName_to_mtlData
const std::string & GetFileName() const
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
std::vector< vtkSmartPointer< vtkPolyData > > outVector_of_vtkPolyData
std::vector< vtkSmartPointer< vtkActor > > actor_list
std::vector< vtkOBJImportedMaterial * > parsedMTLs
static vtkOBJPolyDataProcessor * New()
void ReadVertices(bool gotFirstUseMaterialTag, char *pLine, float xyz, int lineNr, const double v_scale, bool everything_ok, vtkPoints *points, const bool use_scale)
void bindTexturedPolydataToRenderWindow(vtkRenderWindow *renderWindow, vtkRenderer *renderer, vtkOBJPolyDataProcessor *reader)
void SetTexturePath(const char *arg)
create a window for renderers to draw into
vtkPolyData * GetOutput()
Get the output data object for a port on this algorithm.
Superclass for algorithms that produce only polydata as output.