|
Open CASCADE Technology 6.5.2
|
This class defines a CGM (Computer Graphic Metafile) plotter Driver.
All necessary information about methods (purpose, level, category, etc.)
can be found in CDL files from the inheritance tree (PlotMgt_PlotterDriver,
Aspect_Driver).
#include <CGM_Driver.hxx>

Public Member Functions | |
| CGM_Driver (const Handle< PlotMgt_Plotter > &aPlotter, const Standard_CString aName, const Quantity_Length aDX, const Quantity_Length aDY, const Aspect_TypeOfColorSpace aTypeOfColorSpace=Aspect_TOCS_RGB) | |
| CGM_Driver (const Standard_CString aName, const Quantity_Length aDX, const Quantity_Length aDY, const Aspect_TypeOfColorSpace aTypeOfColorSpace=Aspect_TOCS_RGB) | |
| virtual void | BeginDraw () |
| Begins a new page of graphics in the plotter file name. | |
| virtual void | EndDraw (const Standard_Boolean dontFlush=Standard_False) |
| Flush all graphics and Wait after up to date | |
| virtual Standard_Boolean | SizeOfImageFile (const Standard_CString anImageFile, Standard_Integer &aWidth, Standard_Integer &aHeight) const |
| Returns Standard_True and the Image Size in PIXEL if the image file exist and can be computed by the driver, | |
Protected Member Functions | |
| virtual void | Close () |
| ~CGM_Driver () | |
| virtual void | InitializeColorMap (const Handle< Aspect_ColorMap > &aColorMap) |
| virtual void | InitializeTypeMap (const Handle< Aspect_TypeMap > &aTypeMap) |
| virtual void | InitializeWidthMap (const Handle< Aspect_WidthMap > &aWidthMap) |
| virtual void | PlotLineAttrib (const Standard_Integer ColorIndex, const Standard_Integer TypeIndex, const Standard_Integer WidthIndex) |
| retrieve current line attributes | |
| virtual void | PlotPolyAttrib (const Standard_Integer ColorIndex, const Standard_Integer TileIndex, const Standard_Boolean DrawEdge) |
| retrieve current poly attributes | |
| virtual Standard_Boolean | PlotPoint (const Standard_ShortReal X, const Standard_ShortReal Y) |
| virtual Standard_Boolean | PlotSegment (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal X2, const Standard_ShortReal Y2) |
| virtual Standard_Boolean | PlotPolyline (const Standard_Address xArray, const Standard_Address yArray, const Standard_Address nPts, const Standard_Integer nParts) |
| virtual Standard_Boolean | PlotPolygon (const Standard_Address xArray, const Standard_Address yArray, const Standard_Address nPts, const Standard_Integer nParts) |
| virtual Standard_Boolean | PlotArc (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal anXradius, const Standard_ShortReal anYradius, const Standard_ShortReal sAngle, const Standard_ShortReal oAngle) |
| virtual Standard_Boolean | PlotPolyArc (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal anXradius, const Standard_ShortReal anYradius, const Standard_ShortReal sAngle, const Standard_ShortReal oAngle) |
| virtual Standard_Boolean | PlotImage (const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_ShortReal aWidth, const Standard_ShortReal aHeight, const Standard_ShortReal aScale, const Standard_CString anImageFile, const Standard_Address anArrayOfPixels, const Standard_Integer aLineIndex=-1) |
| CGM_Driver::CGM_Driver | ( | const Handle< PlotMgt_Plotter > & | aPlotter, |
| const Standard_CString | aName, | ||
| const Quantity_Length | aDX, | ||
| const Quantity_Length | aDY, | ||
| const Aspect_TypeOfColorSpace | aTypeOfColorSpace = Aspect_TOCS_RGB |
||
| ) |
| CGM_Driver::CGM_Driver | ( | const Standard_CString | aName, |
| const Quantity_Length | aDX, | ||
| const Quantity_Length | aDY, | ||
| const Aspect_TypeOfColorSpace | aTypeOfColorSpace = Aspect_TOCS_RGB |
||
| ) |
| CGM_Driver::~CGM_Driver | ( | ) | [inline, protected] |
| virtual void CGM_Driver::BeginDraw | ( | ) | [virtual] |
Implements PlotMgt_PlotterDriver.
| virtual void CGM_Driver::Close | ( | ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual void CGM_Driver::EndDraw | ( | const Standard_Boolean | Synchronize = Standard_False | ) | [virtual] |
Implements Aspect_Driver.
| virtual void CGM_Driver::InitializeColorMap | ( | const Handle< Aspect_ColorMap > & | aColorMap | ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual void CGM_Driver::InitializeTypeMap | ( | const Handle< Aspect_TypeMap > & | aTypeMap | ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual void CGM_Driver::InitializeWidthMap | ( | const Handle< Aspect_WidthMap > & | aWidthMap | ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual Standard_Boolean CGM_Driver::PlotArc | ( | const Standard_ShortReal | X, |
| const Standard_ShortReal | Y, | ||
| const Standard_ShortReal | anXradius, | ||
| const Standard_ShortReal | anYradius, | ||
| const Standard_ShortReal | sAngle, | ||
| const Standard_ShortReal | oAngle | ||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual Standard_Boolean CGM_Driver::PlotImage | ( | const Standard_ShortReal | aX, |
| const Standard_ShortReal | aY, | ||
| const Standard_ShortReal | aWidth, | ||
| const Standard_ShortReal | aHeight, | ||
| const Standard_ShortReal | aScale, | ||
| const Standard_CString | anImageFile, | ||
| const Standard_Address | anArrayOfPixels, | ||
| const Standard_Integer | aLineIndex = -1 |
||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual void CGM_Driver::PlotLineAttrib | ( | const Standard_Integer | ColorIndex, |
| const Standard_Integer | TypeIndex, | ||
| const Standard_Integer | WidthIndex | ||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual Standard_Boolean CGM_Driver::PlotPoint | ( | const Standard_ShortReal | X, |
| const Standard_ShortReal | Y | ||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual Standard_Boolean CGM_Driver::PlotPolyArc | ( | const Standard_ShortReal | X, |
| const Standard_ShortReal | Y, | ||
| const Standard_ShortReal | anXradius, | ||
| const Standard_ShortReal | anYradius, | ||
| const Standard_ShortReal | sAngle, | ||
| const Standard_ShortReal | oAngle | ||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual void CGM_Driver::PlotPolyAttrib | ( | const Standard_Integer | ColorIndex, |
| const Standard_Integer | TileIndex, | ||
| const Standard_Boolean | DrawEdge | ||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual Standard_Boolean CGM_Driver::PlotPolygon | ( | const Standard_Address | xArray, |
| const Standard_Address | yArray, | ||
| const Standard_Address | nPts, | ||
| const Standard_Integer | nParts | ||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual Standard_Boolean CGM_Driver::PlotPolyline | ( | const Standard_Address | xArray, |
| const Standard_Address | yArray, | ||
| const Standard_Address | nPts, | ||
| const Standard_Integer | nParts | ||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual Standard_Boolean CGM_Driver::PlotSegment | ( | const Standard_ShortReal | X1, |
| const Standard_ShortReal | Y1, | ||
| const Standard_ShortReal | X2, | ||
| const Standard_ShortReal | Y2 | ||
| ) | [protected, virtual] |
Reimplemented from PlotMgt_PlotterDriver.
| virtual Standard_Boolean CGM_Driver::SizeOfImageFile | ( | const Standard_CString | anImageFile, |
| Standard_Integer & | aWidth, | ||
| Standard_Integer & | aHeight | ||
| ) | const [virtual] |
Reimplemented from PlotMgt_PlotterDriver.
1.7.4