#include <CGview.h>
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 | |
TVector * | v |
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 |
|
Constructor.
|
|
|
|
Adds the features for the given direction to the XML.
|
|
Returns XML item color, based on the item color used in GENtle.
|
|
Returns XML item comor, based on the item type.
|
|
Generates the XML for the vector v and returns it as a wxString.
|
|
Checks if two items overlap.
|
|
|
|
Runs CGview and the image viewer, if requested.
|
|
|
|
|
|
Runs the settings dialog prior to the actual XML generation.
|
|
Fixes quotes and & prior to XML generation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The item types used in this vector (internal use only).
|
|
|
|
Pointer to the TVector structure to export.
|
|
|