gepetto-viewer-corba 6.0.0
Corba server for gepetto-viewer
 
Loading...
Searching...
No Matches
gepetto.corbaserver.tools.Angular Class Reference

Public Member Functions

 __init__ (self, nodeName, color=Color.red, majorRadius=0.1, minorRadius=0.005, majorN=100, minorN=20)
 
 setTorusParameters (self, majorRadius, minorRadius, majorN, minorN)
 
 create (self, gui)
 
 remove (self, gui)
 
 set (self, gui, value, origin=(0, 0, 0), factor=pi)
 

Public Attributes

 name = nodeName
 
 color = color
 
 R = majorRadius
 
 r = minorRadius
 
 nR = majorN
 
 nr = minorN
 
 minC = _pointsCircularArrow(self.R, self.r, self.nR, self.nr)
 
 maxC = len(pts)
 

Detailed Description

Helper class to plot a 3D vector as a circular arrow.

Constructor & Destructor Documentation

◆ __init__()

gepetto.corbaserver.tools.Angular.__init__ ( self,
nodeName,
color = Color.red,
majorRadius = 0.1,
minorRadius = 0.005,
majorN = 100,
minorN = 20 )
Constructor
\\param majorRadius, majorN radius and discretisation of the circle that is
                           the center of the torus
\\param minorRadius, minorN radius and discretisation of the circle that is
                           a section of the torus

Member Function Documentation

◆ create()

gepetto.corbaserver.tools.Angular.create ( self,
gui )
Create the node in the GUI.

◆ remove()

gepetto.corbaserver.tools.Angular.remove ( self,
gui )
Delete the node in the GUI.

◆ set()

gepetto.corbaserver.tools.Angular.set ( self,
gui,
value,
origin = (0, 0, 0),
factor = pi )
Set the 3D vector to plot
\\param gui    the IDL client (typically the \\c gui attribute
                               of class gepetto.corbaserver.client.Client)
\\param value  the vector to plot (list or tuple of 3 elements)
\\param origin the translation of the origin (list or tuple of 3 elements)
\\param factor the norm of the vector is divided by this value

◆ setTorusParameters()

gepetto.corbaserver.tools.Angular.setTorusParameters ( self,
majorRadius,
minorRadius,
majorN,
minorN )
Set the torus parameters.
\\param majorRadius, majorN radius and discretisation of the circle that is
                           the center of the torus
\\param minorRadius, minorN radius and discretisation of the circle that is
                           a section of the torus

Member Data Documentation

◆ color

gepetto.corbaserver.tools.Angular.color = color

◆ maxC

gepetto.corbaserver.tools.Angular.maxC = len(pts)

◆ minC

gepetto.corbaserver.tools.Angular.minC = _pointsCircularArrow(self.R, self.r, self.nR, self.nr)

◆ name

gepetto.corbaserver.tools.Angular.name = nodeName

◆ nR

gepetto.corbaserver.tools.Angular.nR = majorN

◆ nr

gepetto.corbaserver.tools.Angular.nr = minorN

◆ R

gepetto.corbaserver.tools.Angular.R = majorRadius

◆ r

gepetto.corbaserver.tools.Angular.r = minorRadius

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