input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void draw pixel direct color color int x int y if x 0 y 0 x full osi get width y full osi get height return if color null color current graphics get color int rgb rgb color get red 16 color get green 8 color get blue full osi set rgb x y rgb | sets the pixel with pixel coordinates x y to be a specified color |
public vector3 d get view point return new vector3 d view point | returns the current viewpoint of the transformation |
public double get clip distance return clip distance | returns the clip distance |
public void set patch color int u index int v index color c if patch color null if c null return patch color new color u count v count patch color u index v index c | sets the intrinsic color of a subpatch |
public void set clip distance double clip distance if this clip distance clip distance return this clip distance clip distance fire transform change event | set the clip distance |
public color get patch color int u index int v index boolean front face if patch color null if front face default back color null return default patch color else return default back color color c patch color u index v index return c null default patch color c | gets the intrinsic color of a subpatch |
public void draw line direct int x1 int y1 int x2 int y2 graphics g get transform get untransformed graphics g draw line x1 y1 x2 y2 | draws a line in the current color between points that are specified using |
public boolean equals object o try double m grid transform matrix o matrix for int r 0 r 3 r for int c 0 c 4 c if m r c matrix r c return false return true catch exception e return false | tests whether a given object is equal to this transform matrix |
public double get object displacement normal to screen return object displacement normal to screen | get the amount by which object coordinates are displaed normal to the screen |
public vector3 d re vector3 d v new vector3 d v x this x re v y this y re v z this z re return v | the real part of a complex vector |
public void clear patch colors patch color null | resets all individual patch colors as set by |
public vector3 d im vector3 d v new vector3 d v x this x im v y this y im v z this z im return v | the imaginary part of a complex vector |
public vector3 d apply vector3 d vec return new vector3 d matrix 0 0 vec x matrix 0 1 vec y matrix 0 2 vec z matrix 0 3 matrix 1 0 vec x matrix 1 1 vec y matrix 1 2 vec z matrix 1 3 matrix 2 0 vec x matrix 2 1 vec y matrix 2 2 vec z matrix 2 3 | applies the transform to a vector |
public double norm return math sqrt this re norm2 this im norm2 | returns the length of this vector computed as code math |
public void negate x x times 1 0 y y times 1 0 z z times 1 0 | multiplies each component of this vector by 1 |
public vector3 d apply to normal vector3 d n vector3 d aux new vector3 d matrix 0 0 n x matrix 0 1 n y matrix 0 2 n z matrix 1 0 n x matrix 1 1 n y matrix 1 2 n z matrix 2 0 n x matrix 2 1 n y matrix 2 2 n z don t apply tranlation to n n assign aux n apply n todo fix this it s not correct except maybe for orthogonal transforms if reverse surface orientation n negate return n | apply the transformation to a surface normal |
public complex vector3 d plus complex vector3 d v return new complex vector3 d x plus v x y plus v y z plus v z | returns the vector sum of this vector and v |
public complex vector3 d minus complex vector3 d v return new complex vector3 d x minus v x y minus v y z minus v z | returns the vector difference of this vector and v |
public boolean get reverse surface orientation return reverse surface orientation | gets the value of the reverse surface orientation property |
public int get view style return view style | returns the currently selected viewstyle |
public complex vector3 d times complex d return new complex vector3 d x times d y times d z times d | returns the scalar product of this vector times d |
public void set normal int u index int v index vector3 d normal vector if normal null normal new vector3 d u count 1 v count 1 normal u index v index normal vector | set a normal vector at one of the vertices in the basic grid |
public grid transform matrix set reverse surface orientation boolean reverse surface orientation this reverse surface orientation reverse surface orientation return this | sets the value of the reverse surface orientation property |
public void assign times complex d x assign times d y assign times d z assign times d | this vector is scalar multiplied by d |
public grid transform matrix reverse reverse surface orientation reverse surface orientation return this | reverses the value of the reverse surface orientation property |
public void release memory view left eye view right eye view null left samples right samples view ints null width height 0 | releases the memory allocated by |
public graphics2 d get left eye graphics return left eye view null null graphics2 d left eye view get graphics | returns a newly created graphics context for drawing into the left eye view |
public graphics2 d get right eye graphics return right eye view null null graphics2 d right eye view get graphics | returns a newly created graphics context for drawing into the right eye view |
public buffered image get left eye image return left eye view | returns the buffered image where the left eye view is rendered |
public buffered image get right eye image return right eye view | returns the buffered image where the right view is rendered |
public vector3 d get unit normal int u index int v index vector3 d n get normal u index v index n normalize if double is infinite n x double is na n n x double is infinite n y double is na n n y double is infinite n z double is na n n z n new vector3 d 1 0 0 return n | returns a unit normal vector at a specified vertex in the basic grid |
public grid transform matrix set translation vector3 d vt if vt null matrix 0 3 matrix 1 3 matrix 2 3 0 else matrix 0 3 vt x matrix 1 3 vt y matrix 2 3 vt z return this | replaces the translation part of the matrix with a given vector3 d vt |
public grid transform matrix set translation double x double y double z matrix 0 3 x matrix 1 3 y matrix 2 3 z return this | replaces the translation part of the matrix with the vector x y z |
public boolean begin draw to offscreen image if transform null transform get width 0 current graphics null full osi null return false prepare osifor drawing direct offscreen drawing true return true | this method along with |
public void clear normals normal null | removes all normal vectors that were set using |
public grid transform matrix left multiply by grid transform matrix m double new matrix new double 3 4 for int r 0 r 3 r for int c 0 c 4 c double sum 0 for int i 0 i 3 i sum m matrix r i matrix i c if c 3 sum m matrix r 3 matrix 3 3 is taken to be 1 other entries in bottom row are 0 hk new matrix r c sum this matrix new matrix this reverse surface orientation this reverse surface orientation m reverse surface orientation return this | multiplying this grid transformation matrix on the left by another |
public void set post comp function int post comp function if this post comp function post comp function this post comp function post comp function post comp select set selected index post comp function force redraw | sets the function that is postcomposed with the basic map |
public color get default patch color return default patch color | get the default patch color |
public void end draw to offscreen image if direct offscreen drawing return transform finish drawing finish osidraw direct offscreen drawing false current graphics null | this method along with |
public color get default back color return default back color | get the default color for the back face of a patch |
public void set pre comp function int pre comp function if this pre comp function pre comp function this pre comp function pre comp function pre comp select set selected index pre comp function force redraw | sets the function that is precomposed with the basic map |
public void set default back color color default back color this default back color default back color | set the default color for the back face of a patch |
public buffered image get image boolean always copy if display null exhibit null previous width 0 return null if full osi null always copy return full osi buffered image image graphics2 d g image new buffered image previous width previous height offscreen image type g graphics2 d image get graphics if full osi null render g previous width previous height else g draw image full osi 0 0 null g dispose return image | get a buffered image that contains the picture shown on this views display |
public void set color color color this color color fire decoration change event | sets the color to be used for drawing the figure |
public object clone transform3 d tr transform3 d super clone tr view point new vector3 d view point tr view direction new vector3 d view direction tr image plane xdirection new vector3 d image plane xdirection tr image plane ydirection new vector3 d image plane ydirection return tr | creates a copy of this transform3 d |
public point2 d get p1 return p1 | gets the first of the two points that determine the figure |
public void set p1 point2 d p1 this p1 p1 fire decoration change event | sets the first of the two points that determine the figure |
public point2 d get p2 return p2 | gets the second of the two points that determine the figure |
public void set p2 point2 d p2 this p2 p2 fire decoration change event | sets the second of the two points that detrmine the figure |
public void set shape int shape if shape line segment shape line shape circle return this shape shape fire decoration change event | sets the figure that is to be drawn |
protected complex composed function complex z complex w null switch pre comp function case identity w z break case inversion w z inverse break case fractional w z minus 1 divided by z plus 1 times 1 break case sqrroot w z power 0 5 break z function w switch post comp function case identity w z break case inversion w z inverse break case fractional w z minus 1 divided by z plus 1 times 1 break case sqrroot w z power 0 5 break return w | computes the output value for a given input argument taking into |
public void set point count int point count if point count 2 switch this shape case circle point count default points on circle break case line point count default points on line break default point count default points on segment this point count point count | sets the number of points that are used for drawing the figure |
public vector3 d object to view coords vector3 d object point vector3 d view coords new vector3 d object to view coords object point view coords return view coords | transform a point in world coordinates to viewing coodinates |
public void set default window2 d double default window2 d if default window2 d null if default window2 d length 4 throw new illegal argument exception internal error array is too short this default window2 d default window2 d | sets the default 2 d window for this exhibit |
public void object to xywindow coords vector3 d object point point2 d p object to view coords object point temp vector p set location temp vector x temp vector y | project a world coordinate point onto the view plane |
public void set default window2 d double xmin double xmax double ymin double ymax set default window2 d new double xmin xmax ymin ymax | sets the default 2 d window for this exhibit |
public boolean get enable three d return enable three d | gets the value of the enable three d property |
public point2 d object to xywindow coords vector3 d object point point2 d p new point2 d double object to xywindow coords object point p return p | project a world coordinate point onto the view plane |
protected complex grid map double u double v complex w new complex u v switch grid type case cartesian break case polar w re u math cos v w im u math sin v break case polarconformal w w exponential break return w | finds the input grid point corresponding to u v |
public double object to view z vector3 d object point double x1 object point x double y1 object point y double z1 object point z if object displacement normal to screen 0 x1 object displacement normal to screen save view direction x y1 object displacement normal to screen save view direction y z1 object displacement normal to screen save view direction z return x1 view direction x y1 view direction y z1 view direction z | compute just the z coordinate of a given point in view coordinates |
public vector3 d get unit normal vector3 d n grid3 d this get unit normal u index v index if grid transform null n grid transform apply to normal n return n | returns a unit normal vector for the upper left vertex |
public vector3 d get view point if transform3 d null return null else return transform3 d get view point | returns the current viewpoint for this views transform |
public void set view point vector3 d viewpoint if transform3 d null transform3 d get view point equals viewpoint transform3 d set view point viewpoint | sets the viewpoint for this views transform |
public vector3 d get view up if transform3 d null return null else return transform3 d get image plane ydirection | returns the current image plane ydirection for this views transform |
public void set view up vector3 d view up if transform3 d null transform3 d set image plane ydirection view up | sets the view up vector for this views transform |
public void set display display display super set display display if get exhibit null view style stereograph view view style cross eye stereo view enter stereograph view monocular view view style else string anaglyph view pref prefs get view3d initial anaglyph mode default if anaglyph view pref equals ignore case always if enable three d set view style red green stereo view else save view style while3 ddisabled red green stereo view else if anaglyph view pref equals ignore case never if enable three d set view style monocular view else save view style while3 ddisabled monocular view | set the display where this view draws its exhibit |
public transform3 d get transform3 d if get transform instanceof transform3 d return transform3 d get transform else return null | if the transform associated with this view is a |
protected axes2 d create axes if enable three d return new axes3 d else return new axes2 d | returns an axes decoration that is appropriate for this view |
public mouse task get default mouse task return new basic mouse task3 d | returns a mouse tase of type |
public void state changed change event evt super state changed evt if evt get source instanceof transform3 d boolean is ortho transform3 d evt get source get orthographic projection projection commands set selected index is ortho 1 0 | react to a change by rebuilding the offscreen bit map |
public boolean get use color return use color | tells whether grid lines are drawn in colors |
public void set use color boolean use color if use color this use color return use color toggle set state use color make sure use color property and toggle action are in sync force redraw this use color use color if arg view null arg view use color use color arg view force redraw | set whether to use a range of colors for the grid lines |
public action list get view commands action list commands super get view commands commands add null add projection selection commands commands add projection commands projection commands set enabled enable three d commands add null commands add view style commands return commands | returns a list of view commands appropriate for a view3 d |
public void read extra xml element view info throws ioexception super read extra xml view info element savedtransform element save and restore get child element view info savedtransform if savedtransform element null transform transform save and restore build transform from element savedtransform element set saved auxiliary transform for enable three d transform | overridden to read back the extra transform info |
public void draw curve vector3 d points if points null draw curve points points length | draws a curve in three space |
public void draw curve vector3 d points int point count draw curve points 0 point count 1 | draws a curve in three space |
public void draw collared curve vector3 d points boolean reversed if points null draw collared curve points 0 points length 1 reversed | a convenience method that simply calls code draw collard curve points 0 points |
public void draw wireframe surface grid3 d surface data if get view style monocular view surface data apply transform transform3 d this surface data draw curves this current graphics else set up for left eye surface data apply transform transform3 d this surface data draw curves this current graphics set up for right eye surface data apply transform transform3 d this surface data draw curves this current graphics finish stereo view | draws a surface in wireframe |
protected void set up for right eye double separation factor if view style cross eye stereo view separation factor 0 04 else if view style stereograph view separation factor 0 03 else separation factor 0 03 separation factor eye separation multiplier transform3 d select right eye separation factor transform3 d use graphics right eye graphics right eye untransformed graphics current graphics right eye graphics | to be used with |
protected void finish stereo view transform3 d select no eye transform3 d use graphics save graphics during stereo save untransformed graphics during stereo current graphics save graphics during stereo save graphics during stereo null save untransformed graphics during stereo null | to be used with |
final public boolean clip vector3 d object point return object point dot view direction clip z | this method is used to test whether a point should be clipped |
protected class get bean class return velocity2 js options class | get the class described by this bean info |
public void restored settings add initializer new velocity2 js settings initializer | registers properties editor installs options and copies settings |
public void uninstalled | uninstalls properties options |
public void update settings map class kit class map settings map if kit class base kit class new velocity token coloring initializer update settings map kit class settings map if kit class velocity2 js editor kit class settings util update list setting settings map settings names token context list new token context velocity2 js token context context | update map filled with the settings |
public void notify device string device id alert alerts throws exception string xml get xmlalerts alerts if log is trace enabled log trace sending xml object params new object device id xml new integer 1 ui mode ws tools invoke method send notification message params | call send notification message method exposed by the ds server via ws |
public void notify user string user name alert alerts throws exception string xml get xmlalerts alerts if log is trace enabled log trace sending xml object params new object user name xml new integer 1 ui mode ws tools invoke method send notification messages params | call send notification messages method exposed by the ds server via ws |
public string authenticate user string username string password throws manager exception try if log is info enabled log info authenticating return this dao validate login username password catch data access exception ex throw new manager exception ex get message | autenticates the user and returns the sessionid if valid or null if invalid |
private string get xmlalerts alert alerts throws exception string xml alerts bean factory marshal alerts return xml alerts | converts the given alert array in a xml representation |
public imap message get message by uid string sessionid long message uid throws manager exception session id not valid exception if log is trace enabled log trace get message by id try int user id this dao validate session id sessionid if user id 1 throw new session id not valid exception session id sessionid is not valid return dao get message by id message uid catch data access exception ex throw new manager exception ex get message | this method return a message by id |
public string to string to string builder sb new to string builder this sb append server url url sb append username username sb append password return sb to string | returns a string representation of the object |
public void init throws data access exception if jndi data source name null try lookup data source catch exception ex for testing porposes jdbc driver org hsqldb jdbc driver jdbc url jdbc hsqldb hsql localhost 9001 funambol jdbc user sa jdbc password lookup driver else for testing porposes jdbc driver org hsqldb jdbc driver jdbc url jdbc hsqldb hsql localhost 9001 funambol jdbc user sa jdbc password lookup driver | initiates the datasource |
public long store message string folder name imap message message string session id throws manager exception session id not valid exception if log is trace enabled log trace store message try int user id this dao validate session id session id if user id 1 throw new session id not valid exception session id session id is not valid return dao store message folder name message user id catch data access exception ex throw new manager exception ex get message | this method return a message by id |
public long set deleted long message id string session id throws manager exception session id not valid exception if log is trace enabled log trace delete message try int user id this dao validate session id session id if user id 1 throw new session id not valid exception session id session id is not valid return dao set deleted message id catch data access exception ex throw new manager exception ex get message | this method validates the session id and if it is successful a message |
private void map types call call | maps the java types to the serializer deserializer to use the axis |
private void map type call call final class type final string qname qname q new qname urn bean service qname call register type mapping type q new bean serializer factory type q new bean deserializer factory type q | maps a single type |
public string authenticate string username string password throws authentication exception try imap manager manager new imap manager return manager authenticate user username password catch manager exception ex throw new authentication exception ex get message | authenticates a user in the server |
public void delete folder string folder name string session id throws manager exception session id not valid exception if log is trace enabled log trace delete folder try int user id this dao validate session id session id if user id 1 throw new session id not valid exception session id session id is not valid dao delete folder folder name user id catch data access exception ex throw new manager exception ex get message | this method validates the session id and if it is successful deletes the |
private void lookup driver throws data access exception data source new jdbcdata source jdbc driver jdbc url jdbc user jdbc password | initiates the data source using jdbc driver |
public string update folder string old folder name string new folder name string session id throws manager exception session id not valid exception if log is trace enabled log trace update folder try int user id this dao validate session id session id if user id 1 throw new session id not valid exception session id session id is not valid return dao update folder old folder name new folder name user id catch data access exception ex throw new manager exception ex get message | this method validates the session id and if it is successful updates the |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.