Element that stores a proxy object to the currently active viewer.  
 More...
#include <SoViewerElement.h>
 | 
| void  | init (SoState *state) override | 
|   | Initializes this element.  
  | 
|   | 
| SbBool  | matches (const SoElement *elt) const override | 
|   | Always returns true, as this element should never be a criterion for cache invalidation.  
  | 
|   | 
| SoElement *  | copyMatchInfo () const override | 
|   | Creates and returns a copy of this element.  
  | 
|   | 
 | 
| static void  | set (SoState *state, SoViewerProxy *proxy) | 
|   | Sets the proxy for the currently active viewer.  
  | 
|   | 
| static SoViewerProxy *  | get (SoState *state) | 
|   | Returns the proxy for the currently active viewer, which might be NULL.  
  | 
|   | 
| static void  | setCursor (SoState *state, int shapeID) | 
|   | Convenience method which calls the corresponding method of SoViewerProxy.  
  | 
|   | 
| static double  | getDevicePixelRatio (SoState *state) | 
|   | Convenience method which calls the corresponding method of SoViewerProxy.  
  | 
|   | 
| static void  | setViewerProxyCB (void *userData, SoAction *action) | 
|   | This callback can be used with SoCallback nodes and simply sets the SoViewerProxy given as userData.  
  | 
|   | 
| static void  | initClass () | 
|   | Initializes the SoViewerElement class.  
  | 
|   | 
Element that stores a proxy object to the currently active viewer. 
Definition at line 28 of file SoViewerElement.h.
 
◆ ~SoViewerElement()
  
  
      
        
          | SoViewerElement::~SoViewerElement  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overrideprotected   | 
  
 
 
◆ copyMatchInfo()
  
  
      
        
          | SoElement * SoViewerElement::copyMatchInfo  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
override   | 
  
 
Creates and returns a copy of this element. 
 
 
◆ get()
Returns the proxy for the currently active viewer, which might be NULL. 
 
 
◆ init()
  
  
      
        
          | void SoViewerElement::init  | 
          ( | 
          SoState *  | 
          state | ) | 
           | 
         
       
   | 
  
override   | 
  
 
Initializes this element. 
 
 
◆ initClass()
  
  
      
        
          | static void SoViewerElement::initClass  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ matches()
  
  
      
        
          | SbBool SoViewerElement::matches  | 
          ( | 
          const SoElement *  | 
          elt | ) | 
           const | 
         
       
   | 
  
override   | 
  
 
Always returns true, as this element should never be a criterion for cache invalidation. 
 
 
◆ set()
  
  
      
        
          | static void SoViewerElement::set  | 
          ( | 
          SoState *  | 
          state,  | 
         
        
           | 
           | 
          SoViewerProxy *  | 
          proxy  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Sets the proxy for the currently active viewer. 
 
 
◆ setCursor()
  
  
      
        
          | static void SoViewerElement::setCursor  | 
          ( | 
          SoState *  | 
          state,  | 
         
        
           | 
           | 
          int  | 
          shapeID  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Convenience method which calls the corresponding method of SoViewerProxy. 
It does nothing if the proxy is NULL. 
 
 
◆ setViewerProxyCB()
  
  
      
        
          | static void SoViewerElement::setViewerProxyCB  | 
          ( | 
          void *  | 
          userData,  | 
         
        
           | 
           | 
          SoAction *  | 
          action  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
This callback can be used with SoCallback nodes and simply sets the SoViewerProxy given as userData. 
 
 
◆ _proxy
The documentation for this class was generated from the following file: