Open CASCADE Technology 6.5.2
Public Member Functions | Protected Member Functions | Protected Attributes
Xw_GraphicDevice Class Reference

This class defines an X11 Graphic Device
Warning: An Graphic Device is defined by :
More...

#include <Xw_GraphicDevice.hxx>

Inheritance diagram for Xw_GraphicDevice:
Inheritance graph
[legend]

Public Member Functions

 Xw_GraphicDevice (const Standard_CString Connection, const Xw_TypeOfMapping Mapping=Xw_TOM_COLORCUBE, const Standard_Integer Ncolors=0, const Standard_Boolean UseDefault=Standard_True)
 Create an Graphic Device on the specified Connection
by using ALL screen defaults if possible
(i.e:Default Colormap)
Warning: Raises if the Device is Badly defined

virtual void Destroy ()
 Destroies all ressources attached to the GraphicDevice
(Windows, Colormaps, ....)
Warning: Raises if the Device is Badly defined

 ~Xw_GraphicDevice ()
Handle_Xw_ColorMap ColorMap2D () const
 Returns the 2D oriented Device color map.

Xw_TypeOfVisual VisualClass2D () const
 Returns the 2D oriented Visual Class.

Xw_TypeOfVisual OverlayVisualClass2D () const
 Returns the 2D oriented overlay Visual Class.

Handle_Xw_ColorMap ColorMap3D () const
 Returns the 3D oriented Device color map.

Xw_TypeOfVisual VisualClass3D () const
 Returns the 3D oriented Visual Class.

Xw_TypeOfVisual OverlayVisualClass3D () const
 Returns the 3D oriented overlay Visual Class.

Handle_Xw_TypeMap TypeMap () const
 Returns the Device Type map.

Handle_Xw_WidthMap WidthMap () const
 Returns the Device Width map.

Handle_Xw_FontMap FontMap () const
 Returns the Device Font map.

Handle_Xw_MarkMap MarkMap () const
 Returns the Device Mark map.

Standard_CString Display () const
 Returns the Device connection string.

Standard_Address XDisplay () const
 Returns the Device Display Address.

void DisplaySize (Standard_Integer &Width, Standard_Integer &Height) const
 Returns the Display size in PIXEL
Warning: Raises if the connection is not defined properly

void DisplaySize (Quantity_Length &Width, Quantity_Length &Height) const
 Returns the Display size in METER
Warning: Raises if the connection is not defined properly

Standard_Integer PlaneLayer (const Standard_Integer aVisualID) const
 Returns the plane layer ID from a visual ID
Warning: Raises if the connection is not defined properly

virtual Handle_Aspect_GraphicDriver GraphicDriver () const

Protected Member Functions

 Xw_GraphicDevice ()
void InitMaps (const Standard_CString Connection, const Xw_TypeOfMapping Mapping, const Standard_Integer Ncolors, const Standard_Boolean UseDefault)
 Initializes all ressources attached to the GraphicDevice
Category: methods to modify the class definition
Warning: Raises if the Device is Badly defined

Standard_Address ExtendedColorMap2D () const
 Returns extended data colormap 2D structure pointer.

Standard_Address ExtendedOverlayColorMap2D () const
 Returns extended data overlay colormap 2D structure pointer.

Standard_Address ExtendedColorMap3D () const
 Returns extended data colormap 3D structure pointer.

Standard_Address ExtendedOverlayColorMap3D () const
 Returns extended data overlay colormap 3D structure pointer.

Standard_Address ExtendedTypeMap () const
 Returns extended data typemap structure pointer.

Standard_Address ExtendedWidthMap () const
 Returns extended data widthmap structure pointer.

Standard_Address ExtendedFontMap () const
 Returns extended data fontmap structure pointer.

Standard_Address ExtendedMarkMap () const
 Returns extended data markmap structure pointer.

Standard_Address ExtendedDisplay () const
 Returns extended data display structure pointer.

Protected Attributes

Standard_Address MyExtendedDisplay

Detailed Description


Constructor & Destructor Documentation

Xw_GraphicDevice::Xw_GraphicDevice ( const Standard_CString  Connection,
const Xw_TypeOfMapping  Mapping = Xw_TOM_COLORCUBE,
const Standard_Integer  Ncolors = 0,
const Standard_Boolean  UseDefault = Standard_True 
)
Xw_GraphicDevice::~Xw_GraphicDevice ( ) [inline]
Xw_GraphicDevice::Xw_GraphicDevice ( ) [protected]

Member Function Documentation

Handle_Xw_ColorMap Xw_GraphicDevice::ColorMap2D ( ) const
Handle_Xw_ColorMap Xw_GraphicDevice::ColorMap3D ( ) const
virtual void Xw_GraphicDevice::Destroy ( ) [virtual]

Reimplemented in Graphic3d_GraphicDevice.

Standard_CString Xw_GraphicDevice::Display ( ) const
void Xw_GraphicDevice::DisplaySize ( Standard_Integer Width,
Standard_Integer Height 
) const
void Xw_GraphicDevice::DisplaySize ( Quantity_Length Width,
Quantity_Length Height 
) const
Standard_Address Xw_GraphicDevice::ExtendedColorMap2D ( ) const [protected]
Standard_Address Xw_GraphicDevice::ExtendedColorMap3D ( ) const [protected]
Standard_Address Xw_GraphicDevice::ExtendedDisplay ( ) const [protected]
Standard_Address Xw_GraphicDevice::ExtendedFontMap ( ) const [protected]
Standard_Address Xw_GraphicDevice::ExtendedMarkMap ( ) const [protected]
Standard_Address Xw_GraphicDevice::ExtendedOverlayColorMap2D ( ) const [protected]
Standard_Address Xw_GraphicDevice::ExtendedOverlayColorMap3D ( ) const [protected]
Standard_Address Xw_GraphicDevice::ExtendedTypeMap ( ) const [protected]
Standard_Address Xw_GraphicDevice::ExtendedWidthMap ( ) const [protected]
Handle_Xw_FontMap Xw_GraphicDevice::FontMap ( ) const
virtual Handle_Aspect_GraphicDriver Xw_GraphicDevice::GraphicDriver ( ) const [virtual]

Implements Aspect_GraphicDevice.

Reimplemented in Graphic3d_GraphicDevice.

void Xw_GraphicDevice::InitMaps ( const Standard_CString  Connection,
const Xw_TypeOfMapping  Mapping,
const Standard_Integer  Ncolors,
const Standard_Boolean  UseDefault 
) [protected]
Handle_Xw_MarkMap Xw_GraphicDevice::MarkMap ( ) const
Xw_TypeOfVisual Xw_GraphicDevice::OverlayVisualClass2D ( ) const
Xw_TypeOfVisual Xw_GraphicDevice::OverlayVisualClass3D ( ) const
Standard_Integer Xw_GraphicDevice::PlaneLayer ( const Standard_Integer  aVisualID) const
Handle_Xw_TypeMap Xw_GraphicDevice::TypeMap ( ) const
Xw_TypeOfVisual Xw_GraphicDevice::VisualClass2D ( ) const
Xw_TypeOfVisual Xw_GraphicDevice::VisualClass3D ( ) const
Handle_Xw_WidthMap Xw_GraphicDevice::WidthMap ( ) const
Standard_Address Xw_GraphicDevice::XDisplay ( ) const

Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines