Pcf Classes (How it all goes together)¶
A pcf file is a collection of elements. Each element has a collection of Attributes. Here are the classes used to represent the various element types and their attributes.
Representing pcf elements¶
- class valvepcf.PcfNode(ename, etype, edesc='', euuid=None)[source]¶
An abstract class to represent different types of pcf elements and hold their collections of attributes
- attributes¶
- Type:
(list[PcfAttribute]) - The element’s list of attributes.
- class valvepcf.PcfRootNode(ename, etype, edesc='', euuid=None)[source]¶
Bases:
PcfNode
PcfRootNode is the top level structure which includes a collection of
PcfSystemNode
as well as pcf format and schema versions.- systems¶
- Type:
(list[PcfSystemNode]) List of particle systems
- attributes¶
- Type:
(list[PcfAttribute]) - The element’s list of attributes.
- class valvepcf.PcfSystemNode(ename, etype, edesc='', euuid=None)[source]¶
Bases:
PcfNode
PcfSystemNode is used to define a pcf system which regroups multiple
PcfOperatorNode
. Operators are separated in specialized lists.- renderers¶
- Type:
(list[PcfOperatorNode]) - list of renderers
- operators¶
- Type:
(list[PcfOperatorNode]) - list of operators
- initializers¶
- Type:
(list[PcfOperatorNode]) - list of initializers
- emitters¶
- Type:
(list[PcfOperatorNode]) - list of emmiters
- children¶
- Type:
(list[PcfRefNode]) - list of childrens
- forces¶
- Type:
(list[PcfOperatorNode]) - list of forces
- constraints¶
- Type:
(list[PcfOperatorNode]) - list of constraints
- attributes¶
- Type:
(list[PcfAttribute]) - The element’s list of attributes.
- class valvepcf.PcfOperatorNode(ename, etype, edesc='', euuid=None)[source]¶
Bases:
PcfNode
PcfOperatorNode is used to hold specific collection of attributes for
PcfSystemNode
.- __init__(ename, etype, edesc='', euuid=None)¶
- attributes¶
- Type:
(list[PcfAttribute]) - The element’s list of attributes.
- class valvepcf.PcfRefNode(ename, etype, edesc='', euuid=None)[source]¶
Bases:
PcfNode
PcfRefNode is used to create child relationships between particle systems.
- ref¶
- Type:
(PcfSystemNode) - reference an other system
- attributes¶
- Type:
(list[PcfAttribute]) - The element’s list of attributes.