| Home | Trees | Index | Help |
|
|---|
| Package VisionEgg :: Module SphereMap :: Class SphereWindow |
|
object --+
|
ClassWithParameters --+
|
Stimulus --+
|
LuminanceGratingCommon --+
|
SphereWindow
This draws an opaque sphere with a single window in it.
This is useful when you need to have a viewport on a 3D scene.
Note that the bit depth of the alpha component of the framebuffer
is important for producing smooth transitions in color.
Parameters
==========
bit_depth -- precision with which grating is calculated and sent to OpenGL (UnsignedInteger)
Inherited from VisionEgg.Gratings.LuminanceGratingCommon
Default: 8
num_s_samples -- (UnsignedInteger)
Default: 512
num_t_samples -- (UnsignedInteger)
Default: 512
on -- (Boolean)
Default: True
opaque_color -- (Sequence4 of Real)
Default: (0.5, 0.5, 0.5, 0.0)
radius -- (Real)
Default: 1.0
slices -- (UnsignedInteger)
Default: 30
stacks -- (UnsignedInteger)
Default: 30
window_center_azimuth -- (Real)
Default: 0.0
window_center_elevation -- (Real)
Default: 0.0
window_shape -- (String)
Default: gaussian
window_shape_radius_parameter -- (Real)
Default: 36.0
| Method Summary | |
|---|---|
Instantiate and get ready to draw. | |
Redraw the scene on every frame. | |
| Inherited from LuminanceGratingCommon | |
Calculate a number of parameters dependent on bit depth. | |
| Inherited from ClassWithParameters | |
| |
| |
Set a parameter with type-checked value This is the slow but safe way to set parameters. | |
Perform type check on all parameters... | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
| Class Variable Summary | |
|---|---|
tuple |
__slots__ = ('parameters', 'constant_parameters', 'gl_in...
|
member_descriptor |
cached_bit_depth = <member 'cached_bit_depth' of 'Sphere...
|
member_descriptor |
constant_parameters = <member 'constant_parameters' of '...
|
member_descriptor |
format = <member 'format' of 'SphereWindow' objects>
|
member_descriptor |
gl_internal_format = <member 'gl_internal_format' of 'Sp...
|
member_descriptor |
gl_type = <member 'gl_type' of 'SphereWindow' objects>
|
member_descriptor |
max_int_val = <member 'max_int_val' of 'SphereWindow' ob...
|
member_descriptor |
numeric_type = <member 'numeric_type' of 'SphereWindow' ...
|
member_descriptor |
opaque_display_list_id = <member 'opaque_display_list_id...
|
member_descriptor |
parameters = <member 'parameters' of 'SphereWindow' obje...
|
dict |
parameters_and_defaults = {'on': (True, <class 'VisionEg...
|
member_descriptor |
texture_object_id = <member 'texture_object_id' of 'Sphe...
|
member_descriptor |
windowed_display_list_id = <member 'windowed_display_lis...
|
| Inherited from ClassWithParameters | |
ParameterDefinition |
constant_parameters_and_defaults = {}
|
| Method Details |
|---|
__init__(self,
**kw)
|
draw(self)Redraw the scene on every frame.
|
| Class Variable Details |
|---|
__slots__
|
cached_bit_depth
|
constant_parameters
|
format
|
gl_internal_format
|
gl_type
|
max_int_val
|
numeric_type
|
opaque_display_list_id
|
parameters
|
texture_object_id
|
windowed_display_list_id
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Fri Sep 19 18:29:36 2003 | http://epydoc.sf.net |