3 #ifndef vtkOBJImporterInternals_h
4 #define vtkOBJImporterInternals_h
6 #include "vtkIOImportModule.h"
12 VTK_ABI_NAMESPACE_BEGIN
22 double map_Kd_scale[3];
23 double map_Kd_offset[3];
38 struct vtkOBJImportedPolyDataWithMaterial;
55 if (this->FileName == arg)
67 if (this->MTLFileName == arg)
72 this->DefaultMTLFileName =
false;
77 if (TexturePath.empty())
80 const char sep =
'\\';
84 if (TexturePath.at(TexturePath.size() - 1) != sep)
93 vtkSetMacro(VertexScale,
double);
94 vtkGetMacro(VertexScale,
double);
95 vtkGetMacro(SuccessParsingFiles,
int);
111 std::vector<vtkOBJImportedPolyDataWithMaterial*>
poly_list;
121 void ReadVertices(
bool gotFirstUseMaterialTag,
char* pLine,
float xyz,
int lineNr,
double v_scale,
130 vtkSetMacro(SuccessParsingFiles,
int);
149 VTK_ABI_NAMESPACE_END
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
virtual vtkPolyData * GetOutput(int idx)
std::string GetTextureFilename(int idx)
vtkOBJImportedMaterial * GetMaterial(int k)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
std::vector< vtkSmartPointer< vtkActor > > actor_list
void SetTexturePath(const char *arg)
void ReadVertices(bool gotFirstUseMaterialTag, char *pLine, float xyz, int lineNr, double v_scale, bool everything_ok, vtkPoints *points, bool use_scale)
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::vector< vtkSmartPointer< vtkPolyData > > outVector_of_vtkPolyData
static vtkOBJPolyDataProcessor * New()
std::vector< vtkOBJImportedMaterial * > parsedMTLs
std::vector< vtkOBJImportedPolyDataWithMaterial * > poly_list
std::map< std::string, vtkOBJImportedMaterial * > mtlName_to_mtlData
~vtkOBJPolyDataProcessor() override
vtkOBJPolyDataProcessor()
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.
concrete dataset represents vertices, lines, polygons, and triangle strips
create a window for renderers to draw into
abstract specification for renderers
const char * GetClassName()
std::string texture_filename
VTKIOIMPORT_EXPORT void obj_set_material_defaults(vtkOBJImportedMaterial *mtl)
VTKIOIMPORT_EXPORT void bindTexturedPolydataToRenderWindow(vtkRenderWindow *renderWindow, vtkRenderer *renderer, vtkOBJPolyDataProcessor *reader)