contrib/brl/bbas/bxml/bsvg/bsvg_document.h
Go to the documentation of this file.
00001 #ifndef bsvg_document_h_
00002 #define bsvg_document_h_
00003 //:
00004 // \file
00005 // \brief classes based on bxml to create SVG documents
00006 //
00007 //        create an XML document with SVG primitives (text, lines, ellipses, polygons, etc.) and display them using any browser
00008 //
00009 // \author Ozge C. Ozcanli (Brown)
00010 // \date   April 21, 2009
00011 //
00012 // \verbatim
00013 //  Modifications
00014 //   Ozge C. Ozcanli - July 08, 09 - ported to vxl from local repository - minor fixes
00015 // \endverbatim
00016 
00017 #include <bxml/bxml_document.h>
00018 #include <vcl_string.h>
00019 
00020 class bsvg_document : public bxml_document
00021 {
00022  public:
00023   bsvg_document(float w, float h);  // if viewBox params are not specified, then each pixel corresponds to one unit square while drawing
00024   bsvg_document(float w, float h, float viewBox_x, float viewBox_y, float viewBox_w, float viewBox_h);
00025   bool add_description(const vcl_string& d);
00026   bool add_element(const bxml_data_sptr& element);
00027 
00028  public:
00029   float w_;
00030   float h_;
00031 };
00032 
00033 #endif  // bsvg_document_h_