Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vrml_out Class Reference

#include <vrml_out.h>

List of all members.


Detailed Description

A class to write to a VRML 1.0 file.

Definition at line 18 of file vrml_out.h.

Public Member Functions

 vrml_out ()
 vrml_out (vcl_ostream &s)
 Point vrml output to this stream.
 vrml_out (char const *filename)
 Open filename for writing, write prologue, and on closure write epilogue.
 ~vrml_out ()
 Destructor. If we own the vcl_ostream, write the epilogue.
void open (vcl_ostream &s)
void close ()
void prologue ()
 Write vrml_out header and an opening "Separator {".
void write_points (vcl_vector< double > const &x, vcl_vector< double > const &y, vcl_vector< double > const &z)
void display_pointset ()
void comment (char const *msg)
void verbatim (char const *msg)
void epilogue ()
 Write closing "}".
void begin_separator ()
void end_separator ()
void begin_pointset ()
void point3d (double, double, double)
void point3d (double, double, double, char const *)
void end_pointset ()
void begin_texture (char const *texture_filename)
void texture2 (double, double)
void texture2_image_coords (double, double, int image_xsize, int image_ysize)
void end_texture ()
void begin_lineset ()
void line (int i0, int i1)
void end_lineset ()
void begin_faceset ()
void triangle (int, int, int)
void quad (int, int, int, int)
void face (const int *base, int n)
void face_open ()
void face_index (int)
void face_close ()
void end_faceset ()

Protected Attributes

vcl_ostream * s_
bool own_ostream_

Private Member Functions

 vrml_out (const vrml_out &that)
vrml_outoperator= (const vrml_out &that)


Constructor & Destructor Documentation

vrml_out::vrml_out  ) 
 

Definition at line 17 of file vrml_out.cxx.

vrml_out::vrml_out vcl_ostream &  s  ) 
 

Point vrml output to this stream.

Definition at line 24 of file vrml_out.cxx.

vrml_out::vrml_out char const *  filename  ) 
 

Open filename for writing, write prologue, and on closure write epilogue.

Definition at line 31 of file vrml_out.cxx.

vrml_out::~vrml_out  ) 
 

Destructor. If we own the vcl_ostream, write the epilogue.

Definition at line 43 of file vrml_out.cxx.

vrml_out::vrml_out const vrml_out that  )  [private]
 


Member Function Documentation

void vrml_out::begin_faceset  ) 
 

Definition at line 473 of file vrml_out.cxx.

void vrml_out::begin_lineset  ) 
 

Definition at line 455 of file vrml_out.cxx.

void vrml_out::begin_pointset  ) 
 

Definition at line 401 of file vrml_out.cxx.

void vrml_out::begin_separator  ) 
 

Definition at line 389 of file vrml_out.cxx.

void vrml_out::begin_texture char const *  texture_filename  ) 
 

Definition at line 431 of file vrml_out.cxx.

void vrml_out::close  ) 
 

void vrml_out::comment char const *  msg  ) 
 

Definition at line 69 of file vrml_out.cxx.

void vrml_out::display_pointset  ) 
 

Definition at line 101 of file vrml_out.cxx.

void vrml_out::end_faceset  ) 
 

Definition at line 518 of file vrml_out.cxx.

void vrml_out::end_lineset  ) 
 

Definition at line 467 of file vrml_out.cxx.

void vrml_out::end_pointset  ) 
 

Definition at line 425 of file vrml_out.cxx.

void vrml_out::end_separator  ) 
 

Definition at line 395 of file vrml_out.cxx.

void vrml_out::end_texture  ) 
 

Definition at line 449 of file vrml_out.cxx.

void vrml_out::epilogue  ) 
 

Write closing "}".

Definition at line 82 of file vrml_out.cxx.

void vrml_out::face const int *  base,
int  n
 

Definition at line 509 of file vrml_out.cxx.

void vrml_out::face_close  ) 
 

Definition at line 491 of file vrml_out.cxx.

void vrml_out::face_index int   ) 
 

Definition at line 485 of file vrml_out.cxx.

void vrml_out::face_open  ) 
 

Definition at line 479 of file vrml_out.cxx.

void vrml_out::line int  i0,
int  i1
 

Definition at line 461 of file vrml_out.cxx.

void vrml_out::open vcl_ostream &  s  ) 
 

vrml_out& vrml_out::operator= const vrml_out that  )  [private]
 

void vrml_out::point3d double  ,
double  ,
double  ,
char const * 
 

Definition at line 413 of file vrml_out.cxx.

void vrml_out::point3d double  ,
double  ,
double 
 

Definition at line 407 of file vrml_out.cxx.

void vrml_out::prologue  ) 
 

Write vrml_out header and an opening "Separator {".

Definition at line 54 of file vrml_out.cxx.

void vrml_out::quad int  ,
int  ,
int  ,
int 
 

Definition at line 503 of file vrml_out.cxx.

void vrml_out::texture2 double  ,
double 
 

Definition at line 438 of file vrml_out.cxx.

void vrml_out::texture2_image_coords double  ,
double  ,
int  image_xsize,
int  image_ysize
 

Definition at line 444 of file vrml_out.cxx.

void vrml_out::triangle int  ,
int  ,
int 
 

Definition at line 497 of file vrml_out.cxx.

void vrml_out::verbatim char const *  msg  ) 
 

Definition at line 75 of file vrml_out.cxx.

void vrml_out::write_points vcl_vector< double > const &  x,
vcl_vector< double > const &  y,
vcl_vector< double > const &  z
 


Member Data Documentation

bool vrml_out::own_ostream_ [protected]
 

Definition at line 89 of file vrml_out.h.

vcl_ostream* vrml_out::s_ [protected]
 

Definition at line 88 of file vrml_out.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:46:13 2008 for contrib/oxl/vrml by  doxygen 1.4.4