|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   13 #ifndef vtkOBJImporterInternals_h 
   14 #define vtkOBJImporterInternals_h 
   32   double map_Kd_scale[3];
 
   33   double map_Kd_offset[3];
 
   48 struct vtkOBJImportedPolyDataWithMaterial;
 
   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)
 
  103   vtkSetMacro(VertexScale, 
double);
 
  104   vtkGetMacro(VertexScale, 
double);
 
  105   vtkGetMacro(SuccessParsingFiles, 
int);
 
  109   int GetNumberOfOutputs();
 
  121   std::vector<vtkOBJImportedPolyDataWithMaterial*> 
poly_list;
 
  129   std::vector<vtkOBJImportedMaterial*> ParseOBJandMTL(
std::string filename, 
int& result_code);
 
  131   void ReadVertices(
bool gotFirstUseMaterialTag, 
char* pLine, 
float xyz, 
int lineNr,
 
  132     const double v_scale, 
bool everything_ok, 
vtkPoints* 
points, 
const bool use_scale);
 
  140   vtkSetMacro(SuccessParsingFiles, 
int);
 
  
represent and manipulate 3D points
void SetMTLfileName(const char *arg)
std::string texture_filename
std::vector< vtkOBJImportedPolyDataWithMaterial * > poly_list
const char * GetClassName()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetFileName(const char *arg)
VTKIOIMPORT_EXPORT void obj_set_material_defaults(vtkOBJImportedMaterial *mtl)
const std::string & GetMTLFileName() const
std::map< std::string, vtkOBJImportedMaterial * > mtlName_to_mtlData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
VTKIOIMPORT_EXPORT void bindTexturedPolydataToRenderWindow(vtkRenderWindow *renderWindow, vtkRenderer *renderer, vtkOBJPolyDataProcessor *reader)
const std::string & GetTexturePath() const
a simple class to control print indentation
const std::string & GetFileName() const
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
std::vector< vtkSmartPointer< vtkPolyData > > outVector_of_vtkPolyData
std::vector< vtkSmartPointer< vtkActor > > actor_list
std::vector< vtkOBJImportedMaterial * > parsedMTLs
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.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.