Exporter Class Reference

#include <Exporter.h>

Inheritance diagram for Exporter:

Explorer POVRayExporter List of all members.

Public Member Functions

 Exporter (FILE *f, bool c)
virtual void explore (SceneGraphObject &obj)
bool result (void) const
void setOutput (FILE *f, bool c)

Protected Member Functions

void _indent (unsigned depth, const char *ind=" ")
virtual bool _explore (SceneGraphObject &)
virtual bool _iterate (SceneGraphObject &)
virtual bool _process_leaf (SceneGraphObject &)=0
virtual void _accept_new_transformation (const Matrix4 &)=0

Protected Attributes

FILE * _file
bool _close
bool _result
std::stack< Matrix4 * > _trStack

Detailed Description

Definition at line 15 of file Exporter.h.


Constructor & Destructor Documentation

Exporter FILE *  f,
bool  c
[inline]
 

Definition at line 27 of file Exporter.h.


Member Function Documentation

virtual void _accept_new_transformation const Matrix4  )  [protected, pure virtual, inherited]
 

Implemented in BVExplorer, LightsExplorer, NExtentsExplorer, NodesByNameExpl, ObjsInAreaExplorer, POGExplorer, POVRayExporter, RadiusExplorer, RayIntExplorer, and ShadowExplorer.

Referenced by Explorer::_explore().

bool _explore SceneGraphObject  )  [protected, virtual, inherited]
 

Reimplemented in NodesByNameExpl, ObjsAheadExplorer, RayIntExplorer, and ShadowExplorer.

Definition at line 6 of file Explorer.cc.

References Explorer::_accept_new_transformation(), Explorer::_iterate(), Explorer::_process_leaf(), Explorer::_trStack, Transform::get(), SceneGraphObject::hasSubnodes(), and SceneGraphObject::transformation().

Referenced by ObjsInAreaExplorer::_iterate(), ObjsExplorer::_iterate(), Explorer::_iterate(), and Exporter::explore().

void _indent unsigned  depth,
const char *  ind = "   "
[inline, protected]
 

Definition at line 22 of file Exporter.h.

References Exporter::_file.

Referenced by POVRayExporter::_write_light_source(), POVRayExporter::_write_mesh(), POVRayExporter::_write_sphere(), and POVRayExporter::_write_texture().

bool _iterate SceneGraphObject  )  [protected, virtual, inherited]
 

Reimplemented in BVExplorer, ObjsExplorer, ObjsInAreaExplorer, RayIntExplorer, and ShadowExplorer.

Definition at line 33 of file Explorer.cc.

References Explorer::_explore(), IteratorSDS::firstChild(), IteratorSDS::initChildrenSearch(), IteratorSDS::nextChild(), and SceneGraphObject::traverseSubnodes().

Referenced by NodesByNameExpl::_explore(), Explorer::_explore(), and BVExplorer::_iterate().

virtual bool _process_leaf SceneGraphObject  )  [protected, pure virtual, inherited]
 

Implemented in BVExplorer, LightsExplorer, NExtentsExplorer, NodesByNameExpl, ObjsInAreaExplorer, POGExplorer, POVRayExporter, RadiusExplorer, RayIntExplorer, and ShadowExplorer.

Referenced by Explorer::_explore().

virtual void explore SceneGraphObject obj  )  [inline, virtual]
 

Reimplemented from Explorer.

Definition at line 32 of file Exporter.h.

References Exporter::_close, Explorer::_explore(), Exporter::_file, Exporter::_result, and Explorer::_trStack.

bool result void   )  const [inline]
 

Definition at line 42 of file Exporter.h.

References Exporter::_result.

void setOutput FILE *  f,
bool  c
[inline]
 

Definition at line 44 of file Exporter.h.

References Exporter::_close, and Exporter::_file.


Member Data Documentation

bool _close [protected]
 

Definition at line 18 of file Exporter.h.

Referenced by Exporter::explore(), and Exporter::setOutput().

FILE* _file [protected]
 

Definition at line 17 of file Exporter.h.

Referenced by Exporter::_indent(), POVRayExporter::_write_light_source(), POVRayExporter::_write_mesh(), POVRayExporter::_write_sphere(), POVRayExporter::_write_texture(), Exporter::explore(), and Exporter::setOutput().

bool _result [protected]
 

Definition at line 19 of file Exporter.h.

Referenced by Exporter::explore(), and Exporter::result().

std::stack<Matrix4*> _trStack [protected, inherited]
 

Definition at line 16 of file Explorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), ObjsAheadExplorer::_explore(), Explorer::_explore(), BVExplorer::_iterate(), POGExplorer::_process_leaf(), ObjsInAreaExplorer::_process_leaf(), LightsExplorer::_process_leaf(), ShadowExplorer::explore(), Explorer::explore(), and Exporter::explore().


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