Package VisionEgg :: Module Lib3DS :: Class Model3DS
[frames | no frames]

Class Model3DS

         object --+        
                  |        
ClassWithParameters --+    
                      |    
               Stimulus --+
                          |
                         Model3DS


Model3DS -- A 3D model from a .3ds file

Parameters
==========
orient_angle -- (Real)
                Default: 0.0
orient_axis  -- (Sequence3 of Real)
                Default: (0.0, 1.0, 0.0)
position     -- (Sequence3 of Real)
                Default: (0.0, 0.0, 0.0)
scale        -- (Sequence3 of Real)
                Default: (1.0, 1.0, 1.0)

Constant Parameters
===================
filename           -- (String)
                      Default: (determined at instantiation)
mipmaps_enabled    -- (Boolean)
                      Default: True
shrink_texture_ok  -- (Boolean)
                      Default: False
texture_mag_filter -- (Integer)
                      Default: 9729
texture_min_filter -- (Integer)
                      Default: 9987
texture_wrap_s     -- (Integer)
                      Default: (determined at instantiation)
texture_wrap_t     -- (Integer)
                      Default: (determined at instantiation)

Method Summary
  __init__(self, **kw)
Instantiate and get ready to draw.
  draw(self)
Draw the stimulus.
  dump_materials(self)
  dump_meshes(self)
  dump_nodes(self)
    Inherited from ClassWithParameters
  get_specified_type(self, parameter_name)
  is_constant_parameter(self, parameter_name)
  set(self, **kw)
Set a parameter with type-checked value This is the slow but safe way to set parameters.
  verify_parameters(self)
Perform type check on all parameters...
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Class Variable Summary
dict constant_parameters_and_defaults = {'shrink_texture_ok':...
dict parameters_and_defaults = {'position': ((0.0, 0.0, 0.0),...
    Inherited from Stimulus
tuple __slots__ = ('parameters', 'constant_parameters')
member_descriptor constant_parameters = <member 'constant_parameters' of '...
member_descriptor parameters = <member 'parameters' of 'Stimulus' objects>

Method Details

__init__(self, **kw)
(Constructor)

Instantiate and get ready to draw.

Set parameter values and create anything needed to draw the
stimulus including OpenGL state variables such display lists
and texture objects.
Overrides:
VisionEgg.Core.Stimulus.__init__ (inherited documentation)

draw(self)

Draw the stimulus. (Called by Viewport instance.)

This method is called every frame.  This method actually
performs the OpenGL calls to draw the stimulus.
Overrides:
VisionEgg.Core.Stimulus.draw (inherited documentation)

Class Variable Details

constant_parameters_and_defaults

Type:
dict
Value:
{'filename': (None, <class 'VisionEgg.ParameterTypes.String'>),
 'mipmaps_enabled': (True, <class 'VisionEgg.ParameterTypes.Boolean'>)\
,
 'shrink_texture_ok': (False, <class 'VisionEgg.ParameterTypes.Boolean\
'>),
 'texture_mag_filter': (9729, <class 'VisionEgg.ParameterTypes.Integer\
'>),
 'texture_min_filter': (9987, <class 'VisionEgg.ParameterTypes.Integer\
...                                                                    

parameters_and_defaults

Type:
dict
Value:
{'orient_angle': (0.0, <class 'VisionEgg.ParameterTypes.Real'>),
 'orient_axis': ((0.0, 1.0, 0.0),
                 <VisionEgg.ParameterTypes.Sequence3 object at 0x40f21\
a2c>),
 'position': ((0.0, 0.0, 0.0),
              <VisionEgg.ParameterTypes.Sequence3 object at 0x40f2196c\
>),
 'scale': ((1.0, 1.0, 1.0),
...                                                                    

Generated by Epydoc 2.0 on Fri Sep 19 18:29:40 2003 http://epydoc.sf.net