public class SoGLFormat extends Inventor implements java.lang.Cloneable
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoGLFormat()
Default constructor -> we set the default format.
|
SoGLFormat(SoGLFormat refFormat)
Constructor that initializes the format from the specified one.
|
Modifier and Type | Method and Description |
---|---|
boolean |
activate()
Tries to activate the format for the current display.
|
java.lang.Object |
clone() |
int |
getAccumBufferBits()
Returns the accumulation buffer bits of this format.
|
int |
getAlphaBits() |
int |
getBlueBits() |
static SoGLFormat |
getDefaultFormat()
Returns the default format used.
|
static SoGLFormat |
getDefaultOverlayFormat()
Deprecated.
As of Open Inventor 9610 See documentation for more details
|
int |
getDepthBits()
Returns the depth buffer bits of this format.
|
int |
getGreenBits() |
SoGLFormat |
getNearest()
Returns the supported format which is the nearest available on this system.
|
int |
getPlane()
Deprecated.
As of Open Inventor 9610 See documentation for more details
|
int |
getRedBits() |
int |
getSamplesCount()
Returns the samples count of this format.
|
int |
getStencilBufferBits()
Returns the stencil buffer bits of this format.
|
int |
getVisualInfoId()
Returns the PFD associated with this visualInfo.
|
boolean |
hasAccumBuffer()
Returns true if this format has an accumulation buffer.
|
boolean |
hasAlpha()
Returns true if this format has an alpha channel.
|
boolean |
hasDepth()
Returns true if this format has a depth buffer.
|
boolean |
hasDoubleBuffers()
Returns true if this format is double buffered.
|
boolean |
hasFloatColorBuffer()
Returns true if this format has a float color buffer.
|
boolean |
hasOverlay()
Deprecated.
As of Open Inventor 9610 See documentation for more details
|
boolean |
hasRgb()
Returns true if this format is RGB.
|
boolean |
hasSampleBuffers()
Returns true if this format has sample buffers.
|
boolean |
hasStencilBuffer()
Returns true if this format has a stencil buffer.
|
boolean |
hasStereo()
Returns true if this format has stereo.
|
boolean |
isAccelerationRequired()
Returns true if hardware acceleration support is required for this pixel format.
|
boolean |
isAvailable()
Returns true if this format is available on the system.
|
boolean |
isCompositionRequired()
Returns true if composition is required for this pixel format.
|
boolean |
isGDISupportRequired()
Returns true if GDI support is required for this pixel format.
|
boolean |
isSoftwareRendererRequired()
Returns true if the software renderer is required for this format.
|
void |
setAccelerationRequired(boolean enable)
Sets the hardware acceleration support requirement of this pixel format.
|
void |
setAccumBufferBits(int size)
Sets the accumulation buffer bits of this format.
|
void |
setAccumBufferEnabled(boolean enabled)
Sets the accumulation buffer state of this format.
|
void |
setAlphaBits(int bits) |
void |
setAlphaEnabled(boolean enable)
Sets the alpha channel state of this format.
|
void |
setBlueBits(int bits) |
void |
setCompositionRequired(boolean required)
Sets the composition requirement of the pixel format.
|
void |
setDepthBits(int bits)
Sets the depth buffer bits of this format.
|
void |
setDepthEnabled(boolean enable)
Sets the depth buffer state of this format.
|
void |
setDoubleBuffersEnabled(boolean enabled)
Sets the double buffering state of this format.
|
void |
setFloatColorBufferEnabled(boolean enable)
Sets the Float color buffer state of this format.
|
void |
setGDISupportRequired(boolean required)
Sets the GDI support requirement of the pixel format.
|
void |
setGreenBits(int bits) |
void |
setOverlayEnabled(boolean enabled)
Deprecated.
As of Open Inventor 9610 See documentation for more details
|
void |
setPlane(int plane)
Deprecated.
As of Open Inventor 9610 See documentation for more details
|
void |
setRedBits(int bits) |
void |
setRgbEnabled(boolean enabled)
Sets the RGB state of this format.
|
void |
setSampleBuffersEnabled(boolean enable)
Sets the sample buffers state of this format.
|
void |
setSamplesCount(int countSamples)
Sets the samples count of this format.
|
void |
setSoftwareRendererRequired(boolean enable)
Specified that a software renderer is required for this format.
|
void |
setStencilBufferBits(int size)
Sets the stencil buffer bits of this format.
|
void |
setStencilBufferEnabled(boolean enabled)
Sets the stencil buffer state of this format.
|
void |
setStereoEnabled(boolean enable)
Sets the stereo state of this format.
|
void |
setVisualInfoId(int viId)
Sets the PFD id associated with this visualInfo.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoGLFormat()
public SoGLFormat(SoGLFormat refFormat)
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isAccelerationRequired()
public int getDepthBits()
public void setVisualInfoId(int viId)
public boolean isGDISupportRequired()
@Deprecated public boolean hasOverlay()
public void setGDISupportRequired(boolean required)
Note: If both setCompositionRequired()
and setGDISupportRequired()
are set OpenInventor will try to choose a pixel format with composition support.
The default value is true but setting composition required to true automatically disables GDI support.
public boolean hasAlpha()
public void setAccelerationRequired(boolean enable)
public void setAlphaEnabled(boolean enable)
public void setDoubleBuffersEnabled(boolean enabled)
public static SoGLFormat getDefaultFormat()
public boolean hasDoubleBuffers()
@Deprecated public static SoGLFormat getDefaultOverlayFormat()
public boolean isSoftwareRendererRequired()
public void setDepthEnabled(boolean enable)
public int getVisualInfoId()
public void setDepthBits(int bits)
public boolean hasDepth()
public void setSoftwareRendererRequired(boolean enable)
setAccelerationRequired()
. public void setFloatColorBufferEnabled(boolean enable)
public void setRedBits(int bits)
public void setStencilBufferBits(int size)
public int getRedBits()
public boolean hasStencilBuffer()
public void setRgbEnabled(boolean enabled)
public void setAccumBufferEnabled(boolean enabled)
public boolean hasRgb()
public int getStencilBufferBits()
public int getBlueBits()
public void setBlueBits(int bits)
public void setAlphaBits(int bits)
public int getAlphaBits()
public void setGreenBits(int bits)
public void setStencilBufferEnabled(boolean enabled)
public int getGreenBits()
public boolean hasFloatColorBuffer()
public boolean hasStereo()
public boolean activate()
@Deprecated public int getPlane()
public SoGLFormat getNearest()
public void setSampleBuffersEnabled(boolean enable)
public boolean isCompositionRequired()
@Deprecated public void setOverlayEnabled(boolean enabled)
public void setCompositionRequired(boolean required)
Note: If both setCompositionRequired()
and setGDISupportRequired()
are set OpenInventor will try to choose a pixel format with composition support.
The default value is false but can be overridden using the OIV_PFD_SUPPORT_COMPOSITION preference (see SoPreferences
).
@Deprecated public void setPlane(int plane)
By default the plane is set to the main plane.Deprecated since Open Inventor 9610
Overlay feature is legacy, and no longer makes sense with current hardware.
public void setAccumBufferBits(int size)
public int getSamplesCount()
public boolean hasAccumBuffer()
public void setStereoEnabled(boolean enable)
public boolean isAvailable()
public boolean hasSampleBuffers()
public int getAccumBufferBits()
public void setSamplesCount(int countSamples)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com