Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoGraphicDevice Class Referenceabstract

VSG extension Abstract base class for graphics device classes. More...

#include <Inventor/components/SoGraphicDevice.h>

+ Inheritance diagram for SoGraphicDevice:

Public Member Functions

virtual ~SoGraphicDevice ()
 Destructor.
 
virtual SoGraphicConfiggetBestGraphicConfig (const SoGraphicConfigTemplate &temp)=0
 Returns the best graphics configuration according to the user's specifications.
 
virtual size_t getNum ()=0
 Returns the number of the graphics configurations supported by this device.
 
virtual SoGraphicConfiggetGraphicConfig (size_t n)=0
 Returns the n-th of all the graphics configurations supported by this device.
 
virtual size_t getNum (const SoGraphicConfigTemplate &temp)=0
 Returns the number of the graphics configurations supported by this device and the given template.
 
virtual SoGraphicConfiggetGraphicConfig (const SoGraphicConfigTemplate &temp, size_t n)=0
 Returns the best nth of all the graphics configurations supported by this device and sorted according to the given template.
 
virtual SoGraphicConfiggetDefaultGraphicConfig ()=0
 Returns the default graphics configuration.
 

Detailed Description

VSG extension Abstract base class for graphics device classes.

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.

SEE ALSO

SoGraphicConfigTemplate, SoGLGraphicConfigTemplate, SoGraphicConfigCompare, SoGLGraphicConfigCompare, SoGraphicConfig, SoGLGraphicConfig, SoGLGraphicDevice.

Definition at line 49 of file SoGraphicDevice.h.

Constructor & Destructor Documentation

◆ ~SoGraphicDevice()

virtual SoGraphicDevice::~SoGraphicDevice ( )
inlinevirtual

Destructor.

Definition at line 56 of file SoGraphicDevice.h.

Member Function Documentation

◆ getBestGraphicConfig()

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.

◆ getDefaultGraphicConfig()

virtual SoGraphicConfig * SoGraphicDevice::getDefaultGraphicConfig ( )
pure virtual

Returns the default graphics configuration.

Implemented in SoGLGraphicDevice.

◆ getGraphicConfig() [1/2]

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.

◆ getGraphicConfig() [2/2]

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.

◆ getNum() [1/2]

virtual size_t SoGraphicDevice::getNum ( )
pure virtual

Returns the number of the graphics configurations supported by this device.

Implemented in SoGLGraphicDevice.

◆ getNum() [2/2]

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.


The documentation for this class was generated from the following file: