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

Public Member Functions

def __init__ (self, value, col, selectCol)
 
def getAbsolutePosition (self)
 
def setPosition (self, pos)
 
def checkSelected (self, ray)
 
def addToScene (self, mgr, scene)
 
def setVisible (self, isVisible)
 
def mouseRelease (self, e)
 
def mousePress (self, camera, e)
 
- Public Member Functions inherited from Handle3D
def __init__ (self)
 
def isSelected (self)
 
def checkMeshIntersect (self, ray, nodes, tris)
 
def mousePress (self, camera, e)
 
def mouseRelease (self, e)
 
def mouseMove (self, e)
 
def getCameraRay (self, x=None, y=None)
 
def getCameraDirection (self)
 
def getDragDistance (self, axis, dragvec, startpos, isPerpendicular=False)
 
def setPosition (self, pos)
 
def setScale (self, scale)
 
def setRotation (self, yaw, pitch, roll)
 
- 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

 value
 
 col
 
 selectCol
 
 lastIntersect
 
- Public Attributes inherited from Handle3D
 figscale
 
 prevX
 
 prevY
 
 buttons
 
 pressedCamera
 
 lastIntersect
 
- Public Attributes inherited from Handle
 figs
 

Static Public Attributes

 sphereNodes
 
 sphereInds
 
 sphereNorms
 
 sphereScale
 
 materialName
 
- Static Public Attributes inherited from Handle
 handleMatName
 

Detailed Description

Specialized handle for dragging a sphere around. This creates a handle with two sphere figures in self.figs, first
is colored with self.col and second with self.selectCol. Normally only the first is visible but when selected the
second becomes visible, then reverts on mouse release. Thus a self.selectCol colored handle indicates selection.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  value,
  col,
  selectCol 
)
Initialize the handle with `value' as the stored self.value arbitrary per-handle value, normal color `col' and
selected color `selectCol'.

Member Function Documentation

◆ addToScene()

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

◆ checkSelected()

def checkSelected (   self,
  ray 
)

◆ getAbsolutePosition()

def getAbsolutePosition (   self)
Returns the absolute position in space of this handle, which can be relative to a representation's position.
Here is the caller graph for this function:

◆ mousePress()

def mousePress (   self,
  camera,
  e 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseRelease()

def mouseRelease (   self,
  e 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPosition()

def setPosition (   self,
  pos 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setVisible()

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

Member Data Documentation

◆ col

col

◆ lastIntersect

lastIntersect

◆ materialName

materialName
static

◆ selectCol

selectCol

◆ sphereInds

sphereInds
static

◆ sphereNodes

sphereNodes
static

◆ sphereNorms

sphereNorms
static

◆ sphereScale

sphereScale
static

◆ value

value

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