-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
144 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/lifeblood_viewer/graphics_items/pretty_items/decorated_node.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from .drawable_node import DrawableNode | ||
from .node_connection_snap_point import NodeConnSnapPoint | ||
from ..graphics_scene_base import GraphicsSceneBase | ||
|
||
from typing import List | ||
|
||
|
||
class DrawableNodeWithSnapPoints(DrawableNode): | ||
def __init__(self, scene: GraphicsSceneBase, id: int, type: str, name: str): | ||
super().__init__(scene, id, type, name) | ||
|
||
def input_snap_points(self) -> List[NodeConnSnapPoint]: | ||
# TODO: cache snap points, don't recalc them every time | ||
if self.get_nodeui() is None: | ||
return [] | ||
inputs = [] | ||
for input_name in self.get_nodeui().inputs_names(): | ||
inputs.append(NodeConnSnapPoint(self, input_name, True)) | ||
return inputs | ||
|
||
def output_snap_points(self) -> List[NodeConnSnapPoint]: | ||
# TODO: cache snap points, don't recalc them every time | ||
if self.get_nodeui() is None: | ||
return [] | ||
outputs = [] | ||
for output_name in self.get_nodeui().outputs_names(): | ||
outputs.append(NodeConnSnapPoint(self, output_name, False)) | ||
return outputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/lifeblood_viewer/graphics_items/pretty_items/fancy_items/implicit_split_visualizer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.