vulk.graphic.d3 package

Submodules

vulk.graphic.d3.attribute module

This package contains material and attributes class

class vulk.graphic.d3.attribute.Attribute(value)[source]

Bases: object

Base class for attribute classes.

class vulk.graphic.d3.attribute.Attributes(attributes=None)[source]

Bases: object

Attributes is the base class for all attributes container. Environment and Material are attribute container

get(attribute_class)[source]

Get an attribute by class

Parameters:

  • attribute_class: Class of the attribute to retrieve
set(attribute)[source]

Set a material attribute

Parameters:

  • attribute: Attribute to set
class vulk.graphic.d3.attribute.ColorAttribute(value)[source]

Bases: vulk.graphic.d3.attribute.Attribute

class vulk.graphic.d3.attribute.Environments(attributes=None)[source]

Bases: vulk.graphic.d3.attribute.Attributes

Environment contains all Attribute related to the environment, like lights, fogs…

class vulk.graphic.d3.attribute.Material(attributes=None)[source]

Bases: vulk.graphic.d3.attribute.Attributes

Material is a container for Attribute objects

Only one object of the same Attribute class can be inside the material. If you set an attribute which is already in the Material, the old one is replaced by the new one.

Module contents