|
|
| lgl_TransitionNode (double delta, const vec3 &vector, const std::string &id="", lgl_Node *node=NULL) |
| | ctor
|
| |
|
virtual std::string | getClassId () const |
| | get the class id
|
| |
|
bool | enabled () const |
| | is the node enabled?
|
| |
|
bool | disabled () const |
| | is the node disabled?
|
| |
|
void | enable (bool yes=true) |
| | enable the node
|
| |
|
void | disable (bool yes=true) |
| | disable the node
|
| |
|
void | toggle () |
| | toggle the node
|
| |
|
virtual void | pause (bool yes=true) |
| | pause the animation
|
| |
|
virtual void | resume (bool yes=true) |
| | resume the animation
|
| |
|
virtual void | setSpeedup (double speedup=1) |
| | set the animation speedup
|
| |
|
virtual void | control (bool override=true) |
| | control the node as specified by the control mode
|
| |
|
virtual void | steer (double level, bool override=true) |
| | apply the steer level as specified by the steer mode
|
| |
|
lgl_transition_enum | getTransitionStyle () const |
| | get transition style
|
| |
|
void | setTransitionStyle (lgl_transition_enum style) |
| | set transition style
|
| |
|
virtual void | finish () |
| | finish ongoing transition
|
| |
|
double | getDelta () const |
| | get the animation delta
|
| |
|
vec3 | getVector () const |
| | get the animation vector
|
| |
|
double | getVelocity () const |
| | get the animation velocity
|
| |
|
double | getLimit () const |
| | get the animation limit
|
| |
|
void | stopOnLimit () |
| | stop on animation limit
|
| |
|
bool | getStopOnLimit () const |
| | get stop on animation limit
|
| |
|
void | signalOnStop () |
| | signal on stop
|
| |
|
bool | getSignalOnStop () const |
| | get signal on stop
|
| |
|
double | getAcceleration () const |
| | get the animation acceleration
|
| |
|
double | getReverse () const |
| | get the reverse acceleration after limit has been reached
|
| |
|
double | animation () const |
| | get the actual animation state
|
| |
|
void | rewind (double animation=0) |
| | rewind the animation
|
| |
|
void | direction (bool forward) |
| | set the direction of the animation
|
| |
|
void | reverse () |
| | reverse the animation
|
| |
|
void | forward (double delta) |
| | move the animation forward
|
| |
|
void | backward (double delta) |
| | move the animation backward
|
| |
|
virtual bool | paused () const |
| | is the animation paused?
|
| |
|
virtual double | speedup () |
| | get the animation speedup
|
| |
|
lgl_animation_steer_mode_enum | getSteerMode () const |
| | get the steer mode
|
| |
|
void | setSteerMode (lgl_animation_steer_mode_enum mode) |
| | set the steer mode
|
| |
|
virtual void | restartAll (double animation=0) |
| | restart all animations
|
| |
|
virtual void | pauseAll (bool yes=true) |
| | pause all animations
|
| |
|
virtual void | speedupAll (double speedup=1) |
| | speedup all animations
|
| |
|
vec3 | transform (const vec3 &p) const |
| | transform a point
|
| |
|
vec4 | transform (const vec4 &p) const |
| | transform a point
|
| |
|
mat4 | getTransformation () const |
| | get the transformation matrix
|
| |
|
void | setTransformation (const mat4 &m) |
| | set the transformation matrix
|
| |
|
void | translate (const vec3 &v) |
| | set the transformation matrix (translation)
|
| |
|
void | translate (double x, double y, double z) |
| | set the transformation matrix (translation)
|
| |
|
void | rotate (double angle, const vec3 &v) |
| | set the transformation matrix (rotation)
|
| |
|
void | rotate (double angle, double x, double y, double z) |
| | set the transformation matrix (rotation)
|
| |
|
void | scale (double c) |
| | set the transformation matrix (scale)
|
| |
|
void | scale (double x, double y, double z, double w=1) |
| | set the transformation matrix (scale)
|
| |
|
void | scale (const vec4 &c) |
| | set the transformation matrix (scale)
|
| |
|
lgl_control_mode_enum | getControlMode () const |
| | get the control mode
|
| |
|
void | setControlMode (lgl_control_mode_enum mode) |
| | set the control mode
|
| |
|
virtual bool | stateless () const |
| | is the node stateless?
|
| |
|
std::string | getId () const |
| | get the node identifier
|
| |
|
void | setId (const std::string &id="") |
| | set the node identifier
|
| |
|
std::string | getAltId () const |
| | get the alternate node identifier
|
| |
|
void | setAltId (const std::string &id="") |
| | set the alternate node identifier
|
| |
|
unsigned int | children () const |
| | get the number of children of the node
|
| |
|
bool | leaf () const |
| | is the node a leaf?
|
| |
|
unsigned int | references () const |
| | get the number of references to the node
|
| |
|
bool | shared () const |
| | is the node shared?
|
| |
|
lgl_Node * | get (unsigned int i=0) const |
| | get a child node
|
| |
|
template<class T > |
| T * | add (T *node) |
| | add a child node with a specific type
|
| |
|
void | remove (unsigned int i=0) |
| | remove a child from the node
|
| |
|
void | replace (lgl_Node *node, unsigned int i=0) |
| | replace a child of the node
|
| |
|
lgl_Node * | take (unsigned int i=0) |
| | unlink a child and take ownership
|
| |
|
void | link (lgl_Node *node) |
| | add the links of a node
|
| |
|
void | unlink () |
| | remove the links of the node
|
| |
|
virtual bool | checkForCycles () |
| | check for graph cycles
|
| |
|
bool | shown () const |
| | is the node shown?
|
| |
|
bool | hidden () const |
| | is the node hidden?
|
| |
|
void | show (bool yes=true) |
| | show the node and its children
|
| |
|
void | hide (bool yes=true) |
| | hide the node and its children
|
| |
|
virtual lgl_Node * | find (const std::string &id) |
| | find a node with a specific identifier
|
| |
|
template<class T > |
| T * | find () |
| | find a node with a specific type
|
| |
|
template<class T > |
| T * | find (const std::string &id) |
| | find a node with a specific identifier and type
|
| |
|
void | renderSceneGraph (double dt=0) |
| | render and update the entire scene subgraph
|
| |
|
void | drawSceneGraph (vec4 color=vec4(1)) |
| | draw the entire scene subgraph without updating
|
| |
|
void | drawSceneGraph (const mat4 &m) |
| | draw the entire scene subgraph without updating
|
| |
|
void | preupdateSceneGraph (double dt) |
| | pre-update the entire scene subgraph
|
| |
|
void | updateSceneGraph (double dt) |
| | update the entire scene subgraph
|
| |
| virtual void | getBoundingBox (vec3 &bboxmin, vec3 &bboxmax) |
| | get the bounding box of the entire subgraph More...
|
| |
| double | getBoundingSphere (vec3 ¢er) |
| | get the bounding sphere of the entire subgraph More...
|
| |
|
vec3 | getCenter () |
| | get the bounding box center of the entire subgraph
|
| |
|
vec3 | getExtent () |
| | get the bounding box extent of the entire subgraph
|
| |
| double | getRadius () |
| | get the bounding sphere radius of the entire subgraph More...
|
| |
| double | getNorm () |
| | get the bounding sphere norm of the entire subgraph More...
|
| |
| virtual std::vector< vec4 > | getVertexCoordinates (mat4 trans=mat4()) |
| |
| void | getExactBoundingBox (vec3 &bboxmin, vec3 &bboxmax) |
| | get the exact bounding box of the entire subgraph More...
|
| |
|
lglVBO * | pickSceneGraph (vec3 origin, vec3 direction, double mindist=0) |
| | pick the entire scene subgraph
|
| |
|
bool | hasTransparency () |
| | check the entire subgraph whether or not it contains semi-transparent geometry
|
| |
|
virtual unsigned int | countAll () |
| | count all nodes (count multiply linked nodes)
|
| |
|
virtual unsigned int | countAllOnce () |
| | count all nodes (count multiply linked nodes once)
|
| |
|
virtual unsigned int | countAllPrimitives () |
| | count all primitives
|
| |
|
unsigned int | countAllVertices () |
| | count all vertices
|
| |
|
virtual bool | ordered () const |
| | is the node ordered?
|
| |
|
bool | convertable () const |
| | is the node convertable?
|
| |
|
bool | cloneable () const |
| | is the node cloneable?
|
| |
|
bool | optimizable () const |
| | is the node optimizable?
|
| |
|
virtual void | optimizeAll () |
| | optimize all nodes
|
| |
|
virtual void | finishAll () |
| | finish all transitions
|
| |
|
std::string | exportAll (lgl_export_enum mode=LGL_EXPORT_NODES, int indentation=0, int increment=3) |
| | export all nodes
|
| |
|
void | exportNodes (std::string filename) |
| | export graph nodes
|
| |
|
void | exportGraph (std::string filename) |
| | export link graph
|
| |
|
void | exportCommands (std::string filename) |
| | export graphics commands
|
| |
|
bool | saveObj (std::string filename) |
| | save into OBJ file
|
| |
transition node (base class)
a transition node performs a single continuous transformation operation and then stops after reaching a certain transformation limit