Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OBJReader Class Reference

A class that can read .obj files and create Jot meshes from them. More...

#include <objreader.H>

Collaboration diagram for OBJReader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OBJReader ()
 ~OBJReader ()
bool read (std::istream &in)
 Attempt to read the contents of a .obj file from the stream in.
BMESHget_mesh () const
 Create a new BMESH object containing the data read in with the read function.
void get_mesh (BMESH *mesh) const
 Clear the given mesh object and fill it with the data read in with the read function.
unsigned long get_num_vertices () const
unsigned long get_num_texcoords () const
unsigned long get_num_normals () const
unsigned long get_num_faces () const
unsigned long get_num_materials () const
unsigned long get_num_material_libs () const

Private Attributes

OBJReaderImplimpl

Detailed Description

A class that can read .obj files and create Jot meshes from them.

Definition at line 23 of file objreader.H.


Constructor & Destructor Documentation

OBJReader::OBJReader  ) 
 

Definition at line 1350 of file objreader.C.

References impl.

OBJReader::~OBJReader  ) 
 

Definition at line 1358 of file objreader.C.

References impl.


Member Function Documentation

void OBJReader::get_mesh BMESH mesh  )  const
 

Clear the given mesh object and fill it with the data read in with the read function.

Definition at line 1387 of file objreader.C.

References OBJReaderImpl::get_mesh(), and impl.

BMESH * OBJReader::get_mesh  )  const
 

Create a new BMESH object containing the data read in with the read function.

Definition at line 1379 of file objreader.C.

References OBJReaderImpl::get_mesh(), and impl.

Referenced by BaseJOTapp::load_obj_file().

unsigned long OBJReader::get_num_faces  )  const
 

Definition at line 1421 of file objreader.C.

References OBJReaderImpl::faces, and impl.

unsigned long OBJReader::get_num_material_libs  )  const
 

Definition at line 1437 of file objreader.C.

References impl, and OBJReaderImpl::mtl_files.

unsigned long OBJReader::get_num_materials  )  const
 

Definition at line 1429 of file objreader.C.

References impl, and OBJReaderImpl::materials.

unsigned long OBJReader::get_num_normals  )  const
 

Definition at line 1413 of file objreader.C.

References impl, and OBJReaderImpl::normals.

unsigned long OBJReader::get_num_texcoords  )  const
 

Definition at line 1405 of file objreader.C.

References impl, and OBJReaderImpl::texcoords.

unsigned long OBJReader::get_num_vertices  )  const
 

Definition at line 1397 of file objreader.C.

References impl, and OBJReaderImpl::vertices.

bool OBJReader::read std::istream &  in  ) 
 

Attempt to read the contents of a .obj file from the stream in.

Referenced by BaseJOTapp::load_obj_file().


Member Data Documentation

OBJReaderImpl* OBJReader::impl [private]
 

Definition at line 52 of file objreader.H.

Referenced by get_mesh(), get_num_faces(), get_num_material_libs(), get_num_materials(), get_num_normals(), get_num_texcoords(), get_num_vertices(), OBJReader(), and ~OBJReader().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:46:47 2006 for jot by  doxygen 1.4.4