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

Public Member Functions

def __init__ (self, side=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

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

Detailed Description

A quad that can be placed in a visual scene.
A quad has normals in only one direction and appears invisible from the opposite face

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ to_json()

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

Member Data Documentation

◆ color

ptvr.stimuli.world.Quad.color

◆ side

ptvr.stimuli.world.Quad.side

◆ texture

ptvr.stimuli.world.Quad.texture

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