Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RIBGraphicsWindow Class Reference

#include <ribGraphicsWindow.h>

Inheritance diagram for RIBGraphicsWindow:

GraphicsWindow TypedReferenceCount ClearableRegion TypedObject ReferenceCount List of all members.

Public Member Functions

 RIBGraphicsWindow (GraphicsPipe *pipe)
 RIBGraphicsWindow (GraphicsPipe *pipe, const GraphicsWindow::Properties &props)
virtual ~RIBGraphicsWindow (void)
INLINE void set_rib_filename_template (const string &str)
INLINE string get_rib_filename_template () const
INLINE string get_rib_filename () const
INLINE bool rib_per_frame () const
INLINE void set_image_filename_template (const string &str)
INLINE string get_image_filename_template () const
INLINE string get_image_filename () const
INLINE bool image_per_frame () const
INLINE void set_texture_directory (const string &directory)
INLINE string get_texture_directory () const
INLINE void set_texture_extension (const string &extension)
INLINE string get_texture_extension () const
void flush_file ()
virtual void begin_frame ()
virtual void end_frame ()
virtual void make_current (void)
virtual void unmake_current (void)
virtual TypeHandle get_gsg_type () const
virtual TypeHandle get_type (void) const
virtual TypeHandle force_init_type ()

Static Public Member Functions

GraphicsWindowmake_RibGraphicsWindow (const FactoryParams &params)
TypeHandle get_class_type (void)
void init_type (void)

Protected Member Functions

void setup_window (GraphicsPipe *pipe)
void begin_file ()
void end_file ()
string format_name (const string &name_template) const

Static Protected Member Functions

string format_integer (const string &format_spec, int number)
string format_string (const string &format_spec, const string &str)
bool check_per_frame (const string &name_template)

Protected Attributes

string _rib_filename_template
string _image_filename_template
bool _rib_per_frame
bool _image_per_frame
bool _file_begun
Filename _current_rib_filename
ofstream _file

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

RIBGraphicsWindow::RIBGraphicsWindow GraphicsPipe pipe  ) 
 

Definition at line 34 of file ribGraphicsWindow.cxx.

References setup_window().

Referenced by make_RibGraphicsWindow().

RIBGraphicsWindow::RIBGraphicsWindow GraphicsPipe pipe,
const GraphicsWindow::Properties &  props
 

Definition at line 44 of file ribGraphicsWindow.cxx.

References setup_window().

RIBGraphicsWindow::~RIBGraphicsWindow void   )  [virtual]
 

Definition at line 58 of file ribGraphicsWindow.cxx.

References flush_file().


Member Function Documentation

void RIBGraphicsWindow::begin_file  )  [protected]
 

Definition at line 143 of file ribGraphicsWindow.cxx.

References _current_rib_filename, _file, _file_begun, DCAST, get_image_filename(), get_image_filename_template(), get_rib_filename(), image_per_frame(), and RIBGraphicsStateGuardian::reset_file().

Referenced by begin_frame().

void RIBGraphicsWindow::begin_frame  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 83 of file ribGraphicsWindow.cxx.

References _file, _file_begun, begin_file(), get_image_filename(), and image_per_frame().

bool RIBGraphicsWindow::check_per_frame const string &  name_template  )  [static, protected]
 

Definition at line 338 of file ribGraphicsWindow.cxx.

void RIBGraphicsWindow::end_file  )  [protected]
 

Definition at line 195 of file ribGraphicsWindow.cxx.

References _current_rib_filename, _file, _file_begun, DCAST, and RIBGraphicsStateGuardian::reset().

Referenced by end_frame(), and flush_file().

void RIBGraphicsWindow::end_frame  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 105 of file ribGraphicsWindow.cxx.

References _file, end_file(), GraphicsWindow::end_frame(), and rib_per_frame().

void RIBGraphicsWindow::flush_file  ) 
 

Definition at line 70 of file ribGraphicsWindow.cxx.

References end_file().

Referenced by ~RIBGraphicsWindow().

virtual TypeHandle RIBGraphicsWindow::force_init_type void   )  [inline, virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 138 of file ribGraphicsWindow.h.

References get_class_type(), and init_type().

string RIBGraphicsWindow::format_integer const string &  format_spec,
int  number
[static, protected]
 

Definition at line 275 of file ribGraphicsWindow.cxx.

References width.

Referenced by format_name().

string RIBGraphicsWindow::format_name const string &  name_template  )  const [protected]
 

Definition at line 214 of file ribGraphicsWindow.cxx.

References format_integer(), and format_string().

string RIBGraphicsWindow::format_string const string &  format_spec,
const string &  str
[static, protected]
 

Definition at line 314 of file ribGraphicsWindow.cxx.

References width.

Referenced by format_name().

TypeHandle RIBGraphicsWindow::get_class_type void   )  [static]
 

Reimplemented from GraphicsWindow.

Definition at line 399 of file ribGraphicsWindow.cxx.

References _type_handle.

Referenced by ConfigureFn(), force_init_type(), get_type(), and RIBGraphicsPipe::get_window_type().

TypeHandle RIBGraphicsWindow::get_gsg_type  )  const [virtual]
 

Definition at line 376 of file ribGraphicsWindow.cxx.

References RIBGraphicsStateGuardian::get_class_type().

INLINE string RIBGraphicsWindow::get_image_filename  )  const
 

Referenced by begin_file(), and begin_frame().

INLINE string RIBGraphicsWindow::get_image_filename_template  )  const
 

Referenced by begin_file().

INLINE string RIBGraphicsWindow::get_rib_filename  )  const
 

Referenced by begin_file().

INLINE string RIBGraphicsWindow::get_rib_filename_template  )  const
 

INLINE string RIBGraphicsWindow::get_texture_directory  )  const
 

INLINE string RIBGraphicsWindow::get_texture_extension  )  const
 

TypeHandle RIBGraphicsWindow::get_type void   )  const [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 409 of file ribGraphicsWindow.cxx.

References get_class_type().

INLINE bool RIBGraphicsWindow::image_per_frame  )  const
 

Referenced by begin_file(), and begin_frame().

void RIBGraphicsWindow::init_type void   )  [static]
 

Reimplemented from GraphicsWindow.

Definition at line 403 of file ribGraphicsWindow.cxx.

References _type_handle, GraphicsWindow::get_class_type(), GraphicsWindow::init_type(), and register_type().

Referenced by ConfigureFn(), and force_init_type().

void RIBGraphicsWindow::make_current void   )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 363 of file ribGraphicsWindow.cxx.

GraphicsWindow * RIBGraphicsWindow::make_RibGraphicsWindow const FactoryParams params  )  [static]
 

Definition at line 381 of file ribGraphicsWindow.cxx.

References get_param_into(), NULL, params, and RIBGraphicsWindow().

Referenced by ConfigureFn().

INLINE bool RIBGraphicsWindow::rib_per_frame  )  const
 

Referenced by end_frame().

INLINE void RIBGraphicsWindow::set_image_filename_template const string &  str  ) 
 

Referenced by setup_window().

INLINE void RIBGraphicsWindow::set_rib_filename_template const string &  str  ) 
 

Referenced by setup_window().

INLINE void RIBGraphicsWindow::set_texture_directory const string &  directory  ) 
 

INLINE void RIBGraphicsWindow::set_texture_extension const string &  extension  ) 
 

void RIBGraphicsWindow::setup_window GraphicsPipe pipe  )  [protected]
 

Definition at line 124 of file ribGraphicsWindow.cxx.

References _file_begun, DCAST, RIBGraphicsPipe::get_file_name(), set_image_filename_template(), and set_rib_filename_template().

Referenced by RIBGraphicsWindow().

void RIBGraphicsWindow::unmake_current void   )  [virtual]
 

Definition at line 366 of file ribGraphicsWindow.cxx.


Member Data Documentation

Filename RIBGraphicsWindow::_current_rib_filename [protected]
 

Definition at line 130 of file ribGraphicsWindow.h.

Referenced by begin_file(), and end_file().

ofstream RIBGraphicsWindow::_file [protected]
 

Definition at line 131 of file ribGraphicsWindow.h.

Referenced by begin_file(), begin_frame(), end_file(), and end_frame().

bool RIBGraphicsWindow::_file_begun [protected]
 

Definition at line 129 of file ribGraphicsWindow.h.

Referenced by begin_file(), begin_frame(), end_file(), and setup_window().

string RIBGraphicsWindow::_image_filename_template [protected]
 

Definition at line 125 of file ribGraphicsWindow.h.

bool RIBGraphicsWindow::_image_per_frame [protected]
 

Definition at line 127 of file ribGraphicsWindow.h.

string RIBGraphicsWindow::_rib_filename_template [protected]
 

Definition at line 124 of file ribGraphicsWindow.h.

bool RIBGraphicsWindow::_rib_per_frame [protected]
 

Definition at line 126 of file ribGraphicsWindow.h.

TypeHandle RIBGraphicsWindow::_type_handle [static, private]
 

Reimplemented from GraphicsWindow.

Definition at line 26 of file ribGraphicsWindow.cxx.

Referenced by get_class_type(), and init_type().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:31 2003 for Panda by doxygen1.3