Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes
Aspect_WindowDriver Class Referenceabstract

defines the WINDOW oriented output driver.
Warning: A limited number of mono attribute and translatable BUFFERS can be defined
for retaining a lot of primitives for DRAGGING .

More...

#include <Aspect_WindowDriver.hxx>

Inheritance diagram for Aspect_WindowDriver:
Inheritance graph
[legend]

Public Member Functions

virtual 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
More...
 
virtual Aspect_TypeOfResize ResizeSpace ()=0
 
Handle_Aspect_Window Window () const
 
virtual 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.
More...
 
virtual 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> , <br>

Defines the DWU coordinates of the pivot point for all primitives
More...

 
virtual void CloseBuffer (const Standard_Integer aRetainBuffer) const =0
 Clear & Deallocate the retain buffer <aRetainBuffer>.
More...
 
virtual void ClearBuffer (const Standard_Integer aRetainBuffer) const =0
 Erase & Clear ALL primitives retains in the buffer <aRetainBuffer>.
More...
 
virtual void DrawBuffer (const Standard_Integer aRetainBuffer) const =0
 
 Draw ALL primitives retains in the buffer <aRetainBuffer>. <br>

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) .
More...

 
virtual void EraseBuffer (const Standard_Integer aRetainBuffer) const =0
 Erase ALL primitives retains in the buffer <aRetainBuffer>.
More...
 
virtual 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
More...
 
virtual 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
More...
 
virtual 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
More...
 
virtual Standard_Boolean BufferIsOpen (const Standard_Integer aRetainBuffer) const =0
 Returns TRUE if the retain buffer <aRetainBuffer> is enabled
More...
 
virtual 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.
More...
 
virtual Standard_Boolean BufferIsDrawn (const Standard_Integer aRetainBuffer) const =0
 Returns TRUE if the retain buffer s actually displayed at screen.
More...
 
virtual void AngleOfBuffer (const Standard_Integer aRetainBuffer, Quantity_PlaneAngle &anAngle) const =0
 Returns the current buffer rotate angle from the X axis.
More...
 
virtual void ScaleOfBuffer (const Standard_Integer aRetainBuffer, Quantity_Factor &aScaleX, Quantity_Factor &aScaleY) const =0
 Returns the current buffer scale factors.
More...
 
virtual void PositionOfBuffer (const Standard_Integer aRetainBuffer, Standard_ShortReal &aPivotX, Standard_ShortReal &aPivotY) const =0
 Returns the current buffer position.
More...
 
virtual 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).
More...
 
virtual 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).
More...
 
virtual 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
More...
 
virtual void ColorBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0
 Returns the min and max driver virtual color indexs.
More...
 
virtual 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.
More...
 
virtual void FontBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0
 Returns the min and max driver virtual font indexs.
More...
 
virtual 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.
More...
 
virtual void TypeBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0
 Returns the min and max driver virtual type indexs.
More...
 
virtual 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.
More...
 
virtual void WidthBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0
 Returns the min and max driver virtual width indexs.
More...
 
virtual 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.
More...
 
virtual void MarkBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const =0
 Returns the min and max driver virtual marker indexs.
More...
 
virtual 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.
More...
 
- Public Member Functions inherited from Aspect_Driver
virtual void EndDraw (const Standard_Boolean Synchronize=Standard_False)=0
 Flush all graphics and Wait after up to date
More...
 
void SetColorMap (const Handle< Aspect_ColorMap > &aColorMap)
 
void SetTypeMap (const Handle< Aspect_TypeMap > &aTypeMap)
 
void SetWidthMap (const Handle< Aspect_WidthMap > &aWidthMap)
 
void SetFontMap (const Handle< Aspect_FontMap > &aFontMap)
 Sets the current font map to this driver and Enable/Disable
this driver to use MDTV fonts instead system fonts.
More...
 
void SetMarkMap (const Handle< Aspect_MarkMap > &aMarkMap)
 
virtual void SetLineAttrib (const Standard_Integer ColorIndex, const Standard_Integer TypeIndex, const Standard_Integer WidthIndex)=0
 
virtual void SetTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer FontIndex)=0
 
virtual 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)=0
 
virtual void SetPolyAttrib (const Standard_Integer ColorIndex, const Standard_Integer TileIndex, const Standard_Boolean DrawEdge=Standard_False)=0
 
virtual void SetMarkerAttrib (const Standard_Integer ColorIndex, const Standard_Integer WidthIndex, const Standard_Boolean FillMarker=Standard_False)=0
 
virtual Standard_Boolean IsKnownImage (const Handle< Standard_Transient > &anImage)=0
 
virtual Standard_Boolean SizeOfImageFile (const Standard_CString anImageFile, Standard_Integer &aWidth, Standard_Integer &aHeight) const =0
 
virtual void ClearImage (const Handle< Standard_Transient > &anImageId)=0
 
virtual void ClearImageFile (const Standard_CString anImageFile)=0
 
virtual void DrawImage (const Handle< Standard_Transient > &anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY)=0
 
virtual void DrawImageFile (const Standard_CString anImageFile, const Standard_ShortReal aX, const Standard_ShortReal aY, const Quantity_Factor aScale=1.0)=0
 
virtual 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)=0
 Fills a complete Image .
More...
 
virtual 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)=0
 
Fills a line of the Image . <br>

Warning: 0 <= anIndexOfLine < aHeight
anIndexOfLine = 0 must be the first call
More...

 
virtual void DrawPolyline (const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY)=0
 Draw a polyline depending of the SetLineAttrib() attributes.
More...
 
virtual void DrawPolygon (const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY)=0
 Draw a polygon depending of the SetPolyAttrib() attributes.
More...
 
virtual void DrawSegment (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal X2, const Standard_ShortReal Y2)=0
 Draw a segment depending of the SetLineAttrib() attributes.
More...
 
virtual 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)=0
 Draws a text depending of the SetTextAttrib() attributes.
More...
 
virtual void DrawPolyText (const TCollection_ExtendedString &aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMarge=0.1, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID)=0
 
 Draws an framed text depending of the <br>

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.
More...

 
virtual void DrawPoint (const Standard_ShortReal X, const Standard_ShortReal Y)=0
 Draws a 1 PIXEL point depending of the SetMarkerAttrib()
More...
 
virtual 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)=0
 Draws the prevously defined marker <aMarker>
More...
 
virtual 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)=0
 Draws an Ellipsoid arc of center <X,Y> and Radius
More...
 
virtual 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)=0
 Draws an filled Ellipsoid arc of center <X,Y> and Radius
More...
 
virtual void BeginPolyline (const Standard_Integer aNumber)=0
 
Begin an incremental polyline primitive of <aNumber> of points . <br>

Warning: Points must be added by the the DrawPoint() method.
More...

 
virtual void BeginPolygon (const Standard_Integer aNumber)=0
 
Begin an incremental polygon primitive of <aNumber> of points . <br>

Warning: Points must be added by the the DrawPoint() method.
More...

 
virtual void BeginSegments ()=0
 
Begin a set of segments . <br>

Warning: Segments must be added by the DrawSegment() method.
More...

 
virtual void BeginArcs ()=0
 
Begin a set of circles or ellips . <br>

Warning: Arcs must be added by the DrawArc() methods.
More...

 
virtual void BeginPolyArcs ()=0
 
Begin a set of polygon circles or ellips . <br>

Warning: Arcs must be added by the DrawPolyArc() methods.
More...

 
virtual void BeginMarkers ()=0
 
Begin a set of markers . <br>

Warning: Markers must be added by the DrawMarker() method.
More...

 
virtual void BeginPoints ()=0
 
Begin a set of points . <br>

Warning: Points must be added by the DrawPoint() method.
More...

 
virtual void ClosePrimitive ()=0
 Close the last Begining primitive
More...
 
Handle_Aspect_ColorMap ColorMap () const
 
Handle_Aspect_TypeMap TypeMap () const
 
Handle_Aspect_WidthMap WidthMap () const
 
Handle_Aspect_FontMap FontMap () const
 
Handle_Aspect_MarkMap MarkMap () const
 
virtual void WorkSpace (Quantity_Length &Width, Quantity_Length &Heigth) const =0
 Returns the Available WorkSpace in DWU coordinates
More...
 
virtual Quantity_Length Convert (const Standard_Integer PV) const =0
 Returns the DWU value depending of
the PIXEL value.
More...
 
virtual Standard_Integer Convert (const Quantity_Length DV) const =0
 Returns the PIXEL value depending of
the DWU value.
More...
 
virtual void Convert (const Standard_Integer PX, const Standard_Integer PY, Quantity_Length &DX, Quantity_Length &DY) const =0
 Returns the DWU position depending of
the PIXEL position .
More...
 
virtual void Convert (const Quantity_Length DX, const Quantity_Length DY, Standard_Integer &PX, Standard_Integer &PY) const =0
 Returns the PIXEL position depending of
the DWU position .
//! Returns TRUE when the driver must use MDTV fonts
instead system fonts.
More...
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void ShallowDump (Standard_OStream &) const
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Protected Member Functions

 Aspect_WindowDriver (const Handle< Aspect_Window > &aWindow)
 
- Protected Member Functions inherited from Aspect_Driver
 Aspect_Driver ()
 
virtual void InitializeColorMap (const Handle< Aspect_ColorMap > &aColorMap)=0
 
virtual void InitializeTypeMap (const Handle< Aspect_TypeMap > &aTypeMap)=0
 
virtual void InitializeWidthMap (const Handle< Aspect_WidthMap > &aWidthMap)=0
 
virtual void InitializeFontMap (const Handle< Aspect_FontMap > &aFontMap)=0
 
virtual void InitializeMarkMap (const Handle< Aspect_MarkMap > &aMarkMap)=0
 

Protected Attributes

Handle_Aspect_Window MyWindow
 
Aspect_TypeOfDrawMode MyDrawMode
 
Standard_Integer MyRetainBuffer
 

Detailed Description

defines the WINDOW oriented output driver.
Warning: A limited number of mono attribute and translatable BUFFERS can be defined
for retaining a lot of primitives for DRAGGING .

Constructor & Destructor Documentation

Aspect_WindowDriver::Aspect_WindowDriver ( const Handle< Aspect_Window > &  aWindow)
protected

Member Function Documentation

virtual void Aspect_WindowDriver::AngleOfBuffer ( const Standard_Integer  aRetainBuffer,
Quantity_PlaneAngle anAngle 
) const
pure virtual

Returns the current buffer rotate angle from the X axis.

virtual void Aspect_WindowDriver::BeginDraw ( const Standard_Boolean  DoubleBuffer = Standard_True,
const Standard_Integer  aRetainBuffer = 0 
)
pure virtual

Begin graphics and drawn directly to the Window or Pixmap if

virtual Standard_Boolean Aspect_WindowDriver::BufferIsDrawn ( const Standard_Integer  aRetainBuffer) const
pure virtual

Returns TRUE if the retain buffer s actually displayed at screen.

virtual Standard_Boolean Aspect_WindowDriver::BufferIsEmpty ( const Standard_Integer  aRetainBuffer) const
pure virtual

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_Boolean Aspect_WindowDriver::BufferIsOpen ( const Standard_Integer  aRetainBuffer) const
pure virtual

Returns TRUE if the retain buffer <aRetainBuffer> is enabled

virtual void Aspect_WindowDriver::ClearBuffer ( const Standard_Integer  aRetainBuffer) const
pure virtual

Erase & Clear ALL primitives retains in the buffer <aRetainBuffer>.

virtual void Aspect_WindowDriver::CloseBuffer ( const Standard_Integer  aRetainBuffer) const
pure virtual

Clear & Deallocate the retain buffer <aRetainBuffer>.

virtual void Aspect_WindowDriver::ColorBoundIndexs ( Standard_Integer aMinIndex,
Standard_Integer aMaxIndex 
) const
pure virtual

Returns the min and max driver virtual color indexs.

virtual void Aspect_WindowDriver::DrawBuffer ( const Standard_Integer  aRetainBuffer) const
pure virtual

 Draw ALL primitives retains in the buffer <aRetainBuffer>. <br>

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 void Aspect_WindowDriver::EraseBuffer ( const Standard_Integer  aRetainBuffer) const
pure virtual

Erase ALL primitives retains in the buffer <aRetainBuffer>.

virtual void Aspect_WindowDriver::FontBoundIndexs ( Standard_Integer aMinIndex,
Standard_Integer aMaxIndex 
) const
pure virtual

Returns the min and max driver virtual font indexs.

virtual Standard_CString Aspect_WindowDriver::FontSize ( Quantity_PlaneAngle aSlant,
Standard_ShortReal aSize,
Standard_ShortReal aBheight,
const Standard_Integer  aFontIndex = -1 
) const
pure virtual

Returns the font string,slant,size and

virtual Standard_Integer Aspect_WindowDriver::LocalColorIndex ( const Standard_Integer  anIndex) const
pure virtual

Returns the local colormap hardware index from a virtual driver color
index or returns -1 if the index is not defined.

virtual Standard_Integer Aspect_WindowDriver::LocalFontIndex ( const Standard_Integer  anIndex) const
pure virtual

Returns the associated fontmap hardware index from a virtual driver font
index or returns -1 if the index is not defined.

virtual Standard_Integer Aspect_WindowDriver::LocalMarkIndex ( const Standard_Integer  anIndex) const
pure virtual

Returns the local markmap hardware index from a virtual driver marker
index or returns -1 if the index is not defined.

virtual Standard_Integer Aspect_WindowDriver::LocalTypeIndex ( const Standard_Integer  anIndex) const
pure virtual

Returns the associated typemap hardware index from a virtual driver type
index or returns -1 if the index is not defined.

virtual Standard_Integer Aspect_WindowDriver::LocalWidthIndex ( const Standard_Integer  anIndex) const
pure virtual

Returns the associated widthmap hardware index from a virtual driver width
index or returns -1 if the index is not defined.

virtual void Aspect_WindowDriver::MarkBoundIndexs ( Standard_Integer aMinIndex,
Standard_Integer aMaxIndex 
) const
pure virtual

Returns the min and max driver virtual marker indexs.

virtual void Aspect_WindowDriver::MoveBuffer ( const Standard_Integer  aRetainBuffer,
const Standard_ShortReal  aPivotX = 0.0,
const Standard_ShortReal  aPivotY = 0.0 
) const
pure virtual

Erase , Translate and reDraw ALL primitives retains in the buffer

virtual Standard_Boolean Aspect_WindowDriver::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 
)
pure virtual

 Allocate the retain buffer <aRetainBuffer> , <br>

Defines the DWU coordinates of the pivot point for all primitives

virtual void Aspect_WindowDriver::PositionOfBuffer ( const Standard_Integer  aRetainBuffer,
Standard_ShortReal aPivotX,
Standard_ShortReal aPivotY 
) const
pure virtual

Returns the current buffer position.

virtual Aspect_TypeOfResize Aspect_WindowDriver::ResizeSpace ( )
pure virtual
virtual void Aspect_WindowDriver::RotateBuffer ( const Standard_Integer  aRetainBuffer,
const Quantity_PlaneAngle  anAngle = 0.0 
) const
pure virtual

Erase , Rotate the buffer from the Pivot point and reDraw ALL primitives

virtual void Aspect_WindowDriver::ScaleBuffer ( const Standard_Integer  aRetainBuffer,
const Quantity_Factor  aScaleX = 1.0,
const Quantity_Factor  aScaleY = 1.0 
) const
pure virtual

Erase , Scale the buffer from the Pivot point and reDraw ALL primitives

virtual void Aspect_WindowDriver::ScaleOfBuffer ( const Standard_Integer  aRetainBuffer,
Quantity_Factor aScaleX,
Quantity_Factor aScaleY 
) const
pure virtual

Returns the current buffer scale factors.

virtual void Aspect_WindowDriver::SetDrawMode ( const Aspect_TypeOfDrawMode  aMode)
pure virtual

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 void Aspect_WindowDriver::TextSize ( const TCollection_ExtendedString aText,
Standard_ShortReal aWidth,
Standard_ShortReal aHeight,
const Standard_Integer  aFontIndex = -1 
) const
pure virtual

Returns the TEXT size in DWU space depending
of the required FontIndex if aFontIndex is >= 0
or the current FontIndex if < 0 (default).

virtual void Aspect_WindowDriver::TextSize ( const TCollection_ExtendedString aText,
Standard_ShortReal aWidth,
Standard_ShortReal aHeight,
Standard_ShortReal anXoffset,
Standard_ShortReal anYoffset,
const Standard_Integer  aFontIndex = -1 
) const
pure virtual

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 void Aspect_WindowDriver::TypeBoundIndexs ( Standard_Integer aMinIndex,
Standard_Integer aMaxIndex 
) const
pure virtual

Returns the min and max driver virtual type indexs.

virtual void Aspect_WindowDriver::WidthBoundIndexs ( Standard_Integer aMinIndex,
Standard_Integer aMaxIndex 
) const
pure virtual

Returns the min and max driver virtual width indexs.

Handle_Aspect_Window Aspect_WindowDriver::Window ( ) const

Field Documentation

Aspect_TypeOfDrawMode Aspect_WindowDriver::MyDrawMode
protected
Standard_Integer Aspect_WindowDriver::MyRetainBuffer
protected
Handle_Aspect_Window Aspect_WindowDriver::MyWindow
protected

The documentation for this class was generated from the following file: