Abstract base class for graphics device classes. More...
#include <Inventor/components/SoGraphicDevice.h>
Public Member Functions | |
virtual | ~SoGraphicDevice () |
virtual SoGraphicConfig * | getBestGraphicConfig (const SoGraphicConfigTemplate &temp)=0 |
virtual size_t | getNum ()=0 |
virtual SoGraphicConfig * | getGraphicConfig (size_t n)=0 |
virtual size_t | getNum (const SoGraphicConfigTemplate &temp)=0 |
virtual SoGraphicConfig * | getGraphicConfig (const SoGraphicConfigTemplate &temp, size_t n)=0 |
virtual SoGraphicConfig * | getDefaultGraphicConfig ()=0 |
This class is an abstraction of a graphics device, e.g., a printer, a graphics window, or an offscreen buffer. It provides methods to query the supported graphics configurations and to sort them according to a graphics template.
SoGraphicConfigTemplate, SoGLGraphicConfigTemplate, SoGraphicConfigCompare, SoGLGraphicConfigCompare, SoGraphicConfig, SoGLGraphicConfig, SoGLGraphicDevice.
virtual SoGraphicDevice::~SoGraphicDevice | ( | ) | [inline, virtual] |
Destructor.
virtual SoGraphicConfig* SoGraphicDevice::getBestGraphicConfig | ( | const SoGraphicConfigTemplate & | temp | ) | [pure virtual] |
Returns the best graphics configuration according to the user's specifications.
The method used to choose the "best" graphics configuration is very simple: It selects a list of supported graphics configurations according to the user's specifications given by graphicConfigTemplate (see SoGraphicConfigTemplate::isGraphicsConfigSupported). The chosen graphics configuration is the graphics configuration of this list that has the maximum sum of the weight values of the PREFERRED available fields.
Implemented in SoGLGraphicDevice.
virtual SoGraphicConfig* SoGraphicDevice::getDefaultGraphicConfig | ( | ) | [pure virtual] |
Returns the default graphics configuration.
Implemented in SoGLGraphicDevice.
virtual SoGraphicConfig* SoGraphicDevice::getGraphicConfig | ( | const SoGraphicConfigTemplate & | temp, | |
size_t | n | |||
) | [pure virtual] |
Returns the best nth of all the graphics configurations supported by this device and sorted according to the given template.
Implemented in SoGLGraphicDevice.
virtual SoGraphicConfig* SoGraphicDevice::getGraphicConfig | ( | size_t | n | ) | [pure virtual] |
Returns the n-th of all the graphics configurations supported by this device.
Implemented in SoGLGraphicDevice.
virtual size_t SoGraphicDevice::getNum | ( | const SoGraphicConfigTemplate & | temp | ) | [pure virtual] |
Returns the number of the graphics configurations supported by this device and the given template.
Implemented in SoGLGraphicDevice.
virtual size_t SoGraphicDevice::getNum | ( | ) | [pure virtual] |
Returns the number of the graphics configurations supported by this device.
Implemented in SoGLGraphicDevice.