#include <WNT_GraphicDevice.hxx>
Inheritance diagram for WNT_GraphicDevice:
Public Member Functions | |
Standard_EXPORT | WNT_GraphicDevice (const Standard_Boolean aColorCube=Standard_False, const Aspect_Handle aDevContext=0) |
Creates a GraphicDevice and logical palette. Builds an OpenGL colorcube on that palette depending of the aColorCube flag and hardware. Warning: Raises if createion of the logical palette failed. . | |
Standard_EXPORT | WNT_GraphicDevice (const Standard_Boolean aColorCube, const Standard_Integer aDevContext) |
same as previous one (to provide access form CCL) | |
virtual Standard_EXPORT void | Destroy () |
Destroies all ressources attached to the GraphicDevice. . | |
~WNT_GraphicDevice () | |
Standard_EXPORT WNT_ColorRef | SetColor (const Quantity_Color &aColor, const Standard_Boolean aHighlight=Standard_False) |
Returns the color value in form specific to Windows NT. Sets the color values in the logical palette if the hardware supports it. If in this case there are not free cell in the logical palette then this method will search for nearest color in the palette. If <ahighlight> is True then sets a highlight color. . | |
virtual Standard_EXPORT WNT_ColorRef | SetColor (const Standard_Integer aRed, const Standard_Integer aGreen, const Standard_Integer aBlue, const Standard_Boolean aHighlight=Standard_False) |
See above . | |
virtual Standard_EXPORT void | SetColor (const WNT_Long &aPixel) |
Color allocation for images. . | |
Standard_EXPORT void | MapColors (const Handle(Aspect_ColorMap)&aColorMap, Handle(WNT_HColorTable)&aColorTable) |
Returns the color value in form specific to WIndows NT in the <acolortable>. See SetColor method. Warning: The dimensions and index ranges of the <acolormap> and <acolortable> must be the same; . | |
Aspect_Handle | HPalette () const |
Returns logical palette handle attached to the GraphicDevice. . | |
void | DisplaySize (Standard_Integer &aWidth, Standard_Integer &aHeight) const |
Returns the Display size in PIXEL . | |
void | DisplaySize (Quantity_Length &aWidth, Quantity_Length &aHeight) const |
Returns the Display size in working units units . | |
Standard_Boolean | IsPaletteDevice () const |
Returns True if hardware is palette-compatible. . | |
Standard_Integer | NumColors () const |
Returns number of available colors. . | |
WNT_ColorRef | HighlightColor () const |
Returns highlight color. . | |
virtual Standard_EXPORT Handle_Aspect_GraphicDriver | GraphicDriver () const |
Dummy method . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Member Functions | |
Standard_EXPORT void | Init (const Standard_Boolean aColorCube, const Aspect_Handle aDevContext) |
Protected Attributes | |
Quantity_Length | myMWidth |
Quantity_Length | myMHeight |
Standard_Integer | myWidth |
Standard_Integer | myHeight |
Standard_Integer | myNumColors |
Standard_Integer | myFreeIndex |
Aspect_Handle | myPalette |
Standard_Address | myLogPal |
WNT_ColorRef | myHighlightColor |
Standard_Boolean | myOpenGLPalette |
|
|
|
|
|
|
|
Reimplemented in Graphic3d_WNTGraphicDevice. |
|
|
|
|
|
Implements Aspect_GraphicDevice. Reimplemented in Graphic3d_WNTGraphicDevice. |
|
Reimplemented from Aspect_GraphicDevice. Reimplemented in Graphic3d_WNTGraphicDevice. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|