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

Public Member Functions

def __init__ (self, id=-1, background_color=color.RGBColor(1, 1, 1, 1), display=input.TimedDisplay())
 
def place (self, o, position=np.array([0, 0, 0]), orientation=np.array([0, 0, 0]))
 
def to_json (self)
 
- Public Member Functions inherited from ptvr.stimuli.world.Scene
def to_json (self)
 
def write (self, fp)
 

Public Attributes

 id
 
 objects
 
 input
 
 background_color
 

Detailed Description

Interface for generating a Visual scene.
A visual scene can be populated with visual stimuli so as to create a trial.

Constructor & Destructor Documentation

◆ __init__()

def ptvr.stimuli.world.VisualScene.__init__ (   self,
  id = -1,
  background_color = color.RGBColor(1,1,1,1),
  display = input.TimedDisplay() 
)

Member Function Documentation

◆ place()

def ptvr.stimuli.world.VisualScene.place (   self,
  o,
  position = np.array([0, 0, 0]),
  orientation = np.array([0, 0, 0]) 
)

◆ to_json()

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

Member Data Documentation

◆ background_color

ptvr.stimuli.world.VisualScene.background_color

◆ id

ptvr.stimuli.world.VisualScene.id

◆ input

ptvr.stimuli.world.VisualScene.input

◆ objects

ptvr.stimuli.world.VisualScene.objects

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