Package glitter :: Package misc :: Module query :: Class Query
[hide private]
[frames] | no frames]

Class Query

source code

                 object --+        
                          |        
     utils.objects.GLObject --+    
                              |    
    utils.objects.ManagedObject --+
                                  |
                 object --+       |
                          |       |
     utils.objects.GLObject --+   |
                              |   |
                 object --+   |   |
                          |   |   |
   utils.objects.StateMixin --+   |
                              |   |
utils.objects.BindReleaseObject --+
                                  |
                                 Query
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, context=None)
Create a new ManagedObject using _generate_id.
source code
 
bind(self)
Method for binding self to _context.
source code
 
release(self)
Method for releasing self from _context.
source code

Inherited from utils.objects.ManagedObject: __del__

Inherited from utils.objects.BindReleaseObject: __enter__, __exit__

Inherited from utils.objects.StateMixin: __call__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _generate_id = _libraries ['libGL.so.1'].glGenQueries
Constructor function.
  _delete_id = _libraries ['libGL.so.1'].glDeleteQueries
Destructor function.
  _db = 'queries'
The name of the corresponding object database in the Context.

Inherited from utils.objects.ManagedObject (private): _type

Instance Variables [hide private]

Inherited from utils.objects.ManagedObject (private): _id

Inherited from utils.objects.GLObject (private): _context

Properties [hide private]
  _current_query
  _counter_bits
  result_available
  result

Inherited from utils.objects.GLObject: context

Inherited from object: __class__

Method Details [hide private]

__init__(self, context=None)
(Constructor)

source code 

Create a new ManagedObject using _generate_id.

Parameters:
  • context - The parent context.
Overrides: object.__init__
(inherited documentation)

bind(self)

source code 

Method for binding self to _context.

bind takes no arguments.

Overrides: bind

release(self)

source code 

Method for releasing self from _context.

release is responsible for restoring any previous binding.

release takes no arguments.

Overrides: release

Property Details [hide private]

_current_query

Get Method:
unreachable._current_query(self)

_counter_bits

Get Method:
unreachable._counter_bits(self)

result_available

Get Method:
unreachable.result_available(self)

result

Get Method:
unreachable.result(self)