Eidolon
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
Handle2D Class Reference
Inheritance diagram for Handle2D:
Inheritance graph
Collaboration diagram for Handle2D:
Collaboration graph

Public Member Functions

def __init__ (self, widg2D, col, selectRadius=None)
 
def isVisible3D (self)
 
def setVisible3D (self, isVisible)
 
def isActive (self)
 
def setActive (self, isActive)
 
def setColor (self, col)
 
def numNodes (self)
 
def getNodes (self)
 
def setNode (self, i, n)
 
def enumPlaneNodes (self, viewtrans)
 
def setPlaneVisible (self, viewtrans)
 
def isSelected (self)
 
def setSelected (self, isSelected)
 
def checkSelected (self, screenpos)
 
def updateHandle (self)
 
def updatePositions (self)
 
def mouseDrag (self, e, dragvec)
 
def addToScene (self, mgr, scene)
 
def updateRepr (self)
 
- Public Member Functions inherited from Handle
def __init__ (self)
 
def isVisible (self)
 
def setVisible (self, isVisible)
 
def isSelected (self)
 
def setSelected (self, isSelected)
 
def checkSelected (self, selectObj)
 
def isActive (self)
 
def setActive (self, isActive)
 
def addToScene (self, mgr, scene)
 
def removeFromScene (self, mgr, scene)
 
def mousePress (self, camera, e)
 
def mouseRelease (self, e)
 
def mouseMove (self, e)
 
def mouseDrag (self, e, dragvec)
 
def getPosition (self)
 
def setPosition (self, pos)
 
def setScale (self, scale)
 
def setRotation (self, yaw, pitch, roll)
 

Public Attributes

 widg2D
 
 planeMargin
 
 selectRadius
 
 selectedNodeInd
 
 col
 
- Public Attributes inherited from Handle
 figs
 

Static Public Attributes

 defaultPlaneMargin
 
- Static Public Attributes inherited from Handle
 handleMatName
 

Private Attributes

 _isActive
 
 _isChanged
 
 _isVisible3D
 

Detailed Description

This represents a handle in a BaseCamera2DWidget rendering widget. It has representation in 2D widget and optionally
have representation in the main 3D view. 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  widg2D,
  col,
  selectRadius = None 
)
Initialize the handle with the BaseCamera2DWidget instance `widg2D', color `col' applied to the figures of the
handle, and `selectRadius' float indicating the selectable radius in screen units around selectable figures.

Member Function Documentation

◆ addToScene()

def addToScene (   self,
  mgr,
  scene 
)
Here is the call graph for this function:

◆ checkSelected()

def checkSelected (   self,
  screenpos 
)
Here is the call graph for this function:

◆ enumPlaneNodes()

def enumPlaneNodes (   self,
  viewtrans 
)
Here is the caller graph for this function:

◆ getNodes()

def getNodes (   self)
Returns the world coordinates of the data nodes representing this handle.
Here is the caller graph for this function:

◆ isActive()

def isActive (   self)

◆ isSelected()

def isSelected (   self)

◆ isVisible3D()

def isVisible3D (   self)
Here is the caller graph for this function:

◆ mouseDrag()

def mouseDrag (   self,
  e,
  dragvec 
)
Here is the caller graph for this function:

◆ numNodes()

def numNodes (   self)
Here is the caller graph for this function:

◆ setActive()

def setActive (   self,
  isActive 
)
Here is the call graph for this function:

◆ setColor()

def setColor (   self,
  col 
)

◆ setNode()

def setNode (   self,
  i,
  n 
)

◆ setPlaneVisible()

def setPlaneVisible (   self,
  viewtrans 
)
Here is the call graph for this function:

◆ setSelected()

def setSelected (   self,
  isSelected 
)

◆ setVisible3D()

def setVisible3D (   self,
  isVisible 
)

◆ updateHandle()

def updateHandle (   self)
Called by the 2D widget to cause handles to update their representations, positions, etc.
Here is the call graph for this function:

◆ updatePositions()

def updatePositions (   self)
Called whenever a handle needs to update its positions for its representation figures.
Here is the caller graph for this function:

◆ updateRepr()

def updateRepr (   self)
Here is the caller graph for this function:

Member Data Documentation

◆ _isActive

_isActive
private

◆ _isChanged

_isChanged
private

◆ _isVisible3D

_isVisible3D
private

◆ col

col

◆ defaultPlaneMargin

defaultPlaneMargin
static

◆ planeMargin

planeMargin

◆ selectedNodeInd

selectedNodeInd

◆ selectRadius

selectRadius

◆ widg2D

widg2D

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