#include <PlotMgt_PlotterDriver.hxx>
Inheritance diagram for PlotMgt_PlotterDriver:
Public Member Functions | |
virtual Standard_EXPORT void | BeginDraw ()=0 |
Begins a new page of graphics in the plotter file name. . | |
virtual Standard_EXPORT void | Close () |
~PlotMgt_PlotterDriver () | |
virtual Standard_EXPORT Standard_Boolean | Spool (const Aspect_PlotMode aPlotMode=Aspect_PM_FILEONLY, const Standard_CString aReserved1=NULL, const Standard_Boolean aReserved2=Standard_False) |
virtual Standard_EXPORT void | SetLineAttrib (const Standard_Integer ColorIndex, const Standard_Integer TypeIndex, const Standard_Integer WidthIndex) |
virtual Standard_EXPORT void | SetTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer FontIndex) |
virtual Standard_EXPORT void | SetTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer FontIndex, const Quantity_PlaneAngle aSlant, const Quantity_Factor aHScale, const Quantity_Factor aWScale, const Standard_Boolean isUnderlined=Standard_False) |
virtual Standard_EXPORT void | SetPolyAttrib (const Standard_Integer ColorIndex, const Standard_Integer TileIndex, const Standard_Boolean DrawEdge=Standard_False) |
virtual Standard_EXPORT void | SetMarkerAttrib (const Standard_Integer ColorIndex, const Standard_Integer WidthIndex, const Standard_Boolean FillMarker=Standard_False) |
Standard_EXPORT void | SetPixelSize (const Standard_Real aSize) |
virtual Standard_EXPORT void | BeginPolyline (const Standard_Integer aNumber) |
Begin an incremental polyline primitive of <anumber> of points . Warning: Points must be added by the the DrawPoint() method. . | |
virtual Standard_EXPORT void | BeginPolygon (const Standard_Integer aNumber) |
Begin an incremental polygon primitive of <anumber> of points . Warning: Points must be added by the the DrawPoint() method. . | |
virtual Standard_EXPORT void | BeginSegments () |
Begin a set of segments. Warning: Segments must be added by the DrawSegment() method. . | |
virtual Standard_EXPORT void | BeginArcs () |
Begin a set of circles or ellipses. Warning: Arcs must be added by the DrawArc() methods. . | |
virtual Standard_EXPORT void | BeginPolyArcs () |
Begin a set of polygon circles or ellipses. Warning: Arcs must be added by the DrawPolyArc() methods. . | |
virtual Standard_EXPORT void | BeginMarkers () |
Begin a set of markers. Warning: Markers must be added by the DrawMarker() method. . | |
virtual Standard_EXPORT void | BeginPoints () |
Begin a set of points. Warning: Points must be added by the DrawPoint() method. . | |
virtual Standard_EXPORT void | ClosePrimitive () |
Close the last Begining primitive . | |
virtual Standard_EXPORT Standard_Boolean | IsKnownImage (const Handle(Standard_Transient)&anImage) |
virtual Standard_EXPORT 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, . | |
virtual Standard_EXPORT void | ClearImage (const Handle(Standard_Transient)&anImageId) |
virtual Standard_EXPORT void | ClearImageFile (const Standard_CString anImageFile) |
Clears the image associated with the image file . . | |
virtual Standard_EXPORT void | DrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY) |
Draws the image in <me>. <ax>, <ay> is the center of the image. Image center must be defined in DPU space. . | |
virtual Standard_EXPORT void | DrawImageFile (const Standard_CString anImageFile, const Standard_ShortReal aX, const Standard_ShortReal aY, const Quantity_Factor aScale=1.0) |
Draws the image file in <me>. <ax>, <ay> is the center of the image. Image center must be defined in DPU space. . | |
virtual Standard_EXPORT void | FillAndDrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_Integer aWidth, const Standard_Integer aHeight, const Standard_Address anArrayOfPixels) |
Draw a complete image . Image size must be defined in DPU space> . | |
virtual Standard_EXPORT void | FillAndDrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_Integer anIndexOfLine, const Standard_Integer aWidth, const Standard_Integer aHeight, const Standard_Address anArrayOfPixels) |
Fills a line of the Image . . | |
Standard_EXPORT void | DrawPoint (const Standard_ShortReal X, const Standard_ShortReal Y) |
Draws a 1 PIXEL point depending of the SetMarkerAttrib() . | |
Standard_EXPORT void | DrawSegment (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal X2, const Standard_ShortReal Y2) |
Draw a segment depending of the SetLineAttrib() attributes. . | |
Standard_EXPORT void | DrawRectangle (const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_ShortReal aDX, const Standard_ShortReal aDY) |
Draw a rectangle. aX,aY is start point aDX , aDY are horizontal and vertical dimensions . | |
Standard_EXPORT void | DrawPolyline (const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY) |
Draw a polyline depending of the SetLineAttrib() attributes. . | |
Standard_EXPORT void | DrawPolygon (const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY) |
Draw a polygon depending of the SetPolyAttrib() attributes. . | |
Standard_EXPORT Standard_Boolean | DrawArc (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal anXradius, const Standard_ShortReal anYradius, const Standard_ShortReal aStartAngle=0.0, const Standard_ShortReal anOpenAngle=6.283185) |
Draws an Ellipsoid arc of center <X,Y> and Radius . | |
Standard_EXPORT Standard_Boolean | DrawPolyArc (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal anXradius, const Standard_ShortReal anYradius, const Standard_ShortReal aStartAngle=0.0, const Standard_ShortReal anOpenAngle=6.283185) |
Draws an filled Ellipsoid arc of center <X,Y> and Radius . | |
Standard_EXPORT void | DrawMarker (const Standard_Integer aMarker, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal Width, const Standard_ShortReal Height, const Standard_ShortReal Angle=0.0) |
Draws the marker <amarker> . | |
Standard_EXPORT void | DrawText (const TCollection_ExtendedString &aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID) |
Draws a text depending of the SetTextAttrib() attributes. Warning: Coordinates must be defined in DWU space. . | |
Standard_EXPORT void | DrawText (const Standard_CString aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID) |
Draws a text depending of the SetTextAttrib() attributes. Warning: Coordinates must be defined in DWU space. . | |
Standard_EXPORT void | DrawPolyText (const TCollection_ExtendedString &aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMargin=0.1, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID) |
Draws an framed text depending of the SetTextAttrib() and SetPolyAttrib() attributes. Warning: Coordinates must be defined in DWU space. <amarge> defines the ratio of the space between the polygon borders and the bounding box of the text and depending of the height of the text. . | |
Standard_EXPORT void | DrawPolyText (const Standard_CString aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMargin=0.1, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID) |
Draws an framed text depending of the SetTextAttrib() and SetPolyAttrib() attributes. Warning: Coordinates must be defined in DWU space. <amarge> defines the ratio of the space between the polygon borders and the bounding box of the text and depending of the height of the text. . | |
Standard_EXPORT Handle_PlotMgt_Plotter | Plotter () const |
Standard_EXPORT TCollection_AsciiString | PlotFileName () const |
Standard_EXPORT TCollection_AsciiString | DrawingName () const |
Standard_EXPORT TCollection_AsciiString | SpoolDirectory () const |
virtual Standard_EXPORT void | WorkSpace (Quantity_Length &Width, Quantity_Length &Height) const |
Returns the Available WorkSpace in DWU coordinates . | |
virtual Standard_EXPORT Quantity_Length | Convert (const Standard_Integer PV) const |
Returns the DWU value depending of the PIXEL value. . | |
virtual Standard_EXPORT Standard_Integer | Convert (const Quantity_Length DV) const |
Returns the PIXEL value depending of the DWU value. . | |
virtual Standard_EXPORT void | Convert (const Standard_Integer PX, const Standard_Integer PY, Quantity_Length &DX, Quantity_Length &DY) const |
Returns the DWU position depending of the PIXEL position. . | |
virtual Standard_EXPORT void | Convert (const Quantity_Length DX, const Quantity_Length DY, Standard_Integer &PX, Standard_Integer &PY) const |
Returns the PIXEL position depending of the DWU position . . | |
Standard_EXPORT void | LineAttrib (Standard_Integer &ColorIndex, Standard_Integer &TypeIndex, Standard_Integer &WidthIndex) const |
Standard_EXPORT void | PolyAttrib (Standard_Integer &ColorIndex, Standard_Integer &TileIndex, Standard_Boolean &EdgeFlag) const |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Member Functions | |
Standard_EXPORT | PlotMgt_PlotterDriver (const Handle(PlotMgt_Plotter)&aPlotter, const Standard_CString aFileName, const Standard_Boolean fCreateFile=Standard_False) |
Standard_EXPORT | PlotMgt_PlotterDriver (const Standard_CString aFileName, const Standard_Boolean fCreateFile=Standard_False) |
virtual Standard_EXPORT void | CreateDriverColorMap () |
virtual Standard_EXPORT void | CreateDriverTypeMap () |
virtual Standard_EXPORT void | CreateDriverWidthMap () |
virtual Standard_EXPORT void | CreateDriverMarkMap () |
virtual Standard_EXPORT void | InitializeColorMap (const Handle(Aspect_ColorMap)&aColorMap) |
virtual Standard_EXPORT void | InitializeTypeMap (const Handle(Aspect_TypeMap)&aTypeMap) |
virtual Standard_EXPORT void | InitializeWidthMap (const Handle(Aspect_WidthMap)&aWidthMap) |
virtual Standard_EXPORT void | InitializeFontMap (const Handle(Aspect_FontMap)&aFontMap) |
virtual Standard_EXPORT void | InitializeMarkMap (const Handle(Aspect_MarkMap)&aFontMap) |
Standard_EXPORT void | SetPlotter (const Handle(PlotMgt_Plotter)&aPlotter) |
Set the plotter to be used by Spool() method. Fail if Plotter is already defined . | |
virtual Standard_EXPORT void | PlotLineAttrib (const Standard_Integer ColorIndex, const Standard_Integer TypeIndex, const Standard_Integer WidthIndex) |
retrieve current line attributes | |
virtual Standard_EXPORT void | PlotPolyAttrib (const Standard_Integer ColorIndex, const Standard_Integer TileIndex, const Standard_Boolean DrawEdge) |
retrieve current poly attributes | |
virtual Standard_EXPORT Standard_Boolean | PlotPoint (const Standard_ShortReal X, const Standard_ShortReal Y) |
virtual Standard_EXPORT Standard_Boolean | PlotSegment (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal X2, const Standard_ShortReal Y2) |
virtual Standard_EXPORT Standard_Boolean | PlotRectangle (const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_ShortReal aDX, const Standard_ShortReal aDY, const Standard_ShortReal aAngle=0.0) |
virtual Standard_EXPORT Standard_Boolean | PlotPolyline (const Standard_Address xArray, const Standard_Address yArray, const Standard_Address nPts, const Standard_Integer nParts) |
virtual Standard_EXPORT Standard_Boolean | PlotPolygon (const Standard_Address xArray, const Standard_Address yArray, const Standard_Address nPts, const Standard_Integer nParts) |
virtual Standard_EXPORT 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_EXPORT 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_EXPORT Standard_Boolean | PlotMarker (const Standard_Integer aMarker, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal Width, const Standard_ShortReal Height, const Standard_ShortReal Angle) |
virtual Standard_EXPORT Standard_Boolean | PlotText (const TCollection_ExtendedString &aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal anAngle, const Aspect_TypeOfText aType) |
virtual Standard_EXPORT Standard_Boolean | PlotText (const Standard_CString aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal anAngle, const Aspect_TypeOfText aType) |
virtual Standard_EXPORT Standard_Boolean | PlotPolyText (const TCollection_ExtendedString &aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMargin, const Standard_ShortReal anAngle, const Aspect_TypeOfText aType) |
virtual Standard_EXPORT Standard_Boolean | PlotPolyText (const Standard_CString aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMargin, const Standard_ShortReal anAngle, const Aspect_TypeOfText aType) |
virtual Standard_EXPORT 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) |
Standard_EXPORT Aspect_FStream | Cout () const |
virtual Standard_EXPORT Standard_Boolean | DrawCurveCapable () const |
Should be called from PlotMgt_TextManager::Curveto() method to check if the driver is capable to draw curves. . | |
Protected Attributes | |
Standard_Real | myPixelSize |
TCollection_AsciiString | myDrawingName |
TCollection_AsciiString | myFileName |
Standard_ShortReal | myWidth |
Standard_ShortReal | myHeight |
Standard_ShortReal | myPaperMargin |
Aspect_TypeOfColorSpace | myTypeOfColorSpace |
Standard_Integer | myColorIndex |
Standard_Integer | myTypeIndex |
Standard_Integer | myWidthIndex |
Standard_Integer | myFontIndex |
Standard_Integer | myLineColorIndex |
Standard_Integer | myLineTypeIndex |
Standard_Integer | myLineWidthIndex |
Standard_Integer | myPolyColorIndex |
Standard_Integer | myPolyTileIndex |
Standard_Boolean | myPolyEdgeFlag |
Standard_Integer | myMarkerColorIndex |
Standard_Integer | myMarkerWidthIndex |
Standard_Boolean | myMarkerFillFlag |
Standard_Integer | myTextColorIndex |
Standard_Integer | myTextFontIndex |
Standard_Real | myTextHScale |
Standard_Real | myTextWScale |
Standard_Real | myTextSlant |
Standard_Real | myTextMinHeight |
Standard_Boolean | myTextIsUnderlined |
Standard_Boolean | myCapsHeight |
Aspect_TypeOfPrimitive | myPrimitiveType |
Standard_Integer | myPrimitiveLength |
TShort_Array1OfShortReal | myPrimitiveX |
TShort_Array1OfShortReal | myPrimitiveY |
Handle_PlotMgt_HListOfMFTFonts | myMFTFonts |
Handle_PlotMgt_HListOfMFTSizes | myMFTSizes |
Handle_PlotMgt_TextManager | myTextManager |
Handle_Aspect_ColorMap | myDriverColorMap |
Handle_Aspect_TypeMap | myDriverTypeMap |
Handle_Aspect_WidthMap | myDriverWidthMap |
Handle_Aspect_MarkMap | myDriverMarkMap |
Private Member Functions | |
virtual Standard_EXPORT Standard_ShortReal | MapX (const Standard_ShortReal aShortReal) const |
virtual Standard_EXPORT Standard_ShortReal | MapY (const Standard_ShortReal aShortReal) const |
Private Attributes | |
Aspect_FStream | myFStream |
Handle_PlotMgt_Plotter | myPlotter |
Standard_Boolean | myPlotterIsDefined |
|
|
|
|
|
|
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implemented in CGM_Driver, PlotMgt_ImageDriver, PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Reimplemented in CGM_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
|
|
|
|
|
|
|
|
|
|
Implements Aspect_Driver. |
|
Reimplemented in PS_Driver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
|
|
Implements Aspect_Driver. |
|
Implements Aspect_Driver. |
|
Implements Aspect_Driver. |
|
Implements Aspect_Driver. |
|
Implements Aspect_Driver. |
|
|
|
Implements Aspect_Driver. |
|
|
|
Implements Aspect_Driver. |
|
|
|
Implements Aspect_Driver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Reimplemented from Aspect_Driver. Reimplemented in CGM_Driver, PlotMgt_ImageDriver, PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
|
|
Reimplemented in PS_Driver. |
|
Reimplemented in PS_Driver. |
|
Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
|
|
Reimplemented in CGM_Driver, and PS_Driver. |
|
Reimplemented in CGM_Driver, and PS_Driver. |
|
Reimplemented in PS_Driver, and WNT_DDriver. |
|
Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
Reimplemented in CGM_Driver. |
|
Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
Reimplemented in PS_Driver, and WNT_DDriver. |
|
Reimplemented in PS_Driver, and WNT_DDriver. |
|
|
|
Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
|
|
Reimplemented in PS_Driver, and WNT_DDriver. |
|
Reimplemented in PS_Driver, and WNT_DDriver. |
|
|
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
|
|
|
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in PS_Driver, and WNT_DDriver. |
|
Implements Aspect_Driver. Reimplemented in CGM_Driver, PS_Driver, and WNT_DDriver. |
|
Reimplemented in WNT_DDriver. |
|
|
|
Implements Aspect_Driver. Reimplemented in WNT_DDriver. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in WNT_DDriver. |
|
Reimplemented in WNT_DDriver. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|