Slap shit together and commit

This commit is contained in:
DarkPhoenix
2019-06-21 09:10:55 +03:00
parent 28db388fa0
commit 4cf07c4b76
3 changed files with 39 additions and 32 deletions

View File

@@ -40,26 +40,30 @@ class Graph(metaclass=ABCMeta):
def name(self):
raise NotImplementedError
@property
@abstractmethod
def xDef(self):
raise NotImplementedError
@property
def extraInputs(self):
return {}
@property
@abstractmethod
def yDefs(self):
raise NotImplementedError
@property
def hasTargets(self):
return False
@abstractmethod
def xDefs(self):
raise NotImplementedError
@property
def hasVectors(self):
def inputs(self):
raise NotImplementedError
@property
def srcVectorHandles(self):
return None, None
@property
def tgtVectorHandles(self):
return None, None
@property
def hasTargets(self):
return False
@property
@@ -98,9 +102,9 @@ class Graph(metaclass=ABCMeta):
getattr(self, yDef.eosGraph).clearCache(key=key)
XDef = namedtuple('XDef', ('inputDefault', 'inputLabel', 'inputIconID', 'axisLabel'))
YDef = namedtuple('YDef', ('switchLabel', 'axisLabel', 'eosGraph'))
ExtraInput = namedtuple('ExtraInput', ('inputDefault', 'inputLabel', 'inputIconID'))
XDef = namedtuple('XDef', ('handle', 'label', 'unit', 'mainInputHandle'))
YDef = namedtuple('YDef', ('handle', 'label', 'unit', 'eosGraph'))
Input = namedtuple('Input', ('handle', 'label', 'unit', 'iconID', 'defaultValue', 'defaultRange'))
# noinspection PyUnresolvedReferences