input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public verify range start verify range int min int max matcher thread handler assert empty return new verify range start min max start end | verifies that a method call is called between min and max times inclusive |
public in order verify verify return verify at least 1 | verifies that a method call is called at least once |
public in order verify verify at least int min matcher thread handler assert empty return new in order verify this min start end | verifies that a method call is called at least min number of times |
public verify range start verify exactly int count return verify range count count | verifies that a method call is called an exact number of times |
public verify range start verify never return verify exactly 0 | verifies that a method call is never called |
public verify range start verify once return verify exactly 1 | verifies that a method call is only called exactly once |
public method stubs get stubs mockachino method method return stubs get method | get all stubs for the mock and the method |
public mock settings spy on object impl if impl null throw new usage error impl can not be null fallback new spy handler impl return this | sets the fallback handler to be a spy of impl |
public mock settings fallback call handler fallback if fallback null throw new usage error fallback can not be null this fallback fallback return this | sets the fallback handler |
public mock settings name string name if name null throw new usage error name can not be null this name name return this | sets the name of the mock |
public mock settings quick quick true return this | sets the mock to be quick |
public mock settings not quick quick false return this | sets the mock to not be quick |
public mock settings add class interfaces for class an interface interfaces this interfaces add an interface return this | lets the mock implement additional interfaces |
public void scale double s width s depth s height s radius s | scales the geometry measures width height depth radius |
public void set height float d height d | sets the height of a box cone or cylinder |
public void mark node if is marked is marked true | marks the node |
public void unmark node if is marked is marked false | unmarks the node |
public void set show name boolean b show name b | sets show name true if name should be shown |
public void set app glappearance app this app app | sets the nodes glappearance app |
public glappearance get app return app | gets the nodes glappearance app |
public float get yrot return y rot | gets the nodes rotation y rot around the y axis |
public float get xrot return x rot | gets the nodes rotation x rot around the x axis |
public void set yrot float f y rot f | sets the nodes rotation y rot around the y axis |
public void set xrot float f x rot f | sets the nodes rotation x rot around the x axis |
public void set visible boolean b if locked is collapsed return added these lines ha 040803 is visible b if b show name b | set the node visible or not |
public void mark collapsed todo auto generated method stub | mark a node as collapsed |
public glnode interface get node int i return glnode interface node list get i | method get node |
public gledge interface get edge int i return gledge interface edge list get i | method get node |
public void remove edge edge interface edge glvis graph debug println err message removing edge edge if data edge scene graph edge contains key edge gledge interface sgn gledge interface get edge edge data edge scene graph edge remove edge scene graph edge data edge remove sgn edge list remove sgn | remove a edge |
public void update edge glappearance app new glappearance app geom get app glline line glline geom line set coordinate glline from vertex from p line set coordinate glline to vertex to p | method update edge |
public void mark edge if is marked is marked true | marks the edge |
public void unmark edge if is marked is marked false | unmarks the edge |
public void visible boolean visible if locked return added this ha 040809 is visible visible | make the edge visible or not hide it |
public void show arrow boolean show if locked return system err println interaction show arrow show is arrow show | show the arrow on the edge |
public glmetaphor type get geom return geom | returns the geometry |
public graph interface get data graph return data graph | a reference back to the data graph |
public visual node interface get node node interface node return visual node interface data node scene graph node get node | return the visual node |
public node interface get node visual node interface node return node interface scene graph node data node get node | return the data node |
public visual edge interface get edge edge interface edge return visual edge interface data edge scene graph edge get edge | return the visual edge |
public edge interface get edge visual edge interface edge return edge interface scene graph edge data edge get edge | return the data edge |
public void add edge edge interface data edge visual edge interface scene graph edge data edge scene graph edge put data edge scene graph edge scene graph edge data edge put scene graph edge data edge | add a new edge |
public void show elements boolean show if show visual node iterator vni scene graph nodes while vni has next visual node interface node vni next if node is marked node unmark node node set visible false node set visibility lock true update edge visibility false else create a list with boxes of which entities to unhide visual node iterator vni scene graph nodes while vni has next visual node interface node vni next node set visibility lock false node set visible true update edge visibility false | show all nodes and edges |
public void update edge edge interface edge visual edge interface scene graph edge visual edge interface data edge scene graph edge get edge if scene graph edge null scene graph edge update edge | updates an data edge |
public int get visible node size int size 0 visual node iterator it scene graph nodes while it has next visual node interface vn it next if vn is visible size return size | return the amount of currently visible nodes |
public void clear caches data node scene graph node clear data edge scene graph edge clear scene graph node data node clear scene graph edge data edge clear | remove all caches |
public int nodes size return data node scene graph node size | return the amount of nodes |
public int edges size return data edge scene graph edge size | return the amount of edges |
public visual node iterator scene graph nodes return new all nodes iterator | return a new visual node iterator |
public visual edge iterator scene graph edges return new all edges iterator | return a new visual edge iterator |
protected set get scene graph node return scene graph node data node key set | return the set of scene graph node data node |
protected set get scene graph edge return scene graph edge data edge key set | return the set of scene graph edge data edge |
public void set show arrow boolean show show arrow show | set whether the arrows of the edges should be shown |
public boolean is show arrow return show arrow | return whether the arrows of the edges should be shown |
public void update neighbour edges scene graph update all neighbour edges data node | update the neighbor edges of this node |
public void set final position float x float y float z pos final x x pos final y y pos final z z | sets the position of the visual node |
public point3d get final position return pos final | returns the position of the visual node |
public void set current position float x float y float z current position x x current position y y current position z z iterator it collapsed nodes iterator visual node interface sgnode null while it has next sgnode visual node interface it next sgnode set current position x y z if you want to update the neighbor edges when moving a node however this is done usually for all nodes tps update neighbour edges | set the current position of a visual node |
public point3d get current position return current position | return the current position of the visual node |
public node interface get data node return data node | returns the data node |
public void add collapsed visual node interface node collapsed nodes add node | adds a new collapsed node to the current node |
public void expand if there are collapsed nodes contained expand them all visual node interface node null get list of contained nodes iterator it collapsed nodes iterator while it has next node visual node interface it next node expand remove it from the list of contained nodes it remove why this tps is collapsed false set visible true scene graph update edge visibility false scene graph update all edges | expands all collapsed nodes within this node recursively |
public void set visibility lock boolean lock locked lock | set whether the node should be locked for changes of visibility |
public visual node interface get from return source | method get from |
public visual node interface get to return target | method get to |
public edge interface get data edge return data edge | return the data edge |
public void rotate boolean rotate auto rotate rotate | sets the flag that controls if the auto rotate is on |
public glcanvas get canvas return canvas | returning current glcanvas |
public void render if this context is current this context set current system err println render if canvas is disposed canvas set current context make current draw scene canvas swap buffers this context swap buffers | renders the next scene |
protected void dispose glu glu new glu glu glu delete quadric bar value quadric for int i 0 i this chart length i bar value value this chart i for int j 0 j value length j value j dispose value j null this axis dispose if context null context destroy dispose context null | disposes of the gl context |
public boolean is disposed return this context null this canvas is disposed | returns whether or not this scene is disposed |
protected void resize scene rectangle rect this canvas get client area this context resize 0 0 rect width rect height system err println resize scene rectangle bounds canvas get bounds float f aspect float bounds width float bounds height canvas set current context make current gl gl context get gl gl gl viewport 0 0 bounds width bounds height gl gl matrix mode gl gl projection gl gl load identity glu glu new glu glu glu perspective 45 0f f aspect 0 5f 400 0f gl gl matrix mode gl gl modelview gl gl load identity context release | corrects the size of the gl scene |
public void set coordinate system int level jogladvanced interaction interaction set coordinate system level added this ha 040924 ml sg resume | sets which type of coordinate system is used |
public void draw cone gluquadric quadric double base double height int detail glut glut solid cone glu base 2 height 15 15 base height slices stacks glu glu cylinder quadric base 2 0 height 15 15 create bottom double x 0 create bottom double y 0 create bottom double angle gl gl begin gl gl triangle fan gl gl vertex2d 0 0 for angle 0 angle 2 0f math pi angle math pi 12 0f x base 2 math sin angle y base 2 math cos angle gl gl vertex2d x y gl gl end | draws a cone with base and height |
public void display changed glauto drawable drawable boolean mode changed boolean device changed | currently unimplemented in jogl definition |
public void reshape glauto drawable drawable int x int y int width int height set size width height mouse handler my glcamera set screen size width height super get gl gl viewport 0 0 width height super get gl gl matrix mode gl gl projection super get gl gl load identity super get glu glu perspective mouse handler fovy double get size width double get size height 0 1 5000 0 super get gl gl matrix mode gl gl modelview super get gl gl load identity | this method controls the canvas size at reshape |
public void do reverse rotation important in this order super get gl gl rotatef 0 0f 0 0f 0 0f 1 0f super get gl gl rotatef mouse handler graph rot y 0 0f 1 0f 0 0f super get gl gl rotatef mouse handler graph rot x 1 0f 0 0f 0 0f | rotates back to original position |
public void mode select int op switch op case joglscene prop interface nodemode mouse handler node mode true mouse handler graph mode false mouse handler camera mode false gldebug println err message object mode break case joglscene prop interface graphmode mouse handler node mode false mouse handler graph mode true mouse handler camera mode false gldebug println err message scene mode break case joglscene prop interface cameramode mouse handler node mode false mouse handler graph mode false mouse handler camera mode true gldebug println err message camera mode break | method created by cano martin rodrigo description selects the |
public void select elements boolean select select 0 no selection select 1 selection mode gldebug println err message selection mode select mouse handler select mode select | method to control whether it should be possible to pick objects or not |
public void set coordinate system int level level 0 no coordinate system level 1 local coordinate system level 2 global coordinate system gldebug println err message coordinate system level interaction set coordinate system level coord level level | sets which type of coordinate system is used |
public animator get animator return anim | returning current animator |
public void show names boolean show is show names show | sets is show names a boolean that decides wheater the nodenames should be |
protected void dispose if context null context destroy dispose context null | disposes of the gl context |
public void add scene node visual node interface scene graph node node interface node scene graph add node node scene graph node | adds a node to the scene graph |
public void add scene edge visual edge interface scene graph edge edge interface edge visual edge interface gledge scene graph edge scene graph add edge edge gledge | adds a created edge to the scene graph |
public void update metaphor if scene graph null current metaphor null current layout null return interaction set do display false scene graph clear caches build scene graph interaction set do display true | updates the bindings in the graph |
public object create canvas3 d int i int j interaction new joglinteraction this vizz gui i j scene graph return interaction | creates the open gl canvas |
private void calculate frame rate long current time system current time millis g frame interval float current time frame time 1000 frame time current time increase the frame counter frames per second if current time last time 1000 last time current time copy the frames per second into a string to display in the window title bar string str frame rate current frames per second frames per second reset the frames per second frames per second 0 | this function calculates the frame rate and time intervals between frames |
public void strafe camera float speed update add the strafe vector to our position my position vector add to x my strafe vector get x speed my position vector add to z my strafe vector get z speed add the strafe vector to our view my view vector add to x my strafe vector get x speed my view vector add to z my strafe vector get z speed | this strafes the camera left and right depending on the speed |
public void update initialize a variable for the cross product result joglvector3 v cross my view vector subtract my position vector cross my up vector normalize the strafe vector my strafe vector v cross normalize | this updates the cameras view and strafe vector |
public void look glu glu give open gl our camera position then camera view then camera up vector glu glu look at my position vector get x my position vector get y my position vector get z my view vector get x my view vector get y my view vector get z my up vector get x my up vector get y my up vector get z | this updates the camera |
public void reverse look glu glu give open gl our camera position then camera view then camera up vector glu glu look at my position vector get x my position vector get y my position vector get z my view vector get x my view vector get y my view vector get z my up vector get x my up vector get y my up vector get z | this updates the camera |
public void set component position point component position this component position component position | sets the component position |
public void do reverse rotation context make current gl gl context get gl important in this order gl gl rotatef 0 0f 0 0f 0 0f 1 0f gl gl rotatef mouse handler graph rot y 0 0f 1 0f 0 0f gl gl rotatef mouse handler graph rot x 1 0f 0 0f 0 0f context release | rotates back to original position |
private void read vertex list input stream in throws ioexception float x y z tmpy int vertices read short in for int i 0 i vertices i x read float in y read float in z read float in swap the y and z values tmpy y y z z tmpy current object add vertex x y z current object add vertex x y z | 3 d studio max models have the z axis pointing up |
public void set texture tile float horizontal tile float vertical tile tile factor horiz horizontal tile tile factor vert vertical tile | how many times to repeat texture horizontally and vertically |
public void set texture int texture handle this texture handle texture handle | set texture for mesh |
public void render gl gl if display list id 0 gl calllist display list id else if obj null if texture handle 0 render mesh gl obj texture handle else render mesh gl obj | draw this mesh with current texture |
public void make display list display list id build call list | compile the mesh into display list |
public mlscene graph interface create scene graph interface g system out println create scene graph interface g layout interface layout if g null vdebug println err message graphics handler data graph null system exit 1 current mlscene graph create scene graph g interaction create canvas current mlscene graph return current mlscene graph | create the scene |
private mlscene graph interface create scene graph graph interface g mlscene graph interface scene graph new joglmlscene graph g vizz gui set layout scene graph scene graph set current metaphor new joglvizz metaphor return scene graph | create the scene |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.