input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
protected void subset remove object object if subset feature ids null enforce superset constraints for int i 0 i subset feature ids length i estructural feature subset estructural feature owner e class get estructural feature subset feature ids i if subset estructural feature is many suppress warnings unchecked elist object list elist object owner e get subset estructural feature list remove object else if object equals owner e get subset estructural feature owner e set subset estructural feature null
|
removes the specified element from the subset s
|
protected boolean is included estructural feature feature return data class is assignable from feature get etype get instance class
|
indicates whether all elements from the specified source feature are
|
protected boolean is included object object return data class is instance derive object
|
indicates whether the specified element from a source feature is included
|
protected object delegated get image string key throws missing resource exception resource locator delegate resource locators get delegate resource locators for int i 0 i delegate resource locators length i try return delegate resource locators i get image key catch missing resource exception exception ignore the exception since we will throw one when all else fails throw new missing resource exception common plugin instance get string ui image resource not found exception new object key get class get name key
|
does the work of fetching the image associated with the key
|
protected string delegated get string string key boolean translate resource locator delegate resource locators get delegate resource locators for int i 0 i delegate resource locators length i try return delegate resource locators i get string key translate catch missing resource exception exception ignore this since we will throw an exception when all else fails throw new missing resource exception message format format the string resource 0 could not be located new object key get class get name key
|
does the work of fetching the string associated with the key
|
static protected void register non xs string name if token nonxs null token nonxs new hashtable string string token nonxs put name name
|
this method is called by only get range
|
public void load package if is loaded return is loaded true url url get class get resource package filename if url null throw new runtime exception missing serialized package package filename non nls 1 uri uri uri create uri url to string resource resource new ecore resource factory impl create resource uri try resource load null catch ioexception exception throw new wrapped exception exception initialize from loaded epackage this epackage resource get contents get 0 create resource e ns uri
|
laods the package and any sub packages from their serialized form
|
public void show this show new
|
default show the new user dialog
|
public void show new this reset this set text new option bar set attribute style display block update option bar set attribute style display none super show super center
|
show a new user dialog box
|
public void show update role dto role new option bar set attribute style display none update option bar set attribute style display block this set text this role role role name set text this role get name super show this center
|
show a update user dialog box
|
public void show new this reset user name set text tony random next int password set text 123456 re password set text 123456 this set text new option bar set visible true update option bar set visible false super show super center
|
show a new user dialog box
|
public void show update user dto user reset new option bar set attribute style display none update option bar set attribute style display block new option bar set visible false update option bar set visible true this set text this user user user name set text this user get name for role dto role user get roles for check box cb role checkbox list if role get id to string equals cb get form value cb set value true super show this center
|
show a update user dialog box according the user dto pass in
|
private string get center widget history token tree item item string class name item get text return class name
|
get the token for a given content widget
|
public void set copy protected boolean copy protected this copy protected copy protected
|
sets the copy protection flag
|
public string read string int length boolean null terminated write actual characters byte ca new byte length for int i 0 i ca length i byte temp read byte if null terminated temp 0 break ca i temp return new string ca
|
reads a string of the given length in bytes
|
public date read date long date this read int system out println date read date return new date new time date 1000 write int int date get time 1000 date offset
|
reads a date in 4 byte palm date format
|
public void set name string name if name length 31 throw new illegal argument exception database name cannot be longer than 31 characters for int i 0 j name length i j i if name char at i 0x20 name char at i 0x7e throw new illegal argument exception invalid database name name this name name
|
sets the databases name
|
public void cancel write write cancelled true writing false
|
cancel the current database write
|
protected void set creator id string creator id if creator id length 4 throw new illegal argument exception creator id must be four characters this creator id creator id
|
sets the databases creator id
|
protected void set database type string database type if database type length 4 throw new illegal argument exception database type must be four characters this database type database type
|
sets the database type
|
public physics system load physics system class system collision system cs physics system ps physics system physics systems get system if ps null initialize the system try try ps physics system system new instance catch illegal access exception e1 system out println system could not be created e1 return null catch instantiation exception e2 system out println system could not be created e2 return null physics systems put system ps ps set worldmanager world manager ps set collision system cs ps initialize return ps
|
this method loads the specified collision system
|
public void commit processor arming collection collection target set local translation trans target set local scale scale world manager add to update list target
|
the commit methods
|
public void initialize set arming condition new new frame condition this
|
the initialize method
|
public void compute processor arming collection collection alpha increment if alpha 1 0f increment increment alpha 1 0f else if alpha 0 0f increment increment alpha 0 0f
|
the calculate method
|
public void commit processor arming collection collection color rgba color target get default color color a alpha target set default color color world manager add to update list target
|
the commit method
|
public void compute processor arming collection collection degrees increment quaternion from angles 0 0f degrees 0 0f quaternion mult start trans current trans
|
the calculate method
|
public void commit processor arming collection collection target set local translation current trans world manager add to update list target if vis target null vis target set local translation current trans world manager add to update list vis target
|
the commit method
|
public void commit processor arming collection collection target set local rotation quaternion target set local translation position if render capture null render capture set camera data position quaternion if light light node set local translation position world manager add to update list target
|
the commit methods
|
public void commit processor arming collection collection float edge 100 0f target set frustum 1 0f 3000 0f edge edge edge edge target set frustum perspective 45 0f 1 0f 1 0f 3000 0f target set parallel projection false target set location position target look at look at up
|
the commit methods
|
public void commit processor arming collection collection camera camera target get camera camera set location cur position camera set direction cur direction camera set up cur up camera set left cur left target update from camera target set local translation cur position target set local rotation cur rot world manager add to update list target
|
the commit methods
|
public void compute processor arming collection collection degrees increment quaternion from angles 0 0f degrees 0 0f
|
the calculate method
|
public void commit processor arming collection collection target set local rotation quaternion world manager add to update list target
|
the commit method
|
public physics system get physics system return physics system
|
get the collision system for this component
|
public collision component get collision component return collision component
|
get the collision node
|
public collision data get pick data return collision data
|
get the collision data object
|
public node get reported node return node
|
get the node that was reported
|
public pick data get pick data return pick data
|
get the pick data object
|
public void commit processor arming collection collection target set local rotation quaternion target set local translation rotated position system out println rotation quaternion system out println translation translation bounds position set position x position y 1 5f position z bounds set local translation bounds position world manager add to update list bounds world manager add to update list target
|
the commit methods
|
public physics manager get physics manager return physics manager
|
get the physics manager
|
public tri mesh get tri mesh return tri mesh
|
get the tri mesh
|
public void remove entity entity e entity component c null synchronized e iterator comps e get components iterator while comps has next c entity component comps next owl issue 163 do not wait for the component if we are removing the entire entity remove component c remove the sub entities for int i 0 i e num entities i remove entity entity e get entity i entities remove e e set world manager null
|
this adds an already created entity to the system
|
public string get geometry name return name
|
get the geometry name
|
public string get shader name return shader name
|
get the shader name
|
public collision shape get collision shape return collision shape
|
get the collision shape
|
public void set shader name string name shader name name
|
set the shader name
|
public boolean get shadow occluder return shadow occluder
|
get the occluder flag
|
public void set shadow occluder boolean enable shadow occluder enable
|
set the shader occluder flag
|
public collision object get collision object return collision object
|
get the collision object
|
public boolean get shadow receiver return shadow receiver
|
get the occluder flag
|
public void set shadow receiver boolean enable shadow receiver enable
|
set the shader occluder flag
|
public void set world transform transform t synchronized rotation world transform set t translation x world transform origin x translation y world transform origin y translation z world transform origin z rotation m00 world transform basis m00 rotation m01 world transform basis m01 rotation m02 world transform basis m02 rotation m10 world transform basis m10 rotation m11 world transform basis m11 rotation m12 world transform basis m12 rotation m20 world transform basis m20 rotation m21 world transform basis m21 rotation m22 world transform basis m22 collision system get world manager get render manager add render updater this this false
|
catch the set transform method
|
public string get low shader name return low shader name
|
get the shader name
|
public void set low shader name string name low shader name name
|
set the shader name
|
public transform get world transform transform t synchronized rotation t set world transform return t
|
get the world transform
|
public void add low shader param string param low shader params add param
|
get the collision component
|
public void apply to geometry geometry geo apply uniforms geo geo set render state shader state
|
this applies this shader to the given geometry
|
public void set distance float d distance d
|
set the distance cutoff for lod
|
public void add initialized listener initialized listener listener synchronized listener set listener set add listener
|
adds an initialize listener
|
public void remove initialized listener initialized listener listener synchronized listener set listener set remove listener
|
removes an initialize listener
|
public void shutdown physics manager quit processor manager quit render manager quit
|
this tells the renderer and the process manager to quit
|
private void fire initialized event synchronized listener set for initialized listener l listener set l component initialized
|
notifies all of the listeners of the initialized event
|
public void set shader uniforms string u for int i 0 i u length i parse uniform u i
|
set the uniforms for this shader
|
public void set shadow map texture t shadow map t
|
set the shadow map for this shader
|
public texture get shadow map return shadow map
|
get the shadow map for this shader
|
public void set shadow map index int index shadow map index index
|
set the shadow map index for this shader
|
public int get shadow map index return shadow map index
|
get the shadow map index for this shader
|
public void init world manager wm config manager cm string name vector3f location quaternion rotation vector3f scale string args load collada file wm cm name args 0 if model null model set local translation location model set local rotation rotation model set local scale scale
|
this method is called when the instance is initialized
|
public config instance get config instance string name return config instance map get name
|
get a named config instance
|
public node get scene graph return model
|
this method is called to get the scene graph for this instance
|
public void add uniform string key object value uniforms put key value
|
add a uniform to the list of known uniforms
|
public boolean is pickable if inherit pickable parent collision component null return parent collision component is pickable return pickable
|
retuns whether or not this collision component is considered for pick
|
public void add processor processor component pc processors add pc entity e get entity if e null world manager wm e get world manager if wm null wm get processor manager add component pc
|
add a processor
|
public void add required uniform string key required uniforms add key
|
add a uniform to the list of uniforms needed for this shader
|
public void remove processor processor component pc entity e get entity if e null world manager wm e get world manager if wm null wm get processor manager remove component pc processors remove pc
|
remove a processor from the collection
|
public void set inherit pickable boolean inherit this inherit pickable inherit
|
set whether or not we should inherit the value of pickable
|
public string get texture directory return texture dir
|
get the texture directory
|
public boolean is required uniform string key for int i 0 i required uniforms size i if required uniforms get i equals key return true return false
|
checks if the given uniform is required for this shader
|
public void remove collision details collision details cd collision details remove cd
|
remove a pick details from the list
|
public boolean is inherit pickable return inherit pickable
|
get whether we are currently inheriting the value of pickable
|
public int size return collision details size
|
get the size of the list
|
public skybox component create skybox component skybox sb boolean current skybox component sc new skybox component sb current return sc
|
create a skybox component using the j me skybox given
|
public void apply uniforms geometry g if uniforms loaded return iterator keys uniforms key set iterator while keys has next string key string keys next if is required uniform key if key contains color color rgba color color rgba uniforms get key shader state set uniform key color r color g color b color a else if key contains map integer i val integer uniforms get key shader state set uniform key i val int value if shadow map null shader state set uniform shadow map index shadow map index apply shadow map g shadow map index uniforms loaded true
|
apply the uniforms to this shader
|
public collision details get int i return collision details collision details get i
|
get the element specified by the index
|
private void apply shadow map geometry g int index texture state ts texture state g get render state render state state type texture if ts null ts texture state world manager get render manager create renderer state render state state type texture g set render state ts ts set texture shadow map index
|
set up the shadow map for this shader
|
public boolean is collidable if inherit collidable parent collision component null return parent collision component is collidable return collidable
|
retuns whether or not this collision component is considered for collision
|
public glslshader objects state get shader state return shader state
|
get the glslshader objects state for this object
|
public void set inherit collidable boolean inherit this inherit collidable inherit
|
set whether or not we should inherit the value of collidable
|
public void update object o shader state load vertex shader fragment shader
|
this loads the shader
|
public boolean is inherit collidable return inherit collidable
|
get whether we are currently inheriting the value of collidable
|
public string get base url return base dir
|
get the data directory
|
private void process shadow map string token if token equals true if shadow map buffer null vector3f up new vector3f 1 0f 1 0f 1 0f vector3f look at new vector3f vector3f position new vector3f 125 0f 100 0f 125 0f create shadow buffer look at position up else if shadow map buffer null todo implement this world manager get render manager remove render buffer shadow map buffer
|
process a shadow map enable
|
protected void find parent collision component entity parent get entity get parent while parent null parent collision component parent get component collision component class if parent collision component null return parent parent get parent no parent collision component found parent collision component null
|
find the parent collision component by walking up the tree until we
|
private void create shadow buffer vector3f look at vector3f pos vector3f up shadow map buffer shadow map render buffer world manager get render manager create render buffer render buffer target shadowmap shadow map width shadow map height shadow map buffer set camera look at look at shadow map buffer set camera up up shadow map buffer set camera position pos shadow map buffer set manage render scenes true shadow map buffer set background color new color rgba 1 0f 1 0f 1 0f 1 0f world manager get render manager add render buffer shadow map buffer
|
create a shadowmap buffer with the given position and direction
|
public void set texture directory string dir config manager set texture directory dir
|
set the texture directory
|
private void set shadow map width string width shadow map width integer parse int width
|
set the shadow map width
|
public void load configuration input stream stream config manager load configuration stream
|
load the configuration data given by the input stream attaching
|
public void add shadow map shader shader s renderer add shadow map shader s
|
add a geometry lod to track
|
public void load configuration input stream stream config load listener listener config manager load configuration stream listener
|
load the configuration data given by the input stream but dont attach
|
private void set shadow map height string height shadow map height integer parse int height
|
set the shadow map height
|
public void add geometry lod geometry lod lod renderer add geometry lod lod
|
add a geometry lod to track
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.