#include <Aspect_WindowDriver.hxx>
Inheritance diagram for Aspect_WindowDriver:
Public Member Functions | |
virtual Standard_EXPORT void | BeginDraw (const Standard_Boolean DoubleBuffer=Standard_True, const Standard_Integer aRetainBuffer=0)=0 |
Begin graphics and drawn directly to the Window or Pixmap if . | |
virtual Standard_EXPORT Aspect_TypeOfResize | ResizeSpace ()=0 |
Standard_EXPORT Handle_Aspect_Window | Window () const |
virtual Standard_EXPORT void | SetDrawMode (const Aspect_TypeOfDrawMode aMode)=0 |
Change the current drawing mode of the Driver XW_REPLACE : the primitive is drawn with his defined color. XW_ERASE : the primitive is erased from the window. XW_XOR : the primitive is xored to the window. XW_XORLIGHT: the primitive is xored depending of the current highlight and background colors. . | |
virtual Standard_EXPORT Standard_Boolean | OpenBuffer (const Standard_Integer aRetainBuffer, const Standard_ShortReal aPivotX=0.0, const Standard_ShortReal aPivotY=0.0, const Standard_Integer aWidthIndex=0, const Standard_Integer aColorIndex=0, const Standard_Integer aFontIndex=0, const Aspect_TypeOfDrawMode aDrawMode=Aspect_TODM_REPLACE)=0 |
Allocate the retain buffer <aretainbuffer> , Defines the DWU coordinates of the pivot point for all primitives . | |
virtual Standard_EXPORT void | CloseBuffer (const Standard_Integer aRetainBuffer) const =0 |
Clear & Deallocate the retain buffer <aretainbuffer>. . | |
virtual Standard_EXPORT void | ClearBuffer (const Standard_Integer aRetainBuffer) const =0 |
Erase & Clear ALL primitives retains in the buffer <aretainbuffer>. . | |
virtual Standard_EXPORT void | DrawBuffer (const Standard_Integer aRetainBuffer) const =0 |
Draw ALL primitives retains in the buffer <aretainbuffer>. Warning: Note that the aspect of a retain buffer drawing is mono-colored with the current buffer Attributes and Depending of the DoubleBuffer state flag at the BeginDraw() buffer time, when DB is TRUE,an XOR method is use for drawing and erasing buffers in the same way.In this case,some color side effect can occurs depending of the traversal primitive colors and the supported hardware. when DB is FALSE and the background drawing has been generated with DB at TRUE,no color side effect occurs because the DB is used for restoring the drawing context at EraseBuffer() time,this is more powerfull for the drawing quality excepted for large buffers (flicking) . . | |
virtual Standard_EXPORT void | EraseBuffer (const Standard_Integer aRetainBuffer) const =0 |
Erase ALL primitives retains in the buffer <aretainbuffer>. . | |
virtual Standard_EXPORT void | MoveBuffer (const Standard_Integer aRetainBuffer, const Standard_ShortReal aPivotX=0.0, const Standard_ShortReal aPivotY=0.0) const =0 |
Erase , Translate and reDraw ALL primitives retains in the buffer . | |
virtual Standard_EXPORT void | ScaleBuffer (const Standard_Integer aRetainBuffer, const Quantity_Factor aScaleX=1.0, const Quantity_Factor aScaleY=1.0) const =0 |
Erase , Scale the buffer from the Pivot point and reDraw ALL primitives . | |
virtual Standard_EXPORT void | RotateBuffer (const Standard_Integer aRetainBuffer, const Quantity_PlaneAngle anAngle=0.0) const =0 |
Erase , Rotate the buffer from the Pivot point and reDraw ALL primitives . | |
virtual Standard_EXPORT Standard_Boolean | BufferIsOpen (const Standard_Integer aRetainBuffer) const =0 |
Returns TRUE if the retain buffer <aretainbuffer> is enabled . | |
virtual Standard_EXPORT Standard_Boolean | BufferIsEmpty (const Standard_Integer aRetainBuffer) const =0 |
Returns TRUE if the retain buffer has not been opened or empty. Returns FALSE if a lot of primitives have been stored inside because a BeginDraw(..,<aretainbuffer>) has been done previously. . | |
virtual Standard_EXPORT Standard_Boolean | BufferIsDrawn (const Standard_Integer aRetainBuffer) const =0 |
Returns TRUE if the retain buffer s actually displayed at screen. . | |
virtual Standard_EXPORT void | AngleOfBuffer (const Standard_Integer aRetainBuffer, Quantity_PlaneAngle &anAngle) const =0 |
Returns the current buffer rotate angle from the X axis. . | |
virtual Standard_EXPORT void | ScaleOfBuffer (const Standard_Integer aRetainBuffer, Quantity_Factor &aScaleX, Quantity_Factor &aScaleY) const =0 |
Returns the current buffer scale factors. . | |
virtual Standard_EXPORT void | PositionOfBuffer (const Standard_Integer aRetainBuffer, Standard_ShortReal &aPivotX, Standard_ShortReal &aPivotY) const =0 |
Returns the current buffer position. . | |
virtual Standard_EXPORT void | TextSize (const TCollection_ExtendedString &aText, Standard_ShortReal &aWidth, Standard_ShortReal &aHeight, const Standard_Integer aFontIndex=-1) const =0 |
Returns the TEXT size in DWU space depending of the required FontIndex if aFontIndex is >= 0 or the current FontIndex if < 0 (default). . | |
virtual Standard_EXPORT void | TextSize (const TCollection_ExtendedString &aText, Standard_ShortReal &aWidth, Standard_ShortReal &aHeight, Standard_ShortReal &anXoffset, Standard_ShortReal &anYoffset, const Standard_Integer aFontIndex=-1) const =0 |
Returns the TEXT size and offsets in DWU space depending of the required FontIndex if aFontIndex is >= 0 or the current FontIndex if < 0 (default). . | |
virtual Standard_EXPORT Standard_CString | FontSize (Quantity_PlaneAngle &aSlant, Standard_ShortReal &aSize, Standard_ShortReal &aBheight, const Standard_Integer aFontIndex=-1) const =0 |
Returns the font string,slant,size and . | |
virtual Standard_EXPORT void | ColorBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0 |
Returns the min and max driver virtual color indexs. . | |
virtual Standard_EXPORT Standard_Integer | LocalColorIndex (const Standard_Integer anIndex) const =0 |
Returns the local colormap hardware index from a virtual driver color index or returns -1 if the index is not defined. . | |
virtual Standard_EXPORT void | FontBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0 |
Returns the min and max driver virtual font indexs. . | |
virtual Standard_EXPORT Standard_Integer | LocalFontIndex (const Standard_Integer anIndex) const =0 |
Returns the associated fontmap hardware index from a virtual driver font index or returns -1 if the index is not defined. . | |
virtual Standard_EXPORT void | TypeBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0 |
Returns the min and max driver virtual type indexs. . | |
virtual Standard_EXPORT Standard_Integer | LocalTypeIndex (const Standard_Integer anIndex) const =0 |
Returns the associated typemap hardware index from a virtual driver type index or returns -1 if the index is not defined. . | |
virtual Standard_EXPORT void | WidthBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0 |
Returns the min and max driver virtual width indexs. . | |
virtual Standard_EXPORT Standard_Integer | LocalWidthIndex (const Standard_Integer anIndex) const =0 |
Returns the associated widthmap hardware index from a virtual driver width index or returns -1 if the index is not defined. . | |
virtual Standard_EXPORT void | MarkBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0 |
Returns the min and max driver virtual marker indexs. . | |
virtual Standard_EXPORT Standard_Integer | LocalMarkIndex (const Standard_Integer anIndex) const =0 |
Returns the local markmap hardware index from a virtual driver marker index or returns -1 if the index is not defined. . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Member Functions | |
Standard_EXPORT | Aspect_WindowDriver (const Handle(Aspect_Window)&aWindow) |
Protected Attributes | |
Handle_Aspect_Window | MyWindow |
Aspect_TypeOfDrawMode | MyDrawMode |
Standard_Integer | MyRetainBuffer |
|
|
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Reimplemented from Aspect_Driver. Reimplemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
Implemented in WNT_WDriver, and Xw_Driver. |
|
|
|
|
|
|
|
|