|
__init__(self)
|
|
getVRML2(self,
root,
complete=1,
normals=0,
colorPerVertex=True,
usePROTO=0,
sphereQuality=2,
cylinderQuality=10)
this method returns a list of strings describing DejaVu Geoms in
VRML2 format
|
|
NodeRepr(self,
geom,
matrix)
This method, to be implemented by sublcass, should generate stl,
vrml2 etc descriptions of DejaVu geoms
|
|
doit(self,
geom,
matrix)
|
|
doitReally(self,
geom,
matrix)
|
|
doitUsePROTO(self,
geom,
matrix)
|
|
getFileHeader1(self)
|
|
getCopyright(self)
|
|
getFileHeader2(self)
|
|
getFileTrailer(self)
|
|
getGeomName(self,
geom)
|
|
getGeomHeader(self,
geom)
|
|
getShape(self)
|
|
getAppearance(self)
|
|
getMaterial(self,
geom)
|
|
getGeomDescr(self,
geom)
|
|
getTexture(self,
geom)
return PixelTexture Node
PixelTexture {
image 0 0 0 # exposedField SFImage
repeatS True # field SFBool
repeatT True # field SFBool
}
the value of the image field specifies image size and pixel values
for a texture image
width (in pixel)
height (in pixel)
number of 8-bit bytes for each pixel
recognize values are:
0 disable texturing for shape
1 Grayscale
2 Grayscale with alpha
3 RGB
4 RGB with alpha
(Info taken from Book " VRML 2.0 source book by Andrea L.
|
|
getCoords(self,
geom)
|
|
getFaces(self,
geom)
|
|
getColorIndex(self,
geom)
|
|
getNormals(self,
geom)
|
|
getTexCoords(self,
geom)
|
|
getTexCoordsIndex(self,
geom)
|
|
getColors(self,
geom,
colors)
|
|
getTransforms(self,
matrix)
|
|
Inherited from OutputNode:
checkGeom,
configureProgressBar,
countGeoms,
loopGeoms,
updateProgressBar
|