ptvr  v0.1
A Python toolkit for creating VR experiments.
ptvr.stimuli.world.Sphere Class Reference
Inheritance diagram for ptvr.stimuli.world.Sphere:
ptvr.stimuli.world.VisualObject

Public Member Functions

def __init__ (self, radius=1, color=color.RGBColor(r=1.0), texture=diffuse_texture)
 
def to_json (self)
 
- Public Member Functions inherited from ptvr.stimuli.world.VisualObject
def __init__ (self, position=np.array([0.0, 0.0, 0.0]), rotation=np.array([0.0, 0.0, 0.0]), scale=np.array([1.0, 1.0, 1.0]))
 
def to_json (self)
 

Public Attributes

 radius
 
 color
 
 texture
 
- Public Attributes inherited from ptvr.stimuli.world.VisualObject
 position
 
 rotation
 
 scale
 

Detailed Description

A sphere that can be placed in a visual scene.

Constructor & Destructor Documentation

◆ __init__()

def ptvr.stimuli.world.Sphere.__init__ (   self,
  radius = 1,
  color = color.RGBColor(r=1.0),
  texture = diffuse_texture 
)

Member Function Documentation

◆ to_json()

def ptvr.stimuli.world.Sphere.to_json (   self)

Member Data Documentation

◆ color

ptvr.stimuli.world.Sphere.color

◆ radius

ptvr.stimuli.world.Sphere.radius

◆ texture

ptvr.stimuli.world.Sphere.texture

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