input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public boolean is click binding in use scene button button integer nc return click actions is shortcut in use new click binding button nc
|
returns true if the given binding binds a click action
|
public boolean is click binding in use integer mask scene button button integer nc return click actions is shortcut in use new click binding mask button nc
|
returns true if the given binding binds a click action
|
public void remove from mouse grabber pool mouse grabbable mouse grabber mouse grabber pool remove mouse grabber
|
removes the mouse grabber from the
|
public void set standard znear float z n if kind camera kind standard z n std znear last frame update scene parent frame count std znear z n
|
sets the value of the
|
public boolean is click action binded scene click action action return click actions is action mapped action
|
returns true if the given click action is binded
|
public void set click binding scene button button scene click action action if is click binding in use button click action a click binding button papplet println warning overwritting binding which was previously associated to a click actions set binding new click binding button action
|
binds the click action to the given binding
|
public float standard znear return std znear
|
returns the value of the
|
public void set click binding integer mask scene button button scene click action action if is click binding in use mask button click action a click binding mask button papplet println warning overwritting bindings which was previously associated to a click actions set binding new click binding mask button action
|
binds the click action to the given binding
|
public void set standard zfar float z f if kind camera kind standard z f std zfar last frame update scene parent frame count std zfar z f
|
sets the value of the
|
public void set click binding scene button button integer nc scene click action action if is click binding in use button nc click action a click binding button nc papplet println warning overwritting binding which was previously associated to a click actions set binding new click binding button nc action
|
binds the click action to the given binding
|
public void set click binding integer mask scene button button integer nc scene click action action if is click binding in use mask button nc click action a click binding mask button nc papplet println warning overwritting binding which was previously associated to a click actions set binding new click binding mask button nc action
|
binds the click action to the given binding
|
public float standard zfar return std zfar
|
returns the value of the
|
public void remove click binding scene button button click actions remove binding new click binding button
|
removes the mouse click binding
|
public void change standard ortho frustum size boolean augment if kind camera kind standard type camera type orthographic last frame update scene parent frame count if augment ortho size 1 01f else ortho size 1 01f
|
changes the size of the frustum
|
public void remove click binding integer mask scene button button click actions remove binding new click binding mask button
|
removes the mouse click binding
|
public void remove click binding scene button button integer nc click actions remove binding new click binding button nc
|
removes the mouse click binding
|
public float standard ortho frustum size return ortho size
|
returns the frustum size
|
public void remove click binding integer mask scene button button integer nc click actions remove binding new click binding mask button nc
|
removes the mouse click binding
|
public void remove all camera wheel bindings camera wheel actions remove all bindings
|
removes all camera wheel action bindings
|
public float field of view return fld of view
|
returns the vertical field of view of the camera in radians
|
public boolean is camera wheel binding in use integer mask return camera wheel actions is shortcut in use mask
|
returns true if the given binding binds a camera wheel action
|
public void set field of view float fov fld of view fov set focus distance scene radius papplet tan fov 2 0f
|
sets the vertical
|
public boolean is camera wheel action binded scene mouse action action return camera wheel actions is action mapped action
|
returns true if the given camera wheel action is binded
|
public void set camera wheel binding scene mouse action action set camera wheel binding 0 action
|
convenience function that simply calls
|
public void toggle frustum equations update if frustum equations update is enable disable frustum equations update else enable frustum equations update
|
toggles automatic update of the camera frustum plane equations every frame
|
public void set fovto fit scene if distance to scene center papplet sqrt 2 0f scene radius set field of view 2 0f papplet asin scene radius distance to scene center else set field of view quaternion pi 2 0f
|
changes the camera
|
public void set camera wheel binding integer mask scene mouse action action if is camera wheel binding in use mask mouse action a camera wheel binding mask papplet println warning overwritting binding which was previously associated to a camera wheel actions set binding mask action
|
binds the camera wheel action to the given binding
|
public float horizontal field of view return 2 0f papplet atan papplet tan field of view 2 0f aspect ratio
|
returns the horizontal field of view of the camera in radians
|
public void disable frustum equations update enable frustum equations update false
|
disables automatic update of the camera frustum plane equations every
|
public void remove camera wheel binding remove camera wheel binding 0
|
convenience function that simply calls
|
public void remove camera wheel binding integer mask camera wheel actions remove binding mask
|
removes the camera wheel action binding
|
public void enable frustum equations update enable frustum equations update true
|
enables automatic update of the camera frustum plane equations every frame
|
public void remove all frame wheel bindings frame wheel actions remove all bindings
|
removes all frame wheel action bindings
|
public float aspect ratio return float scrn width float scrn height
|
returns the camera aspect ratio defined by
|
public boolean is frame wheel binding in use integer mask return frame wheel actions is shortcut in use mask
|
returns true if the given binding binds a frame wheel action
|
public void enable frustum equations update boolean flag camera enable frustum equations update flag
|
enables or disables automatic update of the camera frustum plane equations
|
public boolean is frame wheel action binded scene mouse action action return frame wheel actions is action mapped action
|
returns true if the given camera wheel action is binded
|
public void set aspect ratio float aspect set screen width and height int 100 0 aspect 100
|
defines the camera
|
public void set frame wheel binding scene mouse action action set frame wheel binding 0 action
|
convenience function that simply calls
|
public void toggle axis is drawn set axis is drawn axis is drawn
|
toggles the state of
|
public void set frame wheel binding integer mask scene mouse action action if is frame wheel binding in use mask mouse action a frame wheel binding mask papplet println warning overwritting binding which was previously associated to a frame wheel actions set binding mask action
|
binds the camera wheel action to the given binding
|
public void remove frame wheel binding remove frame wheel binding 0
|
convenience function that simply calls
|
public float z near if kind kind standard return standard znear float z distance to scene center z clipping coefficient scene radius prevents negative or null z near values final float z min z near coefficient z clipping coefficient scene radius if z z min switch type case perspective z z min break case orthographic z 0 0f break return z
|
returns the near clipping plane distance used by the camera projection
|
public void toggle grid is drawn set grid is drawn grid is drawn
|
toggles the state of
|
public void remove frame wheel binding integer mask frame wheel actions remove binding mask
|
removes the frame wheel action binding
|
public float z far if kind kind standard return this standard zfar return distance to scene center z clipping coefficient scene radius
|
returns the far clipping plane distance used by the camera projection
|
public void toggle frame selection hint is drawn set frame selection hint is drawn frame selection hint is drawn
|
toggles the state of
|
public float z near coefficient return z near coef
|
returns the coefficient which is used to set
|
public void toggle camera paths are drawn set camera paths are drawn camera paths are drawn
|
toggles the state of
|
public float z clipping coefficient return z clipping coef
|
returns the coefficient used to position the near and far clipping planes
|
public float pixel p5 ratio pvector position switch type case perspective return 2 0f papplet abs frame coordinates of position z papplet tan field of view 2 0f screen height case orthographic float wh get ortho width height return 2 0f wh 1 screen height return 1 0f
|
returns the ratio between pixel and processing scene units at
|
public void toggle draw with constraint if draw is constrained set draw with constraint false else set draw with constraint true
|
toggles the draw with constraint on and off
|
public float distance to frustum plane int index pvector pos if scene frustum equations update is enable papplet println the camera frustum plane equations needed by distance to frustum plane may be outdated please enable automatic updates of the equations in your papplet setup with scene enable frustum equations update pvector my vec new pvector fp coefficients index 0 fp coefficients index 1 fp coefficients index 2 return pvector dot pos my vec fp coefficients index 3
|
returns the signed distance between point
|
public void update frustum equations if last frame update last fpcoeficients update issued compute frustum equations fp coefficients last fpcoeficients update issued last frame update
|
updates the frustum plane equations according to the current camera setup
|
protected void enable frustum equations update boolean flag fp coefficients update flag
|
enables or disables automatic update of the camera frustum plane equations
|
public boolean cone is back facing array list pvector normals return cone is back facing new cone normals
|
convenience function that simply calls
|
public boolean cone is back facing pvector view direction array list pvector normals return cone is back facing view direction new cone normals
|
convenience function that simply calls
|
public boolean cone is back facing pvector normals return cone is back facing new cone normals
|
convenience function that simply calls
|
public void set axis is drawn set axis is drawn true
|
convenience function that simply calls
|
public boolean cone is back facing pvector view direction pvector normals return cone is back facing view direction new cone normals
|
convenience function that simply returns
|
public boolean cone is back facing cone cone return cone is back facing cone axis cone angle
|
convenience function that simply returns
|
public void set axis is drawn boolean draw axis is drwn draw
|
sets the display of the axis according to
|
public boolean cone is back facing pvector view direction cone cone return cone is back facing view direction cone axis cone angle
|
convenience function that simply returns
|
public boolean cone is back facing pvector axis float angle return cone is back facing view direction axis angle
|
convinience funtion that simply returns
|
public void set grid is drawn set grid is drawn true
|
convenience function that simply calls
|
public void set grid is drawn boolean draw grid is drwn draw
|
sets the display of the grid according to
|
public void set frame selection hint is drawn boolean draw frame selection hint is drwn draw
|
sets the display of the interactive frames selection hints according to
|
public float scene radius return scn radius
|
returns the radius of the scene observed by the camera
|
public void set camera paths are drawn boolean draw camera paths are drwn draw
|
sets the display of the camera key frame paths according to
|
public void set draw interactive frame set draw interactive frame true
|
convenience function that simply calls
|
public void set draw interactive frame boolean draw if draw gl iframe null return if draw current camera profile mode camera profile mode third person interactive frame equals avatar more natural than to bypass it return i frame is drwn draw
|
sets the interactivity to the scene
|
public float distance to scene center return papplet abs frame coordinates of scene center z
|
returns the distance from the camera center to
|
public void set draw with constraint boolean w constraint with constraint w constraint
|
constrain frame displacements according to
|
public void draw if is offscreen return draw common
|
paint method which is called just after your
|
public world point point under pixel point pixel return new world point new pvector 0 0 0 false
|
returns the coordinates of the 3 d point located at
|
public interactive camera frame frame return frm
|
returns the interactive camera frame attached to the camera
|
public pgraphics3 d renderer return pg3d
|
returns the renderer context linked to this scene
|
public key frame interpolator key frame interpolator int key return kfi get key
|
returns the key frame interpolator that defines the camera path number
|
public void set key frame interpolator int key key frame interpolator k if k null kfi put key k else kfi remove key
|
sets the key frame interpolator that defines the camera path of index
|
public void end draw begin off screen drawing calls if begin off screen drawing calls 0 throw new runtime exception there should be exactly one begin draw call followed by a end draw and they cannot be nested check your implementation draw common
|
this method should be called when using offscreen rendering
|
public void add key frame to path int key add key frame to path key true
|
convenience function that simply calls
|
public float radius return camera scene radius
|
returns the scene radius
|
public void add key frame to path int key boolean editable path boolean info true if kfi contains key key set key frame interpolator key new key frame interpolator scene frame papplet println position key saved info false if editable path kfi get key add key frame new interactive frame scene frame else kfi get key add key frame frame false if info papplet println path key position kfi get key number of key frames added
|
adds the current camera
|
public pvector center return camera scene center
|
returns the scene center
|
public void play path int key if kfi contains key key if kfi get key interpolation is started kfi get key stop interpolation papplet println path key stopped else if any interpolation is started stop all interpolations kfi get key start interpolation papplet println path key started
|
makes the camera follow the path of key frame interpolator number
|
public pvector arcball reference point return camera arcball reference point
|
returns the arcball reference point
|
public void reset path int key if kfi contains key key if kfi get key interpolation is started kfi get key stop interpolation else kfi get key reset interpolation kfi get key interpolate at time kfi get key interpolation time
|
resets the path of the
|
public void draw all paths itrtr kfi key set iterator while itrtr has next integer key itrtr next kfi get key add frames to mouse grabber pool kfi get key draw path 3 5 scene radius
|
draws all the camera paths defined by
|
public void hide all paths itrtr kfi key set iterator while itrtr has next integer key itrtr next kfi get key remove frames from mouse grabber pool
|
hides all the camera paths defined by
|
public pmatrix3 d get projection matrix return get projection matrix new pmatrix3 d
|
convenience function that simply returns
|
public void show all camera show entire scene
|
convenience wrapper function that simply calls
|
public boolean set arcball reference point from pixel point pixel return camera set arcball reference point from pixel pixel
|
convenience wrapper function that simply returns
|
public boolean set center from pixel point pixel return camera set scene center from pixel pixel
|
convenience wrapper function that simply returns
|
public void set projection matrix pmatrix3 d proj if is detached from p5 camera projection mat set proj
|
fills the projection matrix with the
|
public pmatrix3 d get model view matrix return get model view matrix new pmatrix3 d
|
convenience function that simply returns
|
public void set model view matrix pmatrix3 d modelview if is detached from p5 camera model view mat set modelview
|
fills the modelview matrix with the
|
public pvector world coordinates of final pvector src return frame inverse coordinates of src
|
returns the world coordinates of the point whose position
|
public float fly speed return frame fly speed
|
returns the fly speed of the camera
|
public void set fly speed float speed frame set fly speed speed
|
sets the camera
|
public void draw axis draw axis 100
|
convenience function that simply calls
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.