|
__init__(self,
name=None,
check=1,
**kw)
Constructor
|
|
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
|
|
getGeomMaterialCode(self,
geomName,
indent='',
includePerVertexOrFace=True)
Returns a list of strings containing Python code to restore the
material of this geoemtry.
|
|
getGeomClipPlanesCode(self,
geomName,
indent='')
Returns a list of strings containing Python code to restore the
clipping planes of this geoemtry.
|
|
delete(self)
|
|
getVertices(self)
returns a handle to the vertices array
|
|
getVNormals(self)
returns a handle to the vertices array
|
|
getDepthMask(self)
|
|
SetPolyMode(self,
face,
mode)
Modify polymode
|
|
SetFrontPolyMode(self,
val)
Modify the current Object's frontPolyMode
|
|
SetBackPolyMode(self,
val)
Modify the current Object's frontPolyMode
|
|
SetFrontBackPolyMode(self,
val)
Modify the current Object's frontPolyMode
|
|
GetFrontPolyMode(self)
|
|
getDrawOutlineMode(self)
|
|
GetShading(self)
|
|
GetLighting(self)
|
|
getSharpColorBoundaries(self)
|
|
MaterialBindingMode(self,
num,
face=GL.GL_FRONT,
mode=None)
Figure out how materials should be used to color the object
|
|
AddMaterial(self,
values,
propNum=None,
face=GL.GL_FRONT,
mode=None)
Add materials to the current set
|
|
SetMaterial(self,
values,
propNum,
face=GL.GL_FRONT,
mode=None)
Set the materials WARNING: when back face colors are set, two
sided lighting has to be enabled
|
|
GetNormals(self)
Find the normals to be used for a given shading
|
|
Add(self,
check=1,
redo=1,
**kw)
add data to this object set self.redoDspLst to 1 to force
re-building of geometries DpyList which implies recontruction of main
display list.
|
|
SetForChildren(self,
recursive=False,
**kw)
set properties for children of this object.
|
|
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
|
|
setTransparency(self,
val)
|
|
__repr__(self)
|
|
BoundingBox(self,
display=None,
color=None,
lineWidth=None)
Turn Bounding Box drawing on and off, set attributs
|
|
Draw(self)
function that make the opengl call to draw the geom Should be call
by RedoDisplayList in between glNewList/ glEndList
|
|
deleteOpenglTemplateList(self)
|
|
deleteOpenglList(self)
|
|
RedoDisplayList(self)
Next Redraw will force to rebuild the OpenGL display list
|
|
AddClipPlane(self,
cp,
side=-1,
clipChildren=True,
tagModified=True)
Add the arbitrary clipping plane 'cp' to this geometry
|
|
RemoveClipPlane(self,
cp)
Remove the clip.
|
|
ApplyParentsTransform(self,
coords,
instance=None)
Return a vector of 3D coordinates transformed by all
transformations up to root (excluded)
|
|
TransformedCoords(self,
root=None,
instance=None)
Return the vertices after applying the current transformation
|
|
ObjSubTreeBB(self,
obj)
|
|
ComputeBB(self)
This method computes the bounding box of the visible objects in
the tree rooted at this object.
|
|
_DrawBox(self,
bbmin,
bbmax)
Draw the bounding box using lines
|
|
DrawTreeBoundingBox(self)
Draw's the bounding box of this object and all of its visible
descendants
|
|
DrawBoundingBox(self)
Draw's the objects bounding box
|
|
addVertexNormalsGeom(self)
|
|
faceCenterVector(self,
faceIndex)
|
|
addFaceNormalsGeom(self)
|
|
removeVertexNormalsGeom(self)
|
|
removeFaceNormalsGeom(self)
|
|
RenderMode(self,
mode=None,
shading=None,
face=GL.GL_FRONT,
redo=1)
Set the render mode
|
|
asIndexedPolygons(self,
**kw)
Should return an IndexedPolygons object if this object can be
represented using triangles, else return None
|
|
sortPoly(self,
order=-1)
None <- sortPoly(order=-1) Sorts the geometry polygons
according to z values of polygon's geomtric centers.
|
|
sortPoly_cb(self,
event=None)
|
|
setViewer(self,
viewer,
buildDisplayList)
set viewer in all children of geom object
|
|
AllObjects(self)
Return a list of all children of this object in the object
tree
|
|
AllVisibleObjects(self)
Return a list of all visible children of this object in the object
tree
|
|
DisplayFunction(self)
Dummy display function.
|
|
LastParentBeforeRoot(self)
return the last parent of a node before the root object is
reached
|
|
_Hide(self)
Transient signal handler
|
|
_Remove(self,
a,
b)
Transient signal handler
|
|
isTransparent(self)
|
|
updateParentsForImmediateRendering(self,
val)
|
|
Inherited from Common2d3dObject.Common2d3dObject:
BuildFullName,
getVisible,
hideOwnGui,
showOwnGui
Inherited from Transformable.Transformable:
BuildMat,
ConcatRotation,
ConcatRotationRelative,
ConcatScale,
ConcatTranslation,
Decompose4x4,
FrameTransform,
GetMatrix,
GetMatrixInverse,
MakeMat,
MoveWith,
RedirectTransformTo,
ResetTransformation,
SetMatrix,
SetPivot,
SetRotation,
SetScale,
SetTransformation,
SetTranslation,
multMat4pt,
setMatrixComponents,
transformIsIdentity,
transformationSourceCode
Inherited from Displayable.Displayable:
InitColor,
InitMaterial,
SetupGL,
getLineWidth,
getPointWidth,
getStippleLines,
getStipplePolygons
|