Inheritance diagram for visualizer.svgitem.SvgItem:
Collaboration diagram for visualizer.svgitem.SvgItem:Public Member Functions | |
| __init__ (self, x, y, rsvg_handle, **kwargs) | |
| Initializer. | |
| do_get_property (self, pspec) | |
| Get Property. | |
| do_set_property (self, pspec, value) | |
| Set Property. | |
| do_simple_is_item_at (self, x, y, cr, is_pointer_event) | |
| Simple Is Item At function. | |
| do_simple_paint (self, cr, bounds) | |
| Simple Paint function. | |
| do_simple_update (self, cr) | |
| Simple Update function. | |
Public Attributes | |
| bounds_x1 = float(self.x) | |
| minimum x | |
| bounds_x2 = float(self.x + self.width) | |
| maximum x | |
| bounds_y1 = float(self.y) | |
| minimum y | |
| bounds_y2 = float(self.y + self.height) | |
| maximum y | |
| custom_height = None | |
| custom height | |
| custom_width = None | |
| custom width | |
| handle = rsvg_handle | |
| handle | |
| height = self.handle.props.height | |
| height | |
| float | sx = 1.0 |
| x step | |
| float | sy = 1.0 |
| y step | |
| width = self.handle.props.width | |
| width | |
| x = x | |
| x | |
| y = y | |
| y | |
Protected Member Functions | |
| _size_changed (self) | |
| Size Changed function. | |
Static Private Attributes | |
| dict | __gproperties__ |
| setup our custom properties | |
SvgItem class.
Definition at line 9 of file svgitem.py.
| visualizer.svgitem.SvgItem.__init__ | ( | self, | |
| x, | |||
| y, | |||
| rsvg_handle, | |||
| ** | kwargs ) |
Initializer.
| self | this object |
| x | The x coordinate of a SVG image |
| y | The y coordinate of a SVG image |
| rsvg_handle | SVG handle |
| kwargs | key-value arguments |
Definition at line 77 of file svgitem.py.
References __init__().
Referenced by __init__().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Size Changed function.
| self | this object |
Definition at line 135 of file svgitem.py.
References custom_height, custom_width, handle, ns3::AnimationInterface::NodeSize.height, height, sx, sy, ns3::AnimationInterface::NodeSize.width, and width.
Referenced by do_set_property().
Here is the caller graph for this function:| visualizer.svgitem.SvgItem.do_get_property | ( | self, | |
| pspec ) |
Get Property.
| self | this object |
| pspec | property name |
Definition at line 162 of file svgitem.py.
References handle, ns3::AnimationInterface::NodeSize.height, height, ns3::AnimationInterface::NodeSize.width, width, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.x, ns3::Gnuplot2dDataset::Point.x, ns3::Gnuplot3dDataset::Point.x, ns3::Vector2D.x, ns3::Vector3D.x, Room.x, x, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.y, ns3::Gnuplot2dDataset::Point.y, ns3::Gnuplot3dDataset::Point.y, ns3::Vector2D.y, ns3::Vector3D.y, Room.y, and y.
| visualizer.svgitem.SvgItem.do_set_property | ( | self, | |
| pspec, | |||
| value ) |
Set Property.
| self | this object |
| pspec | property name |
| value | property value |
Definition at line 98 of file svgitem.py.
References _size_changed(), custom_height, custom_width, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.x, ns3::Gnuplot2dDataset::Point.x, ns3::Gnuplot3dDataset::Point.x, ns3::Vector2D.x, ns3::Vector3D.x, Room.x, x, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.y, ns3::Gnuplot2dDataset::Point.y, ns3::Gnuplot3dDataset::Point.y, ns3::Vector2D.y, ns3::Vector3D.y, Room.y, and y.
Here is the call graph for this function:| visualizer.svgitem.SvgItem.do_simple_is_item_at | ( | self, | |
| x, | |||
| y, | |||
| cr, | |||
| is_pointer_event ) |
Simple Is Item At function.
| self | this object |
| x | the X position |
| y | the Y position |
| cr | rendered |
| is_pointer_event | is the event a pointer event |
Definition at line 211 of file svgitem.py.
References ns3::AnimationInterface::NodeSize.height, height, ns3::AnimationInterface::NodeSize.width, width, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.x, ns3::Gnuplot2dDataset::Point.x, ns3::Gnuplot3dDataset::Point.x, ns3::Vector2D.x, ns3::Vector3D.x, Room.x, x, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.y, ns3::Gnuplot2dDataset::Point.y, ns3::Gnuplot3dDataset::Point.y, ns3::Vector2D.y, ns3::Vector3D.y, Room.y, and y.
| visualizer.svgitem.SvgItem.do_simple_paint | ( | self, | |
| cr, | |||
| bounds ) |
Simple Paint function.
| self | this object |
| cr | rendered |
| bounds | bounds |
Definition at line 187 of file svgitem.py.
References handle, sx, sy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.x, ns3::Gnuplot2dDataset::Point.x, ns3::Gnuplot3dDataset::Point.x, ns3::Vector2D.x, ns3::Vector3D.x, Room.x, x, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.y, ns3::Gnuplot2dDataset::Point.y, ns3::Gnuplot3dDataset::Point.y, ns3::Vector2D.y, ns3::Vector3D.y, Room.y, and y.
| visualizer.svgitem.SvgItem.do_simple_update | ( | self, | |
| cr ) |
Simple Update function.
| self | this object |
| cr | rendered |
Definition at line 199 of file svgitem.py.
|
staticprivate |
setup our custom properties
Definition at line 38 of file svgitem.py.
| visualizer.svgitem.SvgItem.bounds_x1 = float(self.x) |
minimum x
Definition at line 206 of file svgitem.py.
| visualizer.svgitem.SvgItem.bounds_x2 = float(self.x + self.width) |
maximum x
Definition at line 208 of file svgitem.py.
| visualizer.svgitem.SvgItem.bounds_y1 = float(self.y) |
minimum y
Definition at line 207 of file svgitem.py.
| visualizer.svgitem.SvgItem.bounds_y2 = float(self.y + self.height) |
maximum y
Definition at line 209 of file svgitem.py.
| visualizer.svgitem.SvgItem.custom_height = None |
custom height
Definition at line 96 of file svgitem.py.
Referenced by _size_changed(), and do_set_property().
| visualizer.svgitem.SvgItem.custom_width = None |
custom width
Definition at line 95 of file svgitem.py.
Referenced by _size_changed(), and do_set_property().
| visualizer.svgitem.SvgItem.handle = rsvg_handle |
handle
Definition at line 92 of file svgitem.py.
Referenced by _size_changed(), do_get_property(), and do_simple_paint().
| visualizer.svgitem.SvgItem.height = self.handle.props.height |
height
Definition at line 94 of file svgitem.py.
Referenced by _size_changed(), do_get_property(), and do_simple_is_item_at().
| visualizer.svgitem.SvgItem.sx = 1.0 |
x step
Definition at line 90 of file svgitem.py.
Referenced by _size_changed(), and do_simple_paint().
| visualizer.svgitem.SvgItem.sy = 1.0 |
y step
Definition at line 91 of file svgitem.py.
Referenced by _size_changed(), and do_simple_paint().
| visualizer.svgitem.SvgItem.width = self.handle.props.width |
width
Definition at line 93 of file svgitem.py.
Referenced by _size_changed(), do_get_property(), and do_simple_is_item_at().
| visualizer.svgitem.SvgItem.x = x |
x
Definition at line 88 of file svgitem.py.
Referenced by do_get_property(), do_set_property(), do_simple_is_item_at(), and do_simple_paint().
| visualizer.svgitem.SvgItem.y = y |
y
Definition at line 89 of file svgitem.py.
Referenced by do_get_property(), do_set_property(), do_simple_is_item_at(), and do_simple_paint().