Package DejaVu :: Module Insert2d :: Class Insert2d
[hide private]
[frames] | no frames]

Class Insert2d

source code

Common2d3dObject.Common2d3dObject --+
                                    |
                                   Insert2d
Known Subclasses:
StickImage.StickImage, glfSticker.Sticker, colorMapLegend.ColorMapLegend

Base class for 2d inserts that can be displayed in a camera

Instance Methods [hide private]
  Draw(self)
set the projection matrices, the subclass must call this in their Draw func, otherwise tile rendering and stereo won't work
  ResetPosition(self)
  ResetSize(self)
  ResetTransformation(self)
Reset the tranformations
  Set(self, check=1, redo=1, updateOwnGui=True, **kw)
set data for this object check=1 : verify that all the keywords present can be handle by this func redo=1 : append self to viewer.objectsNeedingRedo updateOwnGui=True : allow to update owngui at the end this func
  __init__(self, name='insert2d', check=1, **kw)
Constructor
  calculateAnchorAndPosition(self, event)
  getState(self)
return a dictionary describing this object's state This dictionary can be passed to the Set method to restore the object's state
  pickDraw(self)
called by the picking process to operate the selection
  processHit_cb(self, pick)
  respondToDoubleClick(self, event)
to be overidden
  respondToMouseMove(self, event, redo=1)
the trackball transmit the event info
  setPosition(self, event, redo=1)
the trackball transmit the translation info
  setSize(self, event, redo=1)
the trackball transmit the translation info
  setViewer(self, viewer, buildDisplayList)
set viewer in all children of geom object

Inherited from Common2d3dObject.Common2d3dObject: AllObjects, AllVisibleObjects, BuildFullName, DisplayFunction, LastParentBeforeRoot, RedoDisplayList, deleteOpenglList, getDepthMask, getVisible, hideOwnGui, showOwnGui

Inherited from Common2d3dObject.Common2d3dObject (private): _Hide, _Remove


Class Variables [hide private]
  keywords = ['immediateRendering', 'listed', 'name', 'needsRedoD...

Method Details [hide private]

Draw(self)

source code 
set the projection matrices, the subclass must call this in their Draw func, otherwise tile rendering and stereo won't work

ResetPosition(self)

source code 
None

ResetSize(self)

source code 
None

ResetTransformation(self)

source code 
Reset the tranformations

Set(self, check=1, redo=1, updateOwnGui=True, **kw)

source code 
set data for this object check=1 : verify that all the keywords present can be handle by this func redo=1 : append self to viewer.objectsNeedingRedo updateOwnGui=True : allow to update owngui at the end this func
Overrides: Common2d3dObject.Common2d3dObject.Set

__init__(self, name='insert2d', check=1, **kw)
(Constructor)

source code 
Constructor
Overrides: Common2d3dObject.Common2d3dObject.__init__
(inherited documentation)

calculateAnchorAndPosition(self, event)

source code 
None

getState(self)

source code 
return a dictionary describing this object's state This dictionary can be passed to the Set method to restore the object's state
Overrides: Common2d3dObject.Common2d3dObject.getState

pickDraw(self)

source code 
called by the picking process to operate the selection

processHit_cb(self, pick)

source code 
None

respondToDoubleClick(self, event)

source code 
to be overidden

respondToMouseMove(self, event, redo=1)

source code 
the trackball transmit the event info

setPosition(self, event, redo=1)

source code 
the trackball transmit the translation info

setSize(self, event, redo=1)

source code 
the trackball transmit the translation info

setViewer(self, viewer, buildDisplayList)

source code 
set viewer in all children of geom object
Overrides: Common2d3dObject.Common2d3dObject.setViewer
(inherited documentation)

Class Variable Details [hide private]

keywords

None
Value:
['immediateRendering',
 'listed',
 'name',
 'needsRedoDpyListOnResize',
 'pickable',
 'protected',
 'replace',
 'tagModified',
...