public class GraphicsConfigTemplate3D extends GraphicsConfigTemplate
PREFERRED, REQUIRED, UNNECESSARY
Constructor and Description |
---|
GraphicsConfigTemplate3D()
Constructs a GraphicsConfigTemplate3D object with default parameters.
|
Modifier and Type | Method and Description |
---|---|
GraphicsConfiguration |
getBestConfiguration(GraphicsConfiguration[] gc)
Implement the abstract function of getBestConfiguration() in GraphicsConfigTemplate.
|
int |
getBlueSize()
Retrieves the number of blue bits requested by this template.
|
int |
getDepthSize()
Retrieves the size of the depth buffer.
|
int |
getDoubleBuffer()
Retrieves the double buffering value.
|
int |
getGreenSize()
Retrieves the number of green bits requested by this template.
|
int |
getRedSize()
Retrieves the number of red bits requested by this template.
|
int |
getSceneAntialiasing()
Retrieves the scene antialiasing value.
|
int |
getStencilSize()
Retrieves the size of the stencil buffer.
|
int |
getStereo()
Retrieves the stereo value.
|
boolean |
isGraphicsConfigSupported(GraphicsConfiguration gc)
Returns a boolean indicating whether or not the given
GraphicsConfiguration can be used to create a drawing
surface that can be rendered to.
|
void |
setBlueSize(int value)
Sets the number of blue bits required.
|
void |
setDepthSize(int value)
Sets the depth buffer size requirement.
|
void |
setDoubleBuffer(int value)
Sets the double buffering requirement.
|
void |
setGreenSize(int value)
Sets the number of green bits required.
|
void |
setRedSize(int value)
Sets the number of red bits required.
|
void |
setSceneAntialiasing(int value)
Sets the scene antialiasing requirement.
|
void |
setStencilSize(int value)
Sets the stencil buffer size requirement.
|
void |
setStereo(int value)
Sets the stereo requirement.
|
String |
toString()
Returns a string representation of this object.
|
public GraphicsConfigTemplate3D()
public void setDoubleBuffer(int value)
value
- the value to set this field topublic int getDoubleBuffer()
public void setStereo(int value)
value
- the value to set this field topublic int getStereo()
public void setSceneAntialiasing(int value)
value
- the value to set this field topublic int getSceneAntialiasing()
public void setDepthSize(int value)
value
- the value to set this field topublic int getDepthSize()
public void setStencilSize(int value)
value
- the value to set this field topublic int getStencilSize()
public void setRedSize(int value)
value
- the value to set this field topublic int getRedSize()
public void setGreenSize(int value)
value
- the value to set this field topublic int getGreenSize()
public void setBlueSize(int value)
value
- the value to set this field topublic int getBlueSize()
public GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] gc)
getBestConfiguration
in class GraphicsConfigTemplate
gc
- the array of GraphicsConfigurations to choose fromGraphicsDevice
public boolean isGraphicsConfigSupported(GraphicsConfiguration gc)
isGraphicsConfigSupported
in class GraphicsConfigTemplate
gc
- the GraphicsConfiguration object to testtrue
if this GraphicsConfiguration object
can be used to create surfaces that can be rendered to,
false
if the GraphicsConfiguration can not be used
to create a drawing surface usable by this API.Copyright © 2016–2022 SciJava. All rights reserved.