Regarding the box size, here is the code snippet from the subs.py that does this -- you'll have to cast it into Java, though...unless you're using Jython!Regarding the box size, here is the code snippet from the subs.py that does this -- you'll have to cast it into Java, though...unless you're using Jython!
def setBoxSize(self, percent=.70, clip=1, showBox=1, snap=0): """ Set the size of the VisAD 'box' for the <display> as a percentage (fraction). The default is .70 (70%). If <clip> is true, the display will be clipped at the border of the box; otherwise, data displays may spill over. If <showBox> is true, the wire-frame will be shown; otherwise, it will be turned off. If <snap> is true, the box will be reoriented to an upright position. """ pc=self.getProjectionControl() if (not snap) or (self.pcMatrix == None): self.pcMatrix=pc.getMatrix() if len(self.pcMatrix) > 10: self.pcMatrix[0]=percent self.pcMatrix[5]=percent self.pcMatrix[10]=percent else: self.pcMatrix[0]=percent/.64 self.pcMatrix[3]=-percent/.64 pc.setMatrix(self.pcMatrix) dr = self.getDisplayRenderer(); if __ok3d: try: if isinstance(dr, DisplayRendererJ3D): dr.setClip(0, clip, 1., 0.0, 0.0, -1.); dr.setClip(1, clip, -1., 0.0, 0.0, -1.); dr.setClip(2, clip, 0.0, 1., 0.0, -1.); dr.setClip(3, clip, 0.0, -1., 0.0, -1.); #dr.setClip(4, 1, 0.0, 0.0, 1., -1.); #dr.setClip(5, 1, 0.0, 0.0, -1., -1.); elif isinstance(dr, DisplayRendererJ2D): if clip: dr.setClip(-1., 1., -1., 1.) else: dr.unsetClip() except: pass dr.setBoxOn(showBox) tomPS:.
-- Tom Whittaker (tomw@xxxxxxxxxxxxx) University of Wisconsin-Madison Space Science and Engineering Center Cooperative Institute for Meteorological Satellite Studies Phone/VoiceMail: 608.262.2759
visadlist information:
visadlist
visadarchives: