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

CGview Class Reference

This class manages the CGview export. More...

#include <CGview.h>

List of all members.

Public Member Functions

 CGview (TVector *_v=NULL)
 Constructor.
 ~CGview ()
wxString getXML ()
 Generates the XML for the vector v and returns it as a wxString.
bool runSettingsDialog ()
 Runs the settings dialog prior to the actual XML generation.
void postProcess (wxString filename)
 Runs CGview and the image viewer, if requested.

Private Member Functions

wxString addXMLfeatureSlot (int dir)
 Adds the features for the given direction to the XML.
wxString getColorName (int type)
 Returns XML item comor, based on the item type.
wxString getColorName (TVectorItem *i)
 Returns XML item color, based on the item color used in GENtle.
bool itemOverlap (TVectorItem &i1, TVectorItem &i2)
 Checks if two items overlap.
void wellform (wxString &s)
 Fixes quotes and & prior to XML generation.
void makeGCcolor (int percent, wxColour &col)
wxString RGB2string (wxColour col)
wxString RGB2string (int red, int green, int blue)

Private Attributes

TVectorv
 Pointer to the TVector structure to export.
int width
int height
int radius
bool useDefaultColors
bool runCGview
bool runimageapp
bool showrestrictionsites
bool showgc
bool itemsShown
wxColour backgroundColor
wxString cgviewapp
wxString imageformat
vector< int > used_types
 The item types used in this vector (internal use only).

Friends

class CGdialog


Detailed Description

This class manages the CGview export.


Constructor & Destructor Documentation

CGview::CGview TVector _v = NULL  ) 
 

Constructor.

CGview::~CGview  )  [inline]
 


Member Function Documentation

wxString CGview::addXMLfeatureSlot int  dir  )  [private]
 

Adds the features for the given direction to the XML.

wxString CGview::getColorName TVectorItem i  )  [private]
 

Returns XML item color, based on the item color used in GENtle.

wxString CGview::getColorName int  type  )  [private]
 

Returns XML item comor, based on the item type.

wxString CGview::getXML  ) 
 

Generates the XML for the vector v and returns it as a wxString.

bool CGview::itemOverlap TVectorItem i1,
TVectorItem i2
[private]
 

Checks if two items overlap.

void CGview::makeGCcolor int  percent,
wxColour &  col
[private]
 

void CGview::postProcess wxString  filename  ) 
 

Runs CGview and the image viewer, if requested.

wxString CGview::RGB2string int  red,
int  green,
int  blue
[private]
 

wxString CGview::RGB2string wxColour  col  )  [private]
 

bool CGview::runSettingsDialog  ) 
 

Runs the settings dialog prior to the actual XML generation.

void CGview::wellform wxString &  s  )  [private]
 

Fixes quotes and & prior to XML generation.


Friends And Related Function Documentation

friend class CGdialog [friend]
 


Member Data Documentation

wxColour CGview::backgroundColor [private]
 

wxString CGview::cgviewapp [private]
 

int CGview::height [private]
 

wxString CGview::imageformat [private]
 

bool CGview::itemsShown [private]
 

int CGview::radius [private]
 

bool CGview::runCGview [private]
 

bool CGview::runimageapp [private]
 

bool CGview::showgc [private]
 

bool CGview::showrestrictionsites [private]
 

vector<int> CGview::used_types [private]
 

The item types used in this vector (internal use only).

bool CGview::useDefaultColors [private]
 

TVector* CGview::v [private]
 

Pointer to the TVector structure to export.

int CGview::width [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 11 16:19:44 2006 for GENtle by  doxygen 1.4.1