#include <qgarlib/TgifFile.H>
Inheritance diagram for qgar::TgifFile:

All information (coordinates, thickness, length, etc.) manipulated by Tgif is integer (int).
File extension must be .obj. For more information about Tgif, see the Tgif home page.
When using X Window, your Tgif environment will be consistent with that used in Qgar (especially for colors) if you initialize Tgif variables in the .Xdefaults file of your home directory as follows:
Tgif*MaxColors: 20 Tgif*Color0: #000000 Tgif*Color1: #707070 Tgif*Color2: #a0a0a0 Tgif*Color3: #d0d0d0 Tgif*Color4: #ffffff Tgif*Color5: #ff00ff Tgif*Color6: #cc00cc Tgif*Color7: #00ffff Tgif*Color8: #00aaee Tgif*Color9: #0000ff Tgif*Color10: #888800 Tgif*Color11: #008800 Tgif*Color12: #00ff00 Tgif*Color13: #ffff00 Tgif*Color14: #ff8000 Tgif*Color15: #ff0000 Tgif*Color16: #ff4080 Tgif*Color17: #ff8080 Tgif*Color18: #bb7020 Tgif*Color19: #a02000 Tgif*BackGround: white Tgif*Foreground: black Tgif*SplineTolerance: 13 Tgif*InitialFont: Helvetica Tgif*InitialFontStyle: Roman Tgif*InitialFontJust: Center Tgif*InitialFontSize: 12 Tgif*GridSystem: Metric Tgif*InitialGrid: -1 Tgif*InitialSnapOn: false
Definition at line 129 of file TgifFile.H.
Tgif specific information | |
| int | _tgifObjectCnt |
| Number of objects in the file. | |
| static const char * | _s_tgif_version = "3.0-p17" |
| Current Tgif version. | |
| static const char * | _s_tgif_colors [21] |
| Table of Tgif colors (see enum type qgar::QGEcolor). | |
| static const unsigned char | _s_tgif_outlines [10] |
| Table of Tgif outline types (see enum type qgar::QGEoutline). | |
| static const int | _s_tgif_pix_per_inch = 128 |
| Tgif resolution: Number of pixels per inch. | |
| static const float | _s_tgif_a4_page_width = 8.25f * _s_tgif_pix_per_inch |
| Tgif A4 page width (in pixels). | |
| static const float | _s_tgif_a4_page_height = 11.7f * _s_tgif_pix_per_inch |
| Tgif A4 page height (in pixels). | |
Public Member Functions | |
Constructors | |
| TgifFile (char *aFileName) | |
| Initialize with given name. | |
Destructor | |
| virtual | ~TgifFile () |
| Virtual destructor. | |
Output points | |
| void | write (const GenPoint< int > &aPt, int aThickness=3, QGEcolor aColor=QGE_COLOR_DEFAULT) |
| Write a point with coordinates of type int. | |
| void | write (const GenPoint< float > &aPt, int aThickness=3, QGEcolor aColor=QGE_COLOR_DEFAULT) |
| Write a point with coordinates of type float. | |
| void | write (const GenPoint< double > &aPt, int aThickness=3, QGEcolor aColor=QGE_COLOR_DEFAULT) |
| Write a point with coordinates of type double. | |
Output chains of points | |
| void | write (AbstChain &aChain, int aThickness=3, QGEcolor aColor=QGE_COLOR_DEFAULT) |
| Write a chain of points with coordinates of type int. | |
| void | write (FAbstChain &aChain, int aThickness=3, QGEcolor aColor=QGE_COLOR_DEFAULT) |
| Write a chain of points with coordinates of type float. | |
| void | write (DAbstChain &aChain, int aThickness=3, QGEcolor aColor=QGE_COLOR_DEFAULT) |
| Write a chain of points with coordinates of type double. | |
Output segments | |
| void | write (const GenSegment< int > &aSeg, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical segment with coordinates of type int. | |
| void | write (const GenSegment< float > &aSeg, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical segment with coordinates of type float. | |
| void | write (const GenSegment< double > &aSeg, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical segment with coordinates of type double. | |
Output circles and arcs of circle | |
| void | write (const GenPoint< int > &aCenter, double aRadius, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a circle with coordinates of type int. | |
| void | write (const GenPoint< float > &aCenter, double aRadius, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a circle with coordinates of type float. | |
| void | write (const GenPoint< double > &aCenter, double aRadius, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a circle with coordinates of type double. | |
| void | write (const GenArc< int > &anArc, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical arc with coordinates of type int. | |
| void | write (const GenArc< float > &anArc, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical arc with coordinates of type float. | |
| void | write (const GenArc< double > &anArc, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical arc with coordinates of type double. | |
Output polylines | |
| void | write (const GenPolyline< int > &aPoly, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical polyline with coordinates of type int. | |
| void | write (const GenPolyline< float > &aPoly, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical polyline with coordinates of type float. | |
| void | write (const GenPolyline< double > &aPoly, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a geometrical polyline with coordinates of type double. | |
Output bounding boxes | |
| void | write (const BoundingBox &aBox, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write a bounding box with coordinates of type int. | |
Output components | |
| void | write (const ConnectedComponents::node_type *const aPNode, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) |
| Write the contour of a (connected) component and of all included components (i.e. children in the component tree). | |
Points | |
| virtual void | write (AbstractGenPointChain< float > &aChain, int aThickness=3, QGEcolor aColor=QGE_COLOR_DEFAULT)=0 |
| Record a chain of points with coordinates of type float. | |
Segments | |
| void | write (const GenQgarSegment< int > &aQSeg, int aThickness=-1, QGEcolor aColor=QGE_COLOR_NONE, QGEoutline anOutline=QGE_OUTLINE_NONE) |
| Record a Qgar segment with coordinates of type int. | |
Circles and arcs of circle | |
| void | write (const GenQgarArc< int > &aQArc, int aThickness=-1, QGEcolor aColor=QGE_COLOR_NONE, QGEoutline anOutline=QGE_OUTLINE_NONE) |
| Record a Qgar arc with coordinates of type int. | |
Polylines | |
| void | write (const GenQgarPolyline< int > &aQPoly, int aThickness=-1, QGEcolor aColor=QGE_COLOR_NONE, QGEoutline anOutline=QGE_OUTLINE_NONE) |
| Record a Qgar polyline with coordinates of type int. | |
Access to file characteristics | |
| std::fstream & | fileStream () |
| Get file stream. | |
| const char *const | fileName () const |
| Get file name. | |
| QGEfileStatus | fileStatus () const |
| Get current file status. | |
Opening | |
| virtual void | openRONLY () throw (QgarErrorIO) |
| Open in read-only mode. | |
| virtual void | openWONLY () throw (QgarErrorIO) |
| Open in write-only mode. | |
| virtual void | openAPPEND () throw (QgarErrorIO) |
| Open in append mode. | |
| virtual void | openRW () throw (QgarErrorIO) |
| Open in read-write mode. | |
| virtual void | openRA () throw (QgarErrorIO) |
| Open in read-append mode. | |
Closing | |
| virtual void | close () |
| Close the file. | |
Checking status | |
| virtual void | isOpenR () throw (QgarErrorUser) |
| Abort if the file is not open in a mode allowing reading. | |
| virtual void | isOpenW () throw (QgarErrorUser) |
| Abort if the file is not open in a mode allowing writing. | |
| virtual void | isOpenA () throw (QgarErrorUser) |
| Abort if the file is not open in a mode allowing appending. | |
| virtual void | isOpenRW () throw (QgarErrorUser) |
| Abort if the file is not open in read-write mode. | |
| virtual void | isOpenRA () throw (QgarErrorUser) |
| Abort if the file is not open in readi-append mode. | |
Protected Member Functions | |
Output | |
| void | writeHeader () |
| Write file header. | |
| void | writeFooter () |
| Write file footer (nothing to do). | |
Save predicates describing Tgif objects | |
| void | beginSavePoly (int aVerticesCnt, QGEcolor aColor) |
| Save the beginning part of the predicate describing a Tgif polyline. | |
| void | endSavePoly (int aVerticesCnt, int aThickness, QGEoutline anOutline) |
| Save the ending part of the predicate describing a Tgif polyline. | |
| void | saveBox (int aXTopLeft, int aYTopLeft, int aXBottomRight, int aYBottomRight, int aThickness, QGEcolor aColor, QGEoutline anOutline) |
| Save the predicate describing a Tgif box. | |
| void | saveCircle (int aXCenter, int aYCenter, int aRadius, int aThickness, QGEcolor aColor, QGEoutline anOutline) |
| Save the predicate describing a Tgif circle. | |
| void | saveArc (int aXSource, int aYSource, int aXTarget, int aYTarget, int aXCenter, int aYCenter, int aSourceAngle, int aTargetAngle, int aRadius, int aThickness, QGEcolor aColor, QGEoutline anOutline) |
| Save the predicate describing a Tgif arc. | |
| void | savePoint (int aX, int aY, int aThickness, QGEcolor aColor) |
| Save the predicate describing a point. | |
| template<class T> | |
| void | saveChain (AbstractGenPointChain< T > &aChain, int aThickness, QGEcolor aColor) |
| Save the predicate describing a chain of points with coordinates of type T. | |
| void | saveSegment (int aXSource, int aYSource, int aXTarget, int aYTarget, int aThickness, QGEcolor aColor, QGEoutline anOutline) |
| Save the predicate describing a segment. | |
| template<class T> | |
| void | savePolyline (const GenPolyline< T > &aPoly, int aThickness, QGEcolor aColor, QGEoutline anOutline) |
| Save the predicate describing a polyline with coordinates of type T. | |
Protected Attributes | |
Representation of a file | |
| char * | _fileName |
| File name. | |
| QGEfileStatus | _fileStatus |
| File status. | |
| std::fstream | _fileStream |
| Associated file stream. | |
Private Member Functions | |
Not yet implemented | |
These functions belong to the private section as they are not yet implemented and thus should not be used. | |
| void | readHeader () throw (QgarErrorDeveloper) |
| Read file header. | |
AUXILIARIES | |
| void | PRIVATEwriteComponent (const ConnectedComponents::node_type *const aPNode, int aThickness, QGEcolor aColor, QGEoutline anOutline) |
| Write the contour of a (connected) component and of all included components (i.e. children in the component tree). | |
|
|
Initialize with given name.
Definition at line 167 of file TgifFile.C. |
|
|
Virtual destructor.
Definition at line 182 of file TgifFile.C. |
|
||||||||||||
|
Save the beginning part of the predicate describing a Tgif polyline.
Definition at line 704 of file TgifFile.C. References qgar::AbstractFile::_fileStream, and _s_tgif_colors. Referenced by saveChain(), savePoint(), savePolyline(), and saveSegment(). |
|
|
Close the file. No effect is the file is already closed.
Definition at line 251 of file AbstractFile.C. References qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::QGE_FILE_STATUS_CLOSED, qgar::QGE_FILE_STATUS_READ_WRITE, qgar::QGE_FILE_STATUS_WRITE_ONLY, and qgar::AbstractFile::writeFooter(). Referenced by qgar::GenImage< T, CheckPolicy >::GenImage(), qgar::MapleFile::MapleFile(), qgar::AbstractFile::openAPPEND(), qgar::AbstractFile::openRA(), qgar::AbstractFile::openRONLY(), qgar::AbstractFile::openRW(), qgar::AbstractFile::openWONLY(), and qgar::GenImage< T, CheckPolicy >::save(). |
|
||||||||||||||||
|
Save the ending part of the predicate describing a Tgif polyline.
Definition at line 730 of file TgifFile.C. References qgar::AbstractFile::_fileStream, _s_tgif_outlines, _tgifObjectCnt, qgar::TGIFFILE_arrowHeadHeight(), and qgar::TGIFFILE_arrowHeadWidth(). Referenced by saveChain(), savePoint(), savePolyline(), and saveSegment(). |
|
|
Get file name.
Definition at line 395 of file AbstractFile.H. References qgar::AbstractFile::_fileName. |
|
|
Get current file status.
Definition at line 404 of file AbstractFile.H. References qgar::AbstractFile::_fileStatus. |
|
|
Get file stream. When saving the stream, usual I/O operations apply to the associated file, depending on the opening mode. Definition at line 386 of file AbstractFile.H. References qgar::AbstractFile::_fileStream. |
|
|
Abort if the file is not open in a mode allowing appending.
Definition at line 310 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::QGE_FILE_STATUS_APPEND, and qgar::QGE_FILE_STATUS_READ_APPEND. |
|
|
Abort if the file is not open in a mode allowing reading.
Definition at line 273 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::QGE_FILE_STATUS_APPEND, and qgar::QGE_FILE_STATUS_WRITE_ONLY. Referenced by qgar::PgmFile::readRow(), and qgar::PbmFile::readRow(). |
|
|
Abort if the file is not open in readi-append mode.
Definition at line 347 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, and qgar::QGE_FILE_STATUS_READ_APPEND. |
|
|
Abort if the file is not open in read-write mode.
Definition at line 329 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, and qgar::QGE_FILE_STATUS_READ_WRITE. |
|
|
Abort if the file is not open in a mode allowing writing.
Definition at line 292 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, and qgar::QGE_FILE_STATUS_READ_ONLY. Referenced by write(), qgar::DxfFile::write(), qgar::PgmFile::writeRow(), and qgar::PbmFile::writeRow(). |
|
|
Open in append mode. The eventual content of the file is preserved and the file pointer is set to the end of the file.
Definition at line 166 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_APPEND, and qgar::AbstractFile::readHeader(). |
|
|
Open in read-append mode. The file pointer is set to the end of the file.
Definition at line 223 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_READ_APPEND, and qgar::AbstractFile::readHeader(). |
|
|
Open in read-only mode. The file pointer is set to the first character after the header.
Definition at line 107 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_READ_ONLY, and qgar::AbstractFile::readHeader(). Referenced by qgar::GenImage< T, CheckPolicy >::GenImage(). |
|
|
Open in read-write mode.
Definition at line 197 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_READ_WRITE, and qgar::AbstractFile::writeHeader(). |
|
|
Open in write-only mode.
Definition at line 136 of file AbstractFile.C. References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_WRITE_ONLY, and qgar::AbstractFile::writeHeader(). Referenced by qgar::MapleFile::MapleFile(), and qgar::GenImage< T, CheckPolicy >::save(). |
|
||||||||||||||||||||
|
Write the contour of a (connected) component and of all included components (i.e. children in the component tree).
Definition at line 1264 of file TgifFile.C. References qgar::Component::accessBoundingBox(), qgar::Component::accessContour(), qgar::GenTreeNode< T >::accessData(), qgar::Component::areaPixels(), qgar::Component::color(), qgar::GenTreeNode< T >::pFirstChild(), qgar::GenTreeNode< T >::pRSibling(), qgar::QGE_BW_WHITE, qgar::QGE_COLOR_BLACK, qgar::QGE_COLOR_BLUE, qgar::QGE_COLOR_RED, qgar::QGE_OUTLINE_SOLID, and write(). Referenced by write(). |
|
|
Read file header.
Implements qgar::AbstractFile. Definition at line 1245 of file TgifFile.C. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Save the predicate describing a Tgif arc.
Definition at line 956 of file TgifFile.C. References qgar::AbstractFile::_fileStream, _s_tgif_colors, _s_tgif_outlines, _tgifObjectCnt, qgar::TGIFFILE_arrowHeadHeight(), and qgar::TGIFFILE_arrowHeadWidth(). Referenced by write(). |
|
||||||||||||||||||||||||||||||||
|
Save the predicate describing a Tgif box.
Definition at line 829 of file TgifFile.C. References qgar::AbstractFile::_fileStream, _s_tgif_colors, _s_tgif_outlines, and _tgifObjectCnt. Referenced by write(). |
|
||||||||||||||||||||
|
Save the predicate describing a chain of points with coordinates of type T. As points are not Tgif objects, the chain is described by a polyline whose vertices are the points of the chain.
Definition at line 1123 of file TgifFile.C. References qgar::AbstractFile::_fileStream, qgar::AbstractGenPointChain< T >::accessCurrent(), beginSavePoly(), qgar::AbstractGenPointChain< T >::empty(), endSavePoly(), qgar::AbstractGenPointChain< T >::hasNext(), qgar::AbstractGenPointChain< T >::moveNext(), qgar::QGE_OUTLINE_SOLID, qgar::AbstractGenPointChain< T >::setToBegin(), and qgar::AbstractGenPointChain< T >::size(). Referenced by write(). |
|
||||||||||||||||||||||||||||
|
Save the predicate describing a Tgif circle.
Definition at line 890 of file TgifFile.C. References qgar::AbstractFile::_fileStream, _s_tgif_colors, _s_tgif_outlines, and _tgifObjectCnt. Referenced by write(). |
|
||||||||||||||||||||
|
Save the predicate describing a point. As a point is not a Tgif object, it is described by a polyline including only one vertice (integer coordinates).
Definition at line 1101 of file TgifFile.C. References qgar::AbstractFile::_fileStream, beginSavePoly(), endSavePoly(), and qgar::QGE_OUTLINE_SOLID. Referenced by write(). |
|
||||||||||||||||||||||||
|
Save the predicate describing a polyline with coordinates of type T.
Definition at line 1208 of file TgifFile.C. References qgar::AbstractFile::_fileStream, qgar::GenPolyline< T >::accessVertices(), beginSavePoly(), and endSavePoly(). Referenced by write(). |
|
||||||||||||||||||||||||||||||||
|
Save the predicate describing a segment. As a segment is not a Tgif object, it is described by a polyline including two points (the source and target of the segment).
Definition at line 1176 of file TgifFile.C. References qgar::AbstractFile::_fileStream, beginSavePoly(), and endSavePoly(). Referenced by write(). |
|
||||||||||||||||||||
|
Record a Qgar polyline with coordinates of type int.
Definition at line 188 of file AbstractGraphicsFile.C. References qgar::GenQgarPolyline< T >::accessGeomStructure(), qgar::AbstractGenQgarPrimitive< T >::color(), qgar::AbstractGenQgarPrimitive< T >::outline(), qgar::QGE_COLOR_NONE, qgar::QGE_OUTLINE_NONE, qgar::AbstractGenQgarPrimitive< T >::thickness(), and qgar::AbstractGraphicsFile::write(). |
|
||||||||||||||||||||
|
Record a Qgar arc with coordinates of type int.
Definition at line 138 of file AbstractGraphicsFile.C. References qgar::GenQgarArc< T >::accessGeomStructure(), qgar::AbstractGenQgarPrimitive< T >::color(), qgar::AbstractGenQgarPrimitive< T >::outline(), qgar::QGE_COLOR_NONE, qgar::QGE_OUTLINE_NONE, qgar::AbstractGenQgarPrimitive< T >::thickness(), and qgar::AbstractGraphicsFile::write(). |
|
||||||||||||||||||||
|
Record a Qgar segment with coordinates of type int.
Definition at line 87 of file AbstractGraphicsFile.C. References qgar::GenQgarSegment< T >::accessGeomStructure(), qgar::AbstractGenQgarPrimitive< T >::color(), qgar::AbstractGenQgarPrimitive< T >::outline(), qgar::QGE_COLOR_NONE, qgar::QGE_OUTLINE_NONE, qgar::AbstractGenQgarPrimitive< T >::thickness(), and qgar::AbstractGraphicsFile::write(). |
|
||||||||||||||||
|
Record a chain of points with coordinates of type float.
Implemented in qgar::DxfFile, and qgar::DxfFile. |
|
||||||||||||||||||||
|
Write the contour of a (connected) component and of all included components (i.e. children in the component tree).
Implements qgar::AbstractGraphicsFile. Definition at line 550 of file TgifFile.C. References qgar::Component::accessBoundingBox(), qgar::Component::accessContour(), qgar::GenTreeNode< T >::accessData(), qgar::Component::areaPixels(), qgar::Component::color(), qgar::AbstractFile::isOpenW(), qgar::GenTreeNode< T >::pFirstChild(), PRIVATEwriteComponent(), qgar::QGE_BW_WHITE, qgar::QGE_COLOR_BLACK, qgar::QGE_COLOR_BLUE, qgar::QGE_COLOR_RED, qgar::QGE_OUTLINE_SOLID, and write(). |
|
||||||||||||||||||||
|
Write a bounding box with coordinates of type int.
Implements qgar::AbstractGraphicsFile. Definition at line 525 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), saveBox(), qgar::BoundingBox::xBottomRight(), qgar::BoundingBox::xTopLeft(), qgar::BoundingBox::yBottomRight(), and qgar::BoundingBox::yTopLeft(). |
|
||||||||||||||||||||
|
Write a geometrical polyline with coordinates of type double.
Implements qgar::AbstractGraphicsFile. |
|
||||||||||||||||||||
|
Write a geometrical polyline with coordinates of type float.
Implements qgar::AbstractGraphicsFile. |
|
||||||||||||||||||||
|
Write a geometrical polyline with coordinates of type int.
Implements qgar::AbstractGraphicsFile. Definition at line 481 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), and savePolyline(). |
|
||||||||||||||||||||
|
Write a geometrical arc with coordinates of type double.
Implements qgar::AbstractGraphicsFile. |
|
||||||||||||||||||||
|
Write a geometrical arc with coordinates of type float.
Implements qgar::AbstractGraphicsFile. |
|
||||||||||||||||||||
|
Write a geometrical arc with coordinates of type int.
Implements qgar::AbstractGraphicsFile. Definition at line 402 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), qgar::GenArc< T >::radius(), saveArc(), qgar::GenArc< T >::sourceAngleDegrees(), qgar::GenArc< T >::targetAngleDegrees(), qgar::GenArc< T >::xCenter(), qgar::AbstractGenPrimitive< T >::xSource(), qgar::AbstractGenPrimitive< T >::xTarget(), qgar::GenArc< T >::yCenter(), qgar::AbstractGenPrimitive< T >::ySource(), and qgar::AbstractGenPrimitive< T >::yTarget(). |
|
||||||||||||||||||||||||
|
Write a circle with coordinates of type double.
Implements qgar::AbstractGraphicsFile. |
|
||||||||||||||||||||||||
|
Write a circle with coordinates of type float.
Implements qgar::AbstractGraphicsFile. Definition at line 362 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), saveCircle(), qgar::GenPoint< T >::x(), and qgar::GenPoint< T >::y(). |
|
||||||||||||||||||||||||
|
Write a circle with coordinates of type int.
Implements qgar::AbstractGraphicsFile. Definition at line 342 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), saveCircle(), qgar::GenPoint< T >::x(), and qgar::GenPoint< T >::y(). |
|
||||||||||||||||||||
|
Write a geometrical segment with coordinates of type double.
Implements qgar::AbstractGraphicsFile. |
|
||||||||||||||||||||
|
Write a geometrical segment with coordinates of type float.
Implements qgar::AbstractGraphicsFile. Definition at line 297 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), saveSegment(), qgar::AbstractGenPrimitive< T >::xSource(), qgar::AbstractGenPrimitive< T >::xTarget(), qgar::AbstractGenPrimitive< T >::ySource(), and qgar::AbstractGenPrimitive< T >::yTarget(). |
|
||||||||||||||||||||
|
Write a geometrical segment with coordinates of type int.
Implements qgar::AbstractGraphicsFile. Definition at line 277 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), saveSegment(), qgar::AbstractGenPrimitive< T >::xSource(), qgar::AbstractGenPrimitive< T >::xTarget(), qgar::AbstractGenPrimitive< T >::ySource(), and qgar::AbstractGenPrimitive< T >::yTarget(). |
|
||||||||||||||||
|
Write a chain of points with coordinates of type double.
|
|
||||||||||||||||
|
Write a chain of points with coordinates of type float.
Definition at line 248 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), and saveChain(). |
|
||||||||||||||||
|
Write a chain of points with coordinates of type int.
Implements qgar::AbstractGraphicsFile. Definition at line 236 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), and saveChain(). |
|
||||||||||||||||
|
Write a point with coordinates of type double.
Implements qgar::AbstractGraphicsFile. |
|
||||||||||||||||
|
Write a point with coordinates of type float.
Implements qgar::AbstractGraphicsFile. Definition at line 207 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), savePoint(), qgar::GenPoint< T >::x(), and qgar::GenPoint< T >::y(). |
|
||||||||||||||||
|
Write a point with coordinates of type int.
Implements qgar::AbstractGraphicsFile. Definition at line 195 of file TgifFile.C. References qgar::AbstractFile::isOpenW(), savePoint(), qgar::GenPoint< T >::x(), and qgar::GenPoint< T >::y(). Referenced by PRIVATEwriteComponent(), and write(). |
|
|
Write file footer (nothing to do).
Implements qgar::AbstractFile. Definition at line 684 of file TgifFile.C. |
|
|
Write file header.
Implements qgar::AbstractFile. Definition at line 592 of file TgifFile.C. References qgar::AbstractFile::_fileStream, _s_tgif_a4_page_height, _s_tgif_a4_page_width, and _s_tgif_version. |
|
|
|
|
|
Tgif A4 page height (in pixels).
Definition at line 113 of file TgifFile.C. Referenced by writeHeader(). |
|
|
Tgif A4 page width (in pixels).
Definition at line 111 of file TgifFile.C. Referenced by writeHeader(). |
|
|
Initial value:
{
"#000000",
"#000000",
"#707070",
"#a0a0a0",
"#d0d0d0",
"#ffffff",
"#ff00ff",
"#cc00cc",
"#00ffff",
"#00aaee",
"#0000ff",
"#888800",
"#008800",
"#00ff00",
"#ffff00",
"#ff8000",
"#ff0000",
"#ff4080",
"#ff8080",
"#bb7020",
"#a02000"
}
Definition at line 119 of file TgifFile.C. Referenced by beginSavePoly(), saveArc(), saveBox(), and saveCircle(). |
|
|
Initial value:
{
0,
0,
1,
2,
3,
4,
5,
6,
7,
8
}
Definition at line 145 of file TgifFile.C. Referenced by endSavePoly(), saveArc(), saveBox(), and saveCircle(). |
|
|
Tgif resolution: Number of pixels per inch.
Definition at line 109 of file TgifFile.C. |
|
|
Current Tgif version.
Definition at line 116 of file TgifFile.C. Referenced by writeHeader(). |
|
|
Number of objects in the file.
Definition at line 549 of file TgifFile.H. Referenced by endSavePoly(), saveArc(), saveBox(), and saveCircle(). |