A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
visualizer.svgitem.SvgItem Class Reference

SvgItem class. More...

+ Inheritance diagram for visualizer.svgitem.SvgItem:
+ Collaboration diagram for visualizer.svgitem.SvgItem:

Public Member Functions

def __init__ (self, x, y, rsvg_handle, **kwargs)
 Initializer.
 
def do_get_property (self, pspec)
 Get Property.
 
def do_set_property (self, pspec, value)
 Set Property.
 
def do_simple_is_item_at (self, x, y, cr, is_pointer_event)
 Simple Is Item At function.
 
def do_simple_paint (self, cr, bounds)
 Simple Paint function.
 
def do_simple_update (self, cr)
 Simple Update function.
 

Public Attributes

 bounds_x1
 minimum x
 
 bounds_x2
 maximum x
 
 bounds_y1
 minimum y
 
 bounds_y2
 maximum y
 
 custom_height
 custom height
 
 custom_width
 custom width
 
 handle
 handle
 
 height
 height
 
 sx
 x step
 
 sy
 y step
 
 width
 width
 
 x
 x
 
 y
 y
 

Protected Member Functions

def _size_changed (self)
 Size Changed function.
 

Static Private Attributes

dict __gproperties__
 setup our custom properties
 

Detailed Description

SvgItem class.

Definition at line 9 of file svgitem.py.

Constructor & Destructor Documentation

◆ __init__()

def visualizer.svgitem.SvgItem.__init__ (   self,
  x,
  y,
  rsvg_handle,
**  kwargs 
)

Initializer.

Parameters
selfthis object
xThe x coordinate of a SVG image
yThe y coordinate of a SVG image
rsvg_handleSVG handle
kwargskey-value arguments

Definition at line 77 of file svgitem.py.

References visualizer.svgitem.SvgItem.__init__().

Referenced by visualizer.svgitem.SvgItem.__init__().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ _size_changed()

def visualizer.svgitem.SvgItem._size_changed (   self)
protected

Size Changed function.

Parameters
selfthis object
Returns
exception if unknown property

Definition at line 135 of file svgitem.py.

References visualizer.svgitem.SvgItem.custom_height, visualizer.svgitem.SvgItem.custom_width, visualizer.svgitem.SvgItem.handle, ns3::AnimationInterface::NodeSize.height, visualizer.svgitem.SvgItem.height, grid.TimelinesRenderer.height, visualizer.svgitem.SvgItem.sx, visualizer.svgitem.SvgItem.sy, ns3::AnimationInterface::NodeSize.width, visualizer.svgitem.SvgItem.width, and grid.TimelinesRenderer.width.

Referenced by visualizer.svgitem.SvgItem.do_set_property().

+ Here is the caller graph for this function:

◆ do_get_property()

◆ do_set_property()

def visualizer.svgitem.SvgItem.do_set_property (   self,
  pspec,
  value 
)

Set Property.

Parameters
selfthis object
pspecproperty name
valueproperty value
Returns
exception if unknown property

Definition at line 98 of file svgitem.py.

References visualizer.svgitem.SvgItem._size_changed(), visualizer.svgitem.SvgItem.custom_height, visualizer.svgitem.SvgItem.custom_width, Room.x, ns3::Vector3D.x, ns3::Vector2D.x, ns3::Gnuplot2dDataset::Point.x, ns3::Gnuplot3dDataset::Point.x, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.x, visualizer.svgitem.SvgItem.x, Room.y, ns3::Vector3D.y, ns3::Vector2D.y, ns3::Gnuplot2dDataset::Point.y, ns3::Gnuplot3dDataset::Point.y, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2.y, and visualizer.svgitem.SvgItem.y.

+ Here is the call graph for this function:

◆ do_simple_is_item_at()

◆ do_simple_paint()

◆ do_simple_update()

def visualizer.svgitem.SvgItem.do_simple_update (   self,
  cr 
)

Simple Update function.

Parameters
selfthis object
crrendered
Returns
none

Definition at line 199 of file svgitem.py.

Member Data Documentation

◆ __gproperties__

dict visualizer.svgitem.SvgItem.__gproperties__
staticprivate

setup our custom properties

Definition at line 38 of file svgitem.py.

◆ bounds_x1

visualizer.svgitem.SvgItem.bounds_x1

minimum x

Definition at line 206 of file svgitem.py.

◆ bounds_x2

visualizer.svgitem.SvgItem.bounds_x2

maximum x

Definition at line 208 of file svgitem.py.

◆ bounds_y1

visualizer.svgitem.SvgItem.bounds_y1

minimum y

Definition at line 207 of file svgitem.py.

◆ bounds_y2

visualizer.svgitem.SvgItem.bounds_y2

maximum y

Definition at line 209 of file svgitem.py.

◆ custom_height

visualizer.svgitem.SvgItem.custom_height

custom height

Definition at line 96 of file svgitem.py.

Referenced by visualizer.svgitem.SvgItem._size_changed(), and visualizer.svgitem.SvgItem.do_set_property().

◆ custom_width

visualizer.svgitem.SvgItem.custom_width

custom width

Definition at line 95 of file svgitem.py.

Referenced by visualizer.svgitem.SvgItem._size_changed(), and visualizer.svgitem.SvgItem.do_set_property().

◆ handle

visualizer.svgitem.SvgItem.handle

◆ height

◆ sx

visualizer.svgitem.SvgItem.sx

◆ sy

visualizer.svgitem.SvgItem.sy

◆ width

◆ x

◆ y


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