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

Public Member Functions

def __init__ (self, side=1, color=color.RGBColor(r=1.0), texture=diffuse_texture)
 
def __str__ (self)
 
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

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

Detailed Description

A cube that can be placed in a visual scene.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ __str__()

def ptvr.stimuli.world.Cube.__str__ (   self)

◆ to_json()

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

Member Data Documentation

◆ color

ptvr.stimuli.world.Cube.color

◆ side

ptvr.stimuli.world.Cube.side

◆ texture

ptvr.stimuli.world.Cube.texture

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