13 #ifndef vtkOBJImporterInternals_h 14 #define vtkOBJImporterInternals_h 48 struct vtkOBJImportedPolyDataWithMaterial;
55 void PrintSelf(ostream& os,
vtkIndent indent) override;
59 void SetFileName(const
char* arg)
65 if (!strcmp(this->FileName.c_str(), arg))
77 if (!strcmp(this->MTLFileName.c_str(), arg))
82 this->DefaultMTLFileName =
false;
87 if(TexturePath.empty())
90 const char sep =
'\\';
94 if(TexturePath.at(TexturePath.size()-1) != sep )
112 vtkSetMacro(VertexScale,
double)
113 vtkGetMacro(VertexScale,
double)
114 vtkGetMacro(SuccessParsingFiles,
int)
128 std::vector<vtkOBJImportedPolyDataWithMaterial*>
poly_list;
136 std::vector<vtkOBJImportedMaterial*> ParseOBJandMTL(
std::string filename,
int& result_code);
138 void ReadVertices(
bool gotFirstUseMaterialTag,
char *pLine,
float xyz,
int lineNr,
const double v_scale,
bool everything_ok,
vtkPoints*
points,
const bool use_scale);
145 vtkSetMacro(SuccessParsingFiles,
int)
147 std::
string FileName;
148 std::
string MTLFileName;
149 bool DefaultMTLFileName;
150 std::
string TexturePath;
151 int SuccessParsingFiles;
161 vtkRenderer* renderer,
void SetMTLfileName(const char *arg)
std::string texture_filename
std::vector< vtkOBJImportedPolyDataWithMaterial * > poly_list
const char * GetClassName()
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
void bindTexturedPolydataToRenderWindow(vtkRenderWindow *renderWindow, vtkRenderer *renderer, vtkOBJPolyDataProcessor *reader)
const std::string & GetMTLFileName() const
const std::string & GetFileName() const
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
std::vector< vtkOBJImportedMaterial * > parsedMTLs
std::vector< vtkSmartPointer< vtkActor > > actor_list
std::map< std::string, vtkOBJImportedMaterial * > mtlName_to_mtlData
create a window for renderers to draw into
const std::string & GetTexturePath() const
void SetTexturePath(const char *arg)
std::vector< vtkSmartPointer< vtkPolyData > > outVector_of_vtkPolyData
void obj_set_material_defaults(vtkOBJImportedMaterial *mtl)
represent and manipulate 3D points