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

Public Member Functions

def __init__ (self, radius=1, height=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
 
 height
 
 texture
 
- Public Attributes inherited from ptvr.stimuli.world.VisualObject
 position
 
 rotation
 
 scale
 

Detailed Description

A cylinder that can be placed in a visual scene.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ to_json()

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

Member Data Documentation

◆ color

ptvr.stimuli.world.Cylinder.color

◆ height

ptvr.stimuli.world.Cylinder.height

◆ radius

ptvr.stimuli.world.Cylinder.radius

◆ texture

ptvr.stimuli.world.Cylinder.texture

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