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

Public Member Functions

def __init__ (self, widg2D, pts, isClosed=False, col=color(1, 0, 0, 1), etype=None, radius=None)
 
def checkSelected (self, screenpos)
 
def setVisible (self, isVisible)
 
def numNodes (self)
 
def setNumNodes (self, n)
 
def getNodes (self)
 
def setNode (self, i, n)
 
def updatePositions (self)
 
def updateRepr (self)
 
- Public Member Functions inherited from Handle2D
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

 pts
 
 isClosed
 
 etype
 
 linecol
 
 mat
 
 coeffs
 
 numlines
 
 line2D
 
 line3D
 
 selectedNodeInd
 
- Public Attributes inherited from Handle2D
 widg2D
 
 planeMargin
 
 selectRadius
 
 selectedNodeInd
 
 col
 
- Public Attributes inherited from Handle
 figs
 

Static Public Attributes

 contourMatName
 
- Static Public Attributes inherited from Handle2D
 defaultPlaneMargin
 
- Static Public Attributes inherited from Handle
 handleMatName
 

Private Member Functions

def _calculateCoeffs (self)
 

Static Private Member Functions

def _contourMaterial (mgr)
 

Private Attributes

 _isVisible
 
 _isChanged
 

Detailed Description

Represents a polygon figure defined by 2 or more control points. The figure is drawn by interpolating points along
the line using the given element type. The lines for the handle are rendered into the given 2D widget and into the
3D view if set to do so. The handles for the control points are rendered in 2D only.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  widg2D,
  pts,
  isClosed = False,
  col = color(1,0,0,1),
  etype = None,
  radius = None 
)

Member Function Documentation

◆ _calculateCoeffs()

def _calculateCoeffs (   self)
private
Precalculates and stores the coefficients for the contour line.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _contourMaterial()

def _contourMaterial (   mgr)
staticprivate

◆ checkSelected()

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

◆ getNodes()

def getNodes (   self)

◆ numNodes()

def numNodes (   self)

◆ setNode()

def setNode (   self,
  i,
  n 
)

◆ setNumNodes()

def setNumNodes (   self,
  n 
)
Here is the call graph for this function:

◆ setVisible()

def setVisible (   self,
  isVisible 
)
Here is the caller graph for this function:

◆ updatePositions()

def updatePositions (   self)
Here is the call graph for this function:

◆ updateRepr()

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

Member Data Documentation

◆ _isChanged

_isChanged
private

◆ _isVisible

_isVisible
private

◆ coeffs

coeffs

◆ contourMatName

contourMatName
static

◆ etype

etype

◆ isClosed

isClosed

◆ line2D

line2D

◆ line3D

line3D

◆ linecol

linecol

◆ mat

mat

◆ numlines

numlines

◆ pts

pts

◆ selectedNodeInd

selectedNodeInd

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