RhinoParser Class Reference

#include <RhinoParser.h>

Inheritance diagram for RhinoParser:

Parser List of all members.

Public Member Functions

 RhinoParser (const char *, const SDS &, SceneGraphObject::OID firstOID=1, Parser::Statistics *pStat=NULL)
virtual ~RhinoParser ()
virtual bool parseObject (void)
virtual SceneGraphObjectgetObject (void)
virtual LightSourcegetLight (void)
void setOID (SceneGraphObject::OID o)
SceneGraphObject::OID getOID (void) const
StatisticsgetStatistics (void)

Public Attributes

ON_String startComments
ON_3dmProperties properties
ON_3dmSettings settings
int version
ON_SimpleArray< ON_Bitmap * > bitmapTable
ON_ClassArray< ON_Layer > layerTable
ON_ClassArray< ON_Group > groupTable

Protected Member Functions

bool _read_bitmap_table (ON_BinaryFile &)
bool _read_material_table (ON_BinaryFile &)
bool _read_layer_table (ON_BinaryFile &)
bool _read_group_table (ON_BinaryFile &)
bool _read_lights_table (ON_BinaryFile &)
Vertex3_get_vertices (const ON_Mesh &)
Vector3_get_normals (const ON_Mesh &)
Vector2_get_texture_coords (const ON_Mesh &)
void _set_material (SceneGraphObject &, const ON_3dmObjectAttributes &) const
Shape_parse_mesh (const ON_Mesh &)
Shape_parse_brep (const ON_Brep &, int)
void _parse_object (const ON_Geometry &, const ON_3dmObjectAttributes &)

Protected Attributes

int _matTableSize
AutoPtr< Material > ** _specularMatTable
AutoPtr< Material > ** _diffuseMatTable
AutoPtr< Material > ** _ambientMatTable
AutoPtr< Material > ** _roughnessMatTable
AutoPtr< Material > * _pDefSpecularMat
AutoPtr< Material > * _pDefDiffuseMat
AutoPtr< Material > * _pDefAmbientMat
AutoPtr< Material > * _pDefRoughnessMat
bool _continueReading
ON_Workspace _workspace
ON_BinaryFile * _pFile
const SDS_pSSProto
SceneGraphObject::OID _oid
SceneGraphObject_pParsedObject
Statistics_pStat
List< LightSource_lights

Static Protected Attributes

static const int _objectFilter = ON::mesh_object

Detailed Description

Definition at line 21 of file RhinoParser.h.


Constructor & Destructor Documentation

RhinoParser const char *  ,
const SDS ,
SceneGraphObject::OID  firstOID = 1,
Parser::Statistics pStat = NULL
 

Definition at line 503 of file RhinoParser.cc.

References RhinoParser::_pDefAmbientMat, RhinoParser::_pDefDiffuseMat, RhinoParser::_pDefRoughnessMat, RhinoParser::_pFile, RhinoParser::_workspace, esg::Ambient, esg::Diffuse, AutoPtr::registerReferer(), esg::Roughness, esg::Specular, RhinoParser::startComments, and RhinoParser::version.

~RhinoParser  )  [virtual]
 

Definition at line 565 of file RhinoParser.cc.

References RhinoParser::_ambientMatTable, RhinoParser::_diffuseMatTable, RhinoParser::_pDefAmbientMat, RhinoParser::_pDefDiffuseMat, RhinoParser::_pDefRoughnessMat, RhinoParser::_roughnessMatTable, and RhinoParser::_specularMatTable.


Member Function Documentation

Vector3 * _get_normals const ON_Mesh &   )  [protected]
 

Definition at line 277 of file RhinoParser.cc.

Referenced by RhinoParser::_parse_mesh().

Vector2 * _get_texture_coords const ON_Mesh &   )  [protected]
 

Definition at line 288 of file RhinoParser.cc.

Referenced by RhinoParser::_parse_mesh().

Vertex3 * _get_vertices const ON_Mesh &   )  [protected]
 

Definition at line 269 of file RhinoParser.cc.

Referenced by RhinoParser::_parse_mesh().

Shape * _parse_brep const ON_Brep &  ,
int 
[protected]
 

Definition at line 409 of file RhinoParser.cc.

Referenced by RhinoParser::_parse_object().

Shape * _parse_mesh const ON_Mesh &   )  [protected]
 

Definition at line 335 of file RhinoParser.cc.

References RhinoParser::_get_normals(), RhinoParser::_get_texture_coords(), RhinoParser::_get_vertices(), Parser::_pSSProto, and Surface::TRIANGLES.

Referenced by RhinoParser::_parse_object().

void _parse_object const ON_Geometry &  ,
const ON_3dmObjectAttributes & 
[protected]
 

Definition at line 431 of file RhinoParser.cc.

References Parser::_oid, RhinoParser::_parse_brep(), RhinoParser::_parse_mesh(), Parser::_pParsedObject, Parser::_pSSProto, RhinoParser::_set_material(), and SceneGraphObject::setSharedGeometry().

Referenced by RhinoParser::parseObject().

bool _read_bitmap_table ON_BinaryFile &   )  [protected]
 

Definition at line 21 of file RhinoParser.cc.

References RhinoParser::bitmapTable.

bool _read_group_table ON_BinaryFile &   )  [protected]
 

Definition at line 156 of file RhinoParser.cc.

References RhinoParser::groupTable.

bool _read_layer_table ON_BinaryFile &   )  [protected]
 

Definition at line 124 of file RhinoParser.cc.

References RhinoParser::layerTable.

bool _read_lights_table ON_BinaryFile &   )  [protected]
 

Definition at line 188 of file RhinoParser.cc.

References Parser::_oid.

bool _read_material_table ON_BinaryFile &   )  [protected]
 

Definition at line 52 of file RhinoParser.cc.

void _set_material SceneGraphObject ,
const ON_3dmObjectAttributes & 
const [protected]
 

Definition at line 299 of file RhinoParser.cc.

References RhinoParser::layerTable.

Referenced by RhinoParser::_parse_object().

virtual LightSource* getLight void   )  [inline, virtual, inherited]
 

Definition at line 52 of file Parser.h.

References Parser::_lights, List::firstItem(), and List::remove().

virtual SceneGraphObject* getObject void   )  [inline, virtual, inherited]
 

Definition at line 50 of file Parser.h.

References Parser::_pParsedObject.

SceneGraphObject::OID getOID void   )  const [inline, inherited]
 

Definition at line 58 of file Parser.h.

References Parser::_oid.

Statistics* getStatistics void   )  [inline, inherited]
 

Definition at line 60 of file Parser.h.

References Parser::_pStat.

bool parseObject void   )  [virtual]
 

Implements Parser.

Definition at line 588 of file RhinoParser.cc.

References RhinoParser::_continueReading, RhinoParser::_objectFilter, RhinoParser::_parse_object(), RhinoParser::_pFile, and Parser::_pParsedObject.

void setOID SceneGraphObject::OID  o  )  [inline, inherited]
 

Definition at line 57 of file Parser.h.

References Parser::_oid.


Member Data Documentation

AutoPtr<Material>** _ambientMatTable [protected]
 

Definition at line 27 of file RhinoParser.h.

Referenced by RhinoParser::~RhinoParser().

bool _continueReading [protected]
 

Definition at line 39 of file RhinoParser.h.

Referenced by RhinoParser::parseObject().

AutoPtr<Material>** _diffuseMatTable [protected]
 

Definition at line 26 of file RhinoParser.h.

Referenced by RhinoParser::~RhinoParser().

List<LightSource> _lights [protected, inherited]
 

Definition at line 28 of file Parser.h.

Referenced by Parser::getLight(), and Parser::~Parser().

int _matTableSize [protected]
 

Definition at line 24 of file RhinoParser.h.

const int _objectFilter = ON::mesh_object [static, protected]
 

Definition at line 38 of file RhinoParser.h.

Referenced by RhinoParser::parseObject().

SceneGraphObject::OID _oid [protected, inherited]
 

Definition at line 25 of file Parser.h.

Referenced by RhinoParser::_parse_object(), RhinoParser::_read_lights_table(), Parser::getOID(), MayaParser::parseObject(), and Parser::setOID().

AutoPtr<Material>* _pDefAmbientMat [protected]
 

Definition at line 34 of file RhinoParser.h.

Referenced by RhinoParser::RhinoParser(), and RhinoParser::~RhinoParser().

AutoPtr<Material>* _pDefDiffuseMat [protected]
 

Definition at line 33 of file RhinoParser.h.

Referenced by RhinoParser::RhinoParser(), and RhinoParser::~RhinoParser().

AutoPtr<Material>* _pDefRoughnessMat [protected]
 

Definition at line 36 of file RhinoParser.h.

Referenced by RhinoParser::RhinoParser(), and RhinoParser::~RhinoParser().

AutoPtr<Material>* _pDefSpecularMat [protected]
 

Definition at line 32 of file RhinoParser.h.

ON_BinaryFile* _pFile [protected]
 

Definition at line 41 of file RhinoParser.h.

Referenced by RhinoParser::parseObject(), and RhinoParser::RhinoParser().

SceneGraphObject* _pParsedObject [protected, inherited]
 

Definition at line 26 of file Parser.h.

Referenced by RhinoParser::_parse_object(), MayaParser::_set_material(), Parser::getObject(), RhinoParser::parseObject(), MayaParser::parseObject(), and Parser::Parser().

const SDS* _pSSProto [protected, inherited]
 

Definition at line 24 of file Parser.h.

Referenced by RhinoParser::_parse_mesh(), RhinoParser::_parse_object(), MayaParser::parseObject(), Parser::Parser(), and Parser::~Parser().

Statistics* _pStat [protected, inherited]
 

Definition at line 27 of file Parser.h.

Referenced by MayaParser::_parse_triangle(), Parser::getStatistics(), and Parser::Parser().

AutoPtr<Material>** _roughnessMatTable [protected]
 

Definition at line 29 of file RhinoParser.h.

Referenced by RhinoParser::~RhinoParser().

AutoPtr<Material>** _specularMatTable [protected]
 

Definition at line 25 of file RhinoParser.h.

Referenced by RhinoParser::~RhinoParser().

ON_Workspace _workspace [protected]
 

Definition at line 40 of file RhinoParser.h.

Referenced by RhinoParser::RhinoParser().

ON_SimpleArray<ON_Bitmap*> bitmapTable
 

Definition at line 66 of file RhinoParser.h.

Referenced by RhinoParser::_read_bitmap_table().

ON_ClassArray<ON_Group> groupTable
 

Definition at line 69 of file RhinoParser.h.

Referenced by RhinoParser::_read_group_table().

ON_ClassArray<ON_Layer> layerTable
 

Definition at line 68 of file RhinoParser.h.

Referenced by RhinoParser::_read_layer_table(), and RhinoParser::_set_material().

ON_3dmProperties properties
 

Definition at line 63 of file RhinoParser.h.

ON_3dmSettings settings
 

Definition at line 64 of file RhinoParser.h.

ON_String startComments
 

Definition at line 62 of file RhinoParser.h.

Referenced by RhinoParser::RhinoParser().

int version
 

Definition at line 65 of file RhinoParser.h.

Referenced by RhinoParser::RhinoParser().


The documentation for this class was generated from the following files:
Generated on Wed Jun 28 12:24:35 2006 for esg by  doxygen 1.4.6