Bridges-Python  3.4.4
Bridges(Python API)
Public Member Functions | List of all members
bridges.primitives.Primitives Class Reference

Public Member Functions

def __init__ (self, str type, str name, list position=None)
 
def position (self)
 
def position (self, list pos)
 
def transform (self)
 
def set_transform (self, list transform)
 
def append_transform (self, list transform)
 
None set_color (self, *args, **kwargs)
 Sets color for a an element or link. More...
 
def push_representation (self, scene_json)
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.primitives.Primitives.__init__ (   self,
str  type,
str  name,
list   position = None 
)

Member Function Documentation

◆ append_transform()

def bridges.primitives.Primitives.append_transform (   self,
list  transform 
)

◆ position() [1/2]

def bridges.primitives.Primitives.position (   self)

◆ position() [2/2]

def bridges.primitives.Primitives.position (   self,
list  pos 
)

◆ push_representation()

def bridges.primitives.Primitives.push_representation (   self,
  scene_json 
)

◆ set_color()

None bridges.primitives.Primitives.set_color (   self,
args,
**  kwargs 
)

Sets color for a an element or link.

Requires either 3 ints 0-255 for RGB and an optional float 0.0-1.0 for alpha or a str of a web color can also key the RGBA values with r, g, b, a or red, green, blue, alpha respectively and col_name for the str

Parameters
argsint, int, int optional float or str
kwargsr/red: int, b/blue: int, g/green: int optional a/alpha: float or col_name: str

◆ set_transform()

def bridges.primitives.Primitives.set_transform (   self,
list  transform 
)

◆ transform()

def bridges.primitives.Primitives.transform (   self)

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